C_ClipTag Class Reference

#include <C_ClipTag.h>

Inheritance diagram for C_ClipTag:

Inheritance graph
[legend]
Collaboration diagram for C_ClipTag:

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_ClipTag (void)
virtual ~C_ClipTag (void)
wstring track ()
 Returns the name of the track this clip belongs to.
C_MetaTagListmetaList ()
 Returns a pointer to the internal metatag list. Don't delete.
C_AnchorTaganchor ()
 Returns a pointer to the internal anchor element. Don't delete.
C_ImageTagimage ()
 Returns a pointer to the internal image element. Don't delete.
C_DescTagdesc ()
 Returns a pointer to the internal desc element. Don't delete.
wstring start ()
 Returns the start time for this clip.
wstring end ()
 Returns the end time for this clip. May be "".
void setTrack (wstring inTrack)
 Set the track this clip belongs to.
void setAnchor (C_AnchorTag *inAnchor)
 Set the anchor tag for this clip. You give away your pointer.
void setImage (C_ImageTag *inImage)
 Set the image tag for this clip. You give away your pointer.
void setDesc (C_DescTag *inDesc)
 Sets the desc tag for this clip. You give away your pointer.
void setStart (wstring inStart)
 Sets the start time for this clip.
void setEnd (wstring inEnd)
 Sets the end time for this clip. May be "".
virtual wstring toString ()
 Converts this tag to an xml string.
C_ClipTagclone ()
 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 lang ()
 Returns the language country code for this tag (eg. en or de).
wstring dirn ()
 Returns the direction this langauge is read (ltr or rtl).
void setLang (wstring inLang)
 Sets the language country code for this tag (eg. en or de).
void setDirn (wstring inDirn)
 Sets the direction this langauge is read (ltr or rtl).
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 deep copy mechanism.
virtual wstring makeLangElements ()
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 mTrack
C_MetaTagListmMetaList
C_AnchorTagmAnchor
C_ImageTagmImage
C_DescTagmDesc
wstring mStart
wstring mEnd
wstring mLang
wstring mDirn
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_ClipTag::C_ClipTag void   ) 
 

Definition at line 38 of file C_ClipTag.cpp.

References mAnchor, mDesc, mImage, mMetaList, mStart, and mTrack.

C_ClipTag::~C_ClipTag void   )  [virtual]
 

Definition at line 51 of file C_ClipTag.cpp.


Member Function Documentation

C_AnchorTag * C_ClipTag::anchor  ) 
 

Returns a pointer to the internal anchor element. Don't delete.

Definition at line 66 of file C_ClipTag.cpp.

Referenced by illiminable::libCMMLTagsDotNET::ClipTag::anchor().

C_ClipTag * C_ClipTag::clone  ) 
 

Performs a deep copy returning a pointer you can keep.

Definition at line 110 of file C_ClipTag.cpp.

References privateClone().

Referenced by illiminable::libCMMLTagsDotNET::ClipTagList::addTag(), CMMLCallbackProxy::clipCallback(), genericClone(), CMMLTagUtils::getClipsFrom(), and CMMLDecodeFilter::Transform().

Here is the call graph for this function:

C_DescTag * C_ClipTag::desc  ) 
 

Returns a pointer to the internal desc element. Don't delete.

Definition at line 72 of file C_ClipTag.cpp.

Referenced by illiminable::libCMMLTagsDotNET::ClipTag::desc().

wstring C_HumReadCMMLTag::dirn  )  [inherited]
 

Returns the direction this langauge is read (ltr or rtl).

Definition at line 49 of file C_HumReadCMMLTag.cpp.

wstring C_ClipTag::end  ) 
 

Returns the end time for this clip. May be "".

Definition at line 79 of file C_ClipTag.cpp.

Referenced by CMMLRawSourceFilter::DataProcessLoop(), and CMMLTagUtils::getClipsFrom().

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_ClipTag::genericClone  )  [virtual]
 

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

Implements C_CMMLTag.

Definition at line 116 of file C_ClipTag.cpp.

References clone().

Here is the call graph for this function:

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().

C_ImageTag * C_ClipTag::image  ) 
 

Returns a pointer to the internal image element. Don't delete.

Definition at line 69 of file C_ClipTag.cpp.

Referenced by illiminable::libCMMLTagsDotNET::ClipTag::image().

wstring C_HumReadCMMLTag::lang  )  [inherited]
 

Returns the language country code for this tag (eg. en or de).

Definition at line 46 of file C_HumReadCMMLTag.cpp.

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

Here is the call graph for this function:

wstring C_HumReadCMMLTag::makeLangElements  )  [protected, virtual, inherited]
 

Definition at line 69 of file C_HumReadCMMLTag.cpp.

References C_CMMLTag::makeAttribute(), C_HumReadCMMLTag::mDirn, and C_HumReadCMMLTag::mLang.

Referenced by C_TitleTag::toString(), C_ParamTag::toString(), C_MetaTag::toString(), C_ImportTag::toString(), C_ImageTag::toString(), C_HeadTag::toString(), C_DescTag::toString(), C_CMMLRootTag::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:

C_MetaTagList * C_ClipTag::metaList  ) 
 

Returns a pointer to the internal metatag list. Don't delete.

Definition at line 63 of file C_ClipTag.cpp.

Referenced by CMMLParser::parseClipTag(), and privateClone().

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

Internal deep copy mechanism.

Reimplemented from C_HumReadCMMLTag.

Definition at line 120 of file C_ClipTag.cpp.

References C_MetaTagList::addTag(), C_MetaTag::clone(), C_DescTag::clone(), C_ImageTag::clone(), C_AnchorTag::clone(), C_MetaTagList::getTag(), mAnchor, mDesc, mEnd, metaList(), mImage, mMetaList, mStart, mTrack, C_MappedTagList::numTags(), C_HumReadCMMLTag::privateClone(), setAnchor(), setDesc(), setEnd(), setImage(), and setStart().

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_ClipTag::setAnchor C_AnchorTag inAnchor  ) 
 

Set the anchor tag for this clip. You give away your pointer.

Definition at line 86 of file C_ClipTag.cpp.

References mAnchor.

Referenced by CMMLParser::parseClipTag(), privateClone(), and illiminable::libCMMLTagsDotNET::ClipTag::setAnchor().

void C_ClipTag::setDesc C_DescTag inDesc  ) 
 

Sets the desc tag for this clip. You give away your pointer.

Definition at line 94 of file C_ClipTag.cpp.

References mDesc.

Referenced by CMMLParser::parseClipTag(), privateClone(), and illiminable::libCMMLTagsDotNET::ClipTag::setDesc().

void C_HumReadCMMLTag::setDirn wstring  inDirn  )  [inherited]
 

Sets the direction this langauge is read (ltr or rtl).

Definition at line 57 of file C_HumReadCMMLTag.cpp.

References C_HumReadCMMLTag::mDirn.

Referenced by CMMLParser::parseAnchorTag(), CMMLParser::parseClipTag(), CMMLParser::parseCMMLRootTag(), CMMLParser::parseDescTag(), CMMLParser::parseHeadTag(), CMMLParser::parseMetaTag(), CMMLParser::parseTitleTag(), C_HumReadCMMLTag::privateClone(), and illiminable::libCMMLTagsDotNET::HumReadCMMLTag::setDirn().

void C_ClipTag::setEnd wstring  inEnd  ) 
 

Sets the end time for this clip. May be "".

Definition at line 104 of file C_ClipTag.cpp.

References mEnd.

Referenced by CMMLParser::parseClipTag(), privateClone(), and illiminable::libCMMLTagsDotNET::ClipTag::setEnd().

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().

void C_ClipTag::setImage C_ImageTag inImage  ) 
 

Set the image tag for this clip. You give away your pointer.

Definition at line 90 of file C_ClipTag.cpp.

References mImage.

Referenced by CMMLParser::parseClipTag(), privateClone(), and illiminable::libCMMLTagsDotNET::ClipTag::setImage().

void C_HumReadCMMLTag::setLang wstring  inLang  )  [inherited]
 

Sets the language country code for this tag (eg. en or de).

Definition at line 54 of file C_HumReadCMMLTag.cpp.

References C_HumReadCMMLTag::mLang.

Referenced by CMMLParser::parseAnchorTag(), CMMLParser::parseClipTag(), CMMLParser::parseCMMLRootTag(), CMMLParser::parseDescTag(), CMMLParser::parseHeadTag(), CMMLParser::parseMetaTag(), CMMLParser::parseTitleTag(), C_HumReadCMMLTag::privateClone(), and illiminable::libCMMLTagsDotNET::HumReadCMMLTag::setLang().

void C_ClipTag::setStart wstring  inStart  ) 
 

Sets the start time for this clip.

Definition at line 99 of file C_ClipTag.cpp.

References mStart.

Referenced by CMMLRawSourceFilter::DataProcessLoop(), CMMLParser::parseClipTag(), privateClone(), and illiminable::libCMMLTagsDotNET::ClipTag::setStart().

void C_ClipTag::setTrack wstring  inTrack  ) 
 

Set the track this clip belongs to.

Definition at line 83 of file C_ClipTag.cpp.

References mTrack.

Referenced by CMMLRawSourceFilter::DataProcessLoop(), CMMLParser::parseClipTag(), and illiminable::libCMMLTagsDotNET::ClipTag::setTrack().

wstring C_ClipTag::start  ) 
 

Returns the start time for this clip.

Definition at line 76 of file C_ClipTag.cpp.

Referenced by CMMLRawSourceFilter::DataProcessLoop(), CMMLRawSourcePin::deliverTag(), and CMMLTagUtils::getClipsFrom().

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_ClipTag::toString  )  [virtual]
 

Converts this tag to an xml string.

Implements C_HumReadCMMLTag.

Definition at line 148 of file C_ClipTag.cpp.

References C_CMMLTag::makeAttribute(), C_HumReadCMMLTag::makeLangElements(), mAnchor, mDesc, mEnd, mImage, mMetaList, mStart, mTrack, C_MetaTagList::toString(), C_DescTag::toString(), C_ImageTag::toString(), and C_AnchorTag::toString().

Here is the call graph for this function:

wstring C_ClipTag::track  ) 
 

Returns the name of the track this clip belongs to.

Definition at line 60 of file C_ClipTag.cpp.

Referenced by CMMLRawSourceFilter::DataProcessLoop().


Member Data Documentation

C_AnchorTag* C_ClipTag::mAnchor [protected]
 

Definition at line 115 of file C_ClipTag.h.

Referenced by C_ClipTag(), privateClone(), setAnchor(), and toString().

C_DescTag* C_ClipTag::mDesc [protected]
 

Definition at line 117 of file C_ClipTag.h.

Referenced by C_ClipTag(), privateClone(), setDesc(), and toString().

wstring C_HumReadCMMLTag::mDirn [protected, inherited]
 

Definition at line 69 of file C_HumReadCMMLTag.h.

Referenced by C_HumReadCMMLTag::makeLangElements(), C_HumReadCMMLTag::privateClone(), and C_HumReadCMMLTag::setDirn().

wstring C_ClipTag::mEnd [protected]
 

Definition at line 120 of file C_ClipTag.h.

Referenced by privateClone(), setEnd(), 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().

C_ImageTag* C_ClipTag::mImage [protected]
 

Definition at line 116 of file C_ClipTag.h.

Referenced by C_ClipTag(), privateClone(), setImage(), and toString().

wstring C_HumReadCMMLTag::mLang [protected, inherited]
 

Definition at line 68 of file C_HumReadCMMLTag.h.

Referenced by C_HumReadCMMLTag::makeLangElements(), C_HumReadCMMLTag::privateClone(), and C_HumReadCMMLTag::setLang().

C_MetaTagList* C_ClipTag::mMetaList [protected]
 

Definition at line 114 of file C_ClipTag.h.

Referenced by C_ClipTag(), privateClone(), and toString().

wstring C_ClipTag::mStart [protected]
 

Definition at line 119 of file C_ClipTag.h.

Referenced by C_ClipTag(), privateClone(), setStart(), and toString().

eTagType C_CMMLTag::mTagType [protected, inherited]
 

Definition at line 90 of file C_CMMLTag.h.

wstring C_ClipTag::mTrack [protected]
 

Definition at line 113 of file C_ClipTag.h.

Referenced by C_ClipTag(), privateClone(), setTrack(), and toString().


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