UNIVERS
15.3
UNIVERS base processing software API
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
zq
zqb_header.hpp
1
/* zqb_header.hpp */
2
/* $Id: zqb_header.hpp,v 1.14 2009/02/13 09:48:51 vlad Exp $ */
3
#ifndef __zqb_header_hpp
4
#define __zqb_header_hpp
5
6
#include <map>
7
8
#include "zqb_types.h"
9
#include "zqb_hdr_def.hpp"
10
11
27
class
ZqbHeader
28
{
29
public
:
30
33
ZqbHeader
();
34
37
ZqbHeader
(
int
trhdr_size,
const
void
* trhdr = NULL);
38
40
ZqbHeader
(
const
ZqbHeader
& hdr);
41
43
virtual
~ZqbHeader
();
44
45
47
ZqbHeader
&
operator=
(
const
ZqbHeader
& hdr);
48
49
51
virtual
int
size
()
const
;
52
54
virtual
void
setHeader
(
int
trhdr_size,
const
void
* trhdr = NULL);
55
57
virtual
void
setHeader
(
const
void
* trhdr);
58
59
60
/*
61
* Comparison
62
*/
63
65
virtual
void
resetSortOrder
();
66
69
virtual
void
setSortOrder
(
int
hwId, ZqbOrder eOrder = Z_O_ASCENT);
70
74
virtual
void
setSortOrder
(
int
hwId1, ZqbOrder eOrder1,
75
int
hwId2, ZqbOrder eOrder2);
76
78
virtual
void
setSortOrder
(
int
hwId1, ZqbOrder eOrder1,
79
int
hwId2, ZqbOrder eOrder2,
80
int
hwId3, ZqbOrder eOrder3);
81
83
virtual
bool
operator<
(
const
ZqbHeader
& hdr)
const
;
84
86
static
bool
compareLess
(
const
ZqbHeader
* hdr1,
87
const
ZqbHeader
* hdr2);
88
90
virtual
bool
operator==
(
const
ZqbHeader
& hdr)
const
;
91
93
static
bool
compareEqual
(
const
ZqbHeader
* hdr1,
94
const
ZqbHeader
* hdr2);
95
97
bool
operator!=
(
const
ZqbHeader
& hdr)
const
{
98
return
!
operator==
(hdr);
99
}
100
102
static
bool
compareNotEqual
(
const
ZqbHeader
* hdr1,
103
const
ZqbHeader
* hdr2);
104
109
int
hwCompare
(
int
hwId,
const
ZqbHeader
& hdr,
110
double
fPrec = 1e-32)
const
;
111
114
static
bool
byteCompare
(
const
ZqbHeader
& hdr1,
const
ZqbHeader
& hdr2);
115
116
117
118
/*
119
* Access the stuff
120
*/
121
124
virtual
ZqbType
hdrType
(
int
hwId)
const
;
125
129
virtual
const
char
*
hdrLabel
(
int
hwId)
const
;
130
136
virtual
char
hdrChar
(
int
hwId)
const
;
137
142
virtual
int
hdrInt
(
int
hwId)
const
;
143
149
virtual
float
hdrFloat
(
int
hwId)
const
;
150
151
157
virtual
void
hdrChar
(
int
hwId,
char
cValue);
158
163
virtual
void
hdrInt
(
int
hwId,
int
iValue);
164
170
virtual
void
hdrFloat
(
int
hwId,
float
fValue);
171
172
177
virtual
int
hwid2index
(
int
hwId)
const
;
178
179
public
:
/* data */
180
182
int
m_nHdrSize
;
183
185
void
*
m_pHdr
;
186
188
static
double
s_fEpsilon
;
189
191
ZqbHeaderDef
*
m_pHdrDef
;
192
193
protected
:
194
196
int
m_nCriteria
;
197
199
int
m_iSortHW
[3];
200
202
ZqbOrder
m_eSortOrder
[3];
203
204
private
:
205
207
void
*m_pHdrAllocated;
208
209
};
210
211
212
#endif
/* zqb_header.hpp */
ZqbHeader::m_eSortOrder
ZqbOrder m_eSortOrder[3]
Definition:
zqb_header.hpp:202
ZqbHeader::m_pHdrDef
ZqbHeaderDef * m_pHdrDef
Definition:
zqb_header.hpp:191
ZqbHeader::hdrFloat
virtual float hdrFloat(int hwId) const
ZqbHeader::setHeader
virtual void setHeader(int trhdr_size, const void *trhdr=NULL)
ZqbHeader::compareLess
static bool compareLess(const ZqbHeader *hdr1, const ZqbHeader *hdr2)
ZqbHeader::hdrInt
virtual int hdrInt(int hwId) const
ZqbHeader::operator=
ZqbHeader & operator=(const ZqbHeader &hdr)
ZqbHeader::compareNotEqual
static bool compareNotEqual(const ZqbHeader *hdr1, const ZqbHeader *hdr2)
ZqbHeader
Definition:
zqb_header.hpp:27
ZqbHeader::m_pHdr
void * m_pHdr
Definition:
zqb_header.hpp:185
ZqbHeader::hdrChar
virtual char hdrChar(int hwId) const
ZqbHeader::compareEqual
static bool compareEqual(const ZqbHeader *hdr1, const ZqbHeader *hdr2)
ZqbHeader::hwid2index
virtual int hwid2index(int hwId) const
ZqbHeader::operator<
virtual bool operator<(const ZqbHeader &hdr) const
ZqbHeader::setSortOrder
virtual void setSortOrder(int hwId, ZqbOrder eOrder=Z_O_ASCENT)
ZqbHeader::hwCompare
int hwCompare(int hwId, const ZqbHeader &hdr, double fPrec=1e-32) const
ZqbHeader::s_fEpsilon
static double s_fEpsilon
Definition:
zqb_header.hpp:188
ZqbHeader::resetSortOrder
virtual void resetSortOrder()
ZqbHeaderDef
Definition:
zqb_hdr_def.hpp:19
ZqbHeader::operator==
virtual bool operator==(const ZqbHeader &hdr) const
ZqbHeader::byteCompare
static bool byteCompare(const ZqbHeader &hdr1, const ZqbHeader &hdr2)
ZqbHeader::m_iSortHW
int m_iSortHW[3]
Definition:
zqb_header.hpp:199
ZqbHeader::operator!=
bool operator!=(const ZqbHeader &hdr) const
Definition:
zqb_header.hpp:97
ZqbHeader::size
virtual int size() const
ZqbHeader::m_nCriteria
int m_nCriteria
Definition:
zqb_header.hpp:196
ZqbHeader::~ZqbHeader
virtual ~ZqbHeader()
ZqbHeader::m_nHdrSize
int m_nHdrSize
Definition:
zqb_header.hpp:182
ZqbHeader::hdrLabel
virtual const char * hdrLabel(int hwId) const
ZqbHeader::hdrType
virtual ZqbType hdrType(int hwId) const
ZqbHeader::ZqbHeader
ZqbHeader()
Generated by
1.8.5