Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
ConfigFile.h
Go to the documentation of this file.
1
/*
2
* ConfigFileWriter.h
3
*
4
* Created on: Nov 7, 2013
5
* Author: jmeyers
6
*/
7
8
#ifndef CONFIGFILE_H_
9
#define CONFIGFILE_H_
10
11
#include <string>
12
#include <cstdio>
13
#include <fstream>
14
15
class
ConfigFile
16
{
17
public
:
21
ConfigFile
(
const
char
*apFilename,
bool
output =
false
);
22
26
virtual
~ConfigFile
();
27
33
bool
isValid
();
34
35
bool
writeElement
(std::string &arName,
const
char
*apValue);
36
bool
writeElement
(std::string &arName, std::string &arValue);
37
bool
writeElement
(std::string &arName,
double
anValue);
38
bool
writeElement
(std::string &arName,
float
anValue);
39
bool
writeElement
(std::string &arName,
int
anValue);
40
bool
writeElement
(std::string &arName,
unsigned
int
anValue);
41
bool
writeElement
(
const
char
*apName,
const
char
*apValue);
42
bool
writeElement
(
const
char
*apName, std::string &arValue);
43
bool
writeElement
(
const
char
*apName,
double
anValue);
44
bool
writeElement
(
const
char
*apName,
float
anValue);
45
bool
writeElement
(
const
char
*apName,
int
anValue);
46
bool
writeElement
(
const
char
*apName,
unsigned
int
anValue);
47
48
bool
readElement
(
unsigned
int
*apReadValue);
49
bool
readElement
(
int
*apReadValue);
50
bool
readElement
(
float
*apReadValue);
51
bool
readElement
(
double
*apReadValue);
52
bool
readElement
(std::string *apReadValue);
53
private
:
54
std::fstream mhFile;
55
};
56
57
#endif
/* CONFIGFILE_H_ */
ConfigFile::isValid
bool isValid()
Definition:
ConfigFile.cpp:27
ConfigFile::~ConfigFile
virtual ~ConfigFile()
Definition:
ConfigFile.cpp:19
ConfigFile::writeElement
bool writeElement(std::string &arName, const char *apValue)
ConfigFile
Definition:
ConfigFile.h:15
ConfigFile::readElement
bool readElement(unsigned int *apReadValue)
Definition:
ConfigFile.cpp:153
ConfigFile::ConfigFile
ConfigFile(const char *apFilename, bool output=false)
Definition:
ConfigFile.cpp:12
src
Utility
ConfigFile.h
Generated on Wed Mar 23 2022 10:59:09 for Critical Link MityCam SoC Firmware by
1.8.17