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

PmtLogicalInstanceInterpreter Class Reference

Interprets XML Metadata (PmtMetadata) instances into PmtMetadata (XML Metadata) instances. More...

#include <PmtInstanceInterpreter.h>

Collaboration diagram for PmtLogicalInstanceInterpreter:

[legend]
List of all members.

Public Methods

 PmtLogicalInstanceInterpreter ()
 This is the ocnstructor. More...

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

bool open (const SPmtString &fileName, PmtOpenMode mode=PMT_READWRITE)
 This method opens the given filename and creates the associated. More...

bool validate ()
 This method is unimplemented at the present time. More...

void flush ()
 This method flushes the XML Metadata to the currently open file. More...

void close ()
 This method flushes the XML Metadata to the currently open file, then closes the file. More...

PmtMetadataPtr readMetadata (PmtMetadataPtr md)
 This method interprets XML Metadata instances into PmtMetadata instances. More...

PmtMetadataPtr readMetadata ()
 This method interprets all XML metadata instances into PmtMetadata instances. More...

void writeMetadata (const PmtMetadataPtr &md)
 This method interprets PmtMetadata instances into XML Metadata instances. More...

SPmtString getNamespaceURI () const
bool setNSPrefix (const SPmtString &nsPrefix)

Protected Methods

bool open (istream &in)
 This method opens the input stream for reading;. More...

void writeXML (ostream &out)
 This method writes the header information out to the file, then calls printTree(). More...


Friends

PMTCORE_DECL istream & operator>> (istream &in, PmtLogicalInstanceInterpreter &interp)
PMTCORE_DECL ostream & operator<< (ostream &out, PmtLogicalInstanceInterpreter &interp)

Detailed Description

Interprets XML Metadata (PmtMetadata) instances into PmtMetadata (XML Metadata) instances.


Constructor & Destructor Documentation

PmtLogicalInstanceInterpreter::PmtLogicalInstanceInterpreter (    ) 
 

This is the ocnstructor.

PmtLogicalInstanceInterpreter::~PmtLogicalInstanceInterpreter (    )  [virtual]
 

This is the virtual destructor.


Member Function Documentation

void PmtLogicalInstanceInterpreter::close (    ) 
 

This method flushes the XML Metadata to the currently open file, then closes the file.

void PmtLogicalInstanceInterpreter::flush (    ) 
 

This method flushes the XML Metadata to the currently open file.

SPmtString PmtLogicalInstanceInterpreter::getNamespaceURI (    )  const [inline]
 

bool PmtLogicalInstanceInterpreter::open (  istream &    in )  [protected]
 

This method opens the input stream for reading;.

bool PmtLogicalInstanceInterpreter::open (  const SPmtString &    fileName,
PmtOpenMode    mode = PMT_READWRITE
) 
 

This method opens the given filename and creates the associated.

PmtMetadataPtr PmtLogicalInstanceInterpreter::readMetadata (    ) 
 

This method interprets all XML metadata instances into PmtMetadata instances.

PmtMetadataPtr PmtLogicalInstanceInterpreter::readMetadata (  PmtMetadataPtr    md ) 
 

This method interprets XML Metadata instances into PmtMetadata instances.

bool PmtLogicalInstanceInterpreter::setNSPrefix (  const SPmtString &    nsPrefix ) 
 

bool PmtLogicalInstanceInterpreter::validate (    ) 
 

This method is unimplemented at the present time.

void PmtLogicalInstanceInterpreter::writeMetadata (  const PmtMetadataPtr &    md ) 
 

This method interprets PmtMetadata instances into XML Metadata instances.

void PmtLogicalInstanceInterpreter::writeXML (  ostream &    out )  [protected]
 

This method writes the header information out to the file, then calls printTree().


Friends And Related Function Documentation

PMTCORE_DECL ostream& operator<< (  ostream &    out,
PmtLogicalInstanceInterpreter &    interp
)  [friend]
 

PMTCORE_DECL istream& operator>> (  istream &    in,
PmtLogicalInstanceInterpreter &    interp
)  [friend]
 


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.