Public Member Functions | Friends | List of all members

#include <ldrtypes.h>

Inheritance diagram for LDRstring:
Inheritance graph
[legend]

Public Member Functions

 LDRstring ()
 
 LDRstring (const STD_string &ss, const STD_string &name="")
 
 LDRstring (int i, const char c=' ')
 
 LDRstring (const char *charptr)
 
 LDRstring (const LDRstring &str)
 
LDRstringoperator= (const STD_string &ss)
 
LDRstringoperator= (const char *charptr)
 
LDRstringoperator= (const LDRstring &ss)
 
bool parsevalstring (const STD_string &parstring, const LDRserBase *ser=0)
 
STD_string printvalstring (const LDRserBase *ser=0) const
 
STD_string get_parx_code (parxCodeType type) const
 
STD_string get_typeInfo (bool parx_equivtype=false) const
 
LDRbasecreate_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
 
LDRbaseset_description (const STD_string &descr)
 
virtual svector get_alternatives () const
 
const STD_string & get_unit () const
 
LDRbaseset_unit (const STD_string &un)
 
virtual parameterMode get_parmode () const
 
virtual LDRbaseset_parmode (parameterMode parameter_mode)
 
virtual fileMode get_filemode () const
 
virtual LDRbaseset_filemode (fileMode file_mode)
 
virtual GuiProps get_gui_props () const
 
virtual LDRbaseset_gui_props (const GuiProps &)
 
JcampDxProps get_jdx_props () const
 
LDRbaseset_jdx_props (const JcampDxProps &jp)
 
- Public Member Functions inherited from Labeled
 Labeled (const STD_string &label="unnamed")
 
Labeledset_label (const STD_string &label)
 
const STD_string & get_label () const
 
Labeledoperator= (const Labeled &l)
 

Friends

STD_ostream & operator<< (STD_ostream &s, const LDRstring &t)
 

Detailed Description

Labeled Data Record (LDR) class for representing strings

Definition at line 36 of file ldrtypes.h.

Constructor & Destructor Documentation

§ LDRstring() [1/5]

LDRstring::LDRstring ( )
inline

Default constructor

Definition at line 43 of file ldrtypes.h.

§ LDRstring() [2/5]

LDRstring::LDRstring ( const STD_string &  ss,
const STD_string &  name = "" 
)

Constructor with the following arguments:

  • ss: Initial value for the string
  • name: The label of the parameter

§ LDRstring() [3/5]

LDRstring::LDRstring ( int  i,
const char  c = ' ' 
)
inline

Constructs a string of length i with c as their initial content

Definition at line 56 of file ldrtypes.h.

§ LDRstring() [4/5]

LDRstring::LDRstring ( const char *  charptr)
inline

Copy constructor from a C-string

Definition at line 61 of file ldrtypes.h.

§ LDRstring() [5/5]

LDRstring::LDRstring ( const LDRstring str)
inline

Copy constructor

Definition at line 66 of file ldrtypes.h.

Member Function Documentation

§ create_copy()

LDRbase* LDRstring::create_copy ( ) const
inlinevirtual

Returns a deep copy of the parameter

Implements LDRbase.

Reimplemented in LDRformula, and LDRfileName.

Definition at line 94 of file ldrtypes.h.

§ get_parx_code()

STD_string LDRstring::get_parx_code ( parxCodeType  type) const
virtual

Returns C code that can be used together with the PARX(Bruker) compiler

Reimplemented from LDRbase.

§ get_typeInfo()

STD_string LDRstring::get_typeInfo ( bool  parx_equivtype = false) const
inlinevirtual

Returns a string describing the type of the parameter. If 'parx_equivtype' is 'true', returns the equivalent PARX parameter type

Implements LDRbase.

Reimplemented in LDRformula, and LDRfileName.

Definition at line 93 of file ldrtypes.h.

§ operator=() [1/3]

LDRstring& LDRstring::operator= ( const STD_string &  ss)
inline

Assigns the string ss to the parameter

Definition at line 71 of file ldrtypes.h.

§ operator=() [2/3]

LDRstring& LDRstring::operator= ( const char *  charptr)
inline

Assigns the C-string charptr to the parameter

Definition at line 76 of file ldrtypes.h.

§ operator=() [3/3]

LDRstring& LDRstring::operator= ( const LDRstring ss)

Copy assignment

§ parsevalstring()

bool LDRstring::parsevalstring ( const STD_string &  ,
const LDRserBase ser = 0 
)
virtual

Parses and assigns the value in the given string, optionally using format 'ser'

Implements LDRbase.

Reimplemented in LDRfileName.

§ printvalstring()

STD_string LDRstring::printvalstring ( const LDRserBase ser = 0) const
virtual

Returns the value of the parameter as a string, optionally using format 'ser'

Implements LDRbase.

Friends And Related Function Documentation

§ operator<<

STD_ostream& operator<< ( STD_ostream &  s,
const LDRstring t 
)
friend

Final overrider for stream output

Definition at line 86 of file ldrtypes.h.


The documentation for this class was generated from the following file: