WSF
WsfPProxy Class Reference

#include <WsfPProxy.hpp>

Collaboration diagram for WsfPProxy:

Public Types

enum  ProxyModifiedReason { cPM_CHILD_ADDED , cPM_CHILD_REMOVED , cPM_CHILD_MOVED , cPM_VALUE_CHANGED }
using ProxyModifiedFn = std::function<void(WsfPProxy*, ProxyModifiedReason, const WsfPProxyPath&, const std::string*)>
using BeforeModifyFn = std::function<void(WsfPProxy*, ProxyModifiedReason, const WsfPProxyPath&, const std::string*)>
using RenameMap = std::map<WsfPProxyPath, WsfPProxyPath>

Public Member Functions

 WsfPProxy ()
 WsfPProxy (const WsfPProxy &)=delete
WsfPProxyoperator= (const WsfPProxy &)=delete
 ~WsfPProxy ()
void SetProxyModifiedCallback (ProxyModifiedFn aFunctionPtr)
void SetBeforeProxyModifiedCallback (BeforeModifyFn aFunctionPtr)
void BuildPathMap ()
bool GetChildrenPaths (const WsfPProxyPath &nodePath, WsfPProxyPathSet &childrenPaths, WsfPProxyPath &suffixPath) const
const WsfPProxyPathSetGetInheritedValuePaths (const WsfPProxyPath &nodePath) const
void RecordObjectRename (const WsfPProxyPath &aOldPath, const WsfPProxyPath &aNewPath)
void NotifyProxyModified (ProxyModifiedReason aProxyModifiedReason, const WsfPProxyPath &aPath, const std::string *aRenameName)
void NotifyBeforeProxyModified (ProxyModifiedReason aProxyModifiedReason, const WsfPProxyPath &aPath, const std::string *aRenameName)
void UndoPlatformRenames ()
short SequenceNumber () const
void IncrementSequenceNumber ()
void SetSaveFile (const WsfPProxyPath &aPath, const std::string &aFilePath)
const std::map< WsfPProxyPath, std::string > & SaveFiles () const
std::map< WsfPProxyPath, std::string > RenameMappingOldToNew ()
size_t FindAttributeIndex (const std::string &aStructName, const std::string &aAttributeName)
WsfPProxyValue NewValue (const std::string &aTypeName)
void PropagateNodeChange (const WsfPProxyNode &aModifiedNode)
void PropagateNodeAddition (const WsfPProxyNode &aAddedNode)
void PropagateNodeDeletion (const WsfPProxyNode &aRemovedNode)
void Swap (WsfPProxy &aProxy)
const std::shared_ptr< WsfPProxyRegistry > & GetRegistry () const
void Registry (const std::shared_ptr< WsfPProxyRegistry > &aRegistry)

Public Attributes

bool mHasModifications
WsfPProxyStructValue mBasicRoot
WsfPProxyValue mRoot
std::unique_ptr< WsfPProxyIndexmIndex
std::unique_ptr< WsfPProxyPathMapmPathMap
ProxyModifiedFn mModifiedCallback
BeforeModifyFn mBeforeModifiedCallback
RenameMap mRenamedObjects

Member Typedef Documentation

◆ BeforeModifyFn

using WsfPProxy::BeforeModifyFn = std::function<void(WsfPProxy*, ProxyModifiedReason, const WsfPProxyPath&, const std::string*)>

◆ ProxyModifiedFn

using WsfPProxy::ProxyModifiedFn = std::function<void(WsfPProxy*, ProxyModifiedReason, const WsfPProxyPath&, const std::string*)>

◆ RenameMap

Member Enumeration Documentation

◆ ProxyModifiedReason

Enumerator
cPM_CHILD_ADDED 
cPM_CHILD_REMOVED 
cPM_CHILD_MOVED 
cPM_VALUE_CHANGED 

Constructor & Destructor Documentation

◆ WsfPProxy() [1/2]

WsfPProxy::WsfPProxy ( )

◆ WsfPProxy() [2/2]

WsfPProxy::WsfPProxy ( const WsfPProxy & )
delete

References WsfPProxy().

◆ ~WsfPProxy()

WsfPProxy::~WsfPProxy ( )

References mRoot.

Member Function Documentation

◆ BuildPathMap()

void WsfPProxy::BuildPathMap ( )

◆ FindAttributeIndex()

size_t WsfPProxy::FindAttributeIndex ( const std::string & aStructName,
const std::string & aAttributeName )

◆ GetChildrenPaths()

bool WsfPProxy::GetChildrenPaths ( const WsfPProxyPath & nodePath,
WsfPProxyPathSet & childrenPaths,
WsfPProxyPath & suffixPath ) const

◆ GetInheritedValuePaths()

const WsfPProxyPathSet * WsfPProxy::GetInheritedValuePaths ( const WsfPProxyPath & nodePath) const

References mPathMap.

◆ GetRegistry()

const std::shared_ptr< WsfPProxyRegistry > & WsfPProxy::GetRegistry ( ) const
inline

Referenced by WsfPProxyNode::ToJSON().

◆ IncrementSequenceNumber()

void WsfPProxy::IncrementSequenceNumber ( )
inline

◆ NewValue()

WsfPProxyValue WsfPProxy::NewValue ( const std::string & aTypeName)

◆ NotifyBeforeProxyModified()

void WsfPProxy::NotifyBeforeProxyModified ( ProxyModifiedReason aProxyModifiedReason,
const WsfPProxyPath & aPath,
const std::string * aRenameName )
inline

◆ NotifyProxyModified()

◆ operator=()

WsfPProxy & WsfPProxy::operator= ( const WsfPProxy & )
delete

References WsfPProxy().

◆ PropagateNodeAddition()

◆ PropagateNodeChange()

◆ PropagateNodeDeletion()

◆ RecordObjectRename()

void WsfPProxy::RecordObjectRename ( const WsfPProxyPath & aOldPath,
const WsfPProxyPath & aNewPath )

◆ Registry()

void WsfPProxy::Registry ( const std::shared_ptr< WsfPProxyRegistry > & aRegistry)
inline

◆ RenameMappingOldToNew()

std::map< WsfPProxyPath, std::string > WsfPProxy::RenameMappingOldToNew ( )

◆ SaveFiles()

const std::map< WsfPProxyPath, std::string > & WsfPProxy::SaveFiles ( ) const
inline

◆ SequenceNumber()

short WsfPProxy::SequenceNumber ( ) const
inline

◆ SetBeforeProxyModifiedCallback()

void WsfPProxy::SetBeforeProxyModifiedCallback ( BeforeModifyFn aFunctionPtr)
inline

◆ SetProxyModifiedCallback()

void WsfPProxy::SetProxyModifiedCallback ( ProxyModifiedFn aFunctionPtr)
inline

References mModifiedCallback.

◆ SetSaveFile()

void WsfPProxy::SetSaveFile ( const WsfPProxyPath & aPath,
const std::string & aFilePath )

◆ Swap()

◆ UndoPlatformRenames()

void WsfPProxy::UndoPlatformRenames ( )

Member Data Documentation

◆ mBasicRoot

◆ mBeforeModifiedCallback

BeforeModifyFn WsfPProxy::mBeforeModifiedCallback

◆ mHasModifications

bool WsfPProxy::mHasModifications

◆ mIndex

std::unique_ptr<WsfPProxyIndex> WsfPProxy::mIndex

◆ mModifiedCallback

ProxyModifiedFn WsfPProxy::mModifiedCallback

◆ mPathMap

◆ mRenamedObjects

RenameMap WsfPProxy::mRenamedObjects

◆ mRoot


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved