|
ODIN
|
#include <ldrtypes.h>

Public Member Functions | |
| LDRenum () | |
| LDRenum (const STD_string &first_entry, const STD_string &name="") | |
| LDRenum (const LDRenum &je) | |
| LDRenum & | operator= (const char *item) |
| LDRenum & | operator= (const STD_string &item) |
| LDRenum & | operator= (int item) |
| LDRenum & | operator= (const LDRenum &je) |
| LDRenum & | add_item (const STD_string &item, int index=-1) |
| LDRenum & | set_actual (const STD_string &item) |
| LDRenum & | set_actual (int index) |
| LDRenum & | clear () |
| operator int () const | |
| operator STD_string () const | |
| bool | operator== (const STD_string &s) const |
| bool | operator== (const char *s) const |
| bool | operator== (int i) const |
| bool | operator!= (const STD_string &s) const |
| bool | operator!= (const char *s) const |
| bool | operator!= (int i) const |
| unsigned int | n_items () const |
| const STD_string & | get_item (unsigned int index) const |
| unsigned int | get_item_index () const |
| LDRenum & | set_item_index (unsigned int index) |
| bool | parsevalstring (const STD_string &parstring, const LDRserBase *ser=0) |
| STD_string | printvalstring (const LDRserBase *ser=0) const |
| svector | get_alternatives () const |
| STD_string | get_typeInfo (bool parx_equivtype=false) const |
| LDRbase * | create_copy () const |
Public Member Functions inherited from LDRbase | |
| virtual STD_string | print (const LDRserBase &serializer=LDRserJDX()) const |
| virtual STD_ostream & | print2stream (STD_ostream &os, const LDRserBase &serializer) const |
| virtual int | write (const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const |
| virtual bool | parse (STD_string &parstring, const LDRserBase &serializer=LDRserJDX()) |
| virtual int | load (const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) |
| virtual double | get_minval () const |
| virtual double | get_maxval () const |
| bool | has_minmax () const |
| const STD_string & | get_description () const |
| LDRbase & | set_description (const STD_string &descr) |
| const STD_string & | get_unit () const |
| LDRbase & | set_unit (const STD_string &un) |
| virtual parameterMode | get_parmode () const |
| virtual LDRbase & | set_parmode (parameterMode parameter_mode) |
| virtual fileMode | get_filemode () const |
| virtual LDRbase & | set_filemode (fileMode file_mode) |
| virtual GuiProps | get_gui_props () const |
| virtual LDRbase & | set_gui_props (const GuiProps &) |
| virtual STD_string | get_parx_code (parxCodeType type) const |
| JcampDxProps | get_jdx_props () const |
| LDRbase & | set_jdx_props (const JcampDxProps &jp) |
Public Member Functions inherited from Labeled | |
| Labeled (const STD_string &label="unnamed") | |
| Labeled & | set_label (const STD_string &label) |
| const STD_string & | get_label () const |
| Labeled & | operator= (const Labeled &l) |
Labeled Data Record (LDR) class to represent enumerations
Definition at line 168 of file ldrtypes.h.
|
inline |
Default constructor
Definition at line 175 of file ldrtypes.h.
| LDRenum::LDRenum | ( | const STD_string & | first_entry, |
| const STD_string & | name = "" |
||
| ) |
Constructor with the following arguments:
|
inline |
Copy constructor
Definition at line 187 of file ldrtypes.h.
| LDRenum& LDRenum::add_item | ( | const STD_string & | item, |
| int | index = -1 |
||
| ) |
Appends an item to the the list of items in the enumeration. If index is non-negative, the item will be inserted at the position indicated by index.
| LDRenum& LDRenum::clear | ( | ) |
Clears the list of items in the enumeration
|
inlinevirtual |
|
virtual |
Returns possible alternative values of the parameter, i.e. the item strings of an enum
Reimplemented from LDRbase.
| const STD_string& LDRenum::get_item | ( | unsigned int | index | ) | const |
Returns the item at the position 'index' in the label-index map
| unsigned int LDRenum::get_item_index | ( | ) | const |
Returns the current position in the label-index map
|
inlinevirtual |
Returns a string describing the type of the parameter. If 'parx_equivtype' is 'true', returns the equivalent PARX parameter type
Implements LDRbase.
Definition at line 298 of file ldrtypes.h.
|
inline |
Returns the number of items in the enumeration
Definition at line 276 of file ldrtypes.h.
| LDRenum::operator int | ( | ) | const |
type conversion operator of the current value of the enumeration
| LDRenum::operator STD_string | ( | ) | const |
type conversion operator of the current value of the enumeration
|
inline |
Compares the current value with s for inequality
Definition at line 265 of file ldrtypes.h.
|
inline |
Compares the current value with s for inequality
Definition at line 260 of file ldrtypes.h.
|
inline |
Compares the current index with i for inequality
Definition at line 270 of file ldrtypes.h.
|
inline |
Sets the current value of the enumeration to the given item
Definition at line 193 of file ldrtypes.h.
|
inline |
Sets the current value of the enumeration to the given item
Definition at line 198 of file ldrtypes.h.
|
inline |
Sets the current value of the enumeration to the given item
Definition at line 203 of file ldrtypes.h.
|
inline |
Compares the current value with s for equality
Definition at line 250 of file ldrtypes.h.
|
inline |
Compares the current value with s for equality
Definition at line 245 of file ldrtypes.h.
|
inline |
Compares the current index with i for equality
Definition at line 255 of file ldrtypes.h.
|
virtual |
Parses and assigns the value in the given string, optionally using format 'ser'
Implements LDRbase.
|
virtual |
Returns the value of the parameter as a string, optionally using format 'ser'
Implements LDRbase.
| LDRenum& LDRenum::set_actual | ( | const STD_string & | item | ) |
Sets the current value of the enumeration to the given item
| LDRenum& LDRenum::set_actual | ( | int | index | ) |
Sets the current value of the enumeration to the given item
| LDRenum& LDRenum::set_item_index | ( | unsigned int | index | ) |
Sets the current position 'index' in the label-index map