This repository has been archived on 2021-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
modetw/include/file_t.hpp

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