21 #ifndef otbMetadataStorageInterface_h
22 #define otbMetadataStorageInterface_h
24 #include "OTBMetadataExport.h"
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);
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
std::ostream & Join(std::ostream &os, TRange const &range, std::string const &separator)