C_BaseTag Class Reference

#include <C_BaseTag.h>

Inheritance diagram for C_BaseTag:

Inheritance graph
[legend]
Collaboration diagram for C_BaseTag:

Collaboration 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_BaseTag (void)
virtual ~C_BaseTag (void)
wstring href ()
 Returns the base uri that is used for this cmml document.
void setHref (wstring inHref)
 Sets the base uri used for this cmml document.
virtual wstring toString ()
 Converts this tag to an xml string.
C_BaseTagclone ()
 Performs a deep copy returning a pointer you can keep.
virtual C_CMMLTaggenericClone ()
 Performs a deep copy returning a pointer to the base class you can keep.
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.

Protected Member Functions

virtual void privateClone (C_CMMLTag *outTag)
 Internal cloning mechanism.
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 mHref
wstring mId
eTagType mTagType

Member Enumeration Documentation

enum C_CMMLTag::eTagType [inherited]
 

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 C_CMMLTag::tagType().


Constructor & Destructor Documentation

C_BaseTag::C_BaseTag void   ) 
 

Definition at line 38 of file C_BaseTag.cpp.

References mHref.

C_BaseTag::~C_BaseTag void   )  [virtual]
 

Definition at line 44 of file C_BaseTag.cpp.


Member Function Documentation

C_BaseTag * C_BaseTag::clone  ) 
 

Performs a deep copy returning a pointer you can keep.

Definition at line 59 of file C_BaseTag.cpp.

References privateClone().

Referenced by genericClone(), C_HeadTag::privateClone(), and illiminable::libCMMLTagsDotNET::HeadTag::setBase().

Here is the call graph for this function:

wstring C_CMMLTag::escapeEntities wstring  inString  )  [protected, inherited]
 

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

Definition at line 92 of file C_CMMLTag.cpp.

References C_CMMLTag::replaceAll().

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

Here is the call graph for this function:

C_CMMLTag * C_BaseTag::genericClone  )  [virtual]
 

Performs a deep copy returning a pointer to the base class you can keep.

Implements C_CMMLTag.

Definition at line 65 of file C_BaseTag.cpp.

References clone().

Here is the call graph for this function:

wstring C_BaseTag::href  ) 
 

Returns the base uri that is used for this cmml document.

Definition at line 49 of file C_BaseTag.cpp.

Referenced by CMMLParser::parseBaseTag().

wstring C_CMMLTag::id  )  [inherited]
 

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, inherited]
 

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

Definition at line 56 of file C_CMMLTag.cpp.

References C_CMMLTag::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(), toString(), and C_AnchorTag::toString().

Here is the call graph for this function:

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

Definition at line 66 of file C_CMMLTag.cpp.

References C_CMMLTag::escapeEntities().

Referenced by C_AnchorTag::toString().

Here is the call graph for this function:

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

Internal cloning mechanism.

Reimplemented from C_CMMLTag.

Definition at line 81 of file C_BaseTag.cpp.

References mHref, and C_CMMLTag::privateClone().

Referenced by clone().

Here is the call graph for this function:

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

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

Definition at line 73 of file C_CMMLTag.cpp.

Referenced by C_CMMLTag::escapeEntities().

void C_BaseTag::setHref wstring  inHref  ) 
 

Sets the base uri used for this cmml document.

Definition at line 54 of file C_BaseTag.cpp.

References mHref.

Referenced by CMMLParser::parseBaseTag(), and illiminable::libCMMLTagsDotNET::BaseTag::setHref().

void C_CMMLTag::setId wstring  inId  )  [inherited]
 

Sets the id attribute for this tag.

Definition at line 51 of file C_CMMLTag.cpp.

References C_CMMLTag::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(), C_CMMLTag::privateClone(), and illiminable::libCMMLTagsDotNET::CMMLTag::setId().

C_CMMLTag::eTagType C_CMMLTag::tagType  )  [inherited]
 

Returns the type of tag this really is.

Definition at line 111 of file C_CMMLTag.cpp.

References C_CMMLTag::eTagType.

Referenced by CMMLRawSourcePin::deliverTag().

wstring C_BaseTag::toString  )  [virtual]
 

Converts this tag to an xml string.

Implements C_CMMLTag.

Definition at line 68 of file C_BaseTag.cpp.

References C_CMMLTag::makeAttribute(), and mHref.

Referenced by C_HeadTag::toString().

Here is the call graph for this function:


Member Data Documentation

wstring C_BaseTag::mHref [protected]
 

Definition at line 72 of file C_BaseTag.h.

Referenced by C_BaseTag(), privateClone(), setHref(), and toString().

wstring C_CMMLTag::mId [protected, inherited]
 

Definition at line 89 of file C_CMMLTag.h.

Referenced by C_CMMLTag::privateClone(), and C_CMMLTag::setId().

eTagType C_CMMLTag::mTagType [protected, inherited]
 

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:46 2005 for oggdsf by  doxygen 1.3.9