JDXstring Class Reference
[JCAMP-DX implementation (odinpara library)]

#include <jdxtypes.h>

Inheritance diagram for JDXstring:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 JDXstring ()
 JDXstring (const STD_string &ss, const STD_string &name="", bool userParameter=true, compatMode mode=notBroken, parameterMode parameter_mode=edit, const STD_string &parx_equivalent="")
 JDXstring (int i, const char c=' ')
 JDXstring (const char *charptr)
 JDXstring (const JDXstring &str)
JDXstringoperator= (const STD_string &ss)
JDXstringoperator= (const char *charptr)
JDXstringoperator= (const JDXstring &ss)
bool parsevalstring (const STD_string &parstring)
STD_string printvalstring () const
STD_string get_parx_code (parxCodeType type, const ParxEquiv &equiv) const
ParxEquiv get_parx_equiv () const
const char * get_typeInfo () const
JcampDxClasscreate_copy () const

Friends

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


Detailed Description

JCAMP-DX class for representing strings

Definition at line 36 of file jdxtypes.h.


Constructor & Destructor Documentation

JDXstring::JDXstring (  )  [inline]

Default constructor

Definition at line 43 of file jdxtypes.h.

JDXstring::JDXstring ( const STD_string &  ss,
const STD_string &  name = "",
bool  userParameter = true,
compatMode  mode = notBroken,
parameterMode  parameter_mode = edit,
const STD_string &  parx_equivalent = "" 
)

Constructor with the following arguments:

  • ss: Initial value for the string
  • name: The label of the JCAMP-DX parameter
  • userParameter: Whether this is a user defined JCAMP-DX parameter
  • mode: Mode for ASCII representation of strings or arrays of strings
  • parameter_mode: Mode for GUI accesibility of the parameter
  • parx_equivalent: Equivalent parameter in PARX to which this parameter will be assigned

JDXstring::JDXstring ( int  i,
const char  c = ' ' 
) [inline]

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

Definition at line 62 of file jdxtypes.h.

JDXstring::JDXstring ( const char *  charptr  )  [inline]

Copy constructor from a C-string

Definition at line 67 of file jdxtypes.h.

JDXstring::JDXstring ( const JDXstring str  )  [inline]

Copy constructor

Definition at line 72 of file jdxtypes.h.


Member Function Documentation

JDXstring& JDXstring::operator= ( const STD_string &  ss  )  [inline]

Assigns the string ss to the parameter

Reimplemented in JDXfileName, and JDXformula.

Definition at line 77 of file jdxtypes.h.

JDXstring& JDXstring::operator= ( const char *  charptr  )  [inline]

Assigns the C-string charptr to the parameter

Definition at line 82 of file jdxtypes.h.

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

Copy assignment

bool JDXstring::parsevalstring ( const STD_string &   )  [virtual]

Parses and assigns the value in the given string

Implements JcampDxClass.

Reimplemented in JDXfileName.

STD_string JDXstring::printvalstring (  )  const [virtual]

Returns the value of the parameter as a string

Implements JcampDxClass.

STD_string JDXstring::get_parx_code ( parxCodeType  type,
const ParxEquiv equiv 
) const [virtual]

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

Reimplemented from JcampDxClass.

ParxEquiv JDXstring::get_parx_equiv (  )  const [inline, 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.

Definition at line 99 of file jdxtypes.h.

const char* JDXstring::get_typeInfo (  )  const [inline, virtual]

Returns a string describing the type of the parameter

Implements JcampDxClass.

Reimplemented in JDXfileName, and JDXformula.

Definition at line 100 of file jdxtypes.h.

JcampDxClass* JDXstring::create_copy (  )  const [inline, virtual]

Returns a deep copy of the parameter

Implements JcampDxClass.

Reimplemented in JDXfileName, and JDXformula.

Definition at line 101 of file jdxtypes.h.


Friends And Related Function Documentation

STD_ostream& operator<< ( STD_ostream &  s,
const JDXstring t 
) [friend]

Final overrider for stream output

Definition at line 92 of file jdxtypes.h.


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

Generated on Wed Sep 30 15:33:07 2009 by  doxygen 1.5.6