zynq_7010/PropertiesParser.h

30 lines
605 B
C++

#ifndef PROPERTIESPARSER_H_
#define PROPERTIESPARSER_H_
#include <string>
#include <exception>
#include "Properties.h"
namespace cppproperties {
class PropertiesParser {
public:
PropertiesParser();
virtual ~PropertiesParser();
/**
* Reads a properties file and returns a Properties object.
*/
static Properties Read(const std::string& file);
/**
* Writes Properties object to a file.
*/
static void Write(const std::string& file, const Properties& props);
};
} /* namespace cppproperties */
#endif /* PROPERTIESPARSER_H_ */