29 YAML_data(
const std::string& name,
const std::string& type) : name_(name), type_(type), dimension_(0), hdf_name_(name) { }
30 YAML_data(
const std::string& name,
const std::string& type,
int nb_dim) : name_(name), type_(type), dimension_(nb_dim), hdf_name_(name) { }
31 YAML_data(
const std::string& name,
const std::string& type,
int nb_dim,
bool loc) : name_(name), type_(type), dimension_(nb_dim), local_(loc), hdf_name_(name) { }
32 YAML_data(
const std::string& name,
const std::string& type,
int nb_dim,
bool loc,
bool is_ds) : name_(name), type_(type), dimension_(nb_dim), local_(loc), is_dataset_(is_ds), hdf_name_(name) { }
37 void add_attribute(
const std::string& attr) { attributes_.push_back(attr); }
43 const std::string&
get_name()
const {
return name_; }
44 const std::string&
get_type()
const {
return type_; }
48 const std::vector<std::string>&
get_attributes()
const {
return attributes_; }
64 std::string conditions_;
66 std::vector<std::string> attributes_;
68 bool is_dataset_ =
true;
70 std::string hdf_name_;
72 bool save_field_type_ =
false;