|
|
||||||
|
cfl_functions.cpp
Go to the documentation of this file.
47 Parameter::Parameter(const std::string& rName, const std::string& rTypeName, ParamAttr attr, bool cret) :
229 void Signature::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const{
463 err << "Attempt to append variant with existing name: " << rVariant.Name() << " in " << Name() << std::endl;
497 void FunctionDefinition::DoRead(TokenReader& rTr, const std::string& rLabel, const Type* pContext) {
529 void FunctionDefinition::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
781 void Function::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const{
#define FD_DRTI(message) Debug: optional on function and type definition. Definition: cfl_definitions.h:160 Runtime interface, operations on faudes types. Runtime interface, registry for faudes-types and functions. #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 const std::string & Name(void) const Get name of the entety to document (aka faudes-type or faudes-function). Definition: cfl_types.cpp:396 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 FunctionDefinition defines the interface to a faudes-function. Definition: cfl_functions.h:416 const Signature & Variant(const std::string &rName) const Return reference to Signature by name. Definition: cfl_functions.cpp:473 void DoAssign(const FunctionDefinition &rSrc) Std faudes type interface: assignment. Definition: cfl_functions.cpp:372 int VariantsSize(void) const Return number of supported Signature instances. Definition: cfl_functions.cpp:441 virtual void ClearVariants(void) Clear variants (keep docu and prototype) Definition: cfl_functions.cpp:407 const Function * Prototype(void) const Return pointer to function object prototype. Definition: cfl_functions.cpp:416 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read configuration data of this object from TokenReader. Definition: cfl_functions.cpp:497 virtual void DoReadCore(TokenReader &rTr) Read configuration data of this object from TokenReader. Definition: cfl_functions.cpp:510 bool DoEqual(const FunctionDefinition &rOther) const Std faudes type interface: test equality. Definition: cfl_functions.cpp:388 int VariantIndex(const std::string &rName) const Return index of Signature by name. Definition: cfl_functions.cpp:451 virtual void AppendVariant(const Signature &pVar) Add Signature to function definition. Definition: cfl_functions.cpp:458 std::map< std::string, int > mVariantIndexMap Variant name to index map. Definition: cfl_functions.h:675 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data of this object to TokenWriter. Definition: cfl_functions.cpp:529 virtual void DoWriteCore(TokenWriter &rTw) const Write configuration data of this object to TokenWriter. Definition: cfl_functions.cpp:538 std::vector< faudes::Signature > mVariants Vector containing all supported Signatures. Definition: cfl_functions.h:672 bool ExistsVariant(const std::string &varname) const Test existence of variant by its name. Definition: cfl_functions.cpp:446 virtual void Clear(void) Clear documentation-data and signature (keep prototype) Definition: cfl_functions.cpp:397 A faudes-function hosts parameter values of some faudes type and provides a method to perform an oper... Definition: cfl_functions.h:714 virtual bool DoTypeCheck(int n)=0 Method to test the type of an assigned parameter with the specified faudes::Signature (i.... virtual void Definition(const FunctionDefinition *fdef) Set function definition. Definition: cfl_functions.cpp:584 const FunctionDefinition * pFuncDef corresponding function definition Definition: cfl_functions.h:1013 const Signature * Variant(void) const Return pointer to assigned faudes::Signature. Definition: cfl_functions.cpp:662 const FunctionDefinition * Definition(void) const Get function definition. Definition: cfl_functions.cpp:600 Function(const FunctionDefinition *fdef) Constructor For the function to be operational, a valid reference to the corresponding FunctionDefini... Definition: cfl_functions.cpp:567 bool TypeCheck(void) Perform a type check on the list of current parameter values. Definition: cfl_functions.cpp:746 void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write function-data (typeid-name of arguments) to TokenWriter. Definition: cfl_functions.cpp:781 void ParamValue(int n, Type *param) Set parameter at certain position. Definition: cfl_functions.cpp:674 virtual void DoExecute()=0 Executes code of reimplemented method of child class(es). int ParamsSize(void) const Return number of parameters with current signature. Definition: cfl_functions.cpp:669 Structure to model a parameter type within the Signature of a Function. Definition: cfl_functions.h:45 std::string Str(void) const Convenience method to produce a textual representation of a parameter. Definition: cfl_functions.cpp:106 ParamAttr A function parameter has has one out of four so called io-attrributes;. Definition: cfl_functions.h:52 static std::string AStr(Parameter::ParamAttr attr) Convenience method to produce a textual representation of an io attribute. Definition: cfl_functions.cpp:95 bool DoEqual(const Signature &rOther) const Std faudes type interface: test equality. Definition: cfl_functions.cpp:167 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read signature from from TokenReader. Definition: cfl_functions.cpp:258 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write configuration data of this object to TokenWriter. Definition: cfl_functions.cpp:229 void DoAssign(const Signature &rSrc) Std faudes type interface: assignment. Definition: cfl_functions.cpp:160 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:63 bool Eos(const std::string &rLabel) Peek a token and check whether it ends the specified section. Definition: cfl_tokenreader.cpp:439 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 const std::string & StringValue(void) const Get string value of a name token. Definition: cfl_token.cpp:177 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 const std::string & AttributeStringValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:385 static TypeRegistry * G() Method to access the single global instance of the registry. Definition: cfl_registry.cpp:62 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 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 libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |