forked from CobaltFusion/DebugViewPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogFilter.h
More file actions
29 lines (22 loc) · 888 Bytes
/
Copy pathLogFilter.h
File metadata and controls
29 lines (22 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// (C) Copyright Gert-Jan de Vos and Jan Wilmans 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <boost/property_tree/ptree_fwd.hpp>
#include "Filter.h"
namespace fusion {
namespace debugviewpp {
struct FilterData
{
std::string name;
LogFilter filter;
};
boost::property_tree::ptree MakePTree(const std::vector<Filter>& filters);
std::vector<Filter> MakeFilters(const boost::property_tree::ptree& pt);
void SaveXml(const std::string& fileName, const std::string& name, const LogFilter& filter);
void SaveJson(const std::string& fileName, const std::string& name, const LogFilter& filter);
FilterData LoadXml(const std::string& fileName);
FilterData LoadJson(const std::string& fileName);
} // namespace debugviewpp
} // namespace fusion