CMMLParser Class Reference

#include <CMMLParser.h>

List of all members.

Public Member Functions

 CMMLParser (void)
 ~CMMLParser (void)
bool parseClipTag (wstring inClipText, C_ClipTag *outClip)
 Parse a string representation of a clip tag into the provided Clip object.
bool parseHeadTag (wstring inHeadText, C_HeadTag *outHead)
 Parse a string representation of a head tag into the provided Head object.
bool parseCMMLRootTag (wstring inCMMLRootText, C_CMMLRootTag *outCMMLRoot)
 Parse a string representation of a cmml root tag into the provided CMMLRoot object.
bool parseDocFromFile (wstring inFilename, C_CMMLDoc *outCMMLDoc)
 Parse a string representation of a cmml document into the provided CMMLDoc object.
 CMMLParser (void)
 ~CMMLParser (void)
bool parseClipTag (wstring inClipText, C_ClipTag *outClip)
bool parseHeadTag (wstring inHeadText, C_HeadTag *outHead)
bool parseCMMLRootTag (wstring inCMMLRootText, C_CMMLRootTag *outCMMLRoot)
bool parseDocFromFile (wstring inFilename, C_CMMLDoc *outCMMLDoc)

Protected Member Functions

bool parseRootTag (XTag *inCMMLRootParser, C_CMMLRootTag *outCMMLRoot)
 Parse an XTag representation of a cmml root tag into the provided CMMLRoot object.
bool parseStreamTag (XTag *inStreamParser, C_StreamTag *outStream)
 Parse an XTag representation of a stream tag into the provided Stream object.
bool parseHeadTag (XTag *inHeadParser, C_HeadTag *outHead)
 Parse an XTag representation of a head tag into the provided Head object.
bool parseClipTag (XTag *inClipParser, C_ClipTag *outClip)
 Parse an XTag representation of a clip tag into the provided Clip object.
bool parseImportTag (XTag *inImportParser, C_ImportTag *outImport)
 Parse an XTag representation of an import tag into the provided Import object.
bool parseBaseTag (XTag *inBaseParser, C_BaseTag *outBase)
 Parse an XTag representation of a base tag into the provided Base object.
bool parseTitleTag (XTag *inTitleParser, C_TitleTag *outTitle)
 Parse an XTag representation of a title tag into the provided Title object.
bool parseMetaTag (XTag *inMetaParser, C_MetaTag *outMeta)
 Parse an XTag representation of a meta tag into the provided MetaTag object.
bool parseAnchorTag (XTag *inAnchorParser, C_AnchorTag *outAnchor)
 Parse an XTag representation of an anchor tag into the provided Anchor object.
bool parseImageTag (XTag *inImageParser, C_ImageTag *outImage)
 Parse an XTag representation of an image tag into the provided Image object.
bool parseDescTag (XTag *inDescParser, C_DescTag *outDesc)
 Parse an XTag representation of a desc tag into the provided Desc object.
bool parseParamTag (XTag *inParamParser, C_ParamTag *outParam)
 Parse an XTag representation of a param tag into the provided ParamTag object.
bool setupXMLHandles (wstring inText, MSXML2::IXMLDOMDocument **outDoc)
 Parses the given string at inText and places the result in outDoc.
bool parseHeadTag (MSXML2::IXMLDOMNode *inHeadNode, C_HeadTag *outHead)
bool parseAnchorTag (MSXML2::IXMLDOMNode *inAnchorNode, C_AnchorTag *outAnchor)
bool parseStreamTag (MSXML2::IXMLDOMNode *inStreamNode, C_StreamTag *outStream)
bool parseImportTag (MSXML2::IXMLDOMNode *inImportNode, C_ImportTag *outImport)
bool parseTitleTag (MSXML2::IXMLDOMNode *inTitleNode, C_TitleTag *outTitle)
bool parseClipTag (MSXML2::IXMLDOMNode *inClipNode, C_ClipTag *outClip)
bool parseImageTag (MSXML2::IXMLDOMNode *inImageNode, C_ImageTag *outImage)
bool parseMetaTag (MSXML2::IXMLDOMNode *inMetaNode, C_MetaTag *outMeta)
bool parseDescTag (MSXML2::IXMLDOMNode *inDescNode, C_DescTag *outDesc)
bool parseBaseTag (MSXML2::IXMLDOMNode *inBaseNode, C_BaseTag *outBase)
bool parseParamTag (MSXML2::IXMLDOMNode *inParamNode, C_ParamTag *outParam)
bool parseCMMLRootTag (MSXML2::IXMLDOMNode *inCMMLRootNode, C_CMMLRootTag *outCMMLRoot)
wstring getNamedAttribValue (wstring inAttribName, MSXML2::IXMLDOMNamedNodeMap *inAttribMap)
MSXML2::IXMLDOMNode * getNamedNode (wstring inXPath, MSXML2::IXMLDOMDocument *inDoc)


Constructor & Destructor Documentation

CMMLParser::CMMLParser void   ) 
 

Definition at line 51 of file CMMLParser.cpp.

CMMLParser::~CMMLParser void   ) 
 

Definition at line 55 of file CMMLParser.cpp.

CMMLParser::CMMLParser void   ) 
 

CMMLParser::~CMMLParser void   ) 
 


Member Function Documentation

wstring CMMLParser::getNamedAttribValue wstring  inAttribName,
MSXML2::IXMLDOMNamedNodeMap *  inAttribMap
[protected]
 

Definition at line 154 of file CMMLParser.cpp.

Referenced by parseAnchorTag(), parseBaseTag(), parseClipTag(), parseCMMLRootTag(), parseDescTag(), parseHeadTag(), parseImageTag(), parseImportTag(), parseMetaTag(), parseParamTag(), parseStreamTag(), and parseTitleTag().

MSXML2::IXMLDOMNode * CMMLParser::getNamedNode wstring  inXPath,
MSXML2::IXMLDOMDocument *  inDoc
[protected]
 

Definition at line 141 of file CMMLParser.cpp.

bool CMMLParser::parseAnchorTag MSXML2::IXMLDOMNode *  inAnchorNode,
C_AnchorTag outAnchor
[protected]
 

Definition at line 724 of file CMMLParser.cpp.

References getNamedAttribValue(), C_AnchorTag::href(), C_AnchorTag::setCls(), C_HumReadCMMLTag::setDirn(), C_AnchorTag::setHref(), C_CMMLTag::setId(), C_HumReadCMMLTag::setLang(), and C_TextFieldTag::setText().

Here is the call graph for this function:

bool CMMLParser::parseAnchorTag XTag inAnchorParser,
C_AnchorTag outAnchor
[protected]
 

Parse an XTag representation of an anchor tag into the provided Anchor object.

Definition at line 409 of file CMMLParser.cpp.

References XTag, XTAG_REQUIRED_ATTRIBUTE, XTAG_SET_ATTRIBUTE, and XTAG_SET_CDATA.

Referenced by parseClipTag().

bool CMMLParser::parseBaseTag MSXML2::IXMLDOMNode *  inBaseNode,
C_BaseTag outBase
[protected]
 

Definition at line 807 of file CMMLParser.cpp.

References getNamedAttribValue(), C_BaseTag::href(), C_BaseTag::setHref(), and C_CMMLTag::setId().

Here is the call graph for this function:

bool CMMLParser::parseBaseTag XTag inBaseParser,
C_BaseTag outBase
[protected]
 

Parse an XTag representation of a base tag into the provided Base object.

Definition at line 365 of file CMMLParser.cpp.

References XTag, XTAG_REQUIRED_ATTRIBUTE, and XTAG_SET_ATTRIBUTE.

Referenced by parseHeadTag().

bool CMMLParser::parseClipTag MSXML2::IXMLDOMNode *  inClipNode,
C_ClipTag outClip
[protected]
 

Definition at line 177 of file CMMLParser.cpp.

References C_MetaTagList::addTag(), getNamedAttribValue(), C_ClipTag::metaList(), parseAnchorTag(), parseDescTag(), parseImageTag(), parseMetaTag(), C_ClipTag::setAnchor(), C_ClipTag::setDesc(), C_HumReadCMMLTag::setDirn(), C_ClipTag::setEnd(), C_CMMLTag::setId(), C_ClipTag::setImage(), C_HumReadCMMLTag::setLang(), C_ClipTag::setStart(), and C_ClipTag::setTrack().

Here is the call graph for this function:

bool CMMLParser::parseClipTag wstring  inClipText,
C_ClipTag outClip
 

bool CMMLParser::parseClipTag XTag inClipParser,
C_ClipTag outClip
[protected]
 

Parse an XTag representation of a clip tag into the provided Clip object.

Definition at line 388 of file CMMLParser.cpp.

References parseAnchorTag(), parseDescTag(), parseImageTag(), parseMetaTag(), XTag, XTAG_PARSE_CHILD, XTAG_PARSE_LIST, XTAG_REQUIRED_ATTRIBUTE, and XTAG_SET_ATTRIBUTE.

Here is the call graph for this function:

bool CMMLParser::parseClipTag wstring  inClipText,
C_ClipTag outClip
 

Parse a string representation of a clip tag into the provided Clip object.

Definition at line 163 of file CMMLParser.cpp.

References StringHelper::toNarrowStr(), XTag, xtag_free(), xtag_get_name(), and xtag_new_parse().

Referenced by OggDataBufferProcessor::acceptOggPage(), parseCMMLRootTag(), parseRootTag(), and CMMLDecodeFilter::Transform().

Here is the call graph for this function:

bool CMMLParser::parseCMMLRootTag MSXML2::IXMLDOMNode *  inCMMLRootNode,
C_CMMLRootTag outCMMLRoot
[protected]
 

Definition at line 306 of file CMMLParser.cpp.

References C_ClipTagList::addTag(), C_CMMLRootTag::clipList(), getNamedAttribValue(), parseClipTag(), parseHeadTag(), parseStreamTag(), C_HumReadCMMLTag::setDirn(), C_CMMLRootTag::setHead(), C_CMMLTag::setId(), C_HumReadCMMLTag::setLang(), and C_CMMLRootTag::setStream().

Here is the call graph for this function:

bool CMMLParser::parseCMMLRootTag wstring  inCMMLRootText,
C_CMMLRootTag outCMMLRoot
 

bool CMMLParser::parseCMMLRootTag wstring  inCMMLRootText,
C_CMMLRootTag outCMMLRoot
 

Parse a string representation of a cmml root tag into the provided CMMLRoot object.

Definition at line 130 of file CMMLParser.cpp.

References parseRootTag(), StringHelper::toNarrowStr(), XTag, xtag_free(), xtag_get_name(), and xtag_new_parse().

Referenced by parseDocFromFile().

Here is the call graph for this function:

bool CMMLParser::parseDescTag MSXML2::IXMLDOMNode *  inDescNode,
C_DescTag outDesc
[protected]
 

Definition at line 782 of file CMMLParser.cpp.

References getNamedAttribValue(), C_HumReadCMMLTag::setDirn(), C_CMMLTag::setId(), C_HumReadCMMLTag::setLang(), and C_TextFieldTag::setText().

Here is the call graph for this function:

bool CMMLParser::parseDescTag XTag inDescParser,
C_DescTag outDesc
[protected]
 

Parse an XTag representation of a desc tag into the provided Desc object.

Definition at line 439 of file CMMLParser.cpp.

References XTag, XTAG_SET_ATTRIBUTE, and XTAG_SET_CDATA.

Referenced by parseClipTag().

bool CMMLParser::parseDocFromFile wstring  inFilename,
C_CMMLDoc outCMMLDoc
 

bool CMMLParser::parseDocFromFile wstring  inFilename,
C_CMMLDoc outCMMLDoc
 

Parse a string representation of a cmml document into the provided CMMLDoc object.

Definition at line 59 of file CMMLParser.cpp.

References parseCMMLRootTag(), C_CMMLDoc::setRoot(), and StringHelper::toWStr().

Referenced by CMMLRawSourceFilter::Load(), illiminable::libCMMLParserDotNET::CMML_Parser::parseDocFromFile(), and CMMLRecomposer::recomposeStreamFrom().

Here is the call graph for this function:

bool CMMLParser::parseHeadTag MSXML2::IXMLDOMNode *  inHeadNode,
C_HeadTag outHead
[protected]
 

Definition at line 440 of file CMMLParser.cpp.

References C_MetaTagList::addTag(), getNamedAttribValue(), C_HeadTag::metaList(), parseBaseTag(), parseMetaTag(), parseTitleTag(), C_HeadTag::setBase(), C_HumReadCMMLTag::setDirn(), C_CMMLTag::setId(), C_HumReadCMMLTag::setLang(), C_HeadTag::setProfile(), and C_HeadTag::setTitle().

Here is the call graph for this function:

bool CMMLParser::parseHeadTag wstring  inHeadText,
C_HeadTag outHead
 

bool CMMLParser::parseHeadTag XTag inHeadParser,
C_HeadTag outHead
[protected]
 

Parse an XTag representation of a head tag into the provided Head object.

Definition at line 334 of file CMMLParser.cpp.

References parseBaseTag(), parseMetaTag(), parseTitleTag(), XTag, XTAG_EXACTLY_ONE_CHILD, XTAG_PARSE_CHILD, XTAG_PARSE_LIST, and XTAG_SET_ATTRIBUTE.

Here is the call graph for this function:

bool CMMLParser::parseHeadTag wstring  inHeadText,
C_HeadTag outHead
 

Parse a string representation of a head tag into the provided Head object.

Definition at line 196 of file CMMLParser.cpp.

References StringHelper::toNarrowStr(), XTag, xtag_free(), xtag_get_name(), and xtag_new_parse().

Referenced by OggDataBufferProcessor::acceptOggPage(), parseCMMLRootTag(), parseRootTag(), and CMMLDecodeFilter::Transform().

Here is the call graph for this function:

bool CMMLParser::parseImageTag MSXML2::IXMLDOMNode *  inImageNode,
C_ImageTag outImage
[protected]
 

Definition at line 655 of file CMMLParser.cpp.

References getNamedAttribValue(), C_ImageTag::setAlt(), C_CMMLTag::setId(), C_ImageTag::setSrc(), and C_ImageTag::src().

Here is the call graph for this function:

bool CMMLParser::parseImageTag XTag inImageParser,
C_ImageTag outImage
[protected]
 

Parse an XTag representation of an image tag into the provided Image object.

Definition at line 425 of file CMMLParser.cpp.

References XTag, XTAG_REQUIRED_ATTRIBUTE, and XTAG_SET_ATTRIBUTE.

Referenced by parseClipTag().

bool CMMLParser::parseImportTag MSXML2::IXMLDOMNode *  inImportNode,
C_ImportTag outImport
[protected]
 

Definition at line 598 of file CMMLParser.cpp.

References C_ParamTagList::addTag(), getNamedAttribValue(), C_ImportTag::paramList(), parseParamTag(), C_ImportTag::setContentType(), C_ImportTag::setEnd(), C_ImportTag::setGranuleRate(), C_CMMLTag::setId(), C_ImportTag::setSrc(), C_ImportTag::setStart(), C_ImportTag::setTitle(), and C_ImportTag::src().

Here is the call graph for this function:

bool CMMLParser::parseImportTag XTag inImportParser,
C_ImportTag outImport
[protected]
 

Parse an XTag representation of an import tag into the provided Import object.

Definition at line 452 of file CMMLParser.cpp.

References parseParamTag(), XTag, XTAG_PARSE_LIST, and XTAG_SET_ATTRIBUTE.

Referenced by parseStreamTag().

Here is the call graph for this function:

bool CMMLParser::parseMetaTag MSXML2::IXMLDOMNode *  inMetaNode,
C_MetaTag outMeta
[protected]
 

Definition at line 685 of file CMMLParser.cpp.

References C_MappedTag::content(), getNamedAttribValue(), C_MappedTag::name(), C_MappedTag::setContent(), C_HumReadCMMLTag::setDirn(), C_CMMLTag::setId(), C_HumReadCMMLTag::setLang(), C_MappedTag::setName(), and C_MetaTag::setScheme().

Here is the call graph for this function:

bool CMMLParser::parseMetaTag XTag inMetaParser,
C_MetaTag outMeta
[protected]
 

Parse an XTag representation of a meta tag into the provided MetaTag object.

Definition at line 374 of file CMMLParser.cpp.

References XTag, and XTAG_SET_ATTRIBUTE.

Referenced by parseClipTag(), and parseHeadTag().

bool CMMLParser::parseParamTag MSXML2::IXMLDOMNode *  inParamNode,
C_ParamTag outParam
[protected]
 

Definition at line 829 of file CMMLParser.cpp.

References C_MappedTag::content(), getNamedAttribValue(), C_MappedTag::name(), C_MappedTag::setContent(), C_CMMLTag::setId(), and C_MappedTag::setName().

Here is the call graph for this function:

bool CMMLParser::parseParamTag XTag inParamParser,
C_ParamTag outParam
[protected]
 

Parse an XTag representation of a param tag into the provided ParamTag object.

Definition at line 466 of file CMMLParser.cpp.

References XTag, XTAG_REQUIRED_ATTRIBUTE, and XTAG_SET_ATTRIBUTE.

Referenced by parseImportTag().

bool CMMLParser::parseRootTag XTag inCMMLRootParser,
C_CMMLRootTag outCMMLRoot
[protected]
 

Parse an XTag representation of a cmml root tag into the provided CMMLRoot object.

Definition at line 317 of file CMMLParser.cpp.

References parseClipTag(), parseHeadTag(), parseStreamTag(), XTag, XTAG_EXACTLY_ONE_CHILD, XTAG_PARSE_CHILD, XTAG_PARSE_LIST, and XTAG_SET_ATTRIBUTE.

Referenced by parseCMMLRootTag().

Here is the call graph for this function:

bool CMMLParser::parseStreamTag MSXML2::IXMLDOMNode *  inStreamNode,
C_StreamTag outStream
[protected]
 

Definition at line 551 of file CMMLParser.cpp.

References C_ImportTagList::addTag(), getNamedAttribValue(), C_StreamTag::importList(), parseImportTag(), C_CMMLTag::setId(), C_StreamTag::setTimebase(), and C_StreamTag::setUtc().

Here is the call graph for this function:

bool CMMLParser::parseStreamTag XTag inStreamParser,
C_StreamTag outStream
[protected]
 

Parse an XTag representation of a stream tag into the provided Stream object.

Definition at line 304 of file CMMLParser.cpp.

References parseImportTag(), XTag, XTAG_PARSE_LIST, and XTAG_SET_ATTRIBUTE.

Referenced by parseCMMLRootTag(), and parseRootTag().

Here is the call graph for this function:

bool CMMLParser::parseTitleTag MSXML2::IXMLDOMNode *  inTitleNode,
C_TitleTag outTitle
[protected]
 

Definition at line 758 of file CMMLParser.cpp.

References getNamedAttribValue(), C_HumReadCMMLTag::setDirn(), C_CMMLTag::setId(), C_HumReadCMMLTag::setLang(), and C_TextFieldTag::setText().

Here is the call graph for this function:

bool CMMLParser::parseTitleTag XTag inTitleParser,
C_TitleTag outTitle
[protected]
 

Parse an XTag representation of a title tag into the provided Title object.

Definition at line 352 of file CMMLParser.cpp.

References XTag, XTAG_SET_ATTRIBUTE, and XTAG_SET_CDATA.

Referenced by parseHeadTag().

bool CMMLParser::setupXMLHandles wstring  inText,
MSXML2::IXMLDOMDocument **  outDoc
[protected]
 

Parses the given string at inText and places the result in outDoc.

Note that you do not need to create create the MSXML2 document with COM's CoCreateInstance() function; we will do that for you.

Definition at line 52 of file CMMLParser.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Feb 15 15:02:35 2005 for oggdsf by  doxygen 1.3.9