MAK Data Logger API Documentation for DIS
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtSisoRefExtractor Class Reference
+ Collaboration diagram for DtSisoRefExtractor:

Public Types

typedef void(* DtSisoEntryReader )(xmlNodePtr node, void *usr)
 Callback used to process the entries from the file.

Public Member Functions

virtual const DtEnumStringMap7entityTypeMap () const
 Return the entity type map.
virtual const DtEnumStringMap2enumMap () const
 Return the enumeration map.
virtual DtEnumStringMap2enumMap ()
 Return the enumeration map.
virtual const DtEnumStringMap1enumMap (int uid) const
 Return the enumeration map for the given UID.
virtual DtEnumStringMap1enumMap (int uid)
 Return the enumeration map for the given UID.
virtual const DtEnumStringMap1enumMap (const DtString &name) const
 Return the enumeration map for the given enumeration name; 0 if not found.
virtual DtEnumStringMap1enumMap (const DtString &name)
 Return the enumeration map for the given enumeration name; 0 if not found.
virtual const
DtDisEntityTypeEntry
findEntityType (const DtEntityMapperKey &entKey) const
 Find the entity type entry for the given key.
virtual DtDisEntityTypeEntryfindEntityType (const DtEntityMapperKey &entKey)
 Find the entity type entry for the given key.
virtual const
DtDisEntityTypeEntry
findAggregateType (const DtEntityMapperKey &entKey) const
 Find the aggregate entity type entry for the given key.
virtual DtDisEntityTypeEntryfindAggregateType (const DtEntityMapperKey &entKey)
 Find the aggregate entity type entry for the given key.
virtual DtEnumStringMap1kindList ()
 Get the kind enum/list.
virtual const DtEnumStringMap1kindList () const
 Get the kind enum/list.
virtual int kind (const DtString &name) const
 Get the kind enum/list.
virtual const DtString & kindName (int kd)
 Get the kind enum/list.
virtual DtEnumStringMap1domainList (int kind)
 Get the domain enum/list by kind.
virtual const DtEnumStringMap1domainList (int kind) const
 Get the domain enum/list by kind.
virtual int domain (int kind, const DtString &name) const
 Get the domain enum/list by kind.
virtual const DtString & domainName (int kind, int dom)
 Get the domain enum/list by kind.
virtual DtEnumStringMap1countryList ()
 Get the country enum/list.
virtual const DtEnumStringMap1countryList () const
 Get the country enum/list.
virtual int country (const DtString &name) const
 Get the country enum/list.
virtual const DtString & countryName (int cty)
 Get the country enum/list.
virtual DtEnumStringMap1categoryList (int kind, int domain)
 Get the category enum/list by kind, by domain.
virtual const DtEnumStringMap1categoryList (int kind, int domain) const
 Get the category enum/list by kind, by domain.
virtual int category (int kind, int domain, const DtString &name) const
 Get the category enum/list by kind, by domain.
virtual const DtString & categoryName (int kind, int domain, int cat)
 Get the category enum/list by kind, by domain.
virtual DtEnumStringMap1subcategoryList (int kind, int domain, int cat)
 Get the subcategory enum/list by kind, by domain, by category.
virtual const DtEnumStringMap1subcategoryList (int kind, int domain, int cat) const
 Get the subcategory enum/list by kind, by domain, by category.
virtual int subcategory (int kind, int domain, int cat, const DtString &name) const
 Get the subcategory enum/list by kind, by domain, by category.
virtual const DtString & subcategoryName (int kind, int domain, int cat, int subcat)
 Get the subcategory enum/list by kind, by domain, by category.
virtual DtEnumStringMap1aggSubCategoryList ()
 Get the aggregate subcategory enum/list.
virtual const DtEnumStringMap1aggSubCategoryList () const
 Get the aggregate subcategory enum/list.
virtual int aggSubCategory (const DtString &name) const
 Get the aggregate subcategory enum/list.
virtual const DtString & aggSubCategoryName (int subcat)
 Get the aggregate subcategory enum/list.

Static Public Member Functions

static void setFilename (const DtString &filenameToUse)
 Set the filename to open.
static DtSisoRefExtractorget ()
 Get/dispose of singleton instance.
static void dispose ()
 Get/dispose of singleton instance.
static void collectCountryCodesCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectKindsCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectAggKindsCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectDomainsPlatformCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectCategoryPlatLandCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectCategoryPlatAirCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectCategoryPlatSurfaceCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectCategoryPlatSubsurfaceCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectCategoryPlatSpaceCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectCategoryCulturalFeature (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectDomainsMunitionCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectCategoryMunitionCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectSubcategoryAggsCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectEntityTypesCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.
static void collectAggregateTypesCb (xmlNodePtr node, void *usr)
 Callbacks to collect the specific enums.

Protected Member Functions

 DtSisoRefExtractor ()
 Constructor called by singleton access.
virtual ~DtSisoRefExtractor ()
 Destructor.
virtual void init (const DtString &filename)
 Initialize.
virtual void collectEntityTypes (xmlNodePtr cur, bool typesForEntities)
 Collect the entity types.
virtual void processFile (const DtString &filename)
 Process the file.
virtual void collectSingleLevelEntry (xmlNodePtr node, DtEnumStringMap1 &l)
 Collect the entries from the given node into the given enum string map.
virtual void collectEnum (xmlNodePtr node, int uid)
 Collect the enum from the given node into the enum list identified by the given uid.
virtual int xmlChartoInt (xmlChar *c)
 Convert xml Char to an integer value.
virtual void registerCallback (int entryType, DtSisoEntryReader cb, void *usrData)
 Register/unregister a callback for the given UID.
virtual void unregisterCallback (int entryType)
 Register/unregister a callback for the given UID.
virtual void collectCountryCodes (xmlNodePtr node)
 Collect enums into specific containers.
virtual void collectKinds (xmlNodePtr node)
 Collect enums into specific containers.
virtual void collectAggKinds (xmlNodePtr node)
 Collect enums into specific containers.
virtual void collectDomains (xmlNodePtr node, int kind)
 Collect enums into specific containers.
virtual void collectCategories (xmlNodePtr node, int kind, int domain)
 Collect enums into specific containers.
virtual void collectSubcategories (xmlNodePtr node, int kind, int domain, int cat)
 Collect enums into specific containers.
virtual void collectAggSubcategories (xmlNodePtr node)
 Collect enums into specific containers.
virtual int intProp (xmlNodePtr node, char *name)
 Get the named integer property from the node.
virtual bool getIntProp (xmlNodePtr node, char *name, int &value)
 Get the named integer property from the node.
virtual DtString stringProp (xmlNodePtr node, char *name)
 Get the named string property from the node.
virtual bool getStringProp (xmlNodePtr node, char *name, DtString &value)
 Get the named string property from the node.

Protected Attributes

std::map< int, std::pair
< DtSisoEntryReader, void * > > 
myReadersMap
DtEnumStringMap1 myEntityKindMap
DtEnumStringMap1 myCountryMap
DtEnumStringMap2 myDomainMap
DtEnumStringMap3 myCategoryMap
DtEnumStringMap4 mySubcategoryMap
DtEnumStringMap7 myEntityTypeMap
DtEnumStringMap1 myAggregateKindMap
DtEnumStringMap7 myAggregateTypeMap
DtEnumStringMap1 myAggSubCategoryMap
DtEnumStringMap2 myEnumMap
DtOrderedKeyList
< DtDisEntityTypeEntry * > 
myEntityKeys
DtOrderedKeyList
< DtDisEntityTypeEntry * > 
myAggregateKeys
DtString myEmptyString

Static Protected Attributes

static DtSisoRefExtractortheRef
static bool theInitialized
static DtString theFilename

Member Typedef Documentation

typedef void(* DtSisoRefExtractor::DtSisoEntryReader)(xmlNodePtr node, void *usr)

Callback used to process the entries from the file.

Constructor & Destructor Documentation

DtSisoRefExtractor::DtSisoRefExtractor ( )
protected

Constructor called by singleton access.

virtual DtSisoRefExtractor::~DtSisoRefExtractor ( )
protectedvirtual

Destructor.

Member Function Documentation

virtual int DtSisoRefExtractor::aggSubCategory ( const DtString &  name) const
virtual

Get the aggregate subcategory enum/list.

virtual DtEnumStringMap1& DtSisoRefExtractor::aggSubCategoryList ( )
virtual

Get the aggregate subcategory enum/list.

virtual const DtEnumStringMap1& DtSisoRefExtractor::aggSubCategoryList ( ) const
virtual

Get the aggregate subcategory enum/list.

virtual const DtString& DtSisoRefExtractor::aggSubCategoryName ( int  subcat)
virtual

Get the aggregate subcategory enum/list.

virtual int DtSisoRefExtractor::category ( int  kind,
int  domain,
const DtString &  name 
) const
virtual

Get the category enum/list by kind, by domain.

virtual DtEnumStringMap1* DtSisoRefExtractor::categoryList ( int  kind,
int  domain 
)
virtual

Get the category enum/list by kind, by domain.

virtual const DtEnumStringMap1* DtSisoRefExtractor::categoryList ( int  kind,
int  domain 
) const
virtual

Get the category enum/list by kind, by domain.

virtual const DtString& DtSisoRefExtractor::categoryName ( int  kind,
int  domain,
int  cat 
)
virtual

Get the category enum/list by kind, by domain.

virtual void DtSisoRefExtractor::collectAggKinds ( xmlNodePtr  node)
protectedvirtual

Collect enums into specific containers.

static void DtSisoRefExtractor::collectAggKindsCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectAggregateTypesCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

virtual void DtSisoRefExtractor::collectAggSubcategories ( xmlNodePtr  node)
protectedvirtual

Collect enums into specific containers.

virtual void DtSisoRefExtractor::collectCategories ( xmlNodePtr  node,
int  kind,
int  domain 
)
protectedvirtual

Collect enums into specific containers.

static void DtSisoRefExtractor::collectCategoryCulturalFeature ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectCategoryMunitionCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectCategoryPlatAirCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectCategoryPlatLandCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectCategoryPlatSpaceCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectCategoryPlatSubsurfaceCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectCategoryPlatSurfaceCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

virtual void DtSisoRefExtractor::collectCountryCodes ( xmlNodePtr  node)
protectedvirtual

Collect enums into specific containers.

static void DtSisoRefExtractor::collectCountryCodesCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

virtual void DtSisoRefExtractor::collectDomains ( xmlNodePtr  node,
int  kind 
)
protectedvirtual

Collect enums into specific containers.

static void DtSisoRefExtractor::collectDomainsMunitionCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

static void DtSisoRefExtractor::collectDomainsPlatformCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

virtual void DtSisoRefExtractor::collectEntityTypes ( xmlNodePtr  cur,
bool  typesForEntities 
)
protectedvirtual

Collect the entity types.

static void DtSisoRefExtractor::collectEntityTypesCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

virtual void DtSisoRefExtractor::collectEnum ( xmlNodePtr  node,
int  uid 
)
protectedvirtual

Collect the enum from the given node into the enum list identified by the given uid.

virtual void DtSisoRefExtractor::collectKinds ( xmlNodePtr  node)
protectedvirtual

Collect enums into specific containers.

static void DtSisoRefExtractor::collectKindsCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

virtual void DtSisoRefExtractor::collectSingleLevelEntry ( xmlNodePtr  node,
DtEnumStringMap1 l 
)
protectedvirtual

Collect the entries from the given node into the given enum string map.

virtual void DtSisoRefExtractor::collectSubcategories ( xmlNodePtr  node,
int  kind,
int  domain,
int  cat 
)
protectedvirtual

Collect enums into specific containers.

static void DtSisoRefExtractor::collectSubcategoryAggsCb ( xmlNodePtr  node,
void *  usr 
)
static

Callbacks to collect the specific enums.

virtual int DtSisoRefExtractor::country ( const DtString &  name) const
virtual

Get the country enum/list.

virtual DtEnumStringMap1& DtSisoRefExtractor::countryList ( )
virtual

Get the country enum/list.

virtual const DtEnumStringMap1& DtSisoRefExtractor::countryList ( ) const
virtual

Get the country enum/list.

virtual const DtString& DtSisoRefExtractor::countryName ( int  cty)
virtual

Get the country enum/list.

static void DtSisoRefExtractor::dispose ( )
static

Get/dispose of singleton instance.

virtual int DtSisoRefExtractor::domain ( int  kind,
const DtString &  name 
) const
virtual

Get the domain enum/list by kind.

virtual DtEnumStringMap1* DtSisoRefExtractor::domainList ( int  kind)
virtual

Get the domain enum/list by kind.

virtual const DtEnumStringMap1* DtSisoRefExtractor::domainList ( int  kind) const
virtual

Get the domain enum/list by kind.

virtual const DtString& DtSisoRefExtractor::domainName ( int  kind,
int  dom 
)
virtual

Get the domain enum/list by kind.

virtual const DtEnumStringMap7& DtSisoRefExtractor::entityTypeMap ( ) const
virtual

Return the entity type map.

virtual const DtEnumStringMap2& DtSisoRefExtractor::enumMap ( ) const
virtual

Return the enumeration map.

virtual DtEnumStringMap2& DtSisoRefExtractor::enumMap ( )
virtual

Return the enumeration map.

virtual const DtEnumStringMap1& DtSisoRefExtractor::enumMap ( int  uid) const
virtual

Return the enumeration map for the given UID.

virtual DtEnumStringMap1& DtSisoRefExtractor::enumMap ( int  uid)
virtual

Return the enumeration map for the given UID.

virtual const DtEnumStringMap1* DtSisoRefExtractor::enumMap ( const DtString &  name) const
virtual

Return the enumeration map for the given enumeration name; 0 if not found.

virtual DtEnumStringMap1* DtSisoRefExtractor::enumMap ( const DtString &  name)
virtual

Return the enumeration map for the given enumeration name; 0 if not found.

virtual const DtDisEntityTypeEntry* DtSisoRefExtractor::findAggregateType ( const DtEntityMapperKey entKey) const
virtual

Find the aggregate entity type entry for the given key.

virtual DtDisEntityTypeEntry* DtSisoRefExtractor::findAggregateType ( const DtEntityMapperKey entKey)
virtual

Find the aggregate entity type entry for the given key.

virtual const DtDisEntityTypeEntry* DtSisoRefExtractor::findEntityType ( const DtEntityMapperKey entKey) const
virtual

Find the entity type entry for the given key.

virtual DtDisEntityTypeEntry* DtSisoRefExtractor::findEntityType ( const DtEntityMapperKey entKey)
virtual

Find the entity type entry for the given key.

static DtSisoRefExtractor* DtSisoRefExtractor::get ( )
static

Get/dispose of singleton instance.

virtual bool DtSisoRefExtractor::getIntProp ( xmlNodePtr  node,
char *  name,
int &  value 
)
protectedvirtual

Get the named integer property from the node.

virtual bool DtSisoRefExtractor::getStringProp ( xmlNodePtr  node,
char *  name,
DtString &  value 
)
protectedvirtual

Get the named string property from the node.

virtual void DtSisoRefExtractor::init ( const DtString &  filename)
protectedvirtual

Initialize.

virtual int DtSisoRefExtractor::intProp ( xmlNodePtr  node,
char *  name 
)
protectedvirtual

Get the named integer property from the node.

virtual int DtSisoRefExtractor::kind ( const DtString &  name) const
virtual

Get the kind enum/list.

virtual DtEnumStringMap1& DtSisoRefExtractor::kindList ( )
virtual

Get the kind enum/list.

virtual const DtEnumStringMap1& DtSisoRefExtractor::kindList ( ) const
virtual

Get the kind enum/list.

virtual const DtString& DtSisoRefExtractor::kindName ( int  kd)
virtual

Get the kind enum/list.

virtual void DtSisoRefExtractor::processFile ( const DtString &  filename)
protectedvirtual

Process the file.

virtual void DtSisoRefExtractor::registerCallback ( int  entryType,
DtSisoEntryReader  cb,
void *  usrData 
)
protectedvirtual

Register/unregister a callback for the given UID.

static void DtSisoRefExtractor::setFilename ( const DtString &  filenameToUse)
static

Set the filename to open.

virtual DtString DtSisoRefExtractor::stringProp ( xmlNodePtr  node,
char *  name 
)
protectedvirtual

Get the named string property from the node.

virtual int DtSisoRefExtractor::subcategory ( int  kind,
int  domain,
int  cat,
const DtString &  name 
) const
virtual

Get the subcategory enum/list by kind, by domain, by category.

virtual DtEnumStringMap1* DtSisoRefExtractor::subcategoryList ( int  kind,
int  domain,
int  cat 
)
virtual

Get the subcategory enum/list by kind, by domain, by category.

virtual const DtEnumStringMap1* DtSisoRefExtractor::subcategoryList ( int  kind,
int  domain,
int  cat 
) const
virtual

Get the subcategory enum/list by kind, by domain, by category.

virtual const DtString& DtSisoRefExtractor::subcategoryName ( int  kind,
int  domain,
int  cat,
int  subcat 
)
virtual

Get the subcategory enum/list by kind, by domain, by category.

virtual void DtSisoRefExtractor::unregisterCallback ( int  entryType)
protectedvirtual

Register/unregister a callback for the given UID.

virtual int DtSisoRefExtractor::xmlChartoInt ( xmlChar *  c)
protectedvirtual

Convert xml Char to an integer value.

Member Data Documentation

DtOrderedKeyList<DtDisEntityTypeEntry*> DtSisoRefExtractor::myAggregateKeys
protected
DtEnumStringMap1 DtSisoRefExtractor::myAggregateKindMap
protected
DtEnumStringMap7 DtSisoRefExtractor::myAggregateTypeMap
protected
DtEnumStringMap1 DtSisoRefExtractor::myAggSubCategoryMap
protected
DtEnumStringMap3 DtSisoRefExtractor::myCategoryMap
protected
DtEnumStringMap1 DtSisoRefExtractor::myCountryMap
protected
DtEnumStringMap2 DtSisoRefExtractor::myDomainMap
protected
DtString DtSisoRefExtractor::myEmptyString
protected
DtOrderedKeyList<DtDisEntityTypeEntry*> DtSisoRefExtractor::myEntityKeys
protected
DtEnumStringMap1 DtSisoRefExtractor::myEntityKindMap
protected
DtEnumStringMap7 DtSisoRefExtractor::myEntityTypeMap
protected
DtEnumStringMap2 DtSisoRefExtractor::myEnumMap
protected
std::map<int, std::pair<DtSisoEntryReader,void*> > DtSisoRefExtractor::myReadersMap
protected
DtEnumStringMap4 DtSisoRefExtractor::mySubcategoryMap
protected
DtString DtSisoRefExtractor::theFilename
staticprotected
bool DtSisoRefExtractor::theInitialized
staticprotected
DtSisoRefExtractor* DtSisoRefExtractor::theRef
staticprotected

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

Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)