OGS
FileIO::Gocad::Property Struct Referencefinal

Detailed Description

Definition at line 21 of file Property.h.

#include <Property.h>

Public Member Functions

bool checkID (std::string const &id_string) const
 

Public Attributes

std::size_t _property_id {}
 
std::string _property_name
 
std::string _property_class_name
 
std::string _property_unit
 
std::string _property_data_type
 
std::string _property_data_fname
 
double _property_no_data_value {}
 
std::vector< double > _property_data
 

Member Function Documentation

◆ checkID()

bool FileIO::Gocad::Property::checkID ( std::string const & id_string) const
inline

Definition at line 31 of file Property.h.

32 {
33 if (_property_id != std::stoul(id_string))
34 {
35 ERR("Expected property id {:d} but found {:d}.",
37 std::stoul(id_string));
38 return false;
39 }
40 return true;
41 }
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:45
std::size_t _property_id
Definition Property.h:23

References _property_id, and ERR().

Referenced by FileIO::Gocad::parseGocadPropertyMetaData().

Member Data Documentation

◆ _property_class_name

std::string FileIO::Gocad::Property::_property_class_name

◆ _property_data

std::vector<double> FileIO::Gocad::Property::_property_data

◆ _property_data_fname

std::string FileIO::Gocad::Property::_property_data_fname

◆ _property_data_type

std::string FileIO::Gocad::Property::_property_data_type

◆ _property_id

◆ _property_name

◆ _property_no_data_value

double FileIO::Gocad::Property::_property_no_data_value {}

◆ _property_unit


The documentation for this struct was generated from the following file: