Public Member Functions | Public Attributes

alize::FeatureFlags Class Reference

#include <FeatureFlags.h>

Inheritance diagram for alize::FeatureFlags:
Inheritance graph
[legend]
Collaboration diagram for alize::FeatureFlags:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FeatureFlags (const String &s)
 FeatureFlags ()
 FeatureFlags (const FeatureFlags &)
bool operator== (const FeatureFlags &) const
bool operator!= (const FeatureFlags &) const
virtual ~FeatureFlags ()
void set (const String &flags)
unsigned long toSPro4 () const
unsigned int toSPro3 () const
String getString () const
virtual String getClassName () const
virtual String toString () const

Public Attributes

bool useS
bool useE
bool useD
bool useDE
bool useDD
bool useDDE

Detailed Description

Class for gathering flags using to create a Feature object.

Author:
Frederic Wils frederic.wils@lia.univ-avignon.fr
Version:
1.0
Date:
2003

Definition at line 78 of file FeatureFlags.h.


Constructor & Destructor Documentation

FeatureFlags::FeatureFlags ( const String s ) [explicit]

Creates a FeatureFlags object and sets the flags

Parameters:
sa string that contains the flags
Example : set("010-10") : sets useS to false, useE to true, useD to false, useDD to true, useDDE to false. useDE does not change
Exceptions:
Exceptionif one of the caracters is not "0", "1" or "-"

Definition at line 65 of file FeatureFlags.cpp.

FeatureFlags::FeatureFlags (  ) [explicit]

Definition at line 68 of file FeatureFlags.cpp.

FeatureFlags::FeatureFlags ( const FeatureFlags flag )

Definition at line 71 of file FeatureFlags.cpp.

FeatureFlags::~FeatureFlags (  ) [virtual]

Definition at line 210 of file FeatureFlags.cpp.


Member Function Documentation

String FeatureFlags::getClassName (  ) const [virtual]

Returns the name of the class

Returns:
the name of the class of the object as a String

Implements alize::Object.

Definition at line 197 of file FeatureFlags.cpp.

String FeatureFlags::getString (  ) const

Gets a representation of the flags in a string

Returns:
a string that contains the flags (ex: "100101") 1 = true, 0 = false

Definition at line 184 of file FeatureFlags.cpp.

References useD, useDD, useDDE, useDE, useE, and useS.

Referenced by alize::FeatureFileWriter::writeFeature().

bool FeatureFlags::operator!= ( const FeatureFlags flags ) const

Definition at line 85 of file FeatureFlags.cpp.

bool FeatureFlags::operator== ( const FeatureFlags flags ) const

Definition at line 75 of file FeatureFlags.cpp.

References useD, useDD, useDDE, useDE, useE, and useS.

void FeatureFlags::set ( const String flags )

Sets the flags
Example : set("010-10") : sets useS to false, useE to true, useD to false, useDD to true, useDDE to false. useDE does not change

Exceptions:
Exceptionif one of the caracters is not "0", "1" or "-"

Definition at line 88 of file FeatureFlags.cpp.

References alize::String::c_str(), useD, useDD, useDDE, useDE, useE, and useS.

Referenced by alize::Config::setParam().

unsigned int FeatureFlags::toSPro3 (  ) const

Returns the flags in a SPRO3 format

Returns:
the flags in a unsigned int value
Exceptions:
ifconversion cannot be done

Definition at line 140 of file FeatureFlags.cpp.

References useD, useDD, useDE, useE, WITHA, WITHD, WITHE, and WITHNODE.

Referenced by alize::FeatureFileWriter::writeFeature().

unsigned long FeatureFlags::toSPro4 (  ) const

Returns the flags in a SPRO4 format

Returns:
the flags in a unsigned long value
Exceptions:
ifconversion cannot be done

Definition at line 162 of file FeatureFlags.cpp.

References useD, useDD, useDE, useE, WITHA, WITHD, WITHE, and WITHNODE.

String FeatureFlags::toString (  ) const [virtual]

This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object

Returns:
a description of the object

Reimplemented from alize::Object.

Definition at line 199 of file FeatureFlags.cpp.

References useD, useDD, useDDE, useDE, useE, useS, and alize::String::valueOf().


Member Data Documentation

delta

Definition at line 130 of file FeatureFlags.h.

Referenced by getString(), operator==(), set(), toSPro3(), toSPro4(), and toString().

delta delta

Definition at line 132 of file FeatureFlags.h.

Referenced by getString(), operator==(), set(), toSPro3(), toSPro4(), and toString().

delta delta energy

Definition at line 133 of file FeatureFlags.h.

Referenced by getString(), operator==(), set(), and toString().

delta energy

Definition at line 131 of file FeatureFlags.h.

Referenced by getString(), operator==(), set(), toSPro3(), toSPro4(), and toString().

energy

Definition at line 129 of file FeatureFlags.h.

Referenced by getString(), operator==(), set(), toSPro3(), toSPro4(), and toString().

static

Definition at line 128 of file FeatureFlags.h.

Referenced by getString(), operator==(), set(), and toString().


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