WSF
src
core
wsf_parser
source
WsfPProxyDiff.hpp
Go to the documentation of this file.
1
// ****************************************************************************
2
// CUI
3
//
4
// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5
//
6
// Copyright 2003-2015 The Boeing Company. All rights reserved.
7
//
8
// The use, dissemination or disclosure of data in this file is subject to
9
// limitation or restriction. See accompanying README and LICENSE for details.
10
// ****************************************************************************
11
// ****************************************************************************
12
// Updated by Infoscitex, a DCS Company.
13
// ****************************************************************************
14
15
#ifndef WSFPPROXYDIFF_HPP
16
#define WSFPPROXYDIFF_HPP
17
#include "wsf_parser_export.h"
18
19
#include "
WsfPProxyPath.hpp
"
20
#include "
WsfPProxyValue.hpp
"
21
struct
WSF_PARSER_EXPORT
WsfPProxyDiff
22
{
23
enum
DiffType
24
{
25
cADDED
,
26
cCHANGED
,
27
cREMOVED
28
};
29
struct
DiffEntry
30
{
31
DiffType
mType
;
32
WsfPProxyPath
mPath
;
33
};
34
void
AddDiff
(
const
WsfPProxyPath
& aPath,
DiffType
aType);
35
void
Diff
(
WsfPProxyValue
aOld,
WsfPProxyValue
aNew,
const
WsfPProxyPath
& aPath);
36
bool
IsEqual
(
WsfPProxyValue
aOld,
WsfPProxyValue
aNew);
37
38
std::vector<DiffEntry>
mDiffs
;
39
};
40
41
#endif
WsfPProxyPath.hpp
WsfPProxyValue.hpp
WsfPProxyPath
Represents a path or unique key to a value in the proxy.
Definition
WsfPProxyPath.hpp:64
WsfPProxyValue
Definition
WsfPProxyValue.hpp:33
WsfPProxyDiff::DiffEntry
Definition
WsfPProxyDiff.hpp:30
WsfPProxyDiff::DiffEntry::mType
DiffType mType
Definition
WsfPProxyDiff.hpp:31
WsfPProxyDiff::DiffEntry::mPath
WsfPProxyPath mPath
Definition
WsfPProxyDiff.hpp:32
WsfPProxyDiff
Definition
WsfPProxyDiff.hpp:22
WsfPProxyDiff::Diff
void Diff(WsfPProxyValue aOld, WsfPProxyValue aNew, const WsfPProxyPath &aPath)
Definition
WsfPProxyDiff.cpp:31
WsfPProxyDiff::AddDiff
void AddDiff(const WsfPProxyPath &aPath, DiffType aType)
Definition
WsfPProxyDiff.cpp:23
WsfPProxyDiff::mDiffs
std::vector< DiffEntry > mDiffs
Definition
WsfPProxyDiff.hpp:38
WsfPProxyDiff::DiffType
DiffType
Definition
WsfPProxyDiff.hpp:24
WsfPProxyDiff::cADDED
@ cADDED
Definition
WsfPProxyDiff.hpp:25
WsfPProxyDiff::cCHANGED
@ cCHANGED
Definition
WsfPProxyDiff.hpp:26
WsfPProxyDiff::cREMOVED
@ cREMOVED
Definition
WsfPProxyDiff.hpp:27
WsfPProxyDiff::IsEqual
bool IsEqual(WsfPProxyValue aOld, WsfPProxyValue aNew)
Definition
WsfPProxyDiff.cpp:154
Copyrights Multiple, All Rights Reserved