OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
openjaus::hmi::DCMStateCodeBitField Class Reference

#include <DCMStateCodeBitField.h>

Inherits openjaus::model::fields::BitField.

Public Member Functions

 DCMStateCodeBitField ()
 
 ~DCMStateCodeBitField ()
 
bool setUpdown (bool value)
 
bool getUpdown (void) const
 
bool setActive (bool value)
 
bool getActive (void) const
 
bool setFlash (bool value)
 
bool getFlash (void) const
 
bool setFlashRate (long value)
 
long getFlashRate (void) const
 
uint8_t getIntegerValue (void) const
 
void setIntegerValue (uint8_t value)
 
virtual int to (system::Buffer *dst)
 Operation to. More...
 
virtual int from (system::Buffer *src)
 Operation from. More...
 
virtual int length ()
 Serializes object to internal transport buffer. More...
 
void copy (DCMStateCodeBitField &source)
 
std::string toXml (unsigned char ojIndentLevel=0) const
 
- Public Member Functions inherited from openjaus::model::fields::BitField
 BitField ()
 
virtual ~BitField ()
 
long getDefaultValue () const
 Accessor to get the value of defaultValue. More...
 
bool setDefaultValue (long defaultValue)
 Accessor to set value of defaultValue. More...
 
uint64_t getValue () const
 Accessor to get the value of value. More...
 
bool setValue (uint64_t value)
 Accessor to set value of value. More...
 
TypesUnsigned getSize () const
 Accessor to get the value of size. More...
 
bool setSize (TypesUnsigned size)
 Accessor to set value of size. More...
 
const std::vector< BitFieldItem *> & getItems () const
 Accessor to get the value of items. More...
 
bool setItems (const BitFieldItem &items)
 Accessor to set value of items. More...
 
virtual std::string toString () const
 
- Public Member Functions inherited from openjaus::model::fields::ComplexField
virtual ~ComplexField ()
 
- Public Member Functions inherited from openjaus::model::fields::Field
 Field ()
 
virtual ~Field ()
 
std::string getName () const
 Accessor to get the value of name. More...
 
bool setName (std::string name)
 Accessor to set value of name. More...
 
- Public Member Functions inherited from openjaus::system::Transportable
virtual ~Transportable ()
 
 Transportable ()
 

Protected Attributes

bool updown
 
bool active
 
bool flash
 
long flashRate
 
- Protected Attributes inherited from openjaus::model::fields::BitField
long defaultValue
 
uint64_t value
 
TypesUnsigned size
 
std::vector< BitFieldItem *> items
 
- Protected Attributes inherited from openjaus::model::fields::Field
std::string name
 

Static Protected Attributes

static const long UPDOWN_START_BIT = 0
 
static const long UPDOWN_BIT_MASK = 0x1
 
static const long ACTIVE_START_BIT = 1
 
static const long ACTIVE_BIT_MASK = 0x1
 
static const long FLASH_START_BIT = 2
 
static const long FLASH_BIT_MASK = 0x1
 
static const long FLASHRATE_START_BIT = 3
 
static const long FLASHRATE_BIT_MASK = 0x3
 
static const long FLASHRATE_MIN_VALUE = 0
 
static const long FLASHRATE_MAX_VALUE = 3
 

Constructor & Destructor Documentation

§ DCMStateCodeBitField()

openjaus::hmi::DCMStateCodeBitField::DCMStateCodeBitField ( )

§ ~DCMStateCodeBitField()

openjaus::hmi::DCMStateCodeBitField::~DCMStateCodeBitField ( )

Member Function Documentation

§ copy()

void openjaus::hmi::DCMStateCodeBitField::copy ( DCMStateCodeBitField source)

§ from()

int openjaus::hmi::DCMStateCodeBitField::from ( system::Buffer src)
virtual
Parameters
src

Reimplemented from openjaus::model::fields::BitField.

§ getActive()

bool openjaus::hmi::DCMStateCodeBitField::getActive ( void  ) const

§ getFlash()

bool openjaus::hmi::DCMStateCodeBitField::getFlash ( void  ) const

§ getFlashRate()

long openjaus::hmi::DCMStateCodeBitField::getFlashRate ( void  ) const

§ getIntegerValue()

uint8_t openjaus::hmi::DCMStateCodeBitField::getIntegerValue ( void  ) const

§ getUpdown()

bool openjaus::hmi::DCMStateCodeBitField::getUpdown ( void  ) const

§ length()

int openjaus::hmi::DCMStateCodeBitField::length ( )
virtual

Reimplemented from openjaus::model::fields::BitField.

§ setActive()

bool openjaus::hmi::DCMStateCodeBitField::setActive ( bool  value)

§ setFlash()

bool openjaus::hmi::DCMStateCodeBitField::setFlash ( bool  value)

§ setFlashRate()

bool openjaus::hmi::DCMStateCodeBitField::setFlashRate ( long  value)

§ setIntegerValue()

void openjaus::hmi::DCMStateCodeBitField::setIntegerValue ( uint8_t  value)

§ setUpdown()

bool openjaus::hmi::DCMStateCodeBitField::setUpdown ( bool  value)

§ to()

int openjaus::hmi::DCMStateCodeBitField::to ( system::Buffer dst)
virtual
Parameters
dst

Reimplemented from openjaus::model::fields::BitField.

§ toXml()

std::string openjaus::hmi::DCMStateCodeBitField::toXml ( unsigned char  ojIndentLevel = 0) const

Member Data Documentation

§ active

bool openjaus::hmi::DCMStateCodeBitField::active
protected

§ ACTIVE_BIT_MASK

const long openjaus::hmi::DCMStateCodeBitField::ACTIVE_BIT_MASK = 0x1
staticprotected

§ ACTIVE_START_BIT

const long openjaus::hmi::DCMStateCodeBitField::ACTIVE_START_BIT = 1
staticprotected

§ flash

bool openjaus::hmi::DCMStateCodeBitField::flash
protected

§ FLASH_BIT_MASK

const long openjaus::hmi::DCMStateCodeBitField::FLASH_BIT_MASK = 0x1
staticprotected

§ FLASH_START_BIT

const long openjaus::hmi::DCMStateCodeBitField::FLASH_START_BIT = 2
staticprotected

§ flashRate

long openjaus::hmi::DCMStateCodeBitField::flashRate
protected

§ FLASHRATE_BIT_MASK

const long openjaus::hmi::DCMStateCodeBitField::FLASHRATE_BIT_MASK = 0x3
staticprotected

§ FLASHRATE_MAX_VALUE

const long openjaus::hmi::DCMStateCodeBitField::FLASHRATE_MAX_VALUE = 3
staticprotected

§ FLASHRATE_MIN_VALUE

const long openjaus::hmi::DCMStateCodeBitField::FLASHRATE_MIN_VALUE = 0
staticprotected

§ FLASHRATE_START_BIT

const long openjaus::hmi::DCMStateCodeBitField::FLASHRATE_START_BIT = 3
staticprotected

§ updown

bool openjaus::hmi::DCMStateCodeBitField::updown
protected

§ UPDOWN_BIT_MASK

const long openjaus::hmi::DCMStateCodeBitField::UPDOWN_BIT_MASK = 0x1
staticprotected

§ UPDOWN_START_BIT

const long openjaus::hmi::DCMStateCodeBitField::UPDOWN_START_BIT = 0
staticprotected

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