WSF
WsfPProxyValue Class Reference

#include <WsfPProxyValue.hpp>

Inheritance diagram for WsfPProxyValue:
Collaboration diagram for WsfPProxyValue:

Public Member Functions

 WsfPProxyValue ()
 WsfPProxyValue (void *aDataPtr, WsfPProxyType const *aTypePtr)
 WsfPProxyValue (const WsfPProxyValue &)=default
 WsfPProxyValue (WsfPProxyValue &&)=default
WsfPProxyValueoperator= (const WsfPProxyValue &)=default
WsfPProxyValueoperator= (WsfPProxyValue &&)=default
virtual ~WsfPProxyValue ()=default
bool IsBasicType () const
bool IsStruct () const
bool IsValid () const
void * GetDataPtr () const
const WsfPProxyTypeGetType () const
WsfPProxyValue GetAttr (const WsfPProxyKey &aEntry) const
WsfPProxyValue GetAttr (const std::string &aName) const
WsfPProxyValue GetAttr (size_t aIndex) const
bool SwapAttr (const WsfPProxyKey &aEntry, WsfPProxyValue &aValue) const
 Set attr, except the old value is saved.
WsfPProxyValue GetAtIndex (size_t aIndex) const
size_t GetAttrCount () const
std::string NameAtIndex (size_t aIndex) const
virtual size_t GetMemberIndex (const std::string &aName) const
virtual WsfPProxyTypeGetMemberType (const std::string &aName) const
virtual WsfPProxyTypeGetMemberType (size_t aMemberIndex) const
WsfPProxyListGetList () const
WsfPProxyObjectMapGetObjectMap () const
bool Copy (WsfPProxyValue aSrc, int flags=WsfProxy::cCOPY_ALL) const
void SetValue (const std::string &aText)
void SetBoolValue (bool value)
std::string ValueToString () const
WsfPProxyValue Copy (int flags=WsfProxy::cCOPY_ALL) const
void SetUnset ()
void ClearUnset ()
bool IsUnset () const
bool IsInherited () const
void SetInherited (bool aIsInherited)
WsfPProxyPathGetBasePath () const
 operator bool () const
 operator bool ()
bool operator== (const WsfPProxyValue &aRhs) const
bool operator< (const WsfPProxyValue &aRhs) const
void Delete ()
void Swap (WsfPProxyValue &aRhs) noexcept
WsfPProxyValue operator[] (const char *aAttrName)
WsfPProxyValue operator[] (const std::string &aAttrName)
WsfPProxyValue operator[] (size_t aIndex)
WsfPProxyHash Hash ()
WsfPProxyValue Lookup (const WsfPProxyPath &aPath, size_t aElements=0x7fffffff) const
WsfPProxyValue Lookup (const WsfParseTypePath &aPath) const
WsfPProxyValueoperator= (const std::string &aStringValue)
WsfPProxyValueoperator= (const char *aStringPtr)
WsfPProxyValueoperator= (bool aBoolValue)
bool GetIntegerValue (int &aValue)
void SetIntegerValue (int aValue)
bool IsBoolValue ()
bool GetBoolValue ()
void DebugOut (std::ostream &aStream, unsigned int aDepth=0) const
bool IsAttributeUsable (const std::string &aAttribute) const noexcept

Static Public Member Functions

static WsfPProxyValue ConstructNew (const WsfPProxyType *aType)

Protected Member Functions

template<typename T>
T * CastToValue () const

Protected Attributes

const WsfPProxyTypemTypePtr
void * mDataPtr

Constructor & Destructor Documentation

◆ WsfPProxyValue() [1/4]

◆ WsfPProxyValue() [2/4]

WsfPProxyValue::WsfPProxyValue ( void * aDataPtr,
WsfPProxyType const * aTypePtr )
inline

References mDataPtr, and mTypePtr.

◆ WsfPProxyValue() [3/4]

WsfPProxyValue::WsfPProxyValue ( const WsfPProxyValue & )
default

References WsfPProxyValue().

◆ WsfPProxyValue() [4/4]

WsfPProxyValue::WsfPProxyValue ( WsfPProxyValue && )
default

References WsfPProxyValue().

◆ ~WsfPProxyValue()

virtual WsfPProxyValue::~WsfPProxyValue ( )
virtualdefault

Member Function Documentation

◆ CastToValue()

template<class T>
T * WsfPProxyValue::CastToValue ( ) const
protected

References GetDataPtr(), and mTypePtr.

◆ ClearUnset()

void WsfPProxyValue::ClearUnset ( )

◆ ConstructNew()

◆ Copy() [1/2]

WsfPProxyValue WsfPProxyValue::Copy ( int flags = WsfProxy::cCOPY_ALL) const

◆ Copy() [2/2]

◆ DebugOut()

void WsfPProxyValue::DebugOut ( std::ostream & aStream,
unsigned int aDepth = 0 ) const

◆ Delete()

◆ GetAtIndex()

◆ GetAttr() [1/3]

WsfPProxyValue WsfPProxyValue::GetAttr ( const std::string & aName) const

References mDataPtr, mTypePtr, and WsfPProxyValue().

◆ GetAttr() [2/3]

WsfPProxyValue WsfPProxyValue::GetAttr ( const WsfPProxyKey & aEntry) const
inline

References GetAttr(), WsfPProxyKey::GetIndex(), WsfPProxyKey::GetMapKey(), WsfPProxyKey::IsString(), and WsfPProxyValue().

Referenced by WsfPM_Platform::AcousticSignature(), WsfPM_ZoneDefinition::AuxData(), WsfPM_Transmitter::Bandwidth(), WsfPProxyRegistry::BuildBasicRootFromBasicTypes(), WsfPProxySatisfy::BuildSequenceEquations(), WsfPM_Platform::CommandChainNames(), WsfPM_Platform::CommanderName(), WsfPM_Platform::CreationTime(), DebugOut(), WsfPM_Platform::Destructible(), WsfPM_Waypoint::EndOfPath(), WsfPM_WaypointMover::EndOfPath(), WsfPM_Waypoint::ExecuteScript(), WsfPProxySatisfy::FindBindingAddress2(), WsfPProxySatisfy::FollowAction(), WsfPM_Transmitter::Frequency(), WsfPProxyPath::FromString(), WsfPProxyPath::FromStringList(), GetAttr(), WsfPM_Scenario::GetClassificationLabel(), ColorProxyUtil::GetColor(), WsfPProxyNode::GetStablePath(), WsfPM_Waypoint::GetTurnDirection(), WsfPM_Waypoint::GetWaypointType(), WsfPM_Waypoint::GotoLabel(), WsfPM_Platform::Icon(), WsfPM_Platform::InfraredSignature(), WsfPM_Platform::InitialLocation(), WsfPM_Transmitter::InternalLoss(), WsfPM_ZoneDefinition::IsAbsolute(), IsAttributeUsable(), WsfPM_Waypoint::Label(), WsfPM_Weapon::LaunchedPlatformType(), WsfPM_CommLink::LinkDestinationCommName(), WsfPM_CommLink::LinkDestinationPlatformName(), WsfPM_Platform::LocationLLA(), WsfPProxyPath::Lookup(), WsfPProxySatisfy::Lookup(), Lookup(), Lookup(), WsfPProxySatisfy::LookupDesired(), WsfPM_ZoneDefinition::Negative(), WsfPM_PlatformPart::on(), WsfPM_PlatformPart::operational(), operator[](), operator[](), WsfPM_Platform::OpticalSignature(), WsfPM_Platform::PlatformRenamed(), WsfPM_Transmitter::Polarization(), WsfPM_Transmitter::Power(), WsfPM_Transmitter::PulseCompressionRatio(), WsfPM_Transmitter::PulseWidth(), WsfPM_Platform::RadarSignature(), WsfPM_ZoneDefinition::ReferencePlatform(), WsfPM_ZoneDefinition::ReferenceZone(), WsfPM_PlatformPart::restorable(), WsfPM_ZoneDefinition::SetDefinitionType(), WsfPM_Platform::SetHeading(), WsfPM_PlatformPart::setOn(), WsfPM_PlatformPart::setOperational(), WsfPM_Platform::SetPitch(), WsfPM_PlatformPart::setRestorable(), WsfPM_Platform::SetRoll(), WsfPM_Platform::Side(), WsfPM_Mover::StartAt(), WsfPM_Waypoint::TimeToPoint(), WsfPProxyPath::ToString(), WsfPProxyPath::ToString(), WsfPProxyPath::ToStringList(), WsfPProxyNode::UnsetAttribute(), wizard::Project::UpdateProxyEpoch(), WsfPM_Waypoint::UseDefaultClimbRate(), WsfPM_Waypoint::UseDefaultLinearAcceleration(), WsfPM_Waypoint::UseDefaultRadialAcceleration(), WsfPM_ZoneDefinition::UseLatLon(), WsfPM_ZoneDefinition::UseMGRS(), WsfPM_ZoneDefinition::UseOffset(), WsfPM_ZoneDefinition::UsePolar(), WsfPM_Mover::UsingRoute(), and WsfPM_Transmitter::Wavelength().

◆ GetAttr() [3/3]

WsfPProxyValue WsfPProxyValue::GetAttr ( size_t aIndex) const

References mDataPtr, mTypePtr, and WsfPProxyValue().

◆ GetAttrCount()

size_t WsfPProxyValue::GetAttrCount ( ) const

References mDataPtr, and mTypePtr.

Referenced by DebugOut().

◆ GetBasePath()

WsfPProxyPath * WsfPProxyValue::GetBasePath ( ) const

Returns the proxy path to the value this was originally copied from This is only available on struct instances, and only when an inheritance type relationship exists

References WsfPProxyPath::Empty(), WsfPProxyStructHeader::GetBasePath(), mDataPtr, and mTypePtr.

Referenced by WsfPProxyNode::GetBasePath(), WsfPProxyNode::GetInherited(), WsfPProxyNode::GetTypePath(), WsfPProxyNode::IsInheritedFromParent(), and WsfPProxyNode::IsOfUserType().

◆ GetBoolValue()

◆ GetDataPtr()

◆ GetIntegerValue()

◆ GetList()

◆ GetMemberIndex()

size_t WsfPProxyValue::GetMemberIndex ( const std::string & aName) const
virtual

Reimplemented in WsfPProxyStructValue.

◆ GetMemberType() [1/2]

WsfPProxyType * WsfPProxyValue::GetMemberType ( const std::string & aName) const
virtual

Reimplemented in WsfPProxyStructValue.

◆ GetMemberType() [2/2]

WsfPProxyType * WsfPProxyValue::GetMemberType ( size_t aMemberIndex) const
virtual

Reimplemented in WsfPProxyStructValue.

◆ GetObjectMap()

◆ GetType()

◆ Hash()

WsfPProxyHash WsfPProxyValue::Hash ( )

References mDataPtr, and mTypePtr.

Referenced by wizard::ProxyHash::RecurseHash().

◆ IsAttributeUsable()

bool WsfPProxyValue::IsAttributeUsable ( const std::string & aAttribute) const
noexcept

References GetAttr().

◆ IsBasicType()

◆ IsBoolValue()

bool WsfPProxyValue::IsBoolValue ( )

References WsfProxy::cBOOL_VALUE, and mTypePtr.

◆ IsInherited()

◆ IsStruct()

◆ IsUnset()

◆ IsValid()

◆ Lookup() [1/2]

WsfPProxyValue WsfPProxyValue::Lookup ( const WsfParseTypePath & aPath) const

References GetAttr(), and WsfPProxyValue().

◆ Lookup() [2/2]

◆ NameAtIndex()

std::string WsfPProxyValue::NameAtIndex ( size_t aIndex) const

References mTypePtr.

Referenced by DebugOut().

◆ operator bool() [1/2]

WsfPProxyValue::operator bool ( )
inline

References IsValid().

◆ operator bool() [2/2]

WsfPProxyValue::operator bool ( ) const
inline

References IsValid().

◆ operator<()

bool WsfPProxyValue::operator< ( const WsfPProxyValue & aRhs) const
inline

References mDataPtr, and WsfPProxyValue().

◆ operator=() [1/5]

WsfPProxyValue & WsfPProxyValue::operator= ( bool aBoolValue)

References operator=(), and WsfPProxyValue().

◆ operator=() [2/5]

WsfPProxyValue & WsfPProxyValue::operator= ( const char * aStringPtr)

References operator=(), and WsfPProxyValue().

◆ operator=() [3/5]

WsfPProxyValue & WsfPProxyValue::operator= ( const std::string & aStringValue)

◆ operator=() [4/5]

WsfPProxyValue & WsfPProxyValue::operator= ( const WsfPProxyValue & )
default

References WsfPProxyValue().

Referenced by operator=(), and operator=().

◆ operator=() [5/5]

WsfPProxyValue & WsfPProxyValue::operator= ( WsfPProxyValue && )
default

References WsfPProxyValue().

◆ operator==()

bool WsfPProxyValue::operator== ( const WsfPProxyValue & aRhs) const
inline

References mDataPtr, and WsfPProxyValue().

◆ operator[]() [1/3]

WsfPProxyValue WsfPProxyValue::operator[] ( const char * aAttrName)
inline

References GetAttr(), and WsfPProxyValue().

◆ operator[]() [2/3]

WsfPProxyValue WsfPProxyValue::operator[] ( const std::string & aAttrName)
inline

References GetAttr(), and WsfPProxyValue().

◆ operator[]() [3/3]

WsfPProxyValue WsfPProxyValue::operator[] ( size_t aIndex)
inline

References GetAtIndex(), and WsfPProxyValue().

◆ SetBoolValue()

void WsfPProxyValue::SetBoolValue ( bool value)

◆ SetInherited()

void WsfPProxyValue::SetInherited ( bool aIsInherited)

◆ SetIntegerValue()

void WsfPProxyValue::SetIntegerValue ( int aValue)

◆ SetUnset()

◆ SetValue()

void WsfPProxyValue::SetValue ( const std::string & aText)

◆ Swap()

void WsfPProxyValue::Swap ( WsfPProxyValue & aRhs)
inlinenoexcept

◆ SwapAttr()

bool WsfPProxyValue::SwapAttr ( const WsfPProxyKey & aEntry,
WsfPProxyValue & aValue ) const

Set attr, except the old value is saved.

References mDataPtr, mTypePtr, and WsfPProxyValue().

Referenced by WsfPProxyUndo::Assign(), wizard::UndoProxyChange::createUndo(), and wizard::UndoProxyChange::UndoRedo().

◆ ValueToString()

Member Data Documentation

◆ mDataPtr

◆ mTypePtr


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