|
RDFS
The Rice Comp413 2017 class' continuation on the work of the 2016 RDFS.
|
#include <ConfigReader.h>
Public Member Functions | |
| std::string | getString (std::string key) |
| int | getInt (std::string key) |
| bool | getBool (std::string key) |
This is for reading config files. The methods will need to be more specified to pick which config file you are reading from. Right now it only reads in the HDFS default xml file.
If you want to add files, then just add a function in the constructor which parses the file. This assumes all key names are unique across ALL files
| bool config_reader::ConfigReader::getBool | ( | std::string | key | ) |
Get a bool value associated with key
| key | the key in the config file |
| int config_reader::ConfigReader::getInt | ( | std::string | key | ) |
Get an int value associated with key
| key | the key in the config file |
| std::string config_reader::ConfigReader::getString | ( | std::string | key | ) |
Get a string value associated with key
| key | the key in the config file |
1.8.6