Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
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
#if 0
/* just to make Emacs auto-indent happy */
28
}
29
#endif
30
31
/** @class ColormapFileBlock <fvutils/colormap/cmfile_block.h>
32
* FireVision data file block for colormap files.
33
* @author Tim Niemueller
34
*/
35
36
37
/** Constructor.
38
* @param type block type, content specific
39
* @param data_size size of the data segment
40
* @param spec_header content-specific header
41
* @param spec_header_size size of spec_header in bytes
42
*/
43
ColormapFileBlock::ColormapFileBlock(
unsigned
int
type,
size_t
data_size,
44
void
*spec_header,
size_t
spec_header_size)
45
:
FireVisionDataFileBlock
(type, data_size, spec_header, spec_header_size)
46
{
47
}
48
49
50
/** Constructor.
51
* @param type block type, content specific
52
* @param data_size size of the data segment
53
* @param spec_header_size size of spec_header in bytes
54
*/
55
ColormapFileBlock::ColormapFileBlock
(
unsigned
int
type,
size_t
data_size,
56
size_t
spec_header_size)
57
:
FireVisionDataFileBlock
(type, data_size, spec_header_size)
58
{
59
}
60
61
62
/** Constructor.
63
* @param type block type, content specific
64
* @param data_size size of the data segment
65
*/
66
ColormapFileBlock::ColormapFileBlock
(
unsigned
int
type,
size_t
data_size)
67
:
FireVisionDataFileBlock
(type, data_size)
68
{
69
}
70
71
72
/** Shallow copy constructor.
73
* This creates a shallow copy of the given block. "Shallow" means that the data is not
74
* copied but referenced. This instance is only valid as long as the original instance
75
* still exists.
76
* @param block block to copy
77
*/
78
ColormapFileBlock::ColormapFileBlock
(
FireVisionDataFileBlock
*block)
79
:
FireVisionDataFileBlock
(block)
80
{
81
}
82
83
84
/** Virtual empty destructor. */
85
ColormapFileBlock::~ColormapFileBlock
()
86
{
87
}
88
89
}
// end namespace firevision
src
libs
fvutils
colormap
cmfile_block.cpp
Generated by
1.8.3.1