Public Member Functions | Protected Attributes | Friends

openjaus::model::fields::UnsignedShort Class Reference

This is a brief description. More...

#include <UnsignedShort.h>

Inherits openjaus::model::fields::Unsigned, openjaus::model::fields::Field, and openjaus::system::Transportable.

List of all members.

Public Member Functions

 UnsignedShort ()
virtual ~UnsignedShort ()
uint16_t getValue () const
 Accessor to get the value of value.
bool setValue (uint16_t value)
 Accessor to set value of value.
int getDefaultValue () const
 Accessor to get the value of defaultValue.
bool setDefaultValue (int defaultValue)
 Accessor to set value of defaultValue.
virtual int to (system::Buffer *dst)
 Operation to.
virtual int from (system::Buffer *src)
 Operation from.
virtual int length ()
 Serializes object to internal transport buffer.
std::string toString () const
std::string toXml (unsigned char level=0) const

Protected Attributes

uint16_t value
int defaultValue

Friends

std::ostream & operator<< (std::ostream &output, const UnsignedShort &object)

Detailed Description

Detailed description.

Author:
Name (name@email.com)

Constructor & Destructor Documentation

openjaus::model::fields::UnsignedShort::UnsignedShort (  ) 
openjaus::model::fields::UnsignedShort::~UnsignedShort (  )  [virtual]

Member Function Documentation

int openjaus::model::fields::UnsignedShort::from ( system::Buffer src  )  [virtual]
Parameters:
src 

Implements openjaus::system::Transportable.

int openjaus::model::fields::UnsignedShort::getDefaultValue (  )  const
uint16_t openjaus::model::fields::UnsignedShort::getValue (  )  const
int openjaus::model::fields::UnsignedShort::length (  )  [virtual]
bool openjaus::model::fields::UnsignedShort::setDefaultValue ( int  defaultValue  ) 
Parameters:
defaultValue The value of the new defaultValue.
bool openjaus::model::fields::UnsignedShort::setValue ( uint16_t  value  ) 
Parameters:
value The value of the new value.
int openjaus::model::fields::UnsignedShort::to ( system::Buffer dst  )  [virtual]
Parameters:
dst 

Implements openjaus::system::Transportable.

std::string openjaus::model::fields::UnsignedShort::toString (  )  const

Reimplemented from openjaus::system::Transportable.

std::string openjaus::model::fields::UnsignedShort::toXml ( unsigned char  level = 0  )  const

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const UnsignedShort object 
) [friend]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines