#include <jdxtypes.h>

Public Member Functions | |
| JDXenum () | |
| JDXenum (const STD_string &first_entry, const STD_string &name="", bool userParameter=true, compatMode mode=notBroken, parameterMode parameter_mode=edit, const STD_string &parx_equivalent="") | |
| JDXenum (const JDXenum &je) | |
| JDXenum & | operator= (const char *item) |
| JDXenum & | operator= (const STD_string &item) |
| JDXenum & | operator= (int item) |
| JDXenum & | operator= (const JDXenum &je) |
| JDXenum & | add_item (const STD_string &item, int index=-1) |
| JDXenum & | set_actual (const STD_string &item) |
| JDXenum & | set_actual (int index) |
| JDXenum & | 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 |
| JDXenum & | set_item_index (unsigned int index) |
| bool | parsevalstring (const STD_string &parstring) |
| STD_string | printvalstring () const |
| svector | get_alternatives () const |
| STD_string | get_parx_code (parxCodeType type, const ParxEquiv &equiv) const |
| ParxEquiv | get_parx_equiv () const |
| const char * | get_typeInfo () const |
| JcampDxClass * | create_copy () const |
Public Member Functions inherited from JcampDxClass | |
| virtual STD_string | print () const |
| virtual STD_ostream & | print2stream (STD_ostream &os) const |
| virtual bool | parse (STD_string &parstring) |
| virtual int | load (const STD_string &filename) |
| virtual int | write (const STD_string &filename) const |
| virtual JcampDxClass & | set_compatmode (compatMode compat_mode) |
| virtual compatMode | get_compatmode () const |
| virtual double | get_minval () const |
| virtual double | get_maxval () const |
| bool | has_minmax () const |
| JcampDxClass & | set_userDefParameter (bool userDef) |
| bool | isUserDefParameter () const |
| const STD_string & | get_description () const |
| JcampDxClass & | set_description (const STD_string &descr) |
| const STD_string & | get_unit () const |
| JcampDxClass & | set_unit (const STD_string &un) |
| virtual parameterMode | get_parmode () const |
| virtual JcampDxClass & | set_parmode (parameterMode parameter_mode) |
| virtual fileMode | get_filemode () const |
| virtual JcampDxClass & | set_filemode (fileMode file_mode) |
| virtual GuiProps | get_gui_props () const |
| virtual JcampDxClass & | set_gui_props (const GuiProps &) |
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) |
JCAMP-DX class to represent enumerations
Definition at line 187 of file jdxtypes.h.
|
inline |
Default constructor
Definition at line 194 of file jdxtypes.h.
| JDXenum::JDXenum | ( | const STD_string & | first_entry, |
| const STD_string & | name = "", |
||
| bool | userParameter = true, |
||
| compatMode | mode = notBroken, |
||
| parameterMode | parameter_mode = edit, |
||
| const STD_string & | parx_equivalent = "" |
||
| ) |
Constructor with the following arguments:
|
inline |
Copy constructor
Definition at line 212 of file jdxtypes.h.
| JDXenum& JDXenum::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.
| JDXenum& JDXenum::clear | ( | ) |
Clears the list of items in the enumeration
|
inlinevirtual |
Returns a deep copy of the parameter
Implements JcampDxClass.
Definition at line 326 of file jdxtypes.h.
|
virtual |
Returns possible alternative values of the parameter, i.e. the item strings of an enum
Reimplemented from JcampDxClass.
| const STD_string& JDXenum::get_item | ( | unsigned int | index | ) | const |
Returns the item at the position 'index' in the label-index map
| unsigned int JDXenum::get_item_index | ( | ) | const |
Returns the current position in the label-index map
|
virtual |
Returns C code that can be used together with the PARX(Bruker) compiler.
Reimplemented from JcampDxClass.
|
virtual |
Returns the name and scaling of an equivalent parameter in PARX. Code for automatic mapping to the PARX parameter space can be generated using the function get_parx_code().
Reimplemented from JcampDxClass.
|
inlinevirtual |
Returns a string describing the type of the parameter
Implements JcampDxClass.
Definition at line 325 of file jdxtypes.h.
|
inline |
Returns the number of items in the enumeration
Definition at line 301 of file jdxtypes.h.
| JDXenum::operator int | ( | ) | const |
type conversion operator of the current value of the enumeration
| JDXenum::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 285 of file jdxtypes.h.
|
inline |
Compares the current value with s for inequality
Definition at line 290 of file jdxtypes.h.
|
inline |
Compares the current index with i for inequality
Definition at line 295 of file jdxtypes.h.
|
inline |
Sets the current value of the enumeration to the given item
Definition at line 218 of file jdxtypes.h.
|
inline |
Sets the current value of the enumeration to the given item
Definition at line 223 of file jdxtypes.h.
|
inline |
Sets the current value of the enumeration to the given item
Definition at line 228 of file jdxtypes.h.
|
inline |
Compares the current value with s for equality
Definition at line 270 of file jdxtypes.h.
|
inline |
Compares the current value with s for equality
Definition at line 275 of file jdxtypes.h.
|
inline |
Compares the current index with i for equality
Definition at line 280 of file jdxtypes.h.
|
virtual |
Parses and assigns the value in the given string
Implements JcampDxClass.
|
virtual |
Returns the value of the parameter as a string
Implements JcampDxClass.
| JDXenum& JDXenum::set_actual | ( | const STD_string & | item | ) |
Sets the current value of the enumeration to the given item
| JDXenum& JDXenum::set_actual | ( | int | index | ) |
Sets the current value of the enumeration to the given item
| JDXenum& JDXenum::set_item_index | ( | unsigned int | index | ) |
Sets the current position 'index' in the label-index map
1.8.1.2