Instrument Neutral Distributed Interface INDI 2.2.5
Classes | Typedefs | Functions
ini Namespace Reference

Classes

struct  Convert
 
struct  Convert< bool >
 
struct  Convert< char * >
 
struct  Convert< char >
 
struct  Convert< char[n]>
 
struct  Convert< const char * >
 
struct  Convert< double >
 
struct  Convert< float >
 
struct  Convert< int >
 
struct  Convert< long >
 
struct  Convert< short >
 
struct  Convert< std::string >
 
struct  Convert< unsigned char >
 
struct  Convert< unsigned int >
 
struct  Convert< unsigned long >
 
struct  Convert< unsigned short >
 
class  IniField
 
class  IniFileBase
 
class  IniSectionBase
 
struct  StringInsensitiveLess
 

Typedefs

using IniSection = IniSectionBase< std::less< std::string > >
 
using IniSectionCaseInsensitive = IniSectionBase< StringInsensitiveLess >
 
using IniFile = IniFileBase< std::less< std::string > >
 
using IniFileCaseInsensitive = IniFileBase< StringInsensitiveLess >
 

Functions

constexpr const char * whitespaces ()
 
constexpr const char * indents ()
 
void trim (std::string &str)
 
bool strToLong (const std::string &value, long &result)
 
bool strToULong (const std::string &value, unsigned long &result)
 

Typedef Documentation

◆ IniFile

using ini::IniFile = typedef IniFileBase<std::less<std::string> >

Definition at line 739 of file inicpp.h.

◆ IniFileCaseInsensitive

Definition at line 741 of file inicpp.h.

◆ IniSection

typedef IniSectionBase< std::less< std::string > > ini::IniSection

Definition at line 411 of file inicpp.h.

◆ IniSectionCaseInsensitive

Definition at line 412 of file inicpp.h.

Function Documentation

◆ indents()

constexpr const char * ini::indents ( )
constexpr

Returns a string of indentation characters.

Definition at line 34 of file inicpp.h.

◆ strToLong()

bool ini::strToLong ( const std::string &  value,
long &  result 
)
inline

Definition at line 62 of file inicpp.h.

◆ strToULong()

bool ini::strToULong ( const std::string &  value,
unsigned long &  result 
)
inline

Definition at line 81 of file inicpp.h.

◆ trim()

void ini::trim ( std::string &  str)
inline

Trims a string in place.

Parameters
strstring to be trimmed in place

Definition at line 41 of file inicpp.h.

◆ whitespaces()

constexpr const char * ini::whitespaces ( )
constexpr

Returns a string of whitespace characters.

Definition at line 28 of file inicpp.h.