Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
IccTagComposite.cpp File Reference

File: IccTagComposite.cpp. More...

#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "IccTagComposite.h"
#include "IccStructBasic.h"
#include "IccUtil.h"
#include "IccIO.h"
#include "IccStructFactory.h"
#include "IccArrayFactory.h"
+ Include dependency graph for IccTagComposite.cpp:

Go to the source code of this file.

Functions

IIccArrayicGetTagArrayHandler (CIccTag *pTag)
 
IIccArrayicGetTagArrayHandlerOfType (CIccTag *pTag, icArraySignature sig)
 
IIccStructicGetTagStructHandler (CIccTag *pTag)
 
IIccStructicGetTagStructHandlerOfType (CIccTag *pTag, icStructSignature sig)
 

Detailed Description

File: IccTagComposite.cpp.

Contains: Implementation of Struct and Array Tags

Version: V1

Copyright: (c) see ICC Software License

Definition in file IccTagComposite.cpp.

Function Documentation

◆ icGetTagArrayHandler()

IIccArray * icGetTagArrayHandler ( CIccTag * pTag)

Definition at line 1651 of file IccTagComposite.cpp.

1652{
1653 if (!pTag)
1654 return NULL;
1655 if (pTag->GetType()!=icSigTagArrayType)
1656 return NULL;
1657
1658 CIccTagArray *pArray = (CIccTagArray*)pTag;
1659
1660 return pArray->GetArrayHandler();
1661}
Class: CIccTagArray.
IIccArray * GetArrayHandler()
Name: CIccTagArray::GetArrayHandler.
virtual icTagTypeSignature GetType() const
Function: GetType()
@ icSigTagArrayType

References CIccTagArray::GetArrayHandler(), CIccTag::GetType(), and icSigTagArrayType.

Referenced by icGetTagArrayHandlerOfType(), and CIccProfileXml::ParseTag().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ icGetTagArrayHandlerOfType()

IIccArray * icGetTagArrayHandlerOfType ( CIccTag * pTag,
icArraySignature sig )

Definition at line 1663 of file IccTagComposite.cpp.

1664{
1665 if (pTag->GetTagArrayType()==sig)
1666 return icGetTagArrayHandler(pTag);
1667
1668 return NULL;
1669}
icArraySignature sig
IIccArray * icGetTagArrayHandler(CIccTag *pTag)
virtual icArraySignature GetTagArrayType() const

References CIccTag::GetTagArrayType(), icGetTagArrayHandler(), and sig.

+ Here is the call graph for this function:

◆ icGetTagStructHandler()

IIccStruct * icGetTagStructHandler ( CIccTag * pTag)

Definition at line 1631 of file IccTagComposite.cpp.

1632{
1633 if (!pTag)
1634 return NULL;
1635 if (pTag->GetType()!=icSigTagStructType)
1636 return NULL;
1637
1638 CIccTagStruct *pStruct = (CIccTagStruct*)pTag;
1639
1640 return pStruct->GetStructHandler();
1641}
Class: CIccTagStruct.
IIccStruct * GetStructHandler()
Name: CIccTagStruct::GetStructHandler.
@ icSigTagStructType

References CIccTagStruct::GetStructHandler(), CIccTag::GetType(), and icSigTagStructType.

Referenced by icGetTagStructHandlerOfType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ icGetTagStructHandlerOfType()

IIccStruct * icGetTagStructHandlerOfType ( CIccTag * pTag,
icStructSignature sig )

Definition at line 1643 of file IccTagComposite.cpp.

1644{
1645 if (pTag->GetTagStructType()==sig)
1646 return icGetTagStructHandler(pTag);
1647
1648 return NULL;
1649}
IIccStruct * icGetTagStructHandler(CIccTag *pTag)
virtual icStructSignature GetTagStructType() const

References CIccTag::GetTagStructType(), icGetTagStructHandler(), and sig.

Referenced by CIccArrayNamedColor::Begin(), CIccArrayNamedColor::FindDeviceColor(), CIccArrayNamedColor::FindPcsColor(), and CIccArrayNamedColor::FindSpectralColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: