31#ifndef DRAIN_FILE_GDAL_XML
32#define DRAIN_FILE_GDAL_XML
34#include "drain/util/Flags.h"
35#include "drain/util/TreeXML.h"
36#include <drain/util/EnumFlags.h>
64 NodeGDAL(
const tag_t & t = GDAL::ITEM);
94 void handleType() override final;
114std::ostream & operator<<(std::ostream & ostr, const image::TreeGDAL & tree){
115 return image::TreeGDAL::node_data_t::toStream(ostr, tree);
119const EnumDict<image::NodeGDAL::tag_t>::dict_t EnumDict<image::NodeGDAL::tag_t>::dict;
143image::TreeGDAL & image::TreeGDAL::operator()(
const image::GDAL::tag_t & type){
157image::TreeGDAL & image::TreeGDAL::operator()(const std::string & name){
158 this->data.name = name;
NodeXML & setText(const S &value)
Assign the text content of this node. If the node type is undefined, set it to CTEXT.
Definition TreeXML.h:619
static TX & xmlSetType(TX &tree, const typename TX::node_data_t::xml_tag_t &type)
Definition XML.h:762
Definition TreeXML-GDAL.h:60
std::string sample
Standard GDAL attribute.
Definition TreeXML-GDAL.h:86
std::string role
Standard GDAL attribute.
Definition TreeXML-GDAL.h:89
Definition DataSelector.cpp:1277
DRAIN_TYPENAME(void)
Add a specialization for each type of those you want to support.
Definition TreeXML-GDAL.h:45