30 lines
572 B
C++
30 lines
572 B
C++
#pragma once
|
|
|
|
#include "ModuleVersion.h"
|
|
|
|
#include <boost/property_tree/ptree.hpp>
|
|
|
|
#include <string>
|
|
#include <ostream>
|
|
|
|
enum class ModuleUpdateFlags : uint32_t
|
|
{
|
|
defaultValue = 0,
|
|
incremental = 1,
|
|
restartRequired = 2,
|
|
computerRebootRequired = 4
|
|
};
|
|
|
|
struct ModuleUpdate
|
|
{
|
|
std::string moduleId;
|
|
std::string updateUri;
|
|
std::string instPath;
|
|
ModuleVersion version;
|
|
std::string checksum;
|
|
int flag;
|
|
};
|
|
|
|
void serialize(std::ostream& os, const ModuleUpdate& a);
|
|
void deserialize(const boost::property_tree::ptree& tree, ModuleUpdate& a);
|