21#include "UtMemoryDebug.hpp"
72 const std::string* aRenameName)
81 void UndoPlatformRenames();
84 void SetSaveFile(
const WsfPProxyPath& aPath,
const std::string& aFilePath);
85 const std::map<WsfPProxyPath, std::string>&
SaveFiles()
const {
return mSaveToFile; }
86 std::map<WsfPProxyPath, std::string> RenameMappingOldToNew();
87 size_t FindAttributeIndex(
const std::string& aStructName,
const std::string& aAttributeName);
91 void PropagateNodeDeletion(
const WsfPProxyNode& aRemovedNode);
94 const std::shared_ptr<WsfPProxyRegistry>&
GetRegistry()
const {
return mRegistry; }
95 void Registry(
const std::shared_ptr<WsfPProxyRegistry>& aRegistry) { mRegistry = aRegistry; }
97 using RenameMap = std::map<WsfPProxyPath, WsfPProxyPath>;
122 short mProxySequenceNumber;
125 std::shared_ptr<WsfPProxyRegistry> mRegistry;
128 std::map<WsfPProxyPath, std::string> mSaveToFile;
std::set< WsfPProxyPath > WsfPProxyPathSet
Definition WsfPProxyPath.hpp:179
@ cMDB_PROXY
Definition WsfParseDebugMarkers.hpp:25
Definition WsfPProxyNode.hpp:60
Represents a path or unique key to a value in the proxy.
Definition WsfPProxyPath.hpp:64
Definition WsfPProxyStructValue.hpp:23
Definition WsfPProxyValue.hpp:33
Definition WsfPProxy.hpp:32
std::map< WsfPProxyPath, WsfPProxyPath > RenameMap
Definition WsfPProxy.hpp:97
WsfPProxy()
Definition WsfPProxy.cpp:48
std::function< void(WsfPProxy *, ProxyModifiedReason, const WsfPProxyPath &, const std::string *)> ProxyModifiedFn
Definition WsfPProxy.hpp:45
BeforeModifyFn mBeforeModifiedCallback
Definition WsfPProxy.hpp:115
WsfPProxyStructValue mBasicRoot
Definition WsfPProxy.hpp:103
void SetBeforeProxyModifiedCallback(BeforeModifyFn aFunctionPtr)
Definition WsfPProxy.hpp:53
std::function< void(WsfPProxy *, ProxyModifiedReason, const WsfPProxyPath &, const std::string *)> BeforeModifyFn
Definition WsfPProxy.hpp:46
ProxyModifiedReason
Definition WsfPProxy.hpp:35
@ cPM_CHILD_ADDED
Definition WsfPProxy.hpp:37
@ cPM_CHILD_MOVED
Definition WsfPProxy.hpp:41
@ cPM_CHILD_REMOVED
Definition WsfPProxy.hpp:39
@ cPM_VALUE_CHANGED
Definition WsfPProxy.hpp:43
WsfPProxy(const WsfPProxy &)=delete
void IncrementSequenceNumber()
Definition WsfPProxy.hpp:83
std::unique_ptr< WsfPProxyPathMap > mPathMap
Definition WsfPProxy.hpp:111
short SequenceNumber() const
Definition WsfPProxy.hpp:82
void SetProxyModifiedCallback(ProxyModifiedFn aFunctionPtr)
Definition WsfPProxy.hpp:52
WsfPProxyValue mRoot
Definition WsfPProxy.hpp:105
ProxyModifiedFn mModifiedCallback
Definition WsfPProxy.hpp:113
RenameMap mRenamedObjects
Definition WsfPProxy.hpp:118
WsfPProxy & operator=(const WsfPProxy &)=delete
void NotifyBeforeProxyModified(ProxyModifiedReason aProxyModifiedReason, const WsfPProxyPath &aPath, const std::string *aRenameName)
Definition WsfPProxy.hpp:70
bool mHasModifications
Definition WsfPProxy.hpp:101
const std::shared_ptr< WsfPProxyRegistry > & GetRegistry() const
Definition WsfPProxy.hpp:94
std::unique_ptr< WsfPProxyIndex > mIndex
Definition WsfPProxy.hpp:107
void Registry(const std::shared_ptr< WsfPProxyRegistry > &aRegistry)
Definition WsfPProxy.hpp:95
const std::map< WsfPProxyPath, std::string > & SaveFiles() const
Definition WsfPProxy.hpp:85
void NotifyProxyModified(ProxyModifiedReason aProxyModifiedReason, const WsfPProxyPath &aPath, const std::string *aRenameName)
Definition WsfPProxy.hpp:61