Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Public Types | Public Member Functions | List of all members
epc::CoreProperty Class Reference

Public Types

enum  TypeProperty {
  category = 0, contentStatus = 1, created = 2, creator = 3,
  description = 4, identifier = 5, keywords = 6, language = 7,
  lastModifiedBy = 8, lastPrinted = 9, modified = 10, revision = 11,
  subject = 12, title = 13, version = 14, undefinedCoreProperty = 15
}
 

Public Member Functions

 CoreProperty (const TypeProperty &pType)
 
 CoreProperty (const TypeProperty &pType, const std::string &pValue)
 
 CoreProperty (const TypeProperty &pType, const std::vector< std::string > &pValue)
 
bool isEmpty () const
 
TypeProperty getTypeProperty () const
 
void setTypeProperty (const TypeProperty &corePropertyType)
 
std::vector< std::string > getAllValue () const
 
std::string getValue (const int &index=0) const
 
std::string toString () const
 
void setCategory (std::string pValue)
 
void setContentStatus (std::string pValue)
 
void setCreated (std::string pValue)
 
void setCreator (std::string pValue)
 
void setDescription (std::string pValue)
 
void setIdentifier (std::string pValue)
 
void setKeywords (std::string pValue)
 
void addKeywords (std::string pValue)
 
void setLanguage (std::string pValue)
 
void setLastModifiedBy (std::string pValue)
 
void setLastPrinted (std::string pValue)
 
void setModified (std::string pValue)
 
void setRevision (std::string pValue)
 
void setSubject (std::string pValue)
 
void setTitle (std::string pValue)
 
void setVersion (std::string pValue)
 

Member Enumeration Documentation

Enumeration of the various types of the core properties.

Member Function Documentation

vector< string > CoreProperty::getAllValue ( ) const

Get all the string values. Relevant only for some core properties which can have several string values (such as keywords)

CoreProperty::TypeProperty CoreProperty::getTypeProperty ( ) const

Get the type of the core property.

string CoreProperty::getValue ( const int &  index = 0) const

Get the first string value of the core property. Usually this method is the common one for retrieving string value of a core property since most of timeonly one string value is necessary for one core property.

bool CoreProperty::isEmpty ( ) const

Indicate wether a property has got a string value or not

void CoreProperty::setTypeProperty ( const TypeProperty corePropertyType)

Set the type of the core property

string CoreProperty::toString ( ) const

Serialize the core property into an XML element embeded into a string.


The documentation for this class was generated from the following files: