28 lines
374 B
C++
28 lines
374 B
C++
|
#ifndef FILE_T_HPP
|
||
|
#define FILE_T_HPP
|
||
|
|
||
|
#include <string>
|
||
|
#include <libxml2/libxml/xpath.h>
|
||
|
#include <libxml2/libxml/parser.h>
|
||
|
|
||
|
enum FILE_TYPE
|
||
|
{
|
||
|
UNKNOWN,
|
||
|
BACKUP,
|
||
|
CALIBRATION
|
||
|
};
|
||
|
|
||
|
class file_t
|
||
|
{
|
||
|
public:
|
||
|
explicit file_t(const xmlKey*);
|
||
|
void set_doc(const char*);
|
||
|
|
||
|
private:
|
||
|
std::string __name, __path, __sum;
|
||
|
static xmlDocPtr __doc;
|
||
|
xmlNodePtr __node;
|
||
|
};
|
||
|
|
||
|
#endif
|