#include <jdxarrays.h>

Public Member Functions | |
| JDXarray () | |
| JDXarray (const A &a, const STD_string &name="", bool userParameter=true, compatMode mode=notBroken, parameterMode parameter_mode=edit, const STD_string &parx_equivalent="", float parx_assign_factor=1.0, float parx_assign_offset=0.0) | |
| JDXarray (const JDXarray< A, J > &ja) | |
| JDXarray< A, J > & | operator= (const A &a) |
| JDXarray< A, J > & | operator= (const J &jv) |
| JDXarray< A, J > & | operator= (const JDXarray< A, J > &ja) |
| STD_ostream & | print2stream (STD_ostream &os) const |
| STD_string | printvalstring () const |
| bool | parsevalstring (const STD_string &parstring) |
| STD_string | get_parx_code (parxCodeType type, const ParxEquiv &equiv) const |
| ParxEquiv | get_parx_equiv () const |
| GuiProps | get_gui_props () const |
| JcampDxClass & | set_gui_props (const GuiProps &gp) |
| const char * | get_typeInfo () const |
| JcampDxClass * | create_copy () const |
| int | write (const STD_string &filename) const |
| int | load (const STD_string &filename) |
Public Member Functions inherited from JcampDxClass | |
| virtual STD_string | print () const |
| virtual bool | parse (STD_string &parstring) |
| 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) |
| virtual svector | get_alternatives () const |
| 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) |
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 template class for representing multi-dimensional arrays
Definition at line 42 of file jdxarrays.h.
Default constructor
Definition at line 49 of file jdxarrays.h.
| JDXarray< A, J >::JDXarray | ( | const A & | a, |
| const STD_string & | name = "", |
||
| bool | userParameter = true, |
||
| compatMode | mode = notBroken, |
||
| parameterMode | parameter_mode = edit, |
||
| const STD_string & | parx_equivalent = "", |
||
| float | parx_assign_factor = 1.0, |
||
| float | parx_assign_offset = 0.0 |
||
| ) |
Constructor with the following arguments:
Assignment from scalar, i.e. fill all elements with this value Copy constructor
Definition at line 75 of file jdxarrays.h.
|
inlinevirtual |
Returns a deep copy of the parameter
Implements JcampDxClass.
Reimplemented in JDXtriple.
Definition at line 102 of file jdxarrays.h.
Returns the properties of axis display in the GUI, only useful for JDXarrays
Reimplemented from JcampDxClass.
Definition at line 99 of file jdxarrays.h.
|
virtual |
Returns C code that can be used together with the PARX(Bruker) compiler.
Reimplemented from JcampDxClass.
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.
Definition at line 98 of file jdxarrays.h.
|
virtual |
Returns a string describing the type of the parameter
Implements JcampDxClass.
Reimplemented in JDXtriple.
|
inlinevirtual |
Loads the parameter(s) from a JCAMP-DX file. In case of calling this function of a single paramter, the file is searched for this parameter and the value is assigned. In case of a parameter block, all parameter values are taken from the file. The return value is the number of parameters which are successfully parsed. If an error occurs, -1 is returned.
Reimplemented from JcampDxClass.
Definition at line 109 of file jdxarrays.h.
Assignment operator from an array
Assignment operator from scalar, i.e. fill all elements with this value
Definition at line 85 of file jdxarrays.h.
| JDXarray<A,J>& JDXarray< A, J >::operator= | ( | const JDXarray< A, J > & | ja | ) |
Copy assignment
|
virtual |
Parses and assigns the value in the given string
Implements JcampDxClass.
|
virtual |
Passes the parameter in ASCII format to the ostream 'os'
Reimplemented from JcampDxClass.
|
virtual |
Returns the value of the parameter as a string
Implements JcampDxClass.
|
inlinevirtual |
Sets the properties of axis display in the GUI, only useful for JDXarrays
Reimplemented from JcampDxClass.
Definition at line 100 of file jdxarrays.h.
|
inlinevirtual |
Writes the parameter(s) to a JCAMP-DX file. In case of calling this function of a single paramter, the file will consist of only this parameter. In case of a parameter block, all parameter values are written to the file. If an error occurs, -1 is returned.
Reimplemented from JcampDxClass.
Definition at line 108 of file jdxarrays.h.
1.8.1.2