00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include "stdafx.h"
00035 #include ".\cmmlroottag.h"
00036 #using <mscorlib.dll>
00037
00038 namespace illiminable {
00039 namespace libCMMLTagsDotNET {
00040
00041 CMMLRootTag::CMMLRootTag(void)
00042 {
00043 mBaseClass = new C_CMMLRootTag;
00044 }
00045
00046 CMMLRootTag::CMMLRootTag(C_CMMLRootTag* inRootTag, bool inDeleteBase)
00047 {
00048 mBaseClass = inRootTag;
00049 mDeleteBase = inDeleteBase;
00050 }
00051
00052 CMMLRootTag::~CMMLRootTag(void)
00053
00054 {
00055 if(mDeleteBase) {
00056 delete mBaseClass;
00057 }
00058 mBaseClass = NULL;
00059 }
00060
00061
00062
00063 StreamTag* CMMLRootTag::stream() {
00064 return new StreamTag(getMe()->stream(), false);
00065 }
00066 HeadTag* CMMLRootTag::head() {
00067 return new HeadTag(getMe()->head(), false);
00068 }
00069 ClipTagList* CMMLRootTag::clipList() {
00070 return new ClipTagList(getMe()->clipList(), false);
00071
00072 }
00073
00074
00075 void CMMLRootTag::setStream(StreamTag* inStreamTag) {
00076 getMe()->setStream(inStreamTag->getMe()->clone());
00077 }
00078 void CMMLRootTag::setHead(HeadTag* inHeadTag) {
00079 getMe()->setHead(inHeadTag->getMe()->clone());
00080 }
00081 void CMMLRootTag::setClipList(ClipTagList* inClipList) {
00082 getMe()->setClipList(inClipList->getMe()->clone());
00083 }
00084
00085
00086 String* CMMLRootTag::toString() {
00087 return Wrappers::WStrToNetStr( getMe()->toString().c_str());
00088 }
00089
00090 C_CMMLRootTag* CMMLRootTag::getMe() {
00091 return (C_CMMLRootTag*)mBaseClass;
00092 }
00093
00094 }
00095 }