MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Functions | Variables
mds::mod::BinarySerializer Namespace Reference

Functions

bool compareEntityNames (const char *pcName1, const char *pcName2)
 Compares two entity names.
bool readEntityHeader (CChannel &Channel)
 Reads and checks the data entity header.
bool readGroupHeader (CChannel &Channel, const char *pcName, int &Compression, tSize &BlockSize)
 Reads and decodes header of data entity group.
bool readTerminal (CChannel &Channel)
 Finds and reads terminal.
bool writeEntityHeader (CChannel &Channel)
 Writes data entity header to a binary channel.
bool writeGroupHeader (CChannel &Channel, const char *pcName, int Compression, tSize BlockSize)
 Writes header of data entity logical group.
bool writeTerminal (CChannel &Channel)
 Writes terminal to a binary channel.

Variables

const int ENTITY_HEADER_PADDING = HEADER_ALIGNMENT - 8
 Padding of data entity header.
const int GROUP_HEADER_PADDING = HEADER_ALIGNMENT - CSerializable::MAX_NAME_LENGTH - 8
 Padding of entity part header.
const int HEADER_ALIGNMENT = 256
 Alignment of data entity header.
const mds::sys::tUInt32 MAGIC = 0x53444d
 Data entity magic number.
const char TERMINAL_BLOCK_NAME [] = "TerminalBlock"
 Name of empty terminal data block.

Function Documentation

bool mds::mod::BinarySerializer::compareEntityNames ( const char *  pcName1,
const char *  pcName2 
)

Compares two entity names.

  • Returns true if both names are similar.
bool mds::mod::BinarySerializer::readEntityHeader ( CChannel &  Channel)

Reads and checks the data entity header.

  • Returns false on failure.
bool mds::mod::BinarySerializer::readGroupHeader ( CChannel &  Channel,
const char *  pcName,
int Compression,
tSize &  BlockSize 
)

Reads and decodes header of data entity group.

  • Returns false on failure.
bool mds::mod::BinarySerializer::readTerminal ( CChannel &  Channel)

Finds and reads terminal.

  • Returns false on failure.
bool mds::mod::BinarySerializer::writeEntityHeader ( CChannel &  Channel)

Writes data entity header to a binary channel.

  • Returns false on failure.
bool mds::mod::BinarySerializer::writeGroupHeader ( CChannel &  Channel,
const char *  pcName,
int  Compression,
tSize  BlockSize 
)

Writes header of data entity logical group.

  • Returns false on failure.
bool mds::mod::BinarySerializer::writeTerminal ( CChannel &  Channel)

Writes terminal to a binary channel.

  • Returns false on failure.

Variable Documentation

Padding of data entity header.

Padding of entity part header.

Alignment of data entity header.

const mds::sys::tUInt32 mds::mod::BinarySerializer::MAGIC = 0x53444d

Data entity magic number.

const char mds::mod::BinarySerializer::TERMINAL_BLOCK_NAME[] = "TerminalBlock"

Name of empty terminal data block.