Root entity which defines metadata for a resource or resources. More...
#include <MD_Metadata.h>
Public Member Functions | |
void | addContact (CI_ResponsibleParty *contact) |
Adds a contact information to the metadata. More... | |
void | addIdentification (MD_Identification *mdid) |
Adds a dataset identification to the metadata. More... | |
te::md::MD_CharacterSetCode | getCharset () const |
Returns metadata charset. More... | |
const boost::ptr_vector< CI_ResponsibleParty > & | getContacts () const |
Gets the metadata contacts. More... | |
const boost::gregorian::date & | getDateStamp () const |
Get metadata date stamp. More... | |
const MD_Distribution * | getDistribution () const |
Gets the distribution information. More... | |
const std::string & | getFileId () const |
Returns the unique phrase or string which uniquely identifies the metadata file. More... | |
const boost::ptr_vector< MD_Identification > & | getIdentifications () const |
Gets the resources identification associated to the metadata. More... | |
const std::string & | getLanguage () const |
Returns metadata language. More... | |
const std::string & | getLineage () const |
Gets the lineage statemente. More... | |
const std::string & | getMetadataURI () const |
Returns URI to the metadata. More... | |
int | getReferenceSystem () const |
Returns the referency system. More... | |
const std::string & | getStandardName () const |
Returns the name of the metadata standard/profile used. More... | |
const std::string & | getStandardVersion () const |
Returns the version of the metadata standard/profile used. More... | |
MD_Metadata (CI_ResponsibleParty *contact=0) | |
Constructor. More... | |
void | setCharset (MD_CharacterSetCode chaset) |
Sets the charset code used in the metadata. More... | |
void | setDateStamp (const boost::gregorian::date &date) |
Set metadata date stamp. More... | |
void | setDistribution (MD_Distribution *d) |
Sets a distribution information to the metadata. More... | |
void | setFileId (const std::string &fileid) |
Sets a unique phrase or string which uniquely identifies the metadata file. More... | |
void | setLanguage (const std::string &lang) |
Sets the language of the metadata. More... | |
void | setLineage (const std::string &stm) |
Sets the lineage statement. General explanation of the data producer’s knowledge of the dataset lineage. This is related to data quality. More... | |
void | setMetadataURI (const std::string &mdURI) |
Sets URI to the metadata . More... | |
void | setReferenceSystem (int srid) |
Sets the referency system. More... | |
void | setStandardInfo (const std::string &sname, const std::string &sversion) |
Sets the name of the metadata standard/profile used. More... | |
~MD_Metadata () | |
Destructor. More... | |
Private Attributes | |
MD_CharacterSetCode | m_characterSet |
boost::ptr_vector< CI_ResponsibleParty > | m_contact |
boost::gregorian::date | m_dateStamp |
MD_Distribution * | m_distribution |
std::string | m_fileIdentifier |
boost::ptr_vector< MD_Identification > | m_identificationInfo |
std::string | m_language |
std::string | m_lineage |
std::string | m_metadataURI |
int | m_referenceSystemInfo |
std::string | m_standardName |
std::string | m_standardVersion |
Root entity which defines metadata for a resource or resources.
Definition at line 58 of file MD_Metadata.h.
te::md::MD_Metadata::MD_Metadata | ( | CI_ResponsibleParty * | contact = 0 | ) |
Constructor.
contact | Pointer to a metadata responsible part or point of contact. Class takes pointer ownership. |
te::md::MD_Metadata::~MD_Metadata | ( | ) |
Destructor.
void te::md::MD_Metadata::addContact | ( | CI_ResponsibleParty * | contact | ) |
Adds a contact information to the metadata.
mdid | Pointer to resource identification. Class takes pointer ownership. Do not pass null. |
void te::md::MD_Metadata::addIdentification | ( | MD_Identification * | mdid | ) |
Adds a dataset identification to the metadata.
mdid | Pointer to resource identification. Class takes pointer ownership. Do not pass null. |
te::md::MD_CharacterSetCode te::md::MD_Metadata::getCharset | ( | ) | const |
Returns metadata charset.
const boost::ptr_vector<CI_ResponsibleParty>& te::md::MD_Metadata::getContacts | ( | ) | const |
Gets the metadata contacts.
const boost::gregorian::date& te::md::MD_Metadata::getDateStamp | ( | ) | const |
Get metadata date stamp.
const MD_Distribution* te::md::MD_Metadata::getDistribution | ( | ) | const |
Gets the distribution information.
const std::string& te::md::MD_Metadata::getFileId | ( | ) | const |
Returns the unique phrase or string which uniquely identifies the metadata file.
const boost::ptr_vector<MD_Identification>& te::md::MD_Metadata::getIdentifications | ( | ) | const |
Gets the resources identification associated to the metadata.
const std::string& te::md::MD_Metadata::getLanguage | ( | ) | const |
Returns metadata language.
const std::string& te::md::MD_Metadata::getLineage | ( | ) | const |
Gets the lineage statemente.
const std::string& te::md::MD_Metadata::getMetadataURI | ( | ) | const |
Returns URI to the metadata.
int te::md::MD_Metadata::getReferenceSystem | ( | ) | const |
Returns the referency system.
const std::string& te::md::MD_Metadata::getStandardName | ( | ) | const |
Returns the name of the metadata standard/profile used.
const std::string& te::md::MD_Metadata::getStandardVersion | ( | ) | const |
Returns the version of the metadata standard/profile used.
void te::md::MD_Metadata::setCharset | ( | MD_CharacterSetCode | chaset | ) |
Sets the charset code used in the metadata.
void te::md::MD_Metadata::setDateStamp | ( | const boost::gregorian::date & | date | ) |
Set metadata date stamp.
void te::md::MD_Metadata::setDistribution | ( | MD_Distribution * | d | ) |
Sets a distribution information to the metadata.
d | Pointer to a distribution info. Class takes pointer ownership. Do not pass null. |
void te::md::MD_Metadata::setFileId | ( | const std::string & | fileid | ) |
Sets a unique phrase or string which uniquely identifies the metadata file.
fileid | The file identifier. Do not pass empty string. This should identify the metadata. Best practice: this should be an uuid. |
void te::md::MD_Metadata::setLanguage | ( | const std::string & | lang | ) |
Sets the language of the metadata.
lang | Language of the metadata. Do not pass empty string. The language information should be composed of an ISO639-2/T three-letter language code and an ISO3166-1 three-letter country code. |
void te::md::MD_Metadata::setLineage | ( | const std::string & | stm | ) |
Sets the lineage statement. General explanation of the data producer’s knowledge of the dataset lineage. This is related to data quality.
stm | The lineage statement. Do not pass null. |
void te::md::MD_Metadata::setMetadataURI | ( | const std::string & | mdURI | ) |
void te::md::MD_Metadata::setReferenceSystem | ( | int | srid | ) |
Sets the referency system.
void te::md::MD_Metadata::setStandardInfo | ( | const std::string & | sname, |
const std::string & | sversion | ||
) |
Sets the name of the metadata standard/profile used.
sname | The name of the metadata standard/profile used. Do not pass null. |
sname | The version of the metadata standard/profile used. Do not pass empty string. |
|
private |
Definition at line 179 of file MD_Metadata.h.
|
private |
Definition at line 184 of file MD_Metadata.h.
|
private |
Definition at line 186 of file MD_Metadata.h.
|
private |
Definition at line 192 of file MD_Metadata.h.
|
private |
Definition at line 173 of file MD_Metadata.h.
|
private |
Definition at line 188 of file MD_Metadata.h.
|
private |
Definition at line 177 of file MD_Metadata.h.
|
private |
Definition at line 194 of file MD_Metadata.h.
|
private |
Definition at line 175 of file MD_Metadata.h.
|
private |
Definition at line 190 of file MD_Metadata.h.
|
private |
Definition at line 181 of file MD_Metadata.h.
|
private |
Definition at line 182 of file MD_Metadata.h.