|
|
||||||
|
cfl_registry.cpp
Go to the documentation of this file.
232 FD_DREG("TypeRegistry::AutoRegistered(...): cannot access definition for faudes type " << rTypeName);
341 FD_DRTI("TypeRegistry::TypeTest(): dst ftype " << rTypeName<< " src typeid " << typeid(rObject).name()
358 void TypeRegistry::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
476 if((token.StringValue()!="FunctionDefinition") && (token.StringValue()!="LuaFunctionDefinition"))
582 void FunctionRegistry::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
700 Type* NewFaudesObject(const std::string& rTypeName) { return TypeRegistry::G()->NewObject(rTypeName);}
701 Function* NewFaudesFunction(const std::string& rFunctName) { return FunctionRegistry::G()->NewFunction(rFunctName);}
702 const std::string& FaudesTypeName(const Type& rObject) { return TypeRegistry::G()->TypeName(rObject);}
703 bool FaudesTypeTest(const std::string& rTypeName, const Type& rObject) { return TypeRegistry::G()->TypeTest(rTypeName,rObject);}
704 const std::string& FaudesFunctionName(const Function& rObject) { return FunctionRegistry::G()->FunctionName(rObject);}
#define FD_DREG(message) Debug: optional report registry operations. Definition: cfl_definitions.h:167 #define FD_DV(message) Debug: optional low-level report on iterations and token IO. Definition: cfl_definitions.h:174 #define FD_DRTI(message) Debug: optional on function and type definition. Definition: cfl_definitions.h:160 Runtime interface, registry for faudes-types and functions. 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 A FunctionDefinition defines the interface to a faudes-function. Definition: cfl_functions.h:419 const Function * Prototype(void) const Return pointer to function object prototype. Definition: cfl_functions.cpp:416 The FunctionRegistry registers faudes-functions. Definition: cfl_registry.h:498 Iterator End(void) const STL interator to the internal function-name map. Definition: cfl_registry.cpp:433 bool Exists(const std::string &rName) const Test existence of a faudes-function by its name. Definition: cfl_registry.cpp:571 static FunctionRegistry * G() Method to access the single global instance of the registry. Definition: cfl_registry.cpp:396 std::map< std::string, FunctionDefinition * >::const_iterator Iterator Convenience typedef to access registry entries. Definition: cfl_registry.h:505 const FunctionDefinition & Definition(const std::string &rFunctionName) const Look up the function definition by faudes-function name. Definition: cfl_registry.cpp:538 Function * NewFunction(const std::string &rFunctionName) const Construct a faudes object by function name. Definition: cfl_registry.cpp:507 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write registry data of this to TokenWriter. Definition: cfl_registry.cpp:582 void Insert(FunctionDefinition *pFunctionDef) Add another function definition to the registry. Definition: cfl_registry.cpp:438 void MergeDocumentation(TokenReader &rTr) Scan token input for function documentation. Definition: cfl_registry.cpp:467 std::map< std::string, FunctionDefinition * > mNameToFunctionDef Map to associate labels and faudes::FunctionDefinitions. Definition: cfl_registry.h:738 const std::string & FunctionName(const Function &rFunction) const Look up the function name by faudes object. Definition: cfl_registry.cpp:561 std::map< std::string, FunctionDefinition * > mIdToFunctionDef Definition: cfl_registry.h:739 Iterator Begin(void) const STL interator to the internal function-name map. Definition: cfl_registry.cpp:428 A faudes-function hosts parameter values of some faudes type and provides a method to perform an oper... Definition: cfl_functions.h:720 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:64 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:52 void WriteXmlComment(const std::string &rComment) Write comment in Xml format. Definition: cfl_tokenwriter.cpp:501 const std::string & StringValue(void) const Get string value of a name token. Definition: cfl_token.cpp:178 bool ExistsAttributeString(const std::string &name) Test attibute existence. Definition: cfl_token.cpp:356 const std::string & AttributeStringValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:386 A TypeDefinition defines a faudes-type in that it specifies a faudes-type name to identify the type a... Definition: cfl_types.h:1467 const Type * Prototype(void) const Return pointer to faudes-object prototype. Definition: cfl_types.cpp:815 Type * NewObject(const std::string &rTypeName) const Construct a faudes object by type name. Definition: cfl_registry.cpp:247 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write registry data of this to TokenWriter. Definition: cfl_registry.cpp:358 const std::string & TypeName(const Type &rType) const Look up the type name by faudes object. Definition: cfl_registry.cpp:326 const Type * Prototype(const std::string &rTypeName) const Look up the prototype object by faudes-type name. Definition: cfl_registry.cpp:318 void XElementTag(const std::string &rTypeName, const std::string &rTag) Set Xml element tag for given faudes-type. Definition: cfl_registry.cpp:213 std::map< std::string, TypeDefinition * > mIdToTypeDef Definition: cfl_registry.h:438 void MergeDocumentation(TokenReader &rTr) Scan token input for type documentation. Definition: cfl_registry.cpp:178 const TypeDefinition & Definition(const std::string &rTypeName) const Look up the type definition by faudes-type name. Definition: cfl_registry.cpp:278 static TypeRegistry * G() Method to access the single global instance of the registry. Definition: cfl_registry.cpp:62 void Insert(TypeDefinition *pTypeDef) Add another type definition to the registry. Definition: cfl_registry.cpp:137 const TypeDefinition * Definitionp(const std::string &rTypeName) const Look up the type definition by faudes-type name. Definition: cfl_registry.cpp:301 bool AutoRegistered(const std::string &rTypeName) const Get AutoRegister flag for given faudes-type. Definition: cfl_registry.cpp:239 Iterator Begin(void) const STL interator to the internal type-name map. Definition: cfl_registry.cpp:127 virtual const std::string & TypeName(void) const Cosmetic: fix compile warning for recent LLVM/clang++. Definition: cfl_types.cpp:132 bool TypeTest(const std::string &rTypeName, const Type &rObject) const Test type compatibility. Definition: cfl_registry.cpp:336 std::map< std::string, TypeDefinition * > mNameToTypeDef Map to associate labels and faudes::TypeDefinitions. Definition: cfl_registry.h:437 bool Exists(const std::string &rName) const Test existence of a faudes-type by its name. Definition: cfl_registry.cpp:347 Iterator End(void) const STL interator to the internal type-name map. Definition: cfl_registry.cpp:132 std::map< std::string, TypeDefinition * >::const_iterator Iterator Convenience typedef to access registry entries. Definition: cfl_registry.h:54 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 void Write(const Type *pContext=0) const Write configuration data to console. Definition: cfl_types.cpp:139 Includes all libFAUDES headers, no plugins. void SaveRegistry(const std::string &rPath) Dump all registered types and functions. Definition: cfl_registry.cpp:670 bool FaudesTypeTest(const std::string &rTypeName, const Type &rObject) Test type compatibility. Definition: cfl_registry.cpp:703 Function * NewFaudesFunction(const std::string &rFunctName) Instantiate faudes function objects by function name. Definition: cfl_registry.cpp:701 void LoadRegistry(const std::string &rPath) Load all registered types and functions. Definition: cfl_registry.cpp:616 const std::string & FaudesTypeName(const Type &rObject) Query type name. Definition: cfl_registry.cpp:702 Type * NewFaudesObject(const std::string &rTypeName) Instantiate faudes typed objects by type name. Definition: cfl_registry.cpp:700 const std::string & FaudesFunctionName(const Function &rObject) Definition: cfl_registry.cpp:704 libFAUDES 2.32f --- 2024.12.22 --- c++ api documentaion by doxygen |