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

PmtAttribute Class Reference

PmtAttribute is the base metadata attribute class. More...

#include <PmtAttribute.h>

Inheritance diagram for PmtAttribute:

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

Public Methods

 PmtAttribute ()
 Default constructor. More...

 PmtAttribute (const PmtKeyType &name, const PmtKeyType &type, const PmtKeyType &trueType)
 Constructor. More...

 PmtAttribute (const PmtAttribute &copy)
 Copy constructor. More...

virtual ~PmtAttribute ()
 Destructor. More...

const PmtKeyTypename () const
 Returns a const reference to the attribute's name. More...

const PmtKeyTypetype () const
 Returns a const reference to the attribute's value type. More...

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

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

virtual bool isChanged ()
virtual EkString getFixedStr () const=0
 This method returns the value of the attribute. More...

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

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

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

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

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

virtual void show (int level=0) const=0
virtual void addFacet (const PmtKeyType &facetName, const vector< SPmtString > &value, bool fixed)

Static Public Methods

PmtAttrFactorygetFactory (const SPmtString &nameSpace)
PmtAttrFactoriesgetFactories (void)

Protected Attributes

PmtKeyType mName
PmtKeyType mTrueType
PmtKeyType mType
bool mIsChanged

Static Protected Attributes

PmtAttrFactories msAttrFactoryMap

Detailed Description

PmtAttribute is the base metadata attribute class.

PmtAttribute serves as a base class for all potential atribute specialization. It provides a common interface for accessing, manipulating metadata attributes. Analogous to XML attributes, an attribute object contains two piece of information: a name and a value.


Constructor & Destructor Documentation

PmtAttribute::PmtAttribute   [inline]
 

Default constructor.

PmtAttribute::PmtAttribute const PmtKeyType   name,
const PmtKeyType   type,
const PmtKeyType   trueType
[inline]
 

Constructor.

PmtAttribute::PmtAttribute const PmtAttribute &    copy [inline]
 

Copy constructor.

virtual PmtAttribute::~PmtAttribute   [inline, virtual]
 

Destructor.


Member Function Documentation

virtual void PmtAttribute::addFacet const PmtKeyType   facetName,
const vector< SPmtString > &    value,
bool    fixed
[inline, virtual]
 

Reimplemented in PmtAttributeT.

virtual PmtAttributePtr PmtAttribute::clone   const [pure virtual]
 

This method returns a copy of the accessor.

Implemented in PmtAttributeT.

PmtAttrFactories& PmtAttribute::getFactories void    [inline, static]
 

PmtAttrFactory * PmtAttribute::getFactory const SPmtString   nameSpace [static]
 

virtual EkString PmtAttribute::getFixedStr   const [pure virtual]
 

This method returns the value of the attribute.

Implemented in PmtAttributeT.

virtual EkString PmtAttribute::getUseStr   const [pure virtual]
 

This method returns the value of the attribute.

Implemented in PmtAttributeT.

virtual EkString PmtAttribute::getValueStr   const [pure virtual]
 

This method returns the value of the attribute.

Implemented in PmtAttributeT.

virtual bool PmtAttribute::isChanged   [inline, virtual]
 

const PmtKeyType& PmtAttribute::name   const [inline]
 

Returns a const reference to the attribute's name.

virtual void PmtAttribute::setFixedStr const EkString   valStr [pure virtual]
 

This method sets the value of the attribute.

Implemented in PmtAttributeT.

virtual void PmtAttribute::setUseStr const EkString   valStr [pure virtual]
 

This method sets the value of the attribute.

Implemented in PmtAttributeT.

virtual void PmtAttribute::setValueStr const EkString   valStr [pure virtual]
 

This method sets the value of the attribute.

Implemented in PmtAttributeT.

virtual void PmtAttribute::show int    level = 0 const [pure virtual]
 

Implemented in PmtAttributeT.

const PmtKeyType& PmtAttribute::trueType   const [inline]
 

const PmtKeyType& PmtAttribute::type   const [inline]
 

Returns a const reference to the attribute's value type.

virtual bool PmtAttribute::validate   const [pure virtual]
 

Returns true if the attribute value is valid.

Implemented in PmtAttributeT.


Member Data Documentation

bool PmtAttribute::mIsChanged [protected]
 

PmtKeyType PmtAttribute::mName [protected]
 

PmtAttrFactories PmtAttribute::msAttrFactoryMap [static, protected]
 

PmtKeyType PmtAttribute::mTrueType [protected]
 

PmtKeyType PmtAttribute::mType [protected]
 


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