dca_wac::WacCategoriesInfo Class Reference
[Web Application Classification (WAC)]

#include <wac_categoriesinfo.h>

List of all members.


Detailed Description

Container class for all WAC enumeration objects.

Can be obtained from a WacClassification object using WacClassification::getCategoriesInfo().

You can use the related member functions to enumerate all applications, actions and tags.

See also:
WacClassification, dca::Locales, dca::Categories, WacApplications, WacActions, WacTags

The following sample code shows how to iterate over the data contained in a WacCategoriesInfo object:

void EnumerateWacCategoriesInfo( const dca_wac::WacCategoriesInfo& myCategoriesInfo )
{
        // assume we have a successfully initialized myCategoriesInfo

        // enumerate applications...
        {
                const dca_wac::WacApplications myApps = myCategoriesInfo.getApplications();
                const DCA_SIZE_TYPE numOfItems = myApps.size();
                for( DCA_INDEX_TYPE i = 0; i < numOfItems; ++i ) {
                        dca_wac::WacApplication myApp = myApps[ i ];
                        cout << (i+1)
                                 << ") Application name=" << myApp.name( "" )
                                 << ", description=" << myApp.description()
                                 << ", id=" << myApp.id() << endl;
                }
        }

        // enumerate actions...
        {
                const dca_wac::WacActions myActions = myCategoriesInfo.getActions();
                const DCA_SIZE_TYPE numOfItems = myActions.size();
                for( DCA_INDEX_TYPE i = 0; i < numOfItems; ++i ) {
                        dca_wac::WacAction myAction = myActions[ i ];
                        cout << (i+1)
                                 << ") Action name=" << myAction.name( "" )
                                 << ", description=" << myAction.description()
                                 << ", id=" << myAction.id() << endl;
                }
        }

        // enumerate tags...
        {
                const dca_wac::WacTags myTags = myCategoriesInfo.getTags();
                const DCA_SIZE_TYPE numOfItems = myTags.size();
                for( DCA_INDEX_TYPE i = 0; i < numOfItems; ++i ) {
                        dca_wac::WacTag myTag = myTags[ i ];
                        cout << (i+1)
                                 << ") Tag name=" << myTag.name( "" )
                                 << ", description=" << myTag.description()
                                 << ", id=" << myTag.id() << endl;
                }
        }

}

Definition at line 39 of file wac_categoriesinfo.h.

Public Member Functions

WacApplications getApplications () const
 Returns the contained WacApplications.
WacActions getActions () const
 Returns the contained WacActions.
WacTags getTags () const
 Returns the contained WacTags.

The documentation for this class was generated from the following file:

Generated on 26 Sep 2016 for dca_interface by  doxygen 1.6.1