main.cpp File Reference

WAC classification enumeration using provided WacCategoriesInfo and dca::CategoriesInfo. More...

#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <ctime>
#include "dca/dca_base.h"
#include "dca/dca_wac_classification.h"
#include "dca/dca_callbacks.h"

Go to the source code of this file.

Defines

#define DCA_BINDIR   "bin/linux"
 DCA subdirectory of the DCA binaries.
#define DCA_INITDIR   "init"
 DCA subdirectory of the DCA initialization data.
#define DCA_LOGDIR   "./logs"
 Relative directory for logfile(s).

Functions

static void SetupInitData (const std::string &redist_folder, dca::InitData &initData)
 Sets up the given initData by substituting the given redist_folder with DCA subdirectories.
static void SetupLicense (const std::string &ticket, const std::string &product, dca::LicenseData &licenseData)
 Sets up the given licenseData by copying the given ticket and product strings.
static void PrintLicenseInfo (const dca::License &aLicense)
 Prints out information about the provided License.
static void PrintToolHeader ()
 Prints out the name and the version of this sample.
static void PrintUsage (const char *name)
 Prints out the syntax of the sample.
void EnumApplications (const dca::CategoriesInfo &aDcaCategoriesInfo, const dca_wac::WacApplications &aApplications, const std::string &localeString)
 Performs the enumeration of the contents of the given WacApplications class.
void EnumActions (const dca_wac::WacActions &aWacActions, const std::string &localeString)
 Performs the enumeration of the contents of the given WacActions class.
void EnumTags (const dca_wac::WacTags &aWacTags, const std::string &localeString)
 Performs the enumeration of the contents of the given WacTags class.
void EnumWacCategoriesInfo (const dca::CategoriesInfo &aDcaCategoriesInfo, const dca_wac::WacCategoriesInfo &aWacCategoriesInfo, const std::string &localeString)
 Performs the enumeration of the contents of the given WacCategoriesInfo class.
void EnumLocales (const dca::Locales &aLocales)
 Performs the enumeration of the contents of the given Locales class.
void EnumCategories (const dca::Categories &aCategories, const std::string &localeString)
 Performs the enumeration of the contents of the given Categories class.
void EnumDcaCategoriesInfo (const dca::CategoriesInfo &aCategoriesInfo, const std::string &localeString)
 Performs the enumeration of the contents of the given CategoriesInfo class.
int main (int argc, char *argv[])
 The main routine.

Variables

const std::string S_ToolName = "wacenumsample"
const std::string S_ToolVersion = "1.2"
const std::string S_UsageString
 Usage string, displayed if a parameter is missing.

Detailed Description

WAC classification enumeration using provided WacCategoriesInfo and dca::CategoriesInfo.

Definition in file wac_samples/wacenumsample/main.cpp.


Generated on 26 Sep 2016 for dca_interface by  doxygen 1.6.1