|
| std::string | GetFirstMetadataValue (std::string const &paths, bool &hasValue) const |
| |
| std::string | GetMetadataValue (std::string const &path, bool &hasValue, int band=1) const override |
| |
| XMLMetadataSupplier & | operator= (const XMLMetadataSupplier &)=delete |
| |
| | XMLMetadataSupplier (const std::string &) |
| |
| | XMLMetadataSupplier (const XMLMetadataSupplier &)=delete |
| |
| template<> |
| bool | GetAs (bool const &defaultValue, std::string const &path, int band) const |
| |
| template<typename T > |
| T | GetAs (std::string const &path, int band=-1) const |
| |
| template<typename T > |
| T | GetAs (T const &defaultValue, std::string const &path, int band=-1) const |
| |
| template<typename T > |
| std::vector< T > | GetAsVector (std::string const &path, char sep=' ', int size=-1, int band=-1) const |
| |
| virtual std::vector< std::string > | GetResourceFiles () const |
| |
| bool | HasValue (std::string const &path, int band=-1) const |
| |
| virtual | ~MetadataSupplierInterface ()=default |
| |
| std::string | m_FileName |
| |
| char ** | m_MetadataDic = nullptr |
| |
| template<typename T > |
| T | GetFirstAs (std::string const &path) const |
| |
| std::string | GetResourceFile (std::string const &s="") const override |
| |
| int | GetNbBands () const override |
| |
| unsigned int | GetNumberOf (std::string const &path) const override |
| |
| unsigned int | GetAttributeId (std::string const &path, std::string const &value) const override |
| |
| std::string | PrintSelf () const |
| |
| | ~XMLMetadataSupplier ()=default |
| |
| char ** | AddXMLNameValueToList (char **papszList, const char *pszName, const char *pszValue) |
| |
| void | ReadXMLToListFirstPass (const CPLXMLNode *psNode, std::map< std::string, int > &oMapCountKeysFull, const std::string &osPrefixFull) |
| |
| virtual char ** | ReadXMLToList (const CPLXMLNode *psNode, char **papszList, const std::map< std::string, int > &oMapCountKeysFullRef, std::map< std::string, int > &oMapCountKeysFull, std::map< std::string, int > &oMapCountKeys, const std::string &osPrefix, const std::string &osPrefixFull) |
| |
| virtual char ** | ReadXMLToList (CPLXMLNode *psNode, char **papszList, const char *pszName="") |
| |
| std::vector< std::string > | FetchPartialNameValueMultiple (char **papszStrList, const char *pszName) const |
| |
| std::vector< std::string > | FetchPartialNameValueMultiple (const std::vector< std::string > &StringVector, const std::string &Name) const |
| |
| std::vector< std::string > | GetAllStartWith (char **papszStrList, const char *pszName) const |
| |
Class to access metadata information in a XML file.
Definition at line 41 of file otbXMLMetadataSupplier.h.
template<typename T >
| T otb::XMLMetadataSupplier::GetFirstAs |
( |
std::string const & |
path | ) |
const |
|
inline |
Get the metadata value corresponding to a given path converted to the given type.
This method can look for a value in a list, using the _# jocker. For example, looking for "value" in a dictionary like this : foo_1.bar=42 foo_1.doo=99 foo_2.value=8 One can specify this path : foo_#.value, the method will then return 8.
- Parameters
-
| path | The path to look for. |
- Returns
- The value corresponding to path. @raises otb::Error if path not found
Definition at line 83 of file otbXMLMetadataSupplier.h.
References otbGenericExceptionMacro.