|
|
||||||
|
cfl_types.cpp
Go to the documentation of this file.
67 FD_WARN("Type(" << this << ")::Cast(" << pOther << "): not reimplemented for " << typeid(*this).name());
200 void Type::XWrite(const std::string& rFileName, const std::string& rLabel, const Type* pContext) const {
261 void Type::Read(const std::string& rFilename, const std::string& rLabel, const Type* pContext) {
275 void Type::FromString(const std::string& rString, const std::string& rLabel, const Type* pContext) {
294 FD_DC("Type::DoDWrite(): not re-implemented in " << typeid(*this).name() << ", using DoDWrite instead");
446 FD_DRTI("Documentation::MatchKeyword(" << rPattern << "): " << mKeywords.substr(posa,posb-posa));
505 errstr << "Documentation mismatch in file \"" << rTr.FileName() << "\" : " << mName << "!=" << ftype;
642 void Documentation::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
755 void TypeDefinition::DoRead(TokenReader& rTr, const std::string& rLabel, const Type* pContext) {
791 void TypeDefinition::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
828 FD_WARN("TypeDefinition::Prototype(): factory method not implemented for c++-type " << typeid(*pType).name());
#define FD_DC(message) Debug: optional report on container operations. Definition: cfl_definitions.h:153 #define FD_DRTI(message) Debug: optional on function and type definition. Definition: cfl_definitions.h:160 Runtime interface, registry for faudes-types and functions. Runtime interface, faudes types. #define FAUDES_TYPE_IMPLEMENTATION_EQUAL(ftype, ctype, cbase) Definition: cfl_types.h:904 #define FAUDES_TYPE_IMPLEMENTATION_COPY(ftype, ctype, cbase) Definition: cfl_types.h:891 #define FAUDES_TYPE_IMPLEMENTATION_CAST(ftype, ctype, cbase) Definition: cfl_types.h:893 #define FAUDES_TYPE_IMPLEMENTATION_ASSIGN(ftype, ctype, cbase) Definition: cfl_types.h:896 #define FAUDES_TYPE_IMPLEMENTATION_NEW(ftype, ctype, cbase) faudes type implementation macros Definition: cfl_types.h:889 virtual void DoWriteCore(TokenWriter &rTw) const Write configuration data of this object to TokenWriter. Definition: cfl_types.cpp:667 bool DoEqual(const Documentation &rOther) const Std faudes type interface: test equality. Definition: cfl_types.cpp:373 virtual void MergeDocumentation(TokenReader &rTr) Merge documentation from token stream. Definition: cfl_types.cpp:491 const std::string & Name(void) const Get name of the entety to document (aka faudes-type or faudes-function). Definition: cfl_types.cpp:396 const std::string & Keywords(void) const Definition: cfl_types.cpp:401 std::string mHtmlDoc String containing the filename of the corresponding html-documentation. Definition: cfl_types.h:1427 std::string MatchKeyword(const std::string &rPattern) const Search comma-seperated keywords for a substring. Definition: cfl_types.cpp:425 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data of this object to TokenWriter. Definition: cfl_types.cpp:642 void DoAssign(const Documentation &rSrc) Std faudes type interface: assignment. Definition: cfl_types.cpp:363 virtual void DoReadCore(TokenReader &rTr) Read configuration data of this object from TokenReader. Definition: cfl_types.cpp:564 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read configuration data of this object from TokenReader. Definition: cfl_types.cpp:513 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:63 void ReadText(const std::string &rLabel, std::string &rText) Read plain text. Definition: cfl_tokenreader.cpp:517 bool Eos(const std::string &rLabel) Peek a token and check whether it ends the specified section. Definition: cfl_tokenreader.cpp:439 void SeekBegin(const std::string &rLabel) Find specified begin label. Definition: cfl_tokenreader.cpp:207 void ReadEnd(const std::string &rLabel) Close the current section by matching the previous ReadBegin(). Definition: cfl_tokenreader.cpp:364 void ReadBegin(const std::string &rLabel) Open a section by specified label. Definition: cfl_tokenreader.cpp:249 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:51 std::string Str(void) Retrieve output as string (if in String mode) Definition: cfl_tokenwriter.cpp:160 void WriteComment(const std::string &rComment) Write comment in faudes format. Definition: cfl_tokenwriter.cpp:460 const std::string & StringValue(void) const Get string value of a name token. Definition: cfl_token.cpp:177 Int AttributeIntegerValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:396 void InsAttributeBoolean(const std::string &name, Int value) Insert named attribute with boolean value. Definition: cfl_token.cpp:336 bool ExistsAttributeString(const std::string &name) Test attibute existence. Definition: cfl_token.cpp:355 void InsAttribute(const std::string &name, const std::string &value) Insert named attribute, no type. Definition: cfl_token.cpp:299 bool ExistsAttributeInteger(const std::string &name) Test attibute existence. Definition: cfl_token.cpp:365 void InsAttributeString(const std::string &name, const std::string &value) Insert named attribute with string value. Definition: cfl_token.cpp:309 const std::string & AttributeStringValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:385 A TypeDefinition defines a faudes-type in that it specifies a faudes-type name to identify the type a... Definition: cfl_types.h:1462 bool DoEqual(const TypeDefinition &rOther) const Std faudes type interface: test equality. Definition: cfl_types.cpp:745 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data of this object to TokenWriter. Definition: cfl_types.cpp:791 virtual void DoReadCore(TokenReader &rTr) Read configuration data of this object from TokenReader. Definition: cfl_types.cpp:768 virtual void DoWriteCore(TokenWriter &rTw) const Write configuration data of this object to TokenWriter. Definition: cfl_types.cpp:800 void Clear(void) Clear documentation-data; do NOT delete prototype (this is for using Read to merge/overwrite document... Definition: cfl_types.cpp:722 void DoAssign(const TypeDefinition &rSrc) Std faudes type interface: assignment. Definition: cfl_types.cpp:732 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read configuration data of this object from TokenReader. Definition: cfl_types.cpp:755 const Type * Prototype(void) const Return pointer to faudes-object prototype. Definition: cfl_types.cpp:815 const std::string & XElementTag(void) const Parameter access: Xml Element Tag. Definition: cfl_types.cpp:847 static TypeRegistry * G() Method to access the single global instance of the registry. Definition: cfl_registry.cpp:62 const TypeDefinition * Definitionp(const std::string &rTypeName) const Look up the type definition by faudes-type name. Definition: cfl_registry.cpp:301 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read configuration data of this object from TokenReader. Definition: cfl_types.cpp:307 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data of this object to TokenWriter. Definition: cfl_types.cpp:282 virtual const TypeDefinition * TypeDefinitionp(void) const Get objects's type definition. Definition: cfl_types.cpp:127 bool DoEqual(const Type &rOther) const Test equality of configuration data. Definition: cfl_types.cpp:111 virtual bool operator==(const Type &rOther) const Test equality of configuration data. Definition: cfl_types.cpp:89 void DWrite(const Type *pContext=0) const Write configuration data to console, debugging format. Definition: cfl_types.cpp:225 virtual Token XBeginTag(const std::string &rLabel="", const std::string &rFallbackLabel="") const Definition: cfl_types.cpp:315 void Read(const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) Read configuration data from file with label specified. Definition: cfl_types.cpp:261 virtual Type & operator=(const Type &rSrc) Assign configurationdata from other object. Definition: cfl_types.cpp:99 std::string ToString(const std::string &rLabel="", const Type *pContext=0) const Write configuration data to a string. Definition: cfl_types.cpp:169 void FromString(const std::string &rString, const std::string &rLabel="", const Type *pContext=0) Read configuration data from a string. Definition: cfl_types.cpp:275 virtual void XWrite(const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const Write configuration data to an XML file. Definition: cfl_types.cpp:200 virtual Type & Assign(const Type &rSrc) Assign configuration data from other object. Definition: cfl_types.cpp:77 virtual void DoSWrite(TokenWriter &rTw) const Write statistical data as a comment to TokenWriter. Definition: cfl_types.cpp:299 virtual void DoXWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data of this object to TokenWriter in XML format. Definition: cfl_types.cpp:288 std::string ToText(const std::string &rLabel="", const Type *pContext=0) const Write configuration data to a formated string. Definition: cfl_types.cpp:185 void Write(const Type *pContext=0) const Write configuration data to console. Definition: cfl_types.cpp:139 virtual void DoDWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data in debugging format to TokenWriter. Definition: cfl_types.cpp:293 virtual bool operator!=(const Type &rOther) const Test equality of configuration data. Definition: cfl_types.cpp:94 void DoAssign(const Type &rSrc) Assign configuration data from other object. Definition: cfl_types.cpp:106 virtual const std::string & TypeName(void) const Get objects's type name. Definition: cfl_types.cpp:132 virtual bool Equal(const Type &rOther) const Test equality of configuration data. Definition: cfl_types.cpp:84 virtual const Type * Cast(const Type *pOther) const Cast other object to this type. Definition: cfl_types.cpp:66 libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |