Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GMapping::ConfigFile Class Reference

#include <configfile.h>

Public Member Functions

 ConfigFile ()
 
 ConfigFile (const std::string &configFile)
 
 ConfigFile (const char *configFile)
 
void dumpValues (std::ostream &out)
 
bool read (const std::string &configFile)
 
bool read (const char *configFile)
 
const AutoValvalue (const std::string &section, const std::string &entry) const
 
const AutoValvalue (const std::string &section, const std::string &entry, double def)
 
const AutoValvalue (const std::string &section, const std::string &entry, const char *def)
 
const AutoValvalue (const std::string &section, const std::string &entry, bool def)
 
const AutoValvalue (const std::string &section, const std::string &entry, int def)
 
const AutoValvalue (const std::string &section, const std::string &entry, unsigned int def)
 
const AutoValvalue (const std::string &section, const std::string &entry, const std::string &def)
 

Protected Member Functions

void insertValue (const std::string &section, const std::string &entry, const std::string &thevalue)
 
std::string toLower (const std::string &source) const
 
std::string trim (const std::string &source, char const *delims=" \\) const
 
std::string truncate (const std::string &source, const char *atChar) const
 

Private Attributes

std::map< std::string, AutoValm_content
 

Detailed Description

Definition at line 66 of file configfile.h.

Constructor & Destructor Documentation

◆ ConfigFile() [1/3]

GMapping::ConfigFile::ConfigFile ( )

Definition at line 157 of file configfile.cpp.

◆ ConfigFile() [2/3]

GMapping::ConfigFile::ConfigFile ( const std::string &  configFile)

Definition at line 160 of file configfile.cpp.

◆ ConfigFile() [3/3]

GMapping::ConfigFile::ConfigFile ( const char *  configFile)

Definition at line 164 of file configfile.cpp.

Member Function Documentation

◆ dumpValues()

void GMapping::ConfigFile::dumpValues ( std::ostream &  out)

Definition at line 265 of file configfile.cpp.

◆ insertValue()

void GMapping::ConfigFile::insertValue ( const std::string &  section,
const std::string &  entry,
const std::string &  thevalue 
)
protected

Definition at line 204 of file configfile.cpp.

◆ read() [1/2]

bool GMapping::ConfigFile::read ( const std::string &  configFile)

Definition at line 172 of file configfile.cpp.

◆ read() [2/2]

bool GMapping::ConfigFile::read ( const char *  configFile)

Definition at line 168 of file configfile.cpp.

◆ toLower()

std::string GMapping::ConfigFile::toLower ( const std::string &  source) const
protected

Definition at line 300 of file configfile.cpp.

◆ trim()

std::string GMapping::ConfigFile::trim ( const std::string &  source,
char const *  delims = " \t\r\n" 
) const
protected

Definition at line 274 of file configfile.cpp.

◆ truncate()

std::string GMapping::ConfigFile::truncate ( const std::string &  source,
const char *  atChar 
) const
protected

Definition at line 288 of file configfile.cpp.

◆ value() [1/7]

const AutoVal & GMapping::ConfigFile::value ( const std::string &  section,
const std::string &  entry 
) const

Definition at line 208 of file configfile.cpp.

◆ value() [2/7]

const AutoVal & GMapping::ConfigFile::value ( const std::string &  section,
const std::string &  entry,
double  def 
)

Definition at line 217 of file configfile.cpp.

◆ value() [3/7]

const AutoVal & GMapping::ConfigFile::value ( const std::string &  section,
const std::string &  entry,
const char *  def 
)

Definition at line 257 of file configfile.cpp.

◆ value() [4/7]

const AutoVal & GMapping::ConfigFile::value ( const std::string &  section,
const std::string &  entry,
bool  def 
)

Definition at line 225 of file configfile.cpp.

◆ value() [5/7]

const AutoVal & GMapping::ConfigFile::value ( const std::string &  section,
const std::string &  entry,
int  def 
)

Definition at line 233 of file configfile.cpp.

◆ value() [6/7]

const AutoVal & GMapping::ConfigFile::value ( const std::string &  section,
const std::string &  entry,
unsigned int  def 
)

Definition at line 241 of file configfile.cpp.

◆ value() [7/7]

const AutoVal & GMapping::ConfigFile::value ( const std::string &  section,
const std::string &  entry,
const std::string &  def 
)

Definition at line 249 of file configfile.cpp.

Member Data Documentation

◆ m_content

std::map<std::string,AutoVal> GMapping::ConfigFile::m_content
private

Definition at line 67 of file configfile.h.


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


openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Mon Feb 28 2022 22:59:20