namespace snapper
{
+ const vector<string> EnumInfo<SnapshotMeta::State>::names({ "invalid", "valid" });
+
+
CmdMetaParse::CmdMetaParse(const Shell& shell, const string& snapshot_dir,
const string& cat_bin)
: path(snapshot_dir + "/info.xml")
SnapshotMeta meta = cmd_metaparse.get_meta();
s << "path: " << cmd_metaparse.path
<< ", checksum: " << cmd_metaparse.get_checksum()
+ << ", state: " << toString(meta.state) << ", date: " << meta.date
<< ", type: " << toString(meta.type) << ", pre_num: " << meta.pre_num
<< ", cleanup: " << meta.cleanup
<< ", userdata: " << show_userdata(meta.userdata) << '\n';
#define SNAPPER_CMD_METAPARSE_H
+#include <snapper/Enum.h>
#include <snapper/Snapshot.h>
#include "Shell.h"
};
+ template <> struct EnumInfo<SnapshotMeta::State>
+ {
+ static const vector<string> names;
+ };
+
+
class CmdMetaParse
{
public: