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

CIccTagFixedNum< T, Tsig > Class Template Reference

#include <IccTagBasic.h>

Inheritance diagram for CIccTagFixedNum< T, Tsig >:

CIccTag List of all members.

Public Member Functions

 CIccTagFixedNum (int nSize=1)
 CIccTagFixedNum (const CIccTagFixedNum &ITFN)
CIccTagFixedNumoperator= (const CIccTagFixedNum &FixedNumTag)
virtual CIccTagNewCopy ()
virtual ~CIccTagFixedNum ()
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 CIccTagFixedNum< T, Tsig >

Class: CIccTagFixedNum

Purpose: A template class for arrays of Fixed point numbers

Derived Tags: CIccTagS15Fixed16 and CIccTagU16Fixed16


Constructor & Destructor Documentation

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

Name: CIccTagFixedNum

Purpose: ConstrCIccTagFixedNumuctor

Args: nSize = number of data entries

template<class T, icTagTypeSignature Tsig>
CIccTagFixedNum< T, Tsig >::CIccTagFixedNum const CIccTagFixedNum< T, Tsig > &  ITFN  ) 
 

Name: CIccTagFixedNum::CIccTagFixedNum

Purpose: Copy Constructor

Args: ITFN = The CIccTagFixedNum object to be copied

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

Name: CIccTagFixedNum::~CIccTagFixedNum

Purpose: Destructor


Member Function Documentation

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

Name: CIccTagFixedNum::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 * CIccTagFixedNum< T, Tsig >::GetClassName  )  [virtual]
 

Name: CIccTagFixedNum::GetClassName

Purpose: Returns the tag type class name

Reimplemented from CIccTag.

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

Returns the size of the data array.

template<class T, icTagTypeSignature Tsig>
virtual icTagTypeSignature CIccTagFixedNum< 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 CIccTagFixedNum< T, Tsig >::IsArrayType  )  [inline, virtual]
 

Reimplemented from CIccTag.

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

template<class T, icTagTypeSignature Tsig>
CIccTagFixedNum< T, Tsig > & CIccTagFixedNum< T, Tsig >::operator= const CIccTagFixedNum< T, Tsig > &  FixedNumTag  ) 
 

Name: CIccTagFixedNum::operator=

Purpose: Copy Operator

Args: ITFN = The CIccTagFixedNum object to be copied

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

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

Name: CIccTagFixedNum::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 CIccTagFixedNum< T, Tsig >::SetSize icUInt32Number  nSize,
bool  bZeroNew = true
 

Name: CIccTagFixedNum::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 CIccTagFixedNum< T, Tsig >::Write CIccIO pIO  )  [virtual]
 

Name: CIccTagFixedNum::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 CIccTagFixedNum< T, Tsig >::m_nSize [protected]
 

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


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