main.cpp File Reference

IP classification enumeration using provided IprCategoriesInfo. More...

#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <ctime>
#include "dca/dca_base.h"
#include "dca/dca_ipr_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 &strRedistFolder, InitData &aInitData)
 Sets up the given initData by substituting the given redist_folder with DCA subdirectories.
static void SetupLicense (const std::string &strTicket, const std::string &strProduct, LicenseData &aLicenseData)
 Sets up the given licenseData by copying the given ticket and product strings.
static void PrintLicenseInfo (const 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 *pSampleName)
 Prints out the syntax of the sample.
void PrintLocale (const IprLocale &aIprLocale, const std::string &strIndent="")
 Prints out a line of the given IprEnum.
void EnumLocales (const IprLocales &aIprLocales)
 Performs the enumeration of the contents of the given IprLocales class.
void PrintEnum (const IprEnum &aIprEnum, const std::string &strLocale, const std::string &strIndent="")
 Prints out a line of the given IprEnum.
void EnumCategoryEnums (const IprCategoriesInfo &aIprCategoriesInfo, const IprCategory &aIprCategory, const std::string &strLocale)
 Performs the enumeration of all enums of the given Category if there exists any.
void PrintCategory (const IprCategory &aIprCategory, const std::string &strLocale, const std::string &strIndent="")
 Prints out a line of the given IprCategory.
void EnumCategories (const IprCategoriesInfo &aIprCategoriesInfo, const IprCategories &aIprCategories, const std::string &strLocale)
 Performs the enumeration of the contents of the given IprCategories class.
void EnumEnums (const IprEnums &aIprEnums, const std::string &strLocale)
 Performs the enumeration of the contents of the given IprEnums class.
void EnumIprCategoriesInfo (const IprCategoriesInfo &aIprCategoriesInfo, const std::string &strLocale)
 Performs the enumeration of the contents of the given IprCategoriesInfo class.
int main (int argc, char *argv[])
 The main routine.

Variables

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

Detailed Description

IP classification enumeration using provided IprCategoriesInfo.

Definition in file ipr_samples/iprenumsample/main.cpp.


Generated on 26 Sep 2016 for dca_interface by  doxygen 1.6.1