21 #ifndef otbMetadataStorageInterface_h
22 #define otbMetadataStorageInterface_h
24 #include "OTBMetadataExport.h"
49 virtual void SetMetadataValue(
const char * path,
const char * value,
int band=-1) = 0;
52 void SetAs(
const std::string & path,
double value,
int band=-1);
54 void SetAs(
const std::string & path,
const std::string & value,
int band=-1);
57 template <
typename T>
void SetAsVector(
const char *path, std::vector<T> value,
const char sep=
' ',
int band=-1)
59 std::ostringstream oss;
63 SetMetadataValue(path, oss.str().c_str(), band);
65 template <
typename T>
void SetAsVector(
const std::string& path, std::vector<T> value,
const char sep=
' ',
int band=-1)
67 SetAsVector(path.c_str(), value, sep, band);