|
WSF
|
#include <WsfPM_ObjectMap.hpp>


Public Types | |
| using | iterator = std::map<std::string, WsfPProxyValue>::iterator |
| using | const_iterator = std::map<std::string, WsfPProxyValue>::const_iterator |
Public Member Functions | |
| WsfPM_ObjectMap () | |
| WsfPM_ObjectMap (const WsfPProxyNode &aNode) | |
| WsfPProxyObjectMap * | GetObjectMap () const |
| std::vector< std::string > | GetObjectNames () const |
| std::vector< std::string > | GetAllObjectNames () |
| iterator | begin () const |
| iterator | end () const |
| WsfPProxyNode | Find (const std::string &aName) const |
| WsfPProxyNode | At (const iterator &i) const |
| bool | Exists (const std::string &aName) const |
| bool | Remove (const std::string &aName, bool removedByUser=false) |
| WsfPProxyNode | Add (const std::string &aName, WsfPProxyValue aEntry) |
| WsfPProxyNode | AssignEntry (const std::string &aName, WsfPProxyValue aEntry) |
| bool | Move (const std::string &aOldName, const std::string &aNewName) |
| bool | CanMove (const std::string &aOldName, const std::string &aNewName) |
| void | GetValues (std::vector< WsfPProxyNode > &aAll) const |
| void | GetAllValues (std::vector< WsfPProxyNode > &aAll) |
| Public Member Functions inherited from WsfPProxyNode | |
| void | MoveTo (WsfPProxy *aProxy, const WsfPProxyPath &aPath, size_t aSubPathLength) |
| WsfPProxyNode () | |
| WsfPProxyNode (WsfPProxy *aProxy, const WsfPProxyPath &aPath) | |
| WsfPProxyNode (WsfPProxy *aProxy, const WsfPProxyPath &aPath, size_t aSubPathLength) | |
| WsfPProxyNode (WsfPProxy *aProxy, const WsfPProxyPath &aPath, WsfPProxyValue aValue) | |
| WsfPProxyNode (const WsfPProxyNode &aSrc) | |
| WsfPProxyNode | Root () const |
| WsfPProxy * | GetProxy () const |
| WsfPProxyValue | GetRoot () const |
| WsfPProxyValue | GetValue () const |
| WsfPProxyNode | GetParent () const |
| WsfPProxyNode | GetInherited () const |
| const WsfPProxyPath & | GetPath () const |
| std::string | GetPathString () const |
| WsfPProxyPath | GetStablePath () const |
| WsfPProxyPath | GetInheritedPath () const |
| const WsfPProxyPath * | GetTypePath () const |
| const WsfPProxyPath * | GetBasePath () const |
| std::string | GetName () const |
| std::string | GetAttrName () const |
| std::string | GetInheritedName () const |
| std::string | GetTypeName () const |
| std::vector< std::string > | GetInheritedTypeNames () const |
| UtTextDocumentRange | GetSourceDocumentRange () const |
| UtTextDocumentRange | GetFirstDocumentRange () const noexcept |
| UtTextDocumentRange | GetLastDocumentRange () const noexcept |
| std::string | GetSourceText () const |
| WsfPProxyIndexNode * | FindIndexNode () const |
| const std::set< WsfPProxyPath > * | GetInheritedValuePaths () const |
| bool | SwitchToBasicTypes () |
| bool | SwitchToUserTypes () |
| bool | UpdateParentPath (const WsfPProxyPath &oldParentPath, const WsfPProxyPath &newParentPath) |
| void | ResetToInheritedValue () |
| operator bool () const | |
| operator bool () | |
| bool | IsValid () const |
| bool | IsNull () const |
| bool | operator== (const WsfPProxyNode &aRhs) const |
| bool | operator!= (const WsfPProxyNode &aRhs) const |
| WsfPProxyNode & | operator+= (size_t aIndex) |
| WsfPProxyNode & | operator+= (const std::string &aStr) |
| WsfPProxyNode & | operator+= (const WsfPProxyPath &aSuffixPath) |
| WsfPProxyNode & | operator+= (const WsfPProxyKey &aEntry) |
| WsfPProxyNode & | operator+= (const WsfParseTypePath &aParseTypePath) |
| WsfPProxyNode | operator+ (const WsfPProxyPath &aSuffixPath) const |
| WsfPProxyNode | operator+ (const WsfPProxyKey &aEntry) const |
| WsfPProxyNode | operator+ (size_t aEntryIndex) const |
| WsfPProxyNode | operator+ (const std::string &aEntry) const |
| WsfPProxyNode | operator+ (const char *aEntry) const |
| WsfPProxyNode | operator+ (const WsfParseTypePath &aParseTypePath) const |
| WsfPProxyNode & | ToParent () |
| WsfPProxyNode & | TrimPath (size_t aPathLength) |
| bool | operator< (const WsfPProxyNode &aRhs) const |
| void | SetBasePath (const WsfPProxyPath &aNewPath) |
| void | NotifyValueChanged () const |
| void | NotifyValueAdded () const |
| void | NotifyValueRemoved () const |
| void | NotifyValueMoved (const std::string &aOldName) const |
| void | NotifyAttributeChanged (const char *aAttributeName) const |
| void | NotifyBeforeValueChanged () const |
| void | NotifyBeforeAttributeChanged (const char *aAttributeName) const |
| template<typename T> | |
| void | ChangeAttribute (const char *aAttributeName, const T &aValue) |
| bool | Assign (const WsfPProxyValue &aValue) const |
| bool | Assign (const std::string &aValue) const |
| bool | Assign (int aIntValue) const |
| bool | Assign (double aDoubleVal) const |
| bool | Assign (bool aBoolVal) const |
| bool | ClearUnset () const |
| bool | Unset () const |
| bool | UnsetAttribute (const std::string &aAttrName) const |
| bool | AssignAttribute (const std::string &aAttrName, const std::string &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, int aIntValue) const |
| bool | AssignAttribute (const std::string &aAttrName, double aDoubleVal) const |
| bool | AssignAttribute (const std::string &aAttrName, bool aBoolVal) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::String &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Double &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Int &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Latitude &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Longitude &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Length &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Length2 &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Time &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Speed &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::DataSize &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Power &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::PowerDB &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::SolidAngle &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Mass &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Force &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Torque &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Area &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::AreaDB &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Volume &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Time2 &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Acceleration &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Frequency &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Angle &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::AngularRate &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::AngularAcceleration &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::DataRate &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::MassDensity &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::MassTransfer &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Energy &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Fluence &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Irradiance &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Ratio &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::NoisePressure &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Pressure &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Temperature &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::SpecificRange &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::AngularInertia &aValue) const |
| bool | AssignAttribute (const std::string &aAttrName, const WsfProxy::Position &aValue) const |
| bool | Assign (const WsfProxy::String &aValue) const |
| bool | Assign (const WsfProxy::Double &aValue) const |
| bool | Assign (const WsfProxy::Int &aValue) const |
| bool | Assign (const WsfProxy::Latitude &aValue) const |
| bool | Assign (const WsfProxy::Longitude &aValue) const |
| bool | Assign (const WsfProxy::Length &aValue) const |
| bool | Assign (const WsfProxy::Length2 &aValue) const |
| bool | Assign (const WsfProxy::Time &aValue) const |
| bool | Assign (const WsfProxy::Speed &aValue) const |
| bool | Assign (const WsfProxy::DataSize &aValue) const |
| bool | Assign (const WsfProxy::Power &aValue) const |
| bool | Assign (const WsfProxy::PowerDB &aValue) const |
| bool | Assign (const WsfProxy::SolidAngle &aValue) const |
| bool | Assign (const WsfProxy::Mass &aValue) const |
| bool | Assign (const WsfProxy::Force &aValue) const |
| bool | Assign (const WsfProxy::Torque &aValue) const |
| bool | Assign (const WsfProxy::Area &aValue) const |
| bool | Assign (const WsfProxy::AreaDB &aValue) const |
| bool | Assign (const WsfProxy::Volume &aValue) const |
| bool | Assign (const WsfProxy::Time2 &aValue) const |
| bool | Assign (const WsfProxy::Acceleration &aValue) const |
| bool | Assign (const WsfProxy::Frequency &aValue) const |
| bool | Assign (const WsfProxy::Angle &aValue) const |
| bool | Assign (const WsfProxy::AngularRate &aValue) const |
| bool | Assign (const WsfProxy::AngularAcceleration &aValue) const |
| bool | Assign (const WsfProxy::DataRate &aValue) const |
| bool | Assign (const WsfProxy::MassDensity &aValue) const |
| bool | Assign (const WsfProxy::MassTransfer &aValue) const |
| bool | Assign (const WsfProxy::Energy &aValue) const |
| bool | Assign (const WsfProxy::Fluence &aValue) const |
| bool | Assign (const WsfProxy::Irradiance &aValue) const |
| bool | Assign (const WsfProxy::Ratio &aValue) const |
| bool | Assign (const WsfProxy::NoisePressure &aValue) const |
| bool | Assign (const WsfProxy::Pressure &aValue) const |
| bool | Assign (const WsfProxy::Temperature &aValue) const |
| bool | Assign (const WsfProxy::SpecificRange &aValue) const |
| bool | Assign (const WsfProxy::AngularInertia &aValue) const |
| bool | Assign (const WsfProxy::Position &aValue) const |
| std::string | ToJSON (int aOutputFlags=0) const |
| bool | IsOfBasicType () const noexcept |
| bool | IsA_BasicType () const noexcept |
| bool | IsA_StructType () const noexcept |
| bool | IsA_ListType () const noexcept |
| bool | IsA_MapType () const noexcept |
| bool | IsOfBasicType (const std::string &aTypeName) const noexcept |
| bool | IsA_PredefinedStructTypeOf (const std::string &aTypeName) const noexcept |
| bool | IsOfUserType (const std::string &aTypeName) const noexcept |
| bool | IsA_StructTypeOf (const std::string &aTypeName) const noexcept |
| bool | IsA_ListTypeOf (const std::string &aTypeName) const noexcept |
| bool | IsA_MapTypeOf (const std::string &aTypeName) const noexcept |
| bool | IsOfType (const std::string &aTypeName) const noexcept |
| bool | IsInherited () const |
| bool | IsInheritedFromParent () const |
| void | Invalidate () |
Protected Member Functions | |
| template<typename TYPE> | |
| void | GetValuesT (std::vector< TYPE > &aAll) const |
| template<typename TYPE> | |
| void | GetAllValuesT (std::vector< TYPE > &aAll) |
| template<typename T> | |
| T | GetAttributeT (const std::string &aName) const |
Additional Inherited Members | |
| Static Public Member Functions inherited from WsfPProxyNode | |
| static WsfPProxyNode | FromProxy (WsfPProxy *aProxy) |
| WsfPProxyPath | mPath |
| using WsfPM_ObjectMap::const_iterator = std::map<std::string, WsfPProxyValue>::const_iterator |
| using WsfPM_ObjectMap::iterator = std::map<std::string, WsfPProxyValue>::iterator |
| WsfPM_ObjectMap::WsfPM_ObjectMap | ( | ) |
Referenced by WsfPM_ObjectMapT< WsfPM_MilPlatform >::WsfPM_ObjectMapT().
| WsfPM_ObjectMap::WsfPM_ObjectMap | ( | const WsfPProxyNode & | aNode | ) |
References WsfPProxyNode::WsfPProxyNode().
| WsfPProxyNode WsfPM_ObjectMap::Add | ( | const std::string & | aName, |
| WsfPProxyValue | aEntry ) |
References WsfPProxyObjectMap::AddNew(), WsfPProxy::cPM_CHILD_ADDED, WsfPProxyValue::Delete(), Exists(), GetObjectMap(), WsfPProxyNode::GetPath(), WsfPProxyNode::GetProxy(), WsfPProxyNode::Invalidate(), WsfPProxy::NotifyBeforeProxyModified(), WsfPProxyNode::NotifyValueAdded(), and WsfPProxyNode::WsfPProxyNode().
Referenced by WsfPM_Platform::AddPart(), AssignEntry(), and WsfPProxy::PropagateNodeAddition().
| WsfPProxyNode WsfPM_ObjectMap::AssignEntry | ( | const std::string & | aName, |
| WsfPProxyValue | aEntry ) |
References Add(), WsfPProxyObjectMap::AddNew(), Exists(), WsfPProxyObjectMap::FindAt(), GetObjectMap(), WsfPProxyValue::IsBasicType(), WsfPProxyNode::IsValid(), WsfPProxyNode::NotifyBeforeValueChanged(), WsfPProxyNode::NotifyValueChanged(), Remove(), and WsfPProxyNode::WsfPProxyNode().
Referenced by WsfPM_Platform::SetCommanderName().
| WsfPProxyNode WsfPM_ObjectMap::At | ( | const iterator & | i | ) | const |
References WsfPProxyNode::WsfPProxyNode().
Referenced by WsfPM_ObjectMapT< WsfPM_MilPlatform >::AtT(), and WsfPM_RadarSensorMode::transmitter().
| WsfPM_ObjectMap::iterator WsfPM_ObjectMap::begin | ( | ) | const |
References GetObjectMap(), and WsfPProxyObjectMap::GetValues().
Referenced by WsfPM_RadarSensorMode::transmitter().
| bool WsfPM_ObjectMap::CanMove | ( | const std::string & | aOldName, |
| const std::string & | aNewName ) |
References WsfPProxyObjectMap::FindAt(), and GetObjectMap().
Referenced by WsfPM_Zone::Rename().
| WsfPM_ObjectMap::iterator WsfPM_ObjectMap::end | ( | ) | const |
References GetObjectMap(), and WsfPProxyObjectMap::GetValues().
| bool WsfPM_ObjectMap::Exists | ( | const std::string & | aName | ) | const |
References WsfPProxyNode::GetValue(), and WsfPProxyValue::IsValid().
Referenced by Add(), AssignEntry(), wizard::CreatePlatformDialog::OnNameTextChanged(), WsfPM_Zone::ParentPlatform(), and WsfPM_Platform::Rename().
| WsfPProxyNode WsfPM_ObjectMap::Find | ( | const std::string & | aName | ) | const |
Returns the entry with the given name If no object exists with that name, IsNull() returns true
References WsfPProxyObjectMap::FindAt(), GetObjectMap(), and WsfPProxyNode::WsfPProxyNode().
Referenced by WsfPM_MilPlatform::FindPart(), WsfPM_Platform::FindPart(), WsfPM_ObjectMapT< WsfPM_MilPlatform >::FindT(), wizard::ProxyUtil::FindZoneNodeByName(), WsfPM_Zone::ParentPlatformNode(), WsfPM_ZoneDefinition::ReferencePlatformNode(), and WsfPM_ZoneDefinition::ReferenceZoneNode().
| std::vector< std::string > WsfPM_ObjectMap::GetAllObjectNames | ( | ) |
| void WsfPM_ObjectMap::GetAllValues | ( | std::vector< WsfPProxyNode > & | aAll | ) |
References GetAllValuesT().
Referenced by wizard::CreatePlatformDialog::ChooseFileFromType(), and wizard::PointOfInterestPropertiesWidget::PopulateFiles().
|
inlineprotected |
References GetValuesT(), WsfPProxyNode::Invalidate(), and WsfPProxyNode::SwitchToBasicTypes().
Referenced by GetAllValues(), and WsfPM_ObjectMapT< WsfPM_MilPlatform >::GetAllValuesT().
| WsfPProxyObjectMap * WsfPM_ObjectMap::GetObjectMap | ( | ) | const |
References WsfPProxyValue::GetObjectMap(), and WsfPProxyNode::GetValue().
Referenced by Add(), AssignEntry(), begin(), CanMove(), end(), Find(), GetObjectNames(), Move(), WsfPProxy::PropagateNodeAddition(), Remove(), and WsfPM_Platform::SetCommanderName().
| std::vector< std::string > WsfPM_ObjectMap::GetObjectNames | ( | ) | const |
References GetObjectMap(), and WsfPProxyObjectMap::GetObjectNames().
Referenced by GetAllObjectNames().
| void WsfPM_ObjectMap::GetValues | ( | std::vector< WsfPProxyNode > & | aAll | ) | const |
References GetValuesT().
|
inlineprotected |
References WsfPProxyValue::GetObjectMap(), WsfPProxyNode::GetValue(), and WsfPProxyObjectMap::GetValues().
Referenced by GetAllValuesT(), GetValues(), and WsfPM_ObjectMapT< WsfPM_MilPlatform >::GetValuesT().
| bool WsfPM_ObjectMap::Move | ( | const std::string & | aOldName, |
| const std::string & | aNewName ) |
References WsfPProxyObjectMap::AddNew(), WsfPProxy::cPM_CHILD_MOVED, WsfPProxyObjectMap::EraseNoDelete(), WsfPProxyObjectMap::FindAt(), GetObjectMap(), WsfPProxyNode::GetPath(), WsfPProxyNode::GetProxy(), WsfPProxy::IncrementSequenceNumber(), WsfPProxy::NotifyBeforeProxyModified(), WsfPProxy::NotifyProxyModified(), and WsfPProxy::RecordObjectRename().
Referenced by WsfPM_Platform::Rename(), and WsfPM_Zone::Rename().
| bool WsfPM_ObjectMap::Remove | ( | const std::string & | aName, |
| bool | removedByUser = false ) |
References WsfPProxy::cPM_CHILD_REMOVED, WsfPProxyObjectMap::Erase(), WsfPProxyObjectMap::FindAt(), GetObjectMap(), WsfPProxyNode::GetPath(), WsfPProxyNode::GetProxy(), WsfPProxyNode::Invalidate(), WsfPProxy::NotifyBeforeProxyModified(), WsfPProxyNode::NotifyValueRemoved(), WsfPProxyObjectMap::UserErase(), and WsfPProxyNode::WsfPProxyNode().
Referenced by AssignEntry(), and WsfPProxy::PropagateNodeDeletion().