C_CMMLTag Class Reference

#include <C_CMMLTag.h>

Inheritance diagram for C_CMMLTag:

Inheritance graph
[legend]
List of all members.

Public Types

enum  eTagType {
  UNKNOWN, IMPORT, STREAM, META,
  HEAD, TITLE, BASE, CLIP,
  ANCHOR, IMAGE, DESC, PARAM,
  BAD_TAG = 1000
}

Public Member Functions

 C_CMMLTag (void)
virtual ~C_CMMLTag (void)
virtual C_CMMLTaggenericClone ()=0
wstring id ()
 Returns the id attribute for this tag.
void setId (wstring inId)
 Sets the id attribute for this tag.
eTagType tagType ()
 Returns the type of tag this really is.
virtual wstring toString ()=0
 Pure Virtual : Returns an xml string representing this tag.

Protected Member Functions

virtual void privateClone (C_CMMLTag *outTag)
wstring makeAttribute (wstring inElemName, wstring inElemContent)
 Makes an attribute of the form name="content" and returns a string.
wstring makeRequiredAttribute (wstring inElemName, wstring inElemContent)
wstring escapeEntities (wstring inString)
 Escapes out & " < > ' and turns it into an entity reference.
wstring replaceAll (wstring inOriginal, wchar_t inReplaceThis, wstring inWithThis)
 Implements the missing functionality from an stl string... ie replace.

Protected Attributes

wstring mId
eTagType mTagType

Member Enumeration Documentation

enum C_CMMLTag::eTagType
 

Enumeration values:
UNKNOWN 
IMPORT 
STREAM 
META 
HEAD 
TITLE 
BASE 
CLIP 
ANCHOR 
IMAGE 
DESC 
PARAM 
BAD_TAG 

Definition at line 60 of file C_CMMLTag.h.

Referenced by tagType().


Constructor & Destructor Documentation

C_CMMLTag::C_CMMLTag void   ) 
 

Definition at line 37 of file C_CMMLTag.cpp.

C_CMMLTag::~C_CMMLTag void   )  [virtual]
 

Definition at line 41 of file C_CMMLTag.cpp.


Member Function Documentation

wstring C_CMMLTag::escapeEntities wstring  inString  )  [protected]
 

Escapes out & " < > ' and turns it into an entity reference.

Definition at line 92 of file C_CMMLTag.cpp.

References replaceAll().

Referenced by makeAttribute(), makeRequiredAttribute(), C_TitleTag::toString(), C_HeadTag::toString(), C_DescTag::toString(), and C_AnchorTag::toString().

Here is the call graph for this function:

virtual C_CMMLTag* C_CMMLTag::genericClone  )  [pure virtual]
 

Implemented in C_AnchorTag, C_BaseTag, C_ClipTag, C_CMMLRootTag, C_DescTag, C_HeadTag, C_ImageTag, C_ImportTag, C_MetaTag, C_ParamTag, C_StreamTag, and C_TitleTag.

wstring C_CMMLTag::id  ) 
 

Returns the id attribute for this tag.

Definition at line 46 of file C_CMMLTag.cpp.

Referenced by illiminable::libCMMLTagsDotNET::CMMLTag::id().

wstring C_CMMLTag::makeAttribute wstring  inElemName,
wstring  inElemContent
[protected]
 

Makes an attribute of the form name="content" and returns a string.

Definition at line 56 of file C_CMMLTag.cpp.

References escapeEntities().

Referenced by C_HumReadCMMLTag::makeLangElements(), C_TitleTag::toString(), C_StreamTag::toString(), C_ParamTag::toString(), C_MetaTag::toString(), C_ImportTag::toString(), C_ImageTag::toString(), C_DescTag::toString(), C_CMMLRootTag::toString(), C_ClipTag::toString(), C_BaseTag::toString(), and C_AnchorTag::toString().

Here is the call graph for this function:

wstring C_CMMLTag::makeRequiredAttribute wstring  inElemName,
wstring  inElemContent
[protected]
 

Definition at line 66 of file C_CMMLTag.cpp.

References escapeEntities().

Referenced by C_AnchorTag::toString().

Here is the call graph for this function:

void C_CMMLTag::privateClone C_CMMLTag outTag  )  [protected, virtual]
 

Reimplemented in C_AnchorTag, C_BaseTag, C_ClipTag, C_CMMLRootTag, C_DescTag, C_HeadTag, C_HumReadCMMLTag, C_ImageTag, C_ImportTag, C_MappedTag, C_MetaTag, C_ParamTag, C_StreamTag, C_TextFieldTag, and C_TitleTag.

Definition at line 107 of file C_CMMLTag.cpp.

References mId, and setId().

Referenced by C_StreamTag::privateClone(), C_HumReadCMMLTag::privateClone(), and C_BaseTag::privateClone().

Here is the call graph for this function:

wstring C_CMMLTag::replaceAll wstring  inOriginal,
wchar_t  inReplaceThis,
wstring  inWithThis
[protected]
 

Implements the missing functionality from an stl string... ie replace.

Definition at line 73 of file C_CMMLTag.cpp.

Referenced by escapeEntities().

void C_CMMLTag::setId wstring  inId  ) 
 

Sets the id attribute for this tag.

Definition at line 51 of file C_CMMLTag.cpp.

References mId.

Referenced by CMMLParser::parseAnchorTag(), CMMLParser::parseBaseTag(), CMMLParser::parseClipTag(), CMMLParser::parseCMMLRootTag(), CMMLParser::parseDescTag(), CMMLParser::parseHeadTag(), CMMLParser::parseImageTag(), CMMLParser::parseImportTag(), CMMLParser::parseMetaTag(), CMMLParser::parseParamTag(), CMMLParser::parseStreamTag(), CMMLParser::parseTitleTag(), privateClone(), and illiminable::libCMMLTagsDotNET::CMMLTag::setId().

C_CMMLTag::eTagType C_CMMLTag::tagType  ) 
 

Returns the type of tag this really is.

Definition at line 111 of file C_CMMLTag.cpp.

References eTagType.

Referenced by CMMLRawSourcePin::deliverTag().

virtual wstring C_CMMLTag::toString  )  [pure virtual]
 

Pure Virtual : Returns an xml string representing this tag.

Implemented in C_AnchorTag, C_BaseTag, C_ClipTag, C_CMMLRootTag, C_DescTag, C_HeadTag, C_HumReadCMMLTag, C_ImageTag, C_ImportTag, C_MappedTag, C_MetaTag, C_ParamTag, C_StreamTag, C_TextFieldTag, and C_TitleTag.

Referenced by OggDataBufferProcessor::acceptOggPage(), and CMMLRawSourcePin::deliverTag().


Member Data Documentation

wstring C_CMMLTag::mId [protected]
 

Definition at line 89 of file C_CMMLTag.h.

Referenced by privateClone(), and setId().

eTagType C_CMMLTag::mTagType [protected]
 

Definition at line 90 of file C_CMMLTag.h.


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