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

PmtMetadataT Class Template Reference

The PmtMetadataT<TYPE> class is typically referred to as the leaf metadata and has a value. More...

#include <PmtMetadataT.h>

Inheritance diagram for PmtMetadataT:

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

Public Methods

 PmtMetadataT ()
 This is the default constructor. More...

 PmtMetadataT (const PmtKeyType &mdKey, const SPmtString &type, const SPmtString &trueType)
 This is another constructor. More...

 PmtMetadataT (const PmtKeyType &mdKey, const SPmtString &type, const SPmtString &trueType, const SPmtString &nillable)
 This is another constructor. More...

 PmtMetadataT (const PmtKeyType &mdKey, const SPmtString &type, const SPmtString &trueType, const TYPE &val, const SPmtString &nillable)
 This is another constructor. More...

 PmtMetadataT (const PmtMetadataT< TYPE > &theSrc, PmtCompositeMetadata *theParent)
 This is yet another constructor. More...

 PmtMetadataT (const PmtMetadataT< TYPE > &theSrc)
 Copy constructor. More...

virtual ~PmtMetadataT ()
 This is the destructor. More...

const TYPE & value () const
 Returns a const reference to the metadata's value. More...

TYPE & value ()
 Returns a reference to the metadata's value. More...

virtual EkString getValueStr () const
 Returns the metadata's value in ASCII encoding. More...

virtual void setValueStr (const EkString &valStr)
 Sets the metadata's value from an ASCII encoding. More...

virtual PmtMetadata * clone (void) const
 Return a "deep" copy of the metadata instance. More...

virtual PmtMetadataPtr clone (PmtCompositeMetadata *theParent) const
 Return a "deep" copy of the metadata instance. More...

virtual void accept (PmtMetadataVisitor *visitor)
 Support for Visitor Pattern. More...

virtual void accept (PmtMdVisitorImpl *visitor)
 Support for Visitor Pattern. More...

virtual bool validate () const
 Returns true if metadata's value is valid. More...

virtual void show (bool showObjectMemoryPointers=false, int level=0, bool showModelGroups=false)
 Show metadata object. More...


Protected Methods

virtual ostream & printDerived (ostream &c) const
 Write info unique to class. More...

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

Protected Attributes

TYPE mValue

Detailed Description

template<class TYPE>
class PmtMetadataT< TYPE >

The PmtMetadataT<TYPE> class is typically referred to as the leaf metadata and has a value.

PmtMetadataT<TYPE> is a templated class that is derived from PmtMetadata. It contains the metadata value (of the data type TYPE) and contains facets associated with the metadata value. Instances of the PmtMetadataT<TYPE> class maps to <element> declarations with <simpleType>s. The facets restrict the range of the domain of the TYPE. Facets are specified in the metadata definition language as <restriction> or <extention> on the <simpleType> construct.


Constructor & Destructor Documentation

template<class TYPE>
PmtMetadataT< TYPE >::PmtMetadataT (    )  [inline]
 

This is the default constructor.

template<class TYPE>
PmtMetadataT< TYPE >::PmtMetadataT (  const PmtKeyType &    mdKey,
const SPmtString &    type,
const SPmtString &    trueType
)  [inline]
 

This is another constructor.

template<class TYPE>
PmtMetadataT< TYPE >::PmtMetadataT (  const PmtKeyType &    mdKey,
const SPmtString &    type,
const SPmtString &    trueType,
const SPmtString &    nillable
)  [inline]
 

This is another constructor.

template<class TYPE>
PmtMetadataT< TYPE >::PmtMetadataT (  const PmtKeyType &    mdKey,
const SPmtString &    type,
const SPmtString &    trueType,
const TYPE &    val,
const SPmtString &    nillable
)  [inline]
 

This is another constructor.

template<class TYPE>
PmtMetadataT< TYPE >::PmtMetadataT (  const PmtMetadataT< TYPE > &    theSrc,
PmtCompositeMetadata *    theParent
)  [inline]
 

This is yet another constructor.

template<class TYPE>
PmtMetadataT< TYPE >::PmtMetadataT (  const PmtMetadataT< TYPE > &    theSrc )  [inline]
 

Copy constructor.

template<class TYPE>
virtual PmtMetadataT< TYPE >::~PmtMetadataT (    )  [inline, virtual]
 

This is the destructor.


Member Function Documentation

template<class TYPE>
void PmtMetadataT< TYPE >::accept (  PmtMdVisitorImpl *    visitor )  [inline, virtual]
 

Support for Visitor Pattern.

Reimplemented from PmtMetadata.

template<class TYPE>
void PmtMetadataT< TYPE >::accept (  PmtMetadataVisitor *    visitor )  [inline, virtual]
 

Support for Visitor Pattern.

Reimplemented from PmtMetadata.

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

Reimplemented from PmtMetadata.

template<class TYPE>
virtual PmtMetadataPtr PmtMetadataT< TYPE >::clone (  PmtCompositeMetadata *    theParent )  const [inline, virtual]
 

Return a "deep" copy of the metadata instance.

Implements PmtMetadata.

template<class TYPE>
virtual PmtMetadata* PmtMetadataT< TYPE >::clone (  void    )  const [inline, virtual]
 

Return a "deep" copy of the metadata instance.

Implements PmtMetadata.

template<class TYPE>
EkString PmtMetadataT< TYPE >::getValueStr (    )  const [inline, virtual]
 

Returns the metadata's value in ASCII encoding.

Reimplemented from PmtMetadata.

template<class TYPE>
virtual ostream& PmtMetadataT< TYPE >::printDerived (  ostream &    c )  const [inline, protected, virtual]
 

Write info unique to class.

Implements PmtMetadata.

template<class TYPE>
void PmtMetadataT< TYPE >::setValueStr (  const EkString &    valStr )  [inline, virtual]
 

Sets the metadata's value from an ASCII encoding.

Reimplemented from PmtMetadata.

template<class TYPE>
void PmtMetadataT< TYPE >::show (  bool    showObjectMemoryPointers = false,
int    level = 0,
bool    showModelGroups = false
)  [inline, virtual]
 

Show metadata object.

Reimplemented from PmtMetadata.

template<class TYPE>
bool PmtMetadataT< TYPE >::validate (    )  const [inline, virtual]
 

Returns true if metadata's value is valid.

Reimplemented from PmtMetadata.

template<class TYPE>
TYPE& PmtMetadataT< TYPE >::value (    )  [inline]
 

Returns a reference to the metadata's value.

template<class TYPE>
const TYPE& PmtMetadataT< TYPE >::value (    )  const [inline]
 

Returns a const reference to the metadata's value.


Member Data Documentation

template<class TYPE>
TYPE PmtMetadataT::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.