ODIN
|
#include <ldrarrays.h>
Public Member Functions | |
LDRarray () | |
LDRarray (const A &a, const STD_string &name="") | |
LDRarray (const LDRarray< A, J > &ja) | |
LDRarray< A, J > & | operator= (const A &a) |
LDRarray< A, J > & | operator= (const J &jv) |
LDRarray< A, J > & | operator= (const LDRarray< A, J > &ja) |
STD_ostream & | print2stream (STD_ostream &os, const LDRserBase &serializer) const |
STD_string | printvalstring (const LDRserBase *ser=0) const |
bool | parsevalstring (const STD_string &parstring, const LDRserBase *ser=0) |
STD_string | get_parx_code (parxCodeType type) const |
GuiProps | get_gui_props () const |
LDRbase & | set_gui_props (const GuiProps &gp) |
STD_string | get_typeInfo (bool parx_equivtype=false) const |
LDRbase * | create_copy () const |
int | write (const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const |
int | load (const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) |
Public Member Functions inherited from LDRbase | |
virtual STD_string | print (const LDRserBase &serializer=LDRserJDX()) const |
virtual bool | parse (STD_string &parstring, 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) |
virtual svector | get_alternatives () const |
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) |
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) template class for representing multi-dimensional arrays
Definition at line 42 of file ldrarrays.h.
Default constructor
Definition at line 49 of file ldrarrays.h.
LDRarray< A, J >::LDRarray | ( | const A & | a, |
const STD_string & | name = "" |
||
) |
Constructor with the following arguments:
Assignment from scalar, i.e. fill all elements with this value
Copy constructor
Definition at line 66 of file ldrarrays.h.
Returns the properties of axis display in the GUI, only useful for LDRarrays
Reimplemented from LDRbase.
Definition at line 89 of file ldrarrays.h.
|
virtual |
Returns C code that can be used together with the PARX(Bruker) compiler
Reimplemented from LDRbase.
|
virtual |
Returns a string describing the type of the parameter. If 'parx_equivtype' is 'true', returns the equivalent PARX parameter type
Implements LDRbase.
|
inlinevirtual |
Loads the parameter(s) from a file using format 'serializer'. 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 LDRbase.
Definition at line 99 of file ldrarrays.h.
Assignment operator from an array
Assignment operator from scalar, i.e. fill all elements with this value
Definition at line 76 of file ldrarrays.h.
LDRarray<A,J>& LDRarray< A, J >::operator= | ( | const LDRarray< A, J > & | ja | ) |
Copy assignment
|
virtual |
Parses and assigns the value in the given string, optionally using format 'ser'
Implements LDRbase.
|
virtual |
Passes the parameter in ASCII format to the ostream 'os' using format 'serializer'
Reimplemented from LDRbase.
|
virtual |
Returns the value of the parameter as a string, optionally using format 'ser'
Implements LDRbase.
|
inlinevirtual |
Sets the properties of axis display in the GUI, only useful for LDRarrays
Reimplemented from LDRbase.
Definition at line 90 of file ldrarrays.h.
|
inlinevirtual |
Writes the parameter(s) to file using format 'serializer'. 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 LDRbase.
Definition at line 98 of file ldrarrays.h.