ContRap-Core
Public Member Functions | Data Fields

crp::Serializer::Block Class Reference

Serializer block. More...

#include <serializer.h>

Public Member Functions

 Block ()
 Creates an empty bock.
 Block (const std::string &type, const std::string &code)
 Creates the block from a coded value.
 Block (const std::string &type, char *buffer, size_t size)
 Creates the block from a pointer and a size.

Data Fields

std::string type
 Address of the node.
std::string code
 Size of the data.

Detailed Description

Serializer block.


Constructor & Destructor Documentation

crp::Serializer::Block::Block ( ) [inline]

Creates an empty bock.

crp::Serializer::Block::Block ( const std::string &  type,
const std::string &  code 
) [inline]

Creates the block from a coded value.

Parameters:
typeType name of the block
codeCode of the block
crp::Serializer::Block::Block ( const std::string &  type,
char *  buffer,
size_t  size 
)

Creates the block from a pointer and a size.

Parameters:
typeType name of the block
bufferAddress of the memory of the block
sizeSize of the block in bytes

Field Documentation

Size of the data.

Address of the node.


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