Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
firevision::ColormapFileBlock Class Reference

FireVision data file block for colormap files. More...

#include <>>

Inheritance diagram for firevision::ColormapFileBlock:

List of all members.

Public Member Functions

 ColormapFileBlock (unsigned int type, size_t data_size, void *spec_header, size_t spec_header_size)
 Constructor.
 ColormapFileBlock (unsigned int type, size_t data_size, size_t spec_header_size)
 Constructor.
 ColormapFileBlock (unsigned int type, size_t data_size)
 Constructor.
virtual ~ColormapFileBlock ()
 Virtual empty destructor.
- Public Member Functions inherited from firevision::FireVisionDataFileBlock
 FireVisionDataFileBlock (unsigned int type, size_t data_size, void *spec_header, size_t spec_header_size)
 Constructor.
 FireVisionDataFileBlock (unsigned int type, size_t data_size, size_t spec_header_size)
 Constructor.
 FireVisionDataFileBlock (unsigned int type, size_t data_size)
 Constructor.
 FireVisionDataFileBlock (FireVisionDataFileBlock *block)
 Shallow copy constructor.
virtual ~FireVisionDataFileBlock ()
 Destructor.
unsigned int type () const
 Get block type.
void * block_memptr () const
 Pointer to the whole block.
size_t block_size () const
 Size of blocks.
void * data_ptr () const
 Get data pointer.
size_t data_size () const
 Size of data chunk.

Protected Member Functions

 ColormapFileBlock (FireVisionDataFileBlock *block)
 Shallow copy constructor.
- Protected Member Functions inherited from firevision::FireVisionDataFileBlock
void set_spec_header (void *spec_header, size_t spec_header_size)
 Set content-specific header.

Additional Inherited Members

- Protected Attributes inherited from firevision::FireVisionDataFileBlock
void * _data
 Pointer to the internal data segment.
size_t _data_size
 Size of _data in bytes.
void * _spec_header
 Pointer to the content specific block header.

Detailed Description

FireVision data file block for colormap files.

Author:
Tim Niemueller

Definition at line 36 of file cmfile_block.h.


Constructor & Destructor Documentation

firevision::ColormapFileBlock::ColormapFileBlock ( unsigned int  type,
size_t  data_size,
void *  spec_header,
size_t  spec_header_size 
)

Constructor.

Parameters:
typeblock type, content specific
data_sizesize of the data segment
spec_headercontent-specific header
spec_header_sizesize of spec_header in bytes

Definition at line 43 of file cmfile_block.cpp.

firevision::ColormapFileBlock::ColormapFileBlock ( unsigned int  type,
size_t  data_size,
size_t  spec_header_size 
)

Constructor.

Parameters:
typeblock type, content specific
data_sizesize of the data segment
spec_header_sizesize of spec_header in bytes

Definition at line 55 of file cmfile_block.cpp.

firevision::ColormapFileBlock::ColormapFileBlock ( unsigned int  type,
size_t  data_size 
)

Constructor.

Parameters:
typeblock type, content specific
data_sizesize of the data segment

Definition at line 66 of file cmfile_block.cpp.

firevision::ColormapFileBlock::~ColormapFileBlock ( )
virtual

Virtual empty destructor.

Definition at line 85 of file cmfile_block.cpp.

firevision::ColormapFileBlock::ColormapFileBlock ( FireVisionDataFileBlock block)
protected

Shallow copy constructor.

This creates a shallow copy of the given block. "Shallow" means that the data is not copied but referenced. This instance is only valid as long as the original instance still exists.

Parameters:
blockblock to copy

Definition at line 78 of file cmfile_block.cpp.


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