Chi-Tech
chi_physics::BasicOption Class Reference

#include <basic_options.h>

Public Member Functions

 BasicOption (const std::string &name, const std::string &string_value)
 
 BasicOption (const std::string &name, const bool &bool_value)
 
 BasicOption (const std::string &name, const int64_t &integer_value)
 
 BasicOption (const std::string &name, const double &float_value)
 
chi_data_types::VaryingDataType Type () const
 
std::string Name () const
 
std::string StringValue () const
 
bool BoolValue () const
 
int64_t IntegerValue () const
 
double FloatValue () const
 
void SetStringValue (const std::string &in_string_value)
 
void SetBoolValue (const bool &in_bool_value)
 
void SetIntegerValue (const int64_t &in_integer_value)
 
void SetFloatValue (const double &in_float_value)
 

Private Attributes

std::string name_
 
chi_data_types::Varying value_
 

Detailed Description

Class for option.

Definition at line 10 of file basic_options.h.

Constructor & Destructor Documentation

◆ BasicOption() [1/4]

chi_physics::BasicOption::BasicOption ( const std::string &  name,
const std::string &  string_value 
)
inline

Definition at line 17 of file basic_options.h.

◆ BasicOption() [2/4]

chi_physics::BasicOption::BasicOption ( const std::string &  name,
const bool &  bool_value 
)
inline

Definition at line 20 of file basic_options.h.

◆ BasicOption() [3/4]

chi_physics::BasicOption::BasicOption ( const std::string &  name,
const int64_t &  integer_value 
)
inline

Definition at line 23 of file basic_options.h.

◆ BasicOption() [4/4]

chi_physics::BasicOption::BasicOption ( const std::string &  name,
const double &  float_value 
)
inline

Definition at line 26 of file basic_options.h.

Member Function Documentation

◆ BoolValue()

bool chi_physics::BasicOption::BoolValue ( ) const
inline

Definition at line 33 of file basic_options.h.

◆ FloatValue()

double chi_physics::BasicOption::FloatValue ( ) const
inline

Definition at line 35 of file basic_options.h.

◆ IntegerValue()

int64_t chi_physics::BasicOption::IntegerValue ( ) const
inline

Definition at line 34 of file basic_options.h.

◆ Name()

std::string chi_physics::BasicOption::Name ( ) const
inline

Definition at line 31 of file basic_options.h.

◆ SetBoolValue()

void chi_physics::BasicOption::SetBoolValue ( const bool &  in_bool_value)
inline

Definition at line 38 of file basic_options.h.

◆ SetFloatValue()

void chi_physics::BasicOption::SetFloatValue ( const double &  in_float_value)
inline

Definition at line 40 of file basic_options.h.

◆ SetIntegerValue()

void chi_physics::BasicOption::SetIntegerValue ( const int64_t &  in_integer_value)
inline

Definition at line 39 of file basic_options.h.

◆ SetStringValue()

void chi_physics::BasicOption::SetStringValue ( const std::string &  in_string_value)
inline

Definition at line 37 of file basic_options.h.

◆ StringValue()

std::string chi_physics::BasicOption::StringValue ( ) const
inline

Definition at line 32 of file basic_options.h.

◆ Type()

chi_data_types::VaryingDataType chi_physics::BasicOption::Type ( ) const
inline

Definition at line 29 of file basic_options.h.

Field Documentation

◆ name_

std::string chi_physics::BasicOption::name_
private

Definition at line 13 of file basic_options.h.

◆ value_

chi_data_types::Varying chi_physics::BasicOption::value_
private

Definition at line 14 of file basic_options.h.


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