![]() |
KSquare Utilities
|
#include <XmlStream.h>
Inheritance diagram for KKB::XmlElement:Public Types | |
| typedef XmlElement * | XmlElementPtr |
Public Types inherited from KKB::XmlToken | |
| enum | TokenTypes { TokenTypes::tokNULL, TokenTypes::tokElement, TokenTypes::tokContent } |
| typedef XmlToken * | XmlTokenPtr |
Public Member Functions | |
| XmlElement (const KKStr §ionName, XmlTag::TagTypes tagType) | |
| XmlElement (XmlTagPtr _nameTag, XmlStream &s, RunLog &log) | |
| virtual | ~XmlElement () |
| KKStrConstPtr | AttributeValue (const char *attributeName) |
| KKStrConstPtr | AttributeValue (const KKStr &attributeName) |
| XmlTagConstPtr | NameTag () const |
| KKStr | NameTagStr () const |
| virtual const KKStr & | SectionName () const |
| virtual bool | ToBool () const |
| virtual double | ToDouble () const |
| virtual float | ToFloat () const |
| virtual kkint32 | ToInt32 () const |
| virtual TokenTypes | TokenType () |
| virtual KKStr | ToKKStr () const |
| virtual const KKStr & | VarName () const |
Public Member Functions inherited from KKB::XmlToken | |
| XmlToken () | |
| virtual | ~XmlToken () |
Definition at line 283 of file XmlStream.h.
| typedef XmlElement* KKB::XmlElement::XmlElementPtr |
Definition at line 286 of file XmlStream.h.
| XmlElement::XmlElement | ( | const KKStr & | sectionName, |
| XmlTag::TagTypes | tagType | ||
| ) |
Definition at line 750 of file XmlStream.cpp.
References KKB::XmlTag::XmlTag().
Referenced by KKB::XmlElementKeyValuePairs::XmlElementKeyValuePairs().
Definition at line 758 of file XmlStream.cpp.
Referenced by KKB::XmlElementArrayFloat2DVarying::XmlElementArrayFloat2DVarying(), KKB::XmlElementBool::XmlElementBool(), KKB::XmlElementDateTime::XmlElementDateTime(), KKMLL::XmlElementFileDesc::XmlElementFileDesc(), KKB::XmlElementKeyValuePairs::XmlElementKeyValuePairs(), KKMLL::XmlElementMLClass::XmlElementMLClass(), KKMLL::XmlElementMLClassNameList::XmlElementMLClassNameList(), KKMLL::XmlElementModel::XmlElementModel(), KKMLL::XmlElementModelParam::XmlElementModelParam(), and KKB::XmlElementUnKnown::XmlElementUnKnown().
|
virtual |
Definition at line 767 of file XmlStream.cpp.
| KKStrConstPtr XmlElement::AttributeValue | ( | const char * | attributeName | ) |
Definition at line 818 of file XmlStream.cpp.
References KKB::XmlTag::AttributeValueByName().
| KKStrConstPtr XmlElement::AttributeValue | ( | const KKStr & | attributeName | ) |
Definition at line 809 of file XmlStream.cpp.
References KKB::XmlTag::AttributeValueByName().
|
inline |
Definition at line 299 of file XmlStream.h.
| KKStr XmlElement::NameTagStr | ( | ) | const |
The initial start tag with its attributes that started the element.
Definition at line 775 of file XmlStream.cpp.
References KKB::KKStr::Concat(), KKB::KKStr::EmptyStr(), and KKB::XmlTag::ToString().
|
virtual |
If derived class is from the XmlElement family will be the name from the StartTag(XmlTag::Name ()) otherwise KKStr::EmptyStr()
Reimplemented from KKB::XmlToken.
Definition at line 785 of file XmlStream.cpp.
References KKB::KKStr::Concat(), KKB::KKStr::EmptyStr(), and KKB::XmlTag::Name().
Referenced by KKMLL::NormalizationParms::ReadXML(), SVM233::SvmModel233::ReadXML(), KKMLL::ModelDual::ReadXML(), KKMLL::FileDesc::ReadXML(), and KKMLL::TrainingProcess2::ReadXML().
|
inlinevirtual |
Reimplemented in KKB::XmlElementDouble, KKB::XmlElementFloat, KKB::XmlElementInt64, KKB::XmlElementInt32, KKB::XmlElementKKStr, KKB::XmlElementDateTime, and KKB::XmlElementBool.
Definition at line 313 of file XmlStream.h.
Referenced by KKMLL::NormalizationParms::ReadXML(), KKMLL::TrainingProcess2::ReadXML(), and KKMLL::ModelParam::ReadXMLModelParamToken().
|
inlinevirtual |
Reimplemented in KKB::XmlElementDouble, KKB::XmlElementFloat, KKB::XmlElementInt64, KKB::XmlElementInt32, KKB::XmlElementKKStr, KKB::XmlElementDateTime, and KKB::XmlElementBool.
Definition at line 315 of file XmlStream.h.
Referenced by KKMLL::FeatureEncoder::ReadXML().
|
inlinevirtual |
Reimplemented in KKB::XmlElementDouble, KKB::XmlElementFloat, KKB::XmlElementInt64, KKB::XmlElementInt32, KKB::XmlElementKKStr, KKB::XmlElementDateTime, and KKB::XmlElementBool.
Definition at line 316 of file XmlStream.h.
Referenced by KKMLL::NormalizationParms::ReadXML().
|
inlinevirtual |
Reimplemented in KKB::XmlElementDouble, KKB::XmlElementFloat, KKB::XmlElementInt64, KKB::XmlElementInt32, KKB::XmlElementKKStr, KKB::XmlElementDateTime, and KKB::XmlElementBool.
Definition at line 317 of file XmlStream.h.
Referenced by KKMLL::NormalizationParms::ReadXML(), KKMLL::FeatureEncoder::ReadXML(), SVM233::SvmModel233::ReadXML(), and KKMLL::ModelParam::ReadXMLModelParamToken().
|
inlinevirtual |
Implements KKB::XmlToken.
Definition at line 305 of file XmlStream.h.
References KKB::XmlToken::tokElement.
|
inlinevirtual |
Reimplemented in KKB::XmlElementDouble, KKB::XmlElementFloat, KKB::XmlElementInt64, KKB::XmlElementInt32, KKB::XmlElementKKStr, KKB::XmlElementDateTime, and KKB::XmlElementBool.
Definition at line 314 of file XmlStream.h.
References KKB::XmlTag::ToString().
Referenced by KKMLL::FeatureEncoder::ReadXML(), KKMLL::ModelParamOldSVM::ReadXML(), KKMLL::TrainingProcess2::ReadXML(), KKMLL::ModelParam::ReadXMLModelParamToken(), and KKMLL::Model::ReadXMLModelToken().
|
virtual |
If the derived class is form the 'XmlElement' line will return the 'VarName' from that derived class otherwise it will return back a empty string.
Reimplemented from KKB::XmlToken.
Definition at line 794 of file XmlStream.cpp.
References KKB::XmlTag::AttributeValueByName(), KKB::KKStr::Concat(), and KKB::KKStr::EmptyStr().
Referenced by KKMLL::ModelParamUsfCasCor::ReadXML(), KKMLL::NormalizationParms::ReadXML(), KKMLL::FeatureEncoder::ReadXML(), KKMLL::TrainingClassList::ReadXML(), SVM233::SvmModel233::ReadXML(), KKMLL::ModelDual::ReadXML(), KKMLL::FileDesc::ReadXML(), KKMLL::SVMModel::ReadXML(), KKMLL::TrainingProcess2::ReadXML(), KKMLL::TrainingConfiguration2::ReadXMLBaseToken(), and KKMLL::Model::ReadXMLModelToken().