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
00035 #include "stdafx.h"
00036 #include ".\anchortag.h"
00037
00038
00039 namespace illiminable {
00040 namespace libCMMLTagsDotNET {
00041
00042 AnchorTag::AnchorTag(void)
00043 {
00044 mBaseClass = new C_AnchorTag;
00045 }
00046
00047 AnchorTag::~AnchorTag(void)
00048 {
00049 if (mDeleteBase) {
00050 delete mBaseClass;
00051 }
00052 mBaseClass = NULL;
00053 }
00054
00055 AnchorTag::AnchorTag(C_AnchorTag* inTag, bool inDeleteBase) {
00056 mBaseClass = inTag;
00057 mDeleteBase = inDeleteBase;
00058 }
00059
00060 C_AnchorTag* AnchorTag::getMe() {
00061 return (C_AnchorTag*)mBaseClass;
00062 }
00063
00064
00065
00066 String* AnchorTag::cls() {
00067 return Wrappers::WStrToNetStr( getMe()->cls().c_str() );
00068
00069 }
00070 String* AnchorTag::href() {
00071 return Wrappers::WStrToNetStr( getMe()->href().c_str() );
00072 }
00073
00074
00075 void AnchorTag::setCls(String* inCls) {
00076 wchar_t* tc = Wrappers::netStrToWStr( inCls );
00077 wstring locStr = tc;
00078 getMe()->setCls( locStr );
00079 Wrappers::releaseWStr( tc );
00080 }
00081 void AnchorTag::setHref(String* inHref) {
00082 wchar_t* tc = Wrappers::netStrToWStr( inHref );
00083 wstring locStr = tc;
00084 getMe()->setHref( locStr );
00085 Wrappers::releaseWStr( tc );
00086
00087 }
00088
00089
00090 String* AnchorTag::toString() {
00091 return Wrappers::WStrToNetStr( getMe()->toString().c_str() );
00092
00093 }
00094
00095 }
00096 }