Detailed Description

Elementary type

Definition at line 396 of file cfl_elementary.h.

#include <cfl_elementary.h>

Public Member Functions

 Boolean (void)
 
 Boolean (bool val)
 
 ~Boolean (void)
 
virtual BooleanNew (void) const
 
virtual BooleanNewCpy (void) const
 
virtual const BooleanCast (const Type *pOther) const
 
void CValue (bool val)
 
bool CValue (void) const
 
bool * CReference (void)
 
Booleanoperator= (const bool &bbool)
 
Booleanoperator= (const Boolean &cobool)
 
 operator bool () const
 
void DoWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
void DoRead (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 
Typeoperator= (const Type &rSrc)
 
Typeoperator= (Type &&rSrc)
 
- Public Member Functions inherited from faudes::Type
 Type (void)
 
 Type (const Type &rType)
 
virtual ~Type (void)
 
virtual void Clear (void)
 
virtual bool IsDefault (void) const
 
virtual TypeCopy (const Type &rSrc)
 
virtual TypeMove (Type &rSrc)
 
Typeoperator= (const Type &rSrc)
 
Typeoperator= (Type &&rSrc)
 
virtual bool Equal (const Type &rOther) const
 
bool operator== (const Type &rOther) const
 
bool operator!= (const Type &rOther) const
 
virtual void Name (const std::string &rName)
 
virtual const std::string & Name (void) const
 
virtual const std::string & TypeName (void) const
 
void Write (const Type *pContext=0) const
 
void Write (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void Write (const std::string &pFileName, std::ios::openmode openmode) const
 
void Write (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void XWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const
 
void XWrite (const Type *pContext=0) const
 
void XWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToString (const std::string &rLabel="", const Type *pContext=0) const
 
std::string ToText (const std::string &rLabel="", const Type *pContext=0) const
 
void DWrite (const Type *pContext=0) const
 
void DWrite (const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0, std::ios::openmode openmode=std::ios::out|std::ios::trunc) const
 
void DWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
void SWrite (TokenWriter &rTw) const
 
void SWrite (void) const
 
std::string ToSText (void) const
 
void Read (const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
 
void FromString (const std::string &rString, const std::string &rLabel="", const Type *pContext=0)
 
void Read (TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0)
 

Protected Attributes

bool mCBool
 

Additional Inherited Members

- Protected Member Functions inherited from faudes::Type
void DoCopy (const Type &rSrc)
 
void DoMove (Type &rSrc)
 
bool DoEqual (const Type &rOther) const
 
virtual void DoXWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoDWrite (TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const
 
virtual void DoSWrite (TokenWriter &rTw) const
 
virtual const TypeDefinitionTypeDefinitionp (void) const
 
virtual Token XBeginTag (const std::string &rLabel="", const std::string &rFallbackLabel="") const
 

Constructor & Destructor Documentation

◆ Boolean() [1/2]

faudes::Boolean::Boolean ( void  )

Constructor

Definition at line 223 of file cfl_elementary.cpp.

◆ Boolean() [2/2]

faudes::Boolean::Boolean ( bool  val)

Constructor provided with initial value.

Parameters
valInitial value. (bool)

Definition at line 228 of file cfl_elementary.cpp.

◆ ~Boolean()

faudes::Boolean::~Boolean ( void  )
inline

Destructor

Definition at line 414 of file cfl_elementary.h.

Member Function Documentation

◆ Cast()

const Boolean * faudes::Boolean::Cast ( const Type pOther) const
virtual

Cast the other object to Boolean. Returns NULL if the cast is not possible.

Parameters
pOtherPointer to object to cast.
Returns
Pointer to Boolean instance, or NULL

Reimplemented from faudes::Type.

Definition at line 243 of file cfl_elementary.cpp.

◆ CReference()

bool * faudes::Boolean::CReference ( void  )

Get reference.

Returns
Reference to c value.

Definition at line 258 of file cfl_elementary.cpp.

◆ CValue() [1/2]

void faudes::Boolean::CValue ( bool  val)

Set value.

Parameters
valValue to be set.

Definition at line 248 of file cfl_elementary.cpp.

◆ CValue() [2/2]

bool faudes::Boolean::CValue ( void  ) const

Get value.

Returns
Value of object. (bool)

Definition at line 253 of file cfl_elementary.cpp.

◆ DoRead()

void faudes::Boolean::DoRead ( TokenReader rTr,
const std::string &  rLabel = "",
const Type pContext = 0 
)
virtual

Read data from TokenReader.

NOTE: 0 = false 1 = true

Parameters
rTrReference to TokenReader.
rLabelSection to read.
pContextRead context to provide contextual information (ignored)
Exceptions
Exception
  • Token mismatch
  • IO Error

Reimplemented from faudes::Type.

Definition at line 280 of file cfl_elementary.cpp.

◆ DoWrite()

void faudes::Boolean::DoWrite ( TokenWriter rTw,
const std::string &  rLabel = "",
const Type pContext = 0 
) const
virtual

Write data to Tokenwriter.

NOTE: 0 = false 1 = true

Parameters
rTwReference to TokenWriter.
rLabelLabel of section to write.
pContextWrite context to provide contextual information (ignored)
Exceptions
Exception
  • IO Error

Reimplemented from faudes::Type.

Definition at line 263 of file cfl_elementary.cpp.

◆ New()

Boolean * faudes::Boolean::New ( void  ) const
virtual

Construct on heap. Create new Boolean instance and return pointer.

NOTE: Calling function takes control.

Returns
Pointer to Boolean instance.

Reimplemented from faudes::Type.

Definition at line 233 of file cfl_elementary.cpp.

◆ NewCpy()

Boolean * faudes::Boolean::NewCpy ( void  ) const
virtual

Construct copy on heap. Create new Boolean instance and return pointer.

Returns
Pointer to Boolean instance.

Reimplemented from faudes::Type.

Definition at line 238 of file cfl_elementary.cpp.

◆ operator bool()

faudes::Boolean::operator bool ( ) const
inline

Conversion to C++ type bool

Definition at line 494 of file cfl_elementary.h.

◆ operator=() [1/4]

Boolean & faudes::Boolean::operator= ( const bool &  bbool)
inline

Copyment operator.

Definition at line 477 of file cfl_elementary.h.

◆ operator=() [2/4]

Boolean & faudes::Boolean::operator= ( const Boolean cobool)
inline

Copyment operator.

Definition at line 485 of file cfl_elementary.h.

◆ operator=() [3/4]

Type & faudes::Type::operator= ( const Type rSrc)

Copy configuration data from other object. Derived classes should implement at least the signature with matching source and destination types via the DoCopy method. Additionally, one may implement variants with a base class as source, as mong as meaningul assigment is possible.

Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.

Parameters
rSrcSource to copy from
Returns
Reference to this object.

Definition at line 368 of file cfl_types.cpp.

◆ operator=() [4/4]

Type & faudes::Type::operator= ( Type &&  rSrc)

Copy configuration data from other object (destructive) Derived classes should implement at least the signature with matching source and destination types via the DoCopy method. Additionally, one may implement variants with a base class as source, as mong as meaningul assigment is possible.

Re-implementation can be done via the convenience macros FAUDES_TYPE_DECLARATION and FAUDES_TYPE_IMPLEMENTATION.

Parameters
rSrcSource to copy from
Returns
Reference to this object.

Definition at line 383 of file cfl_types.cpp.

Member Data Documentation

◆ mCBool

bool faudes::Boolean::mCBool
protected

Variable to store current value.

Definition at line 538 of file cfl_elementary.h.


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

libFAUDES 2.34e --- 2026.03.16 --- c++ api documentaion by doxygen