|
TeensyNanoExoCode
|
#include <IniFile.h>
Public Types | |
| enum | error_t { errorNoError = 0 , errorFileNotFound , errorFileNotOpen , errorBufferTooSmall , errorSeekError , errorSectionNotFound , errorKeyNotFound , errorEndOfFile , errorUnknownError } |
| typedef uint8_t | mode_t |
Public Member Functions | |
| IniFile (const char *filename, mode_t mode=FILE_READ, bool caseSensitive=false) | |
| ~IniFile () | |
| bool | open (void) |
| void | close (void) |
| bool | isOpen (void) const |
| error_t | getError (void) const |
| void | clearError (void) const |
| mode_t | getMode (void) const |
| const char * | getFilename (void) const |
| bool | validate (char *buffer, size_t len) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, IniFileState &state) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, char *value, size_t vlen) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, bool &b) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, int &val) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, double &val) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, uint8_t &val) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, uint16_t &val) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, long &val) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, unsigned long &val) const |
| bool | getValue (const char *section, const char *key, char *buffer, size_t len, float &val) const |
| bool | getIPAddress (const char *section, const char *key, char *buffer, size_t len, uint8_t *ip) const |
| bool | getMACAddress (const char *section, const char *key, char *buffer, size_t len, uint8_t mac[6]) const |
| bool | browseSections (char *buffer, size_t len, IniFileState &state) const |
| bool | getCaseSensitive (void) const |
| void | setCaseSensitive (bool cs) |
Static Public Member Functions | |
| static error_t | readLine (File &file, char *buffer, size_t len, uint32_t &pos) |
| static bool | isCommentChar (char c) |
| static char * | skipWhiteSpace (char *str) |
| static void | removeTrailingWhiteSpace (char *str) |
Static Public Attributes | |
| static const uint8_t | maxFilenameLen = INI_FILE_MAX_FILENAME_LEN |
Protected Member Functions | |
| bool | findSection (const char *section, char *buffer, size_t len, IniFileState &state) const |
| bool | findKey (const char *section, const char *key, char *buffer, size_t len, char **keyptr, IniFileState &state) const |
| typedef uint8_t IniFile::mode_t |
| enum IniFile::error_t |
| IniFile::IniFile | ( | const char * | filename, |
| mode_t | mode = FILE_READ, |
||
| bool | caseSensitive = false |
||
| ) |
| IniFile::~IniFile | ( | ) |
| bool IniFile::browseSections | ( | char * | buffer, |
| size_t | len, | ||
| IniFileState & | state | ||
| ) | const |
|
inline |
|
inline |
|
protected |
|
protected |
| bool IniFile::getCaseSensitive | ( | void | ) | const |
|
inline |
|
inline |
| bool IniFile::getIPAddress | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| uint8_t * | ip | ||
| ) | const |
| bool IniFile::getMACAddress | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| uint8_t | mac[6] | ||
| ) | const |
|
inline |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| bool & | b | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| char * | value, | ||
| size_t | vlen | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| double & | val | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| float & | val | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| IniFileState & | state | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| int & | val | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| long & | val | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| uint16_t & | val | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| uint8_t & | val | ||
| ) | const |
| bool IniFile::getValue | ( | const char * | section, |
| const char * | key, | ||
| char * | buffer, | ||
| size_t | len, | ||
| unsigned long & | val | ||
| ) | const |
|
static |
|
inline |
|
inline |
|
static |
|
static |
| void IniFile::setCaseSensitive | ( | bool | cs | ) |
|
static |
| bool IniFile::validate | ( | char * | buffer, |
| size_t | len | ||
| ) | const |
|
static |