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);
81 void handleType(
const tag_t & t)
override final;
96typedef drain::UnorderedMultiTree<image::NodeGDAL> TreeGDAL;
107std::ostream & operator<<(std::ostream & ostr,
const image::TreeGDAL & tree){
108 return image::TreeGDAL::node_data_t::toStream(ostr, tree);
112const EnumDict<image::NodeGDAL::tag_t>::dict_t EnumDict<image::NodeGDAL::tag_t>::dict;
136image::TreeGDAL & image::TreeGDAL::operator()(
const image::GDAL::tag_t & type){
150image::TreeGDAL & image::TreeGDAL::operator()(const std::string & name){
151 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:679
Definition TreeXML-GDAL.h:60
virtual void handleType(const tag_t &t) override final
Internal function called after setType()
Definition TreeXML-GDAL.cpp:111
std::string sample
Standard GDAL attribute.
Definition TreeXML-GDAL.h:88
std::string role
Standard GDAL attribute.
Definition TreeXML-GDAL.h:91
Definition DataSelector.cpp:1277
DRAIN_TYPENAME(void)
Add a specialization for each type of those you want to support.
Definition TreeXML-GDAL.h:45