VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions
DtXMLFileReader Class Reference
+ Collaboration diagram for DtXMLFileReader:

Public Member Functions

 DtXMLFileReader ()
 default constructor More...
 
virtual ~DtXMLFileReader ()
 destructor More...
 
virtual DtOMTTree * readFile (const DtFilename &str, DtExerciseConn *ex=0)
 This creates an OMT tree from a file. More...
 
virtual DtOMTTree * readFiles (const std::vector< DtFilename > &str, DtFomType fomTypeToUse=DtFomInvalid, DtExerciseConn *ex=0)
 Create an OMT tree from the give files. More...
 
virtual const DtString & getLastError ()
 
virtual void clearLastError ()
 
bool isEvolvedFormat (const DtString &fileName)
 
virtual void includeMIM (bool inc)
 
virtual bool MIMincluded ()
 
virtual void setDumpDirectory (const DtString &dir)
 Phase 1 observability: if set to a non-empty directory path, then readFiles() will write a structured dump of every per-module FOM tree (named <moduleBasename>.module.fomdump.txt) plus a single merged dump (mergedFom.fomdump.txt) into that directory. More...
 
virtual const DtString & dumpDirectory () const
 
virtual int writeFomDumps (const DtString &dir, const DtOMTTree *mergedTree) const
 Phase 1 observability: write per-module and merged FOM dumps into dir using the per-module trees retained from the most recent readFiles() call. More...
 

Static Public Member Functions

static bool isEvolvedFormat (xmlNodePtr &rootNode)
 
static xmlNode * getNodeByName (xmlNode *rootNode, const xmlChar *nodeName)
 
static const xmlChar * childContentByName (xmlNode *node, const xmlChar *name)
 
static DtFedReadStatus parseBuffer (const char *buffer, int size, xmlDocPtr *newXmlDocTree, DtString &lastError)
 
static DtFedReadStatus parseFile (const char *fedFileName, xmlDoc **newXmlDocTree, DtString &lastError)
 

Protected Attributes

DtString myLastError
 
DtExerciseConn * myExConn
 
std::vector< DtOMTTree * > myOMTTrees
 
std::vector< DtString > myModuleNames
 
bool MIM
 
DtString myDumpDirectory
 

Private Member Functions

 DtXMLFileReader (const DtXMLFileReader &orig)
 Copy Constructor. More...
 
DtXMLFileReader & operator= (const DtXMLFileReader &rhs)
 Assignment Operator. More...
 
void buildTree (DtOMTTree *omtTree)
 Setup the tree handles. More...
 
void setAttributeHandles (DtObjectClassFedNode *objNode)
 
void setParameterHandles (DtInteractionClassFedNode *objNode)
 

Constructor & Destructor Documentation

DtXMLFileReader::DtXMLFileReader ( )

default constructor

virtual DtXMLFileReader::~DtXMLFileReader ( )
virtual

destructor

DtXMLFileReader::DtXMLFileReader ( const DtXMLFileReader &  orig)
private

Copy Constructor.

Member Function Documentation

void DtXMLFileReader::buildTree ( DtOMTTree *  omtTree)
private

Setup the tree handles.

static const xmlChar* DtXMLFileReader::childContentByName ( xmlNode *  node,
const xmlChar *  name 
)
static
virtual void DtXMLFileReader::clearLastError ( )
virtual
virtual const DtString& DtXMLFileReader::dumpDirectory ( ) const
virtual
virtual const DtString& DtXMLFileReader::getLastError ( )
virtual
static xmlNode* DtXMLFileReader::getNodeByName ( xmlNode *  rootNode,
const xmlChar *  nodeName 
)
static
virtual void DtXMLFileReader::includeMIM ( bool  inc)
virtual
bool DtXMLFileReader::isEvolvedFormat ( const DtString &  fileName)
static bool DtXMLFileReader::isEvolvedFormat ( xmlNodePtr &  rootNode)
static
virtual bool DtXMLFileReader::MIMincluded ( )
virtual
DtXMLFileReader& DtXMLFileReader::operator= ( const DtXMLFileReader &  rhs)
private

Assignment Operator.

static DtFedReadStatus DtXMLFileReader::parseBuffer ( const char *  buffer,
int  size,
xmlDocPtr *  newXmlDocTree,
DtString &  lastError 
)
static
static DtFedReadStatus DtXMLFileReader::parseFile ( const char *  fedFileName,
xmlDoc **  newXmlDocTree,
DtString &  lastError 
)
static
virtual DtOMTTree* DtXMLFileReader::readFile ( const DtFilename &  str,
DtExerciseConn *  ex = 0 
)
virtual

This creates an OMT tree from a file.

The exercise connection (if not 0) is used to initialize RTI handles Ownership of this tree is passed to the person who called this function

virtual DtOMTTree* DtXMLFileReader::readFiles ( const std::vector< DtFilename > &  str,
DtFomType  fomTypeToUse = DtFomInvalid,
DtExerciseConn *  ex = 0 
)
virtual

Create an OMT tree from the give files.

Expect the given fom type or try to determine it if given type is invalid. The exercise connection (if not 0) is used to initialize RTI handles Ownership of this tree is passed to the person who called this function

void DtXMLFileReader::setAttributeHandles ( DtObjectClassFedNode *  objNode)
private
virtual void DtXMLFileReader::setDumpDirectory ( const DtString &  dir)
virtual

Phase 1 observability: if set to a non-empty directory path, then readFiles() will write a structured dump of every per-module FOM tree (named <moduleBasename>.module.fomdump.txt) plus a single merged dump (mergedFom.fomdump.txt) into that directory.

Each per-module tree is also stamped with its source-module name, which propagates through merge so the merged dump shows provenance.

void DtXMLFileReader::setParameterHandles ( DtInteractionClassFedNode *  objNode)
private
virtual int DtXMLFileReader::writeFomDumps ( const DtString &  dir,
const DtOMTTree *  mergedTree 
) const
virtual

Phase 1 observability: write per-module and merged FOM dumps into dir using the per-module trees retained from the most recent readFiles() call.

Returns the number of files written. Safe to call repeatedly. Independent of setDumpDirectory(); intended for callers that learn the desired dump location only after readFiles has run (e.g. the GUI sets the output directory after the FOM is loaded).

Member Data Documentation

bool DtXMLFileReader::MIM
protected
DtString DtXMLFileReader::myDumpDirectory
protected
DtExerciseConn* DtXMLFileReader::myExConn
protected
DtString DtXMLFileReader::myLastError
protected
std::vector<DtString> DtXMLFileReader::myModuleNames
protected
std::vector<DtOMTTree*> DtXMLFileReader::myOMTTrees
protected

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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)