MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Namespaces | Functions | Variables
mdsBinarySerializer.cpp File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2009 by Michal Spanel
. More...

#include <MDSTk/Module/mdsBinarySerializer.h>

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


namespace  mds::mod
namespace  mds::mod::BinarySerializer

Functions

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

Variables

const int mds::mod::BinarySerializer::ENTITY_HEADER_PADDING = HEADER_ALIGNMENT - 8
 Padding of data entity header.
const int mds::mod::BinarySerializer::GROUP_HEADER_PADDING = HEADER_ALIGNMENT - CSerializable::MAX_NAME_LENGTH - 8
 Padding of entity part header.
const int mds::mod::BinarySerializer::HEADER_ALIGNMENT = 256
 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.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2009 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2007/06/20

Id:
mdsBinarySerializer.cpp 1863 2010-08-31 20:40:15Z spanel

Description: