1#ifndef COMSERVATORY_CREATOR_HPP
2#define COMSERVATORY_CREATOR_HPP
48template<
bool val
idate_only>
49struct DefaultFieldCreator :
public FieldCreator {
50 Field* create(Type observed,
size_t n,
bool dummy)
const {
55 if (dummy || validate_only) {
56 ptr =
new DummyStringField(n);
62 if (dummy || validate_only) {
69 if (dummy || validate_only) {
76 if (dummy || validate_only) {
83 throw std::runtime_error(
"unrecognized type during field creation");
Defines the Field virtual class and concrete implementations.
Contains all comservatory functions and classes.
Definition: Field.hpp:16
DummyField< std::complex< double >, COMPLEX > DummyComplexField
Definition: Field.hpp:244
Type
Definition: Type.hpp:15
FilledField< double, NUMBER > FilledNumberField
Definition: Field.hpp:209
FilledField< std::string, STRING > FilledStringField
Definition: Field.hpp:194
FilledField< std::complex< double >, COMPLEX > FilledComplexField
Definition: Field.hpp:239
FilledField< bool, BOOLEAN > FilledBooleanField
Definition: Field.hpp:224
DummyField< bool, BOOLEAN > DummyBooleanField
Definition: Field.hpp:229
DummyField< double, NUMBER > DummyNumberField
Definition: Field.hpp:214
Virtual base class for a Field creator.
Definition: Creator.hpp:23
virtual Field * create(Type t, size_t n, bool dummy) const =0
Virtual base class for a describing a field.
Definition: Field.hpp:23