RDFS
The Rice Comp413 2017 class' continuation on the work of the 2016 RDFS.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
config_reader::ConfigReader Class Reference

#include <ConfigReader.h>

Public Member Functions

std::string getString (std::string key)
 
int getInt (std::string key)
 
bool getBool (std::string key)
 

Detailed Description

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

Member Function Documentation

bool config_reader::ConfigReader::getBool ( std::string  key)

Get a bool value associated with key

Parameters
keythe key in the config file
int config_reader::ConfigReader::getInt ( std::string  key)

Get an int value associated with key

Parameters
keythe key in the config file
std::string config_reader::ConfigReader::getString ( std::string  key)

Get a string value associated with key

Parameters
keythe key in the config file

The documentation for this class was generated from the following files: