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

#include <ImagingModesBitField.h>

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

Public Member Functions

 ImagingModesBitField ()
 
 ~ImagingModesBitField ()
 
bool setColor (bool value)
 
bool getColor (void) const
 
bool setGreyscale (bool value)
 
bool getGreyscale (void) const
 
bool setInfrared (bool value)
 
bool getInfrared (void) const
 
bool setLowlight (bool value)
 
bool getLowlight (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 (ImagingModesBitField &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 color
 
bool greyscale
 
bool infrared
 
bool lowlight
 
- 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 COLOR_START_BIT = 0
 
static const long COLOR_BIT_MASK = 0x1
 
static const long GREYSCALE_START_BIT = 1
 
static const long GREYSCALE_BIT_MASK = 0x1
 
static const long INFRARED_START_BIT = 2
 
static const long INFRARED_BIT_MASK = 0x1
 
static const long LOWLIGHT_START_BIT = 3
 
static const long LOWLIGHT_BIT_MASK = 0x1
 

Constructor & Destructor Documentation

§ ImagingModesBitField()

openjaus::environment::ImagingModesBitField::ImagingModesBitField ( )

§ ~ImagingModesBitField()

openjaus::environment::ImagingModesBitField::~ImagingModesBitField ( )

Member Function Documentation

§ copy()

void openjaus::environment::ImagingModesBitField::copy ( ImagingModesBitField source)

§ from()

int openjaus::environment::ImagingModesBitField::from ( system::Buffer src)
virtual
Parameters
src

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

§ getColor()

bool openjaus::environment::ImagingModesBitField::getColor ( void  ) const

§ getGreyscale()

bool openjaus::environment::ImagingModesBitField::getGreyscale ( void  ) const

§ getInfrared()

bool openjaus::environment::ImagingModesBitField::getInfrared ( void  ) const

§ getIntegerValue()

uint8_t openjaus::environment::ImagingModesBitField::getIntegerValue ( void  ) const

§ getLowlight()

bool openjaus::environment::ImagingModesBitField::getLowlight ( void  ) const

§ length()

int openjaus::environment::ImagingModesBitField::length ( )
virtual

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

§ setColor()

bool openjaus::environment::ImagingModesBitField::setColor ( bool  value)

§ setGreyscale()

bool openjaus::environment::ImagingModesBitField::setGreyscale ( bool  value)

§ setInfrared()

bool openjaus::environment::ImagingModesBitField::setInfrared ( bool  value)

§ setIntegerValue()

void openjaus::environment::ImagingModesBitField::setIntegerValue ( uint8_t  value)

§ setLowlight()

bool openjaus::environment::ImagingModesBitField::setLowlight ( bool  value)

§ to()

int openjaus::environment::ImagingModesBitField::to ( system::Buffer dst)
virtual
Parameters
dst

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

§ toXml()

std::string openjaus::environment::ImagingModesBitField::toXml ( unsigned char  ojIndentLevel = 0) const

Member Data Documentation

§ color

bool openjaus::environment::ImagingModesBitField::color
protected

§ COLOR_BIT_MASK

const long openjaus::environment::ImagingModesBitField::COLOR_BIT_MASK = 0x1
staticprotected

§ COLOR_START_BIT

const long openjaus::environment::ImagingModesBitField::COLOR_START_BIT = 0
staticprotected

§ greyscale

bool openjaus::environment::ImagingModesBitField::greyscale
protected

§ GREYSCALE_BIT_MASK

const long openjaus::environment::ImagingModesBitField::GREYSCALE_BIT_MASK = 0x1
staticprotected

§ GREYSCALE_START_BIT

const long openjaus::environment::ImagingModesBitField::GREYSCALE_START_BIT = 1
staticprotected

§ infrared

bool openjaus::environment::ImagingModesBitField::infrared
protected

§ INFRARED_BIT_MASK

const long openjaus::environment::ImagingModesBitField::INFRARED_BIT_MASK = 0x1
staticprotected

§ INFRARED_START_BIT

const long openjaus::environment::ImagingModesBitField::INFRARED_START_BIT = 2
staticprotected

§ lowlight

bool openjaus::environment::ImagingModesBitField::lowlight
protected

§ LOWLIGHT_BIT_MASK

const long openjaus::environment::ImagingModesBitField::LOWLIGHT_BIT_MASK = 0x1
staticprotected

§ LOWLIGHT_START_BIT

const long openjaus::environment::ImagingModesBitField::LOWLIGHT_START_BIT = 3
staticprotected

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