To define the characteristics of a type before a Case of such type is instantiated.
More...
#include <TypeDescriptor.h>
To define the characteristics of a type before a Case of such type is instantiated.
- See also
- IntegerOption, StringOption
◆ TypeDescriptor() [1/2]
Libpf::Persistency::TypeDescriptor::TypeDescriptor |
( |
std::string |
name, |
|
|
std::string |
description, |
|
|
std::string |
category, |
|
|
bool |
instantiatable, |
|
|
const std::vector< IntegerOption > & |
integerOptions, |
|
|
const std::vector< StringOption > & |
stringOptions, |
|
|
const std::vector< QuantityOption > & |
quantityOptions, |
|
|
std::string |
icon |
|
) |
| |
◆ TypeDescriptor() [2/2]
◆ ~TypeDescriptor()
Libpf::Persistency::TypeDescriptor::~TypeDescriptor |
( |
void |
| ) |
|
◆ addIntegerOption()
void Libpf::Persistency::TypeDescriptor::addIntegerOption |
( |
const IntegerOption & |
option | ) |
|
◆ addQuantityOption()
void Libpf::Persistency::TypeDescriptor::addQuantityOption |
( |
const QuantityOption & |
option | ) |
|
◆ addStringOption()
void Libpf::Persistency::TypeDescriptor::addStringOption |
( |
const StringOption & |
option | ) |
|
◆ hasIntegerOption()
bool Libpf::Persistency::TypeDescriptor::hasIntegerOption |
( |
const std::string & |
name | ) |
|
- Returns
- true if an integer option with the supplied name is available
◆ hasStringOption()
bool Libpf::Persistency::TypeDescriptor::hasStringOption |
( |
const std::string & |
name | ) |
|
- Returns
- true if a string option with the supplied name is available
◆ integerOption()
const IntegerOption & Libpf::Persistency::TypeDescriptor::integerOption |
( |
const std::string & |
name | ) |
|
- Returns
- the integer option with the supplied name
- Exceptions
-
◆ json()
std::string Libpf::Persistency::TypeDescriptor::json |
( |
void |
| ) |
const |
- Returns
- UTF-8 encoded string with the JSON-serialized object
◆ stringOption()
const StringOption & Libpf::Persistency::TypeDescriptor::stringOption |
( |
const std::string & |
name | ) |
|
- Returns
- the string option with the supplied name
- Exceptions
-
◆ category_
std::string Libpf::Persistency::TypeDescriptor::category_ |
UTF-8 encoded string, one of: stream, unit, flowsheet or option.
◆ description_
std::string Libpf::Persistency::TypeDescriptor::description_ |
◆ icon_
std::string Libpf::Persistency::TypeDescriptor::icon_ |
UTF-8 encoded string with the icon name, without extension.
◆ instantiatable_
bool Libpf::Persistency::TypeDescriptor::instantiatable_ |
bool true if type is instantiable
◆ integerOptions_
std::vector<IntegerOption> Libpf::Persistency::TypeDescriptor::integerOptions_ |
supported integer options
◆ name_
std::string Libpf::Persistency::TypeDescriptor::name_ |
UTF-8 encoded string; acts as URN in the type: namespace.
◆ quantityOptions_
std::vector<QuantityOption> Libpf::Persistency::TypeDescriptor::quantityOptions_ |
supported quantity options
◆ stringOptions_
std::vector<StringOption> Libpf::Persistency::TypeDescriptor::stringOptions_ |
The documentation for this struct was generated from the following file: