📄 base_property.cpp
字号:
} return false;} // AddObserver() //==============================================================================// RemoveObserver() : Remove it from the observer first. This returns a pointer // That may, or may not, be 'this' it is however garaunteed // to be of the same type.//==============================================================================bool Property::RemoveObserver( Event::EventType eType, Observer& observer ){ if ( m_pImpl ) { PropertyBaseImplPtr spImpl = *reinterpret_cast<PropertyBaseImplPtr*>(m_pImpl); return spImpl->RemoveObserver( eType, *reinterpret_cast<ObserverImpl*>(observer.GetImpl()) ); } return false;} // RemoveObserver() //==============================================================================// IsEventAvailable() : //==============================================================================bool Property::IsEventAvailable( Event::EventType eType ) { return true; } // IsEventAvailable()////////////////////////////////////////////////////////////////////////////////// Base class ArrayProperty//==============================================================================ArrayProperty::ArrayProperty( void *pImpl, const IntelMobileChar* pszType ) : Property( pImpl, pszType ){}//==============================================================================ArrayProperty::~ArrayProperty() {}//==============================================================================unsigned __int32 ArrayProperty::GetSize() const { // return (*reinterpret_cast<PropertyBaseImplPtr*>(m_pImpl) ->GetSize(); return static_cast<unsigned __int32>((*reinterpret_cast<StringArrayPropertyImplPtr*>(m_pImpl))->GetSize()); }////////////////////////////////////////////////////////////////////////////////// Specialized constructorsByteProperty ::ByteProperty ( void *pImpl ) : Property( pImpl, IntelMobileText("ByteProperty") ) {}IntProperty ::IntProperty ( void *pImpl ) : Property( pImpl, IntelMobileText("IntProperty") ) {}UIntProperty ::UIntProperty ( void *pImpl ) : Property( pImpl, IntelMobileText("UIntProperty") ) {}Int64Property ::Int64Property ( void *pImpl ) : Property( pImpl, IntelMobileText("Int64Property") ) {}UInt64Property ::UInt64Property ( void *pImpl ) : Property( pImpl, IntelMobileText("UInt64Property") ) {}StringProperty ::StringProperty ( void *pImpl ) : Property( pImpl, IntelMobileText("StringProperty") ) {}BoolProperty ::BoolProperty ( void *pImpl ) : Property( pImpl, IntelMobileText("BoolProperty") ) {}DateTimeProperty::DateTimeProperty( void *pImpl ) : Property( pImpl, IntelMobileText("DateTimeProperty") ) {}FloatProperty ::FloatProperty ( void *pImpl ) : Property( pImpl, IntelMobileText("FloatProperty") ) {}ByteArrayProperty ::ByteArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("ByteArrayProperty") ) {}IntArrayProperty ::IntArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("IntArrayProperty") ) {}UIntArrayProperty ::UIntArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("UIntArrayProperty") ) {}Int64ArrayProperty ::Int64ArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("Int64ArrayProperty") ) {}UInt64ArrayProperty ::UInt64ArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("UInt64ArrayProperty") ) {}StringArrayProperty ::StringArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("StringArrayProperty") ) {}BoolArrayProperty ::BoolArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("BoolArrayProperty") ) {}DateTimeArrayProperty::DateTimeArrayProperty( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("DateTimeArrayProperty") ) {}FloatArrayProperty ::FloatArrayProperty ( void *pImpl ) : ArrayProperty( pImpl, IntelMobileText("FloatArrayProperty") ) {}////////////////////////////////////////////////////////////////////////////////// Specialized Get Functionsunsigned char ByteProperty ::GetValue() { return (*reinterpret_cast<BytePropertyImplPtr* >(m_pImpl))->GetValue(); }__int32 IntProperty ::GetValue() { return (*reinterpret_cast<IntPropertyImplPtr* >(m_pImpl))->GetValue(); }unsigned __int32 UIntProperty ::GetValue() { return (*reinterpret_cast<UIntPropertyImplPtr* >(m_pImpl))->GetValue(); }__int64 Int64Property ::GetValue() { return (*reinterpret_cast<Int64PropertyImplPtr* >(m_pImpl))->GetValue(); }unsigned __int64 UInt64Property ::GetValue() { return (*reinterpret_cast<UInt64PropertyImplPtr* >(m_pImpl))->GetValue(); }IntelMobileChar* StringProperty ::GetValue() { return (*reinterpret_cast<StringPropertyImplPtr* >(m_pImpl))->GetValue(); }bool BoolProperty ::GetValue() { return (*reinterpret_cast<BoolPropertyImplPtr* >(m_pImpl))->GetValue(); }DATE DateTimeProperty::GetValue() { return (*reinterpret_cast<DateTimePropertyImplPtr*>(m_pImpl))->GetValue(); }float FloatProperty ::GetValue() { return (*reinterpret_cast<FloatPropertyImplPtr* >(m_pImpl))->GetValue(); }unsigned char ByteArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<ByteArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }__int32 IntArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<IntArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }unsigned __int32 UIntArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<UIntArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }__int64 Int64ArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<Int64ArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }unsigned __int64 UInt64ArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<UInt64ArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }IntelMobileChar* StringArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<StringArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }bool BoolArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<BoolArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }DATE DateTimeArrayProperty::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<DateTimeArrayPropertyImplPtr*>(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }float FloatArrayProperty ::GetValue( unsigned __int32 Offset ) { return (*reinterpret_cast<FloatArrayPropertyImplPtr* >(m_pImpl))->GetValue( static_cast<unsigned long>(Offset) ); }////////////////////////////////////////////////////////////////////////////////
// Specialized Set Functions
bool ByteProperty ::SetValue( unsigned char Value ) { CheckValid(); return (*reinterpret_cast<BytePropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool IntProperty ::SetValue( __int32 Value ) { CheckValid(); return (*reinterpret_cast<IntPropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool UIntProperty ::SetValue( unsigned __int32 Value ) { CheckValid(); return (*reinterpret_cast<UIntPropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool Int64Property ::SetValue( __int64 Value ) { CheckValid(); return (*reinterpret_cast<Int64PropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool UInt64Property ::SetValue( unsigned __int64 Value ) { CheckValid(); return (*reinterpret_cast<UInt64PropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool StringProperty ::SetValue( IntelMobileChar* Value ) { CheckValid(); return (*reinterpret_cast<StringPropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool BoolProperty ::SetValue( bool Value ) { CheckValid(); return (*reinterpret_cast<BoolPropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool DateTimeProperty::SetValue( DATE Value ) { CheckValid(); return (*reinterpret_cast<DateTimePropertyImplPtr*>(m_pImpl))->SetValue( Value ); }
bool FloatProperty ::SetValue( float Value ) { CheckValid(); return (*reinterpret_cast<FloatPropertyImplPtr* >(m_pImpl))->SetValue( Value ); }
bool ByteArrayProperty ::SetValue( unsigned __int32 Offset, unsigned char Value ) { CheckValid(); return (*reinterpret_cast<ByteArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool IntArrayProperty ::SetValue( unsigned __int32 Offset, __int32 Value ) { CheckValid(); return (*reinterpret_cast<IntArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool UIntArrayProperty ::SetValue( unsigned __int32 Offset, unsigned __int32 Value ) { CheckValid(); return (*reinterpret_cast<UIntArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool Int64ArrayProperty ::SetValue( unsigned __int32 Offset, __int64 Value ) { CheckValid(); return (*reinterpret_cast<Int64ArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool UInt64ArrayProperty ::SetValue( unsigned __int32 Offset, unsigned __int64 Value ) { CheckValid(); return (*reinterpret_cast<UInt64ArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool StringArrayProperty ::SetValue( unsigned __int32 Offset, IntelMobileChar* Value ) { CheckValid(); return (*reinterpret_cast<StringArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool BoolArrayProperty ::SetValue( unsigned __int32 Offset, bool Value ) { CheckValid(); return (*reinterpret_cast<BoolArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool DateTimeArrayProperty::SetValue( unsigned __int32 Offset, DATE Value ) { CheckValid(); return (*reinterpret_cast<DateTimeArrayPropertyImplPtr*>(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
bool FloatArrayProperty ::SetValue( unsigned __int32 Offset, float Value ) { CheckValid(); return (*reinterpret_cast<FloatArrayPropertyImplPtr* >(m_pImpl))->SetValue( static_cast<unsigned long>(Offset), Value ); }
// Add
__int32 ByteArrayProperty ::Add( unsigned char Value ) { CheckValid(); return (*reinterpret_cast<ByteArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
__int32 IntArrayProperty ::Add( __int32 Value ) { CheckValid(); return (*reinterpret_cast<IntArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
__int32 UIntArrayProperty ::Add( unsigned __int32 Value ) { CheckValid(); return (*reinterpret_cast<UIntArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
__int32 Int64ArrayProperty ::Add( __int64 Value ) { CheckValid(); return (*reinterpret_cast<Int64ArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
__int32 UInt64ArrayProperty ::Add( unsigned __int64 Value ) { CheckValid(); return (*reinterpret_cast<UInt64ArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
__int32 StringArrayProperty ::Add( IntelMobileChar* Value ) { CheckValid(); return (*reinterpret_cast<StringArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
__int32 BoolArrayProperty ::Add( bool Value ) { CheckValid(); return (*reinterpret_cast<BoolArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
__int32 DateTimeArrayProperty::Add( DATE Value ) { CheckValid(); return (*reinterpret_cast<DateTimeArrayPropertyImplPtr*>(m_pImpl))->Add( Value ); }
__int32 FloatArrayProperty ::Add( float Value ) { CheckValid(); return (*reinterpret_cast<FloatArrayPropertyImplPtr* >(m_pImpl))->Add( Value ); }
// Insert
bool ByteArrayProperty ::Insert( unsigned __int32 Offset, unsigned char Value ) { CheckValid(); return (*reinterpret_cast<ByteArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool IntArrayProperty ::Insert( unsigned __int32 Offset, __int32 Value ) { CheckValid(); return (*reinterpret_cast<IntArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool UIntArrayProperty ::Insert( unsigned __int32 Offset, unsigned __int32 Value ) { CheckValid(); return (*reinterpret_cast<UIntArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool Int64ArrayProperty ::Insert( unsigned __int32 Offset, __int64 Value ) { CheckValid(); return (*reinterpret_cast<Int64ArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool UInt64ArrayProperty ::Insert( unsigned __int32 Offset, unsigned __int64 Value ) { CheckValid(); return (*reinterpret_cast<UInt64ArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool StringArrayProperty ::Insert( unsigned __int32 Offset, IntelMobileChar* Value ) { CheckValid(); return (*reinterpret_cast<StringArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool BoolArrayProperty ::Insert( unsigned __int32 Offset, bool Value ) { CheckValid(); return (*reinterpret_cast<BoolArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool DateTimeArrayProperty::Insert( unsigned __int32 Offset, DATE Value ) { CheckValid(); return (*reinterpret_cast<DateTimeArrayPropertyImplPtr*>(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
bool FloatArrayProperty ::Insert( unsigned __int32 Offset, float Value ) { CheckValid(); return (*reinterpret_cast<FloatArrayPropertyImplPtr* >(m_pImpl))->Insert( static_cast<unsigned long>(Offset), Value ); }
// Remove
bool ByteArrayProperty ::Remove( unsigned char Value ) { CheckValid(); return (*reinterpret_cast<ByteArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
bool IntArrayProperty ::Remove( __int32 Value ) { CheckValid(); return (*reinterpret_cast<IntArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
bool UIntArrayProperty ::Remove( unsigned __int32 Value ) { CheckValid(); return (*reinterpret_cast<UIntArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
bool Int64ArrayProperty ::Remove( __int64 Value ) { CheckValid(); return (*reinterpret_cast<Int64ArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
bool UInt64ArrayProperty ::Remove( unsigned __int64 Value ) { CheckValid(); return (*reinterpret_cast<UInt64ArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
bool StringArrayProperty ::Remove( IntelMobileChar* Value ) { CheckValid(); return (*reinterpret_cast<StringArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
bool BoolArrayProperty ::Remove( bool Value ) { CheckValid(); return (*reinterpret_cast<BoolArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
bool DateTimeArrayProperty::Remove( DATE Value ) { CheckValid(); return (*reinterpret_cast<DateTimeArrayPropertyImplPtr*>(m_pImpl))->Remove( Value ); }
bool FloatArrayProperty ::Remove( float Value ) { CheckValid(); return (*reinterpret_cast<FloatArrayPropertyImplPtr* >(m_pImpl))->Remove( Value ); }
// Contains
bool ByteArrayProperty ::Contains( unsigned char Value ) { CheckValid(); return (*reinterpret_cast<ByteArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
bool IntArrayProperty ::Contains( __int32 Value ) { CheckValid(); return (*reinterpret_cast<IntArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
bool UIntArrayProperty ::Contains( unsigned __int32 Value ) { CheckValid(); return (*reinterpret_cast<UIntArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
bool Int64ArrayProperty ::Contains( __int64 Value ) { CheckValid(); return (*reinterpret_cast<Int64ArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
bool UInt64ArrayProperty ::Contains( unsigned __int64 Value ) { CheckValid(); return (*reinterpret_cast<UInt64ArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
bool StringArrayProperty ::Contains( IntelMobileChar* Value ) { CheckValid(); return (*reinterpret_cast<StringArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
bool BoolArrayProperty ::Contains( bool Value ) { CheckValid(); return (*reinterpret_cast<BoolArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
bool DateTimeArrayProperty::Contains( DATE Value ) { CheckValid(); return (*reinterpret_cast<DateTimeArrayPropertyImplPtr*>(m_pImpl))->Contains( Value ); }
bool FloatArrayProperty ::Contains( float Value ) { CheckValid(); return (*reinterpret_cast<FloatArrayPropertyImplPtr* >(m_pImpl))->Contains( Value ); }
//==============================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -