Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::DataObject Class Reference

A DataObject represents a data object in the clipboard. More...

#include <vcf/ApplicationKit/DataObject.h>

Inheritance diagram for VCF::DataObject:

VCF::Object VCF::ImageDataObject VCF::TextDataObject List of all members.

Public Member Functions

 DataObject ()
virtual ~DataObject ()
void init ()
void addSupportedDataType (const String &dataType, Persistable *dataRepresentation)
bool isTypeSupported (const String &dataType)
bool saveToStream (const String &dataType, OutputStream *stream, const MIMEType &type=MIMEType())
bool loadFromStream (const String &dataType, InputStream *stream, const MIMEType &type=MIMEType())
Enumerator< String > * getSupportedDataTypes ()

Protected Attributes

std::vector< Stringtypes_
EnumeratorContainer< std::vector<
String >, String
typesContainer_
std::map< String, Persistable * > dataMap_

Detailed Description

A DataObject represents a data object in the clipboard.

Can be streamed out to a stream


Constructor & Destructor Documentation

VCF::DataObject::DataObject  ) 
 

virtual VCF::DataObject::~DataObject  )  [virtual]
 


Member Function Documentation

void VCF::DataObject::addSupportedDataType const String dataType,
Persistable dataRepresentation
 

Enumerator<String>* VCF::DataObject::getSupportedDataTypes  ) 
 

void VCF::DataObject::init  ) 
 

bool VCF::DataObject::isTypeSupported const String dataType  ) 
 

bool VCF::DataObject::loadFromStream const String dataType,
InputStream stream,
const MIMEType type = MIMEType()
 

bool VCF::DataObject::saveToStream const String dataType,
OutputStream stream,
const MIMEType type = MIMEType()
 


Member Data Documentation

std::map<String,Persistable*> VCF::DataObject::dataMap_ [protected]
 

std::vector<String> VCF::DataObject::types_ [protected]
 

EnumeratorContainer<std::vector<String>, String> VCF::DataObject::typesContainer_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information