VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
vf::basics::ConfigurationFile Class Reference

#include <ConfigurationFile.h>

Public Member Functions

void clear ()
 clear all values
 
void load (const std::string &File)
 load a configuration file
 
bool contains (const std::string &key) const
 check if value associated with given key exists
 
template<class T >
std::vector< TgetVector (const std::string &key) const
 get vector with key
 
template<class T >
T getValue (const std::string &key) const
 get value with key
 
template<class T >
T getValue (const std::string &key, T defaultValue) const
 get value with key and default value
 

Public Attributes

std::map< std::string, std::string > data
 the container is public to test this class
 

Detailed Description

Definition at line 94 of file ConfigurationFile.h.

Member Function Documentation

◆ clear()

void vf::basics::ConfigurationFile::clear ( )

clear all values

Definition at line 55 of file ConfigurationFile.cpp.

◆ contains()

bool vf::basics::ConfigurationFile::contains ( const std::string &  key) const

check if value associated with given key exists

Definition at line 103 of file ConfigurationFile.cpp.

◆ getValue() [1/2]

template<class T >
T vf::basics::ConfigurationFile::getValue ( const std::string &  key) const

get value with key

Definition at line 155 of file ConfigurationFile.h.

◆ getValue() [2/2]

template<class T >
T vf::basics::ConfigurationFile::getValue ( const std::string &  key,
T  defaultValue 
) const

get value with key and default value

Definition at line 163 of file ConfigurationFile.h.

◆ getVector()

template<class T >
std::vector< T > vf::basics::ConfigurationFile::getVector ( const std::string &  key) const

get vector with key

Definition at line 139 of file ConfigurationFile.h.

◆ load()

void vf::basics::ConfigurationFile::load ( const std::string &  File)

load a configuration file

Definition at line 60 of file ConfigurationFile.cpp.

Member Data Documentation

◆ data

std::map<std::string, std::string> vf::basics::ConfigurationFile::data

the container is public to test this class

Definition at line 119 of file ConfigurationFile.h.


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