SampleICC Main srcforge
Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CIccTagNum< T, Tsig > Class Template Reference

#include <IccTagBasic.h>

Inheritance diagram for CIccTagNum< T, Tsig >:

CIccTag List of all members.

Public Member Functions

 CIccTagNum (int nSize=1)
 CIccTagNum (const CIccTagNum &ITNum)
CIccTagNumoperator= (const CIccTagNum &NumTag)
virtual CIccTagNewCopy ()
virtual ~CIccTagNum ()
virtual bool IsArrayType ()
virtual icTagTypeSignature GetType ()
virtual const icCharGetClassName ()
virtual void Describe (std::string &sDescription)
virtual bool Read (icUInt32Number size, CIccIO *pIO)
virtual bool Write (CIccIO *pIO)
T & operator[] (icUInt32Number index)
icUInt32Number GetSize () const
 Returns the size of the data array.
void SetSize (icUInt32Number nSize, bool bZeroNew=true)

Protected Attributes

T * m_Num
icUInt32Number m_nSize

Detailed Description

template<class T, icTagTypeSignature Tsig>
class CIccTagNum< T, Tsig >

Class: CIccTagNum

Purpose: A template class for arrays of integers

Derived Tags: CIccTagUInt8, CIccTagUInt16, CIccTagUInt32 and CIccTagUInt64


Constructor & Destructor Documentation

template<class T, icTagTypeSignature Tsig>
CIccTagNum< T, Tsig >::CIccTagNum int  nSize = 1  ) 
 

Name: CIccTagNum::CIccTagNum

Purpose: Constructor

Args: nSize = number of data entries

template<class T, icTagTypeSignature Tsig>
CIccTagNum< T, Tsig >::CIccTagNum const CIccTagNum< T, Tsig > &  ITNum  ) 
 

Name: CIccTagNum::CIccTagNum

Purpose: Copy Constructor

Args: ITNum = The CIccTagNum object to be copied

template<class T, icTagTypeSignature Tsig>
CIccTagNum< T, Tsig >::~CIccTagNum  )  [virtual]
 

Name: CIccTagNum::~CIccTagNum

Purpose: Destructor


Member Function Documentation

template<class T, icTagTypeSignature Tsig>
void CIccTagNum< T, Tsig >::Describe std::string &  sDescription  )  [virtual]
 

Name: CIccTagNum::Describe

Purpose: Dump data associated with the tag to a string

Args: sDescription - string to concatenate tag dump to

Reimplemented from CIccTag.

template<class T, icTagTypeSignature Tsig>
const icChar * CIccTagNum< T, Tsig >::GetClassName  )  [virtual]
 

Name: CIccTagNum::GetClassName

Purpose: Returns the tag type class name

Reimplemented from CIccTag.

template<class T, icTagTypeSignature Tsig>
icUInt32Number CIccTagNum< T, Tsig >::GetSize  )  const [inline]
 

Returns the size of the data array.

template<class T, icTagTypeSignature Tsig>
virtual icTagTypeSignature CIccTagNum< T, Tsig >::GetType  )  [inline, virtual]
 

Function: GetType()

Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.

Reimplemented from CIccTag.

template<class T, icTagTypeSignature Tsig>
virtual bool CIccTagNum< T, Tsig >::IsArrayType  )  [inline, virtual]
 

Reimplemented from CIccTag.

template<class T, icTagTypeSignature Tsig>
virtual CIccTag* CIccTagNum< T, Tsig >::NewCopy  )  [inline, virtual]
 

template<class T, icTagTypeSignature Tsig>
CIccTagNum< T, Tsig > & CIccTagNum< T, Tsig >::operator= const CIccTagNum< T, Tsig > &  NumTag  ) 
 

Name: CIccTagNum::operator=

Purpose: Copy Operator

Args: ITNum = The CIccTagNum object to be copied

template<class T, icTagTypeSignature Tsig>
T& CIccTagNum< T, Tsig >::operator[] icUInt32Number  index  )  [inline]
 

template<class T, icTagTypeSignature Tsig>
bool CIccTagNum< T, Tsig >::Read icUInt32Number  size,
CIccIO pIO
[virtual]
 

Name: CIccTagNum::Read

Purpose: Read in the tag contents into a data block

Args: size - # of bytes in tag, pIO - IO object to read tag from

Return: true = successful, false = failure

Reimplemented from CIccTag.

template<class T, icTagTypeSignature Tsig>
void CIccTagNum< T, Tsig >::SetSize icUInt32Number  nSize,
bool  bZeroNew = true
 

Name: CIccTagNum::SetSize

Purpose: Sets the size of the data array.

Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values

template<class T, icTagTypeSignature Tsig>
bool CIccTagNum< T, Tsig >::Write CIccIO pIO  )  [virtual]
 

Name: CIccTagNum::Write

Purpose: Write the tag to a file

Args: pIO - The IO object to write tag to.

Return: true = succesful, false = failure

Reimplemented from CIccTag.


Member Data Documentation

template<class T, icTagTypeSignature Tsig>
icUInt32Number CIccTagNum< T, Tsig >::m_nSize [protected]
 

template<class T, icTagTypeSignature Tsig>
T* CIccTagNum< T, Tsig >::m_Num [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 26 17:51:46 2007 for IccProfLib by  doxygen 1.3.9.1