The representation of the arguments in the Meta repository.
More...
#include <OGF/gom/reflection/meta_arg.h>
The representation of the arguments in the Meta repository.
Definition at line 60 of file meta_arg.h.
◆ MetaArg() [1/2]
OGF::MetaArg::MetaArg |
( |
const std::string & |
name, |
|
|
const std::string & |
type_name |
|
) |
| |
Constructs a new MetaArg.
- Parameters
-
[in] | name | name of the argument |
[in] | type_name | C++ type name of the argument |
◆ MetaArg() [2/2]
OGF::MetaArg::MetaArg |
( |
const std::string & |
name, |
|
|
MetaType * |
type |
|
) |
| |
Constructs a new MetaArg.
- Parameters
-
[in] | name | name of the argument |
[in] | type | pointer to the MetaType of the argument |
◆ default_value() [1/2]
Any& OGF::MetaArg::default_value |
( |
| ) |
|
|
inline |
Gets the default value of an argument.
- Returns
- a modifiable reference to an Any with the default value of the argument
Definition at line 122 of file meta_arg.h.
◆ default_value() [2/2]
const Any& OGF::MetaArg::default_value |
( |
| ) |
const |
|
inline |
Gets the default value of an argument.
- Returns
- a const reference to an Any with the default value of the argument
Definition at line 113 of file meta_arg.h.
◆ has_default_value()
bool OGF::MetaArg::has_default_value |
( |
| ) |
const |
|
inline |
Tests whether the argument has a default value.
- Return values
-
true | if the argument has a default value |
false | otherwise |
Definition at line 104 of file meta_arg.h.
◆ name()
const std::string& OGF::MetaArg::name |
( |
| ) |
const |
|
inline |
Gets the name.
- Returns
- the name of the argument
Definition at line 81 of file meta_arg.h.
◆ type()
Gets the type.
- Returns
- a pointer to the MetaType of the argument
◆ type_name()
const std::string& OGF::MetaArg::type_name |
( |
| ) |
const |
|
inline |
Gets the type name name.
- Returns
- the C++ type name of the argument
Definition at line 89 of file meta_arg.h.
The documentation for this class was generated from the following file: