#include <base_locales.h>
Definition of a container class for Locale objects.
- See also
- CategoriesInfo, Locale
{
{
cout << (i+1)
<<
") Category name=" << myCategory.
name(
"" )
<<
", id=" << myCategory.
id()
<<
", groupId=" << myCategory.
groupId() << endl;
}
}
{
cout << (i+1)
<<
") Group name=" << myGroup.
name(
"" )
<<
", id=" << myGroup.
id() << endl;
}
}
{
cout << (i+1)
<<
"', languageId='" << myLocale.
languageId() <<
"'"
<< endl;
}
}
}
Definition at line 33 of file base_locales.h.
◆ at()
Returns the Locale with given index.
- Parameters
-
[in] | index | The index of the locale. Range is from 0 to size() - 1 |
- Returns
- A Locale object for the given index in the container.
- Note
- Throws an exception of type dca::ExDca if given index is out of range.
◆ operator[]()
Similar to at() but allows a more C++ style access.
- Parameters
-
[in] | index | The index of the locale. Range is from 0 to size() - 1 |
- Returns
- A Locale object for the given index in the container.
- Note
- Throws an exception of type dca::ExDca if given index is out of range.
◆ size()
Returns the number of categories in the container.
- Returns
- The size of the container or 0 if the container is empty.
The documentation for this class was generated from the following file:
const DCA_CATEGORIES_INFO_TYPE DCA_CAT_INFO_TYPE_URL
Refers to the internal categories info for URL classification.
DCA_SIZE_TYPE size() const
Returns the number of categories in the container.
Definition of a container class for Category objects.
CategoriesInfo getCategoriesInfo(DCA_CATEGORIES_INFO_TYPE categoryType) const
Returns the DCA internal categories, groups and locales.
Encapsulation of a locale class, which allows access to the language id and the display name of local...
DCA_GROUP_ID_TYPE id() const
Returns the id of the group as defined in the related categories XML schema.
A container class that allows access to the contained Categories, Groups and Locales.
DCA_CATEGORY_ID_TYPE id() const
The category id.
DCA_SIZE_TYPE size() const
Returns the number of categories in the container.
Definition of a container class for Group objects.
std::string name(const std::string &localeString=std::string()) const
Returns the localized (display) name of the group.
Locales getLocales() const
Returns the contained Locales.
Encapsulates the init and deinit of the DCA API.
DCA_SIZE_TYPE size() const
The number of items in the container.
size_t DCA_INDEX_TYPE
Type for index access (used for arrays and collections).
Categories getCategories() const
Returns the contained Categories.
size_t DCA_SIZE_TYPE
Type for size (used for size of array and collections).
std::string name(const std::string &localeString=std::string()) const
Returns the localized (display) name of the category.
std::string displayName() const
Returns the display name of the locale.
DCA_GROUP_ID_TYPE groupId() const
If the category is associated with a group, this is the group id.
Definition of a container class for Locale objects.
std::string languageId() const
Returns the language id as defined in the related categories.xml.
Encapsulates a group as defined in the related categories XML schema (see Categories XML: Groups).
Encapsulates a category as defined in the categories XML schema (see Categories XML: Categories).
Groups getGroups() const
Returns the contained Groups.