33 DeckItem(
const std::string&
name ,
bool m_scalar =
true);
34 const std::string&
name()
const;
49 virtual size_t size()
const = 0;
52 throw std::logic_error(
"This implementation of DeckItem does not support int");
56 throw std::logic_error(
"This implementation of DeckItem does not support float");
60 throw std::logic_error(
"This implementation of DeckItem does not support float");
64 throw std::logic_error(
"This implementation of DeckItem does not support double");
68 throw std::logic_error(
"This implementation of DeckItem does not support double");
72 throw std::logic_error(
"This implementation of DeckItem does not support bool");
75 virtual const std::string&
getString(
size_t )
const {
76 throw std::logic_error(
"This implementation of DeckItem does not support string");
80 throw std::logic_error(
"This implementation of DeckItem does not support trimmed strings");
84 throw std::logic_error(
"This implementation of DeckItem does not support int");
88 throw std::logic_error(
"This implementation of DeckItem does not support double");
92 throw std::logic_error(
"This implementation of DeckItem does not support double");
96 throw std::logic_error(
"This implementation of DeckItem does not support float");
100 throw std::logic_error(
"This implementation of DeckItem does not support float");
105 throw std::logic_error(
"This implementation of DeckItem does not support string");
109 std::shared_ptr<const Dimension> ) {
110 throw std::invalid_argument(
"Should not be here - internal error ...");
virtual const std::string & getString(size_t) const
Definition: DeckItem.hpp:75
virtual std::string getTrimmedString(size_t) const
Definition: DeckItem.hpp:79
virtual const std::vector< double > & getRawDoubleData() const
Definition: DeckItem.hpp:91
std::shared_ptr< DeckItem > DeckItemPtr
Definition: DeckItem.hpp:126
bool defaultApplied(size_t index) const
void assertSize(size_t index) const
virtual const std::vector< float > & getRawFloatData() const
Definition: DeckItem.hpp:99
virtual double getSIDouble(size_t) const
Definition: DeckItem.hpp:63
std::shared_ptr< const DeckItem > DeckItemConstPtr
Definition: DeckItem.hpp:127
virtual bool getBool(size_t) const
Definition: DeckItem.hpp:71
const std::string & name() const
virtual const std::vector< int > & getIntData() const
Definition: DeckItem.hpp:83
bool hasValue(size_t index) const
virtual size_t size() const =0
virtual double getRawDouble(size_t) const
Definition: DeckItem.hpp:67
virtual void push_backDimension(std::shared_ptr< const Dimension >, std::shared_ptr< const Dimension >)
Definition: DeckItem.hpp:108
virtual const std::vector< std::string > & getStringData() const
Definition: DeckItem.hpp:104
Definition: DeckItem.hpp:31
virtual const std::vector< double > & getSIDoubleData() const
Definition: DeckItem.hpp:87
virtual int getInt(size_t) const
Definition: DeckItem.hpp:51
virtual const std::vector< float > & getSIFloatData() const
Definition: DeckItem.hpp:95
virtual ~DeckItem()
Definition: DeckItem.hpp:113
std::vector< bool > m_dataPointDefaulted
Definition: DeckItem.hpp:119
DeckItem(const std::string &name, bool m_scalar=true)
virtual float getSIFloat(size_t) const
Definition: DeckItem.hpp:55
virtual float getRawFloat(size_t) const
Definition: DeckItem.hpp:59