SourceForge.net Logo
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PmtAttributeT Class Template Reference

PmtAttributeT is a template metadata attribute class. More...

#include <PmtAttributeT.h>

Inheritance diagram for PmtAttributeT:

[legend]
Collaboration diagram for PmtAttributeT:
[legend]
List of all members.

Public Methods

 PmtAttributeT ()
 Constructor. More...

 PmtAttributeT (const PmtKeyType &name, const PmtKeyType &type, const PmtKeyType &trueType, const TYPE &value, const TYPE &fixed, const SPmtString &use)
 Constructor. More...

 PmtAttributeT (const PmtAttributeT< TYPE > &src)
 Copy Constructor. More...

const TYPE & value () const
 This method returns a const reference to the attribute value. More...

TYPE & value ()
 This method returns a reference to the attribute value. More...

virtual EkString getValueStr () const
 This method returns the value of the attribute. More...

virtual void setValueStr (const EkString &valStr)
 This method sets the value of the attribute. More...

virtual EkString getFixedStr () const
 This method returns the value fixed of the attribute. More...

virtual void setFixedStr (const EkString &valStr)
 This method sets the value fixed of the attribute. More...

virtual EkString getUseStr () const
 This method returns the value use of the attribute. More...

virtual void setUseStr (const EkString &valStr)
 This method sets the value use of the attribute. More...

virtual bool validate () const
 Returns true if attribute value is valid. More...

virtual PmtAttributePtr clone () const
 This method returns a copy of the accessor. More...

virtual void show (int level=0) const

Protected Methods

virtual void addFacet (const PmtKeyType &facetName, const vector< SPmtString > &value, bool fixed)

Protected Attributes

TYPE mValue
TYPE mFixed
SPmtString mUse
vector< PmtFacetPtrmFacets

Detailed Description

template<class TYPE>
class PmtAttributeT< TYPE >

PmtAttributeT is a template metadata attribute class.

PmtAttributeT is a template class derived from PmtAttribute. It contains the attribute value and facets associated with the value.


Constructor & Destructor Documentation

template<class TYPE>
PmtAttributeT< TYPE >::PmtAttributeT   [inline]
 

Constructor.

template<class TYPE>
PmtAttributeT< TYPE >::PmtAttributeT const PmtKeyType   name,
const PmtKeyType   type,
const PmtKeyType   trueType,
const TYPE &    value,
const TYPE &    fixed,
const SPmtString   use
[inline]
 

Constructor.

template<class TYPE>
PmtAttributeT< TYPE >::PmtAttributeT const PmtAttributeT< TYPE > &    src [inline]
 

Copy Constructor.


Member Function Documentation

template<class TYPE>
void PmtAttributeT< TYPE >::addFacet const PmtKeyType   facetName,
const vector< SPmtString > &    value,
bool    fixed
[inline, protected, virtual]
 

Reimplemented from PmtAttribute.

template<class TYPE>
virtual PmtAttributePtr PmtAttributeT< TYPE >::clone   const [inline, virtual]
 

This method returns a copy of the accessor.

Implements PmtAttribute.

template<class TYPE>
EkString PmtAttributeT< TYPE >::getFixedStr   const [inline, virtual]
 

This method returns the value fixed of the attribute.

Implements PmtAttribute.

template<class TYPE>
EkString PmtAttributeT< TYPE >::getUseStr   const [inline, virtual]
 

This method returns the value use of the attribute.

Implements PmtAttribute.

template<class TYPE>
EkString PmtAttributeT< TYPE >::getValueStr   const [inline, virtual]
 

This method returns the value of the attribute.

Implements PmtAttribute.

template<class TYPE>
void PmtAttributeT< TYPE >::setFixedStr const EkString   valStr [inline, virtual]
 

This method sets the value fixed of the attribute.

Implements PmtAttribute.

template<class TYPE>
void PmtAttributeT< TYPE >::setUseStr const EkString   valStr [inline, virtual]
 

This method sets the value use of the attribute.

Implements PmtAttribute.

template<class TYPE>
void PmtAttributeT< TYPE >::setValueStr const EkString   valStr [inline, virtual]
 

This method sets the value of the attribute.

Implements PmtAttribute.

template<class TYPE>
void PmtAttributeT< TYPE >::show int    level = 0 const [inline, virtual]
 

Implements PmtAttribute.

template<class TYPE>
bool PmtAttributeT< TYPE >::validate   const [inline, virtual]
 

Returns true if attribute value is valid.

Implements PmtAttribute.

template<class TYPE>
TYPE& PmtAttributeT< TYPE >::value   [inline]
 

This method returns a reference to the attribute value.

template<class TYPE>
const TYPE& PmtAttributeT< TYPE >::value   const [inline]
 

This method returns a const reference to the attribute value.


Member Data Documentation

template<class TYPE>
vector<PmtFacetPtr> PmtAttributeT::mFacets [protected]
 

template<class TYPE>
TYPE PmtAttributeT::mFixed [protected]
 

template<class TYPE>
SPmtString PmtAttributeT::mUse [protected]
 

template<class TYPE>
TYPE PmtAttributeT::mValue [protected]
 


The documentation for this class was generated from the following file:
Last Updated: March 12, 2003 (rlr)
Copyright © 2003 Eastman Kodak Company All Rights Reserved.