Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATXMLParser::Parse
CATResult CATXMLParser::Parse ( const CATWChar path,
CATXMLFactory factory,
CATXMLObject *&  root 
) [static]

Parses a file with the given factory. The root node will be placed into root.

Parameters:
path Path to file
factory Factory to use for object creation. Must be derived from CATXMLFactory.
root Ptr to receive root object of tree on success.
Returns:
CATRESULT CATRESULT_SUCCESS on success.

Definition at line 26 of file CATXMLParser.cpp.

References CAT_ERR_XML_PARSER_INVALID_PATH, CATFAILED, CATStreamFile::Close(), CATStreamFile::Open(), ParseStream(), and CATStream::READ_ONLY.

Referenced by CATPrefs::Import(), and CATApp::LoadSkin().


Generated on Mon Feb 11 04:11:29 2008 for Game Accessibility Suite by doxygen 1.5.4