cmfile_block.cpp

00001
00002 /**************************************************************************
00003  *  cmfile_block.cpp - FVFF Colormap File Block
00004  *
00005  *  Created: Mon Mar 31 18:06:17 2008
00006  *  Copyright  2005-2008  Tim Niemueller  [www.niemueller.de]
00007  *
00008  ***************************************************************************/
00009
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version. A runtime exception applies to
00014  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00015  *
00016  *  This program is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *  GNU Library General Public License for more details.
00020  *
00021  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00022  */
00023
00024 #include <fvutils/colormap/cmfile_block.h>
00025 
00026 /** @class ColormapFileBlock <fvutils/colormap/cmfile_block.h>
00027  * FireVision data file block for colormap files.
00028  * @author Tim Niemueller
00029  */
00030
00031 
00032 /** Constructor.
00033  * @param type block type, content specific
00034  * @param data_size size of the data segment
00035  * @param spec_header content-specific header
00036  * @param spec_header_size size of spec_header in bytes
00037  */
00038 ColormapFileBlock::ColormapFileBlock(unsigned int type, size_t data_size,
00039                                      void *spec_header, size_t spec_header_size)
00040   : FireVisionDataFileBlock(type, data_size, spec_header, spec_header_size)
00041 {
00042 }
00043
00044 
00045 /** Constructor.
00046  * @param type block type, content specific
00047  * @param data_size size of the data segment
00048  * @param spec_header_size size of spec_header in bytes
00049  */
00050 ColormapFileBlock::ColormapFileBlock(unsigned int type, size_t data_size,
00051                                      size_t spec_header_size)
00052   : FireVisionDataFileBlock(type, data_size, spec_header_size)
00053 {
00054 }
00055
00056 
00057 /** Constructor.
00058  * @param type block type, content specific
00059  * @param data_size size of the data segment
00060  */
00061 ColormapFileBlock::ColormapFileBlock(unsigned int type, size_t data_size)
00062   : FireVisionDataFileBlock(type, data_size)
00063 {
00064 }
00065
00066 
00067 /** Shallow copy constructor.
00068  * This creates a shallow copy of the given block. "Shallow" means that the data is not
00069  * copied but referenced. This instance is only valid as long as the original instance
00070  * still exists.
00071  * @param block block to copy
00072  */
00073 ColormapFileBlock::ColormapFileBlock(FireVisionDataFileBlock *block)
00074   : FireVisionDataFileBlock(block)
00075 {
00076 }
00077
00078 
00079 /** Virtual empty destructor. */
00080 ColormapFileBlock::~ColormapFileBlock()
00081 {
00082 }