Fawkes API  Fawkes Development Version
cmfile_block.cpp
1 
2 /**************************************************************************
3  * cmfile_block.cpp - FVFF Colormap File Block
4  *
5  * Created: Mon Mar 31 18:06:17 2008
6  * Copyright 2005-2008 Tim Niemueller [www.niemueller.de]
7  *
8  ***************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #include <fvutils/colormap/cmfile_block.h>
25 
26 namespace firevision {
27 
28 /** @class ColormapFileBlock <fvutils/colormap/cmfile_block.h>
29  * FireVision data file block for colormap files.
30  * @author Tim Niemueller
31  */
32 
33 /** Constructor.
34  * @param type block type, content specific
35  * @param data_size size of the data segment
36  * @param spec_header content-specific header
37  * @param spec_header_size size of spec_header in bytes
38  */
40  size_t data_size,
41  void * spec_header,
42  size_t spec_header_size)
43 : FireVisionDataFileBlock(type, data_size, spec_header, spec_header_size)
44 {
45 }
46 
47 /** Constructor.
48  * @param type block type, content specific
49  * @param data_size size of the data segment
50  * @param spec_header_size size of spec_header in bytes
51  */
52 ColormapFileBlock::ColormapFileBlock(unsigned int type, size_t data_size, size_t spec_header_size)
53 : FireVisionDataFileBlock(type, data_size, spec_header_size)
54 {
55 }
56 
57 /** Constructor.
58  * @param type block type, content specific
59  * @param data_size size of the data segment
60  */
61 ColormapFileBlock::ColormapFileBlock(unsigned int type, size_t data_size)
62 : FireVisionDataFileBlock(type, data_size)
63 {
64 }
65 
66 /** Shallow copy constructor.
67  * This creates a shallow copy of the given block. "Shallow" means that the data is not
68  * copied but referenced. This instance is only valid as long as the original instance
69  * still exists.
70  * @param block block to copy
71  */
74 {
75 }
76 
77 /** Virtual empty destructor. */
79 {
80 }
81 
82 } // end namespace firevision
firevision::ColormapFileBlock::ColormapFileBlock
ColormapFileBlock(unsigned int type, size_t data_size, void *spec_header, size_t spec_header_size)
Constructor.
Definition: cmfile_block.cpp:39
firevision::ColormapFileBlock::~ColormapFileBlock
virtual ~ColormapFileBlock()
Virtual empty destructor.
Definition: cmfile_block.cpp:78
firevision::FireVisionDataFileBlock
FireVision File Format data block.
Definition: fvfile_block.h:34