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

#include <jdxtypes.h>

Inheritance diagram for JDXbool:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 JDXbool ()
 JDXbool (bool flag, const STD_string &name="", bool userParameter=true, compatMode mode=notBroken, parameterMode parameter_mode=edit, const STD_string &parx_equivalent="")
 JDXbool (const JDXbool &jb)
JDXbooloperator= (bool flag)
JDXbooloperator= (const STD_string &s)
JDXbooloperator= (const JDXbool &jb)
 operator bool () const
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


Detailed Description

JCAMP-DX class for representing Boolean values

Definition at line 117 of file jdxtypes.h.


Constructor & Destructor Documentation

JDXbool::JDXbool (  )  [inline]

Default constructor

Definition at line 124 of file jdxtypes.h.

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

Constructor with the following arguments:

  • flag: Initial value for the Boolean value
  • 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

JDXbool::JDXbool ( const JDXbool jb  )  [inline]

Copy constructor

Definition at line 143 of file jdxtypes.h.


Member Function Documentation

JDXbool& JDXbool::operator= ( bool  flag  )  [inline]

Assigns the value of flag to the parameter

Definition at line 148 of file jdxtypes.h.

JDXbool& JDXbool::operator= ( const STD_string &  s  )  [inline]

Assigns the value of s to the parameter, s may contain "yes" or "true" (upper- or lowercase) to indicate a value of true, otherwise false

Definition at line 154 of file jdxtypes.h.

JDXbool& JDXbool::operator= ( const JDXbool jb  ) 

Copy assignment

JDXbool::operator bool (  )  const [inline]

type conversion operator of the current value of the parameter

Definition at line 164 of file jdxtypes.h.

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

Parses and assigns the value in the given string

Implements JcampDxClass.

STD_string JDXbool::printvalstring (  )  const [virtual]

Returns the value of the parameter as a string

Implements JcampDxClass.

STD_string JDXbool::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 JDXbool::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 170 of file jdxtypes.h.

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

Returns a string describing the type of the parameter

Implements JcampDxClass.

Definition at line 171 of file jdxtypes.h.

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

Returns a deep copy of the parameter

Implements JcampDxClass.

Definition at line 172 of file jdxtypes.h.


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

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