Hoyt's FORK of DemoIccMAX
2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
IccEnvVar.cpp
Go to the documentation of this file.
1
#include "
IccEnvVar.h
"
2
3
CIccCmmVarLookup::CIccCmmVarLookup
(
icCmmEnvSigMap
&map)
4
{
5
m_map
=
new
icCmmEnvSigMap
();
6
*
m_map
= map;
7
}
8
9
CIccCmmVarLookup::~CIccCmmVarLookup
()
10
{
11
delete
m_map
;
12
}
13
14
bool
CIccCmmVarLookup::GetEnvVar
(
icSigCmmEnvVar
sig
,
icFloatNumber
&val)
15
{
16
icCmmEnvSigMap::iterator v=
m_map
->find((
icSignature
)
sig
);
17
18
if
(v==
m_map
->end()) {
19
val = (
icFloatNumber
)0.0;
20
return
false
;
21
}
22
val = v->second;
23
return
true
;
24
}
25
26
bool
CIccCmmVarLookup::IndexedEnvVar
(
icUInt32Number
nIndex,
icSigCmmEnvVar
&
sig
,
icFloatNumber
&val)
27
{
28
if
(nIndex>=
m_map
->size()) {
29
sig
= (
icSigCmmEnvVar
)0;
30
val = (
icFloatNumber
)0.0;
31
return
false
;
32
}
33
icUInt32Number
i;
34
icCmmEnvSigMap::iterator v;
35
36
for
(v=
m_map
->begin(), i=0; i<nIndex; v++, i++);
37
38
sig
= (
icSigCmmEnvVar
)(v->first);
39
val = v->second;
40
return
true
;
41
}
42
43
CIccCmmEnvVarHint::CIccCmmEnvVarHint
(
icCmmEnvSigMap
&map)
44
{
45
m_map
=
new
icCmmEnvSigMap
();
46
*
m_map
= map;
47
}
48
49
CIccCmmEnvVarHint::~CIccCmmEnvVarHint
()
50
{
51
delete
m_map
;
52
}
53
54
CIccCmmPccEnvVarHint::CIccCmmPccEnvVarHint
(
icCmmEnvSigMap
& map)
55
{
56
m_map
=
new
icCmmEnvSigMap
();
57
*
m_map
= map;
58
}
59
60
CIccCmmPccEnvVarHint::~CIccCmmPccEnvVarHint
()
61
{
62
delete
m_map
;
63
}
sig
icArraySignature sig
Definition
IccArrayFactory.cpp:99
icFloatNumber
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition
IccDefs.h:100
IccEnvVar.h
File: IccEnvVar.h.
icCmmEnvSigMap
std::map< icSignature, icFloatNumber > icCmmEnvSigMap
Definition
IccEnvVar.h:83
icUInt32Number
unsigned int icUInt32Number
Definition
TestParseText.cpp:32
CIccCmmEnvVarHint::~CIccCmmEnvVarHint
virtual ~CIccCmmEnvVarHint()
Definition
IccEnvVar.cpp:49
CIccCmmEnvVarHint::CIccCmmEnvVarHint
CIccCmmEnvVarHint(icCmmEnvSigMap &map)
Definition
IccEnvVar.cpp:43
CIccCmmEnvVarHint::m_map
icCmmEnvSigMap * m_map
Definition
IccEnvVar.h:106
CIccCmmPccEnvVarHint::~CIccCmmPccEnvVarHint
virtual ~CIccCmmPccEnvVarHint()
Definition
IccEnvVar.cpp:60
CIccCmmPccEnvVarHint::CIccCmmPccEnvVarHint
CIccCmmPccEnvVarHint(icCmmEnvSigMap &map)
Definition
IccEnvVar.cpp:54
CIccCmmPccEnvVarHint::m_map
icCmmEnvSigMap * m_map
Definition
IccEnvVar.h:118
CIccCmmVarLookup::GetEnvVar
virtual bool GetEnvVar(icSigCmmEnvVar sig, icFloatNumber &val)
Definition
IccEnvVar.cpp:14
CIccCmmVarLookup::CIccCmmVarLookup
CIccCmmVarLookup(icCmmEnvSigMap &map)
Definition
IccEnvVar.cpp:3
CIccCmmVarLookup::m_map
icCmmEnvSigMap * m_map
Definition
IccEnvVar.h:94
CIccCmmVarLookup::~CIccCmmVarLookup
virtual ~CIccCmmVarLookup()
Definition
IccEnvVar.cpp:9
CIccCmmVarLookup::IndexedEnvVar
virtual bool IndexedEnvVar(icUInt32Number nIndex, icSigCmmEnvVar &sig, icFloatNumber &val)
Definition
IccEnvVar.cpp:26
icSignature
icUInt32Number icSignature
Definition
icProfileHeader.h:271
icSigCmmEnvVar
icSigCmmEnvVar
Definition
icProfileHeader.h:631
IccProfLib
IccEnvVar.cpp
Generated on Sun Jun 2 2024 07:45:59 for Hoyt's FORK of DemoIccMAX by
1.11.0