|
|
||||||
|
faudes::Signature Class Reference Detailed DescriptionA Signature describes the faudes types of the positional parameters. Tecnically, a Signature is a vector of Parameters. Each Function may execute serveral variants indicated by setting a particular Signature. A list of valid Signatures is maintained in the coresponding FunctionDefinition. Core members are
The Signature is formally derived from Type to inherit the std token io interface. It is not meant to be registered as a faudes type. The token io format is demonstrated by the following example: <Signature name="Sum of two integers">
<Parameter name="arg1" ftype="Integer" access="InOut"/>
<Parameter name="arg2" ftype="Integer" access="In"/>
<Parameter name="res" ftype="String" access="Out" creturn="true"/>
</Signature>
Technical note: the variable parameter feature offered by FunctionDefinition is a purely cosmetic hack implemented in FunctionDefinition:MergeDocumentation. It is superseeded by vector parameters and will hence disappear in a future implementation. Definition at line 220 of file cfl_functions.h.
Constructor & Destructor Documentation◆ Signature() [1/2]
Constructor. Definition at line 151 of file cfl_functions.cpp. ◆ Signature() [2/2]
Copy constructor. Definition at line 154 of file cfl_functions.cpp. ◆ ~Signature()
Destructor. Definition at line 234 of file cfl_functions.h. Member Function Documentation◆ Append()
Append positional parameter.
Definition at line 222 of file cfl_functions.cpp. ◆ At() [1/2]
Get parameter type by position.
Definition at line 198 of file cfl_functions.cpp. ◆ At() [2/2]
Set parameter type by position.
Definition at line 210 of file cfl_functions.cpp. ◆ Clear()
◆ DoAssign()
Std faudes type interface: assignment.
Definition at line 160 of file cfl_functions.cpp. ◆ DoEqual()
Std faudes type interface: test equality.
Definition at line 167 of file cfl_functions.cpp. ◆ DoRead()
Read signature from from TokenReader. The section is hardcoded to "Signature", context is ignored.
Reimplemented from faudes::Type. Definition at line 258 of file cfl_functions.cpp. ◆ DoWrite()
Write configuration data of this object to TokenWriter. The section is hardcoded to "Signature", context is ignored.
Reimplemented from faudes::Type. Definition at line 229 of file cfl_functions.cpp. ◆ Name() [1/2]
Set signature name.
Reimplemented from faudes::Type. Definition at line 188 of file cfl_functions.cpp. ◆ Name() [2/2]
Return signature name.
Reimplemented from faudes::Type. Definition at line 183 of file cfl_functions.cpp. ◆ Size()
Member Data Documentation◆ mName
Variable to store name. Definition at line 355 of file cfl_functions.h. ◆ mParameters
Vector of Parameter-objects. Definition at line 358 of file cfl_functions.h. The documentation for this class was generated from the following files: libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |