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 char *configFile)
 
 ConfigFile (const std::string &configFile)
 
void dumpValues (std::ostream &out)
 
bool read (const char *configFile)
 
bool read (const std::string &configFile)
 
const AutoValvalue (const std::string &section, const std::string &entry) const
 
const AutoValvalue (const std::string &section, const std::string &entry, bool def)
 
const AutoValvalue (const std::string &section, const std::string &entry, const char *def)
 
const AutoValvalue (const std::string &section, const std::string &entry, const std::string &def)
 
const AutoValvalue (const std::string &section, const std::string &entry, double 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)
 

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=" \t\r\n") 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 85 of file configfile.h.

Constructor & Destructor Documentation

◆ ConfigFile() [1/3]

GMapping::ConfigFile::ConfigFile ( )

Definition at line 176 of file configfile.cpp.

◆ ConfigFile() [2/3]

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

Definition at line 179 of file configfile.cpp.

◆ ConfigFile() [3/3]

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

Definition at line 183 of file configfile.cpp.

Member Function Documentation

◆ dumpValues()

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

Definition at line 284 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 223 of file configfile.cpp.

◆ read() [1/2]

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

Definition at line 187 of file configfile.cpp.

◆ read() [2/2]

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

Definition at line 191 of file configfile.cpp.

◆ toLower()

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

Definition at line 319 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 293 of file configfile.cpp.

◆ truncate()

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

Definition at line 307 of file configfile.cpp.

◆ value() [1/7]

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

Definition at line 227 of file configfile.cpp.

◆ value() [2/7]

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

Definition at line 244 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 276 of file configfile.cpp.

◆ value() [4/7]

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

Definition at line 268 of file configfile.cpp.

◆ value() [5/7]

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

Definition at line 236 of file configfile.cpp.

◆ value() [6/7]

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

Definition at line 252 of file configfile.cpp.

◆ value() [7/7]

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

Definition at line 260 of file configfile.cpp.

Member Data Documentation

◆ m_content

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

Definition at line 86 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 Thu Oct 19 2023 02:25:51