DataDirector API
Public Member Functions | Protected Member Functions | List of all members
StructuredMemory_XML_Config Class Reference
Inheritance diagram for StructuredMemory_XML_Config:
DDD_LogFacade

Public Member Functions

ChunkProducerLoadConfiguration (const char *filename)
 

Protected Member Functions

void AddRule (ChunkProducer *producer, ChunkDescription *newChunk, tns::c_Rule &rule)
 
void AddAttribute (ChunkDescription *newChunk, tns::c_ChunkAttribute &attribute, unsigned int &currentOffset)
 
void AddChunkDescription (ChunkProducer *producer, tns::c_Chunk &chunk)
 

Additional Inherited Members

- Static Public Member Functions inherited from DDD_LogFacade
static void LogDebug (const char *format,...)
 
static void LogInfo (const char *format,...)
 
static void LogWarning (const char *format,...)
 
static void LogError (const char *format,...)
 

Member Function Documentation

void AddAttribute ( ChunkDescription newChunk,
tns::c_ChunkAttribute &  attribute,
unsigned int &  currentOffset 
)
protected

Adds an attribute to a chunk description

Parameters
newChunkThe chunk to add the rule to
attributeThe LMX structure defining the attribute
currentOffsetThe current offset within the chunk (inout parameter)
void AddChunkDescription ( ChunkProducer producer,
tns::c_Chunk &  chunk 
)
protected

Adds a chunk to a producer

Parameters
producerThe producer to add the chunk to
chunkThe LMX structure defining the chunk
void AddRule ( ChunkProducer producer,
ChunkDescription newChunk,
tns::c_Rule &  rule 
)
protected

Adds a rule to a chunk description

Parameters
producerThe producer that owns the chunk
newChunkThe chunk to add the rule to
chunkThe LMX structure defining the rule
ChunkProducer* LoadConfiguration ( const char *  filename)

Creates a chunk producer by loading a configuration file

Parameters
filenameThe name of the file to read
Returns
A pointer to a newly created chunk producer or NULL on failure

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