ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
test::Request Class Reference

#include <Request.hpp>

Inheritance diagram for test::Request:
Inheritance graph
[legend]
Collaboration diagram for test::Request:
Collaboration graph
[legend]

Public Member Functions

 Request ()
 
- Public Member Functions inherited from anna::comm::Codec
 Codec (const Type type, const bool scramble=true)
 
const Variableattach (const char *name, std::string &value) noexcept(false)
 
const Variableattach (const char *name, const char *&value) noexcept(false)
 
const Variableattach (const char *name, int &value) noexcept(false)
 
const Variableattach (const char *name, S64 &value) noexcept(false)
 
const Variableattach (const char *name, bool &value) noexcept(false)
 
const Variableattach (const char *name, DataBlock &value) noexcept(false)
 
const Variableattach (const char *name, float &value) noexcept(false)
 
const Variableattach (const char *name, double &value) noexcept(false)
 
const Variableattach (const char *name, Second &value) noexcept(false)
 
const Variableattach (const char *name, Millisecond &value) noexcept(false)
 
const Variableattach (const char *name, Microsecond &value) noexcept(false)
 
- Public Member Functions inherited from anna::comm::CompatCodec
 CompatCodec (const Type type, const bool scramble=true)
 
virtual ~CompatCodec ()
 
Type getType () const
 
const Variableattach (const char *name, const short int id, std::string &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, const char *&value) noexcept(false)
 
const Variableattach (const char *name, const short int id, int &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, S64 &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, bool &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, DataBlock &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, float &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, double &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, Second &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, Millisecond &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, Microsecond &value) noexcept(false)
 
const Variableattach (const char *name, const short int id, comm::CompatCodec &value) noexcept(false)
 
const Variablefind (const short int id) const noexcept(false)
 
void setNull (const short int id, const bool isNull=true) noexcept(false)
 
void setNull (const Variable *variable, const bool isNull=true)
 
bool isNull (const short int id) const noexcept(false)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
int size () const
 
virtual const DataBlockcode () noexcept(false)
 
virtual void decode (const DataBlock &dataBlock) noexcept(false)
 
- Public Member Functions inherited from anna::comm::Message
 Message ()
 
virtual ~Message ()
 
const DataBlockgetBody () const
 
MessagesetBody (const DataBlock &body) noexcept(false)
 
MessagesetBody (const char *buffer, const int size) noexcept(false)
 
virtual MessagesetBody (const xml::Node *node) noexcept(false)
 
void clearBody ()
 
- Public Member Functions inherited from anna::DataBlock
 DataBlock (const bool deepCopy=false)
 
 DataBlock (const char *buffer, const int size, const bool deepCopy=false) noexcept(false)
 
 DataBlock (const DataBlock &other) noexcept(false)
 
virtual ~DataBlock ()
 
int getMaxSize () const
 
int getSize () const
 
const char * getData () const
 
bool isEmpty () const
 
bool deepCopy () const
 
void setSize (const int size) noexcept(false)
 
DataBlockoperator+= (const char c) noexcept(false)
 
DataBlockoperator+= (const DataBlock &right) noexcept(false)
 
DataBlockoperator+= (const std::string &str) noexcept(false)
 
const char operator[] (const int pos) const noexcept(false)
 
char & operator[] (const int pos) noexcept(false)
 
void append (const char *data, const int len) noexcept(false)
 
void append (const DataBlock &other) noexcept(false)
 
void assign (const DataBlock &right) noexcept(false)
 
void assign (const char *buffer, const int size) noexcept(false)
 
DataBlockoperator= (const DataBlock &right) noexcept(false)
 
DataBlockoperator= (const char c) noexcept(false)
 
DataBlockoperator= (const std::string &str) noexcept(false)
 
void allocate (const int nbytes) noexcept(false)
 
void clear () noexcept(false)
 
void remove (const int pos, const int nbytes) noexcept(false)
 
void remove (const int nbytes) noexcept(false)
 
std::string asString (const int characterByLine=24) const
 

Public Attributes

int x
 
int y
 
int op
 
Millisecond initTime
 

Static Public Attributes

static const int Id = 1
 

Additional Inherited Members

- Public Types inherited from anna::comm::CompatCodec
typedef VariableContainer container
 
typedef container::iterator iterator
 
typedef container::const_iterator const_iterator
 
typedef unsigned char Type
 
- Static Public Member Functions inherited from anna::comm::CompatCodec
static Variablevariable (iterator ii)
 
static const Variablevariable (const_iterator ii)
 
static Type getType (const DataBlock &dataBlock) noexcept(false)
 
- Protected Member Functions inherited from anna::comm::Message
 Message (const StatusCodeBuffer::_v statusCodeBuffer)
 
 Message (DataBlock &codeBuffer)
 
- Protected Member Functions inherited from anna::DataBlock
void initialize (const char *buffer, const int size) noexcept(false)
 
void setBuffer (const char *buffer)
 
void setMaxSize (const int maxSize)
 
- Protected Attributes inherited from anna::comm::CompatCodec
bool a_scramble
 
- Protected Attributes inherited from anna::comm::Message
DataBlocka_codeBuffer
 

Constructor & Destructor Documentation

◆ Request()

test::Request::Request ( )
inline
25  : anna::comm::Codec (Id, false) {
26  attach ("X", x);
27  attach ("Y", y);
28  attach ("OP", op);
29  attach ("InitTime", initTime);
30  }
int y
Definition: Request.hpp:21
int op
Definition: Request.hpp:22
static const int Id
Definition: Request.hpp:19
const Variable * attach(const char *name, std::string &value) noexcept(false)
Definition: Codec.hpp:106
int x
Definition: Request.hpp:20
Millisecond initTime
Definition: Request.hpp:23
Definition: Codec.hpp:82
Here is the call graph for this function:

Member Data Documentation

◆ Id

const int test::Request::Id = 1
static

◆ initTime

Millisecond test::Request::initTime

◆ op

int test::Request::op

◆ x

int test::Request::x

◆ y

int test::Request::y

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