1 // =========================================================================
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // =========================================================================
5 #include <cpPlugins/DataObject.h>
6 #include <cpPlugins/ProcessObject.h>
8 // -------------------------------------------------------------------------
9 bool cpPlugins::DataObject::
10 IsUpdated( const TTimeStamp& d ) const
12 bool ok = this->Superclass::IsUpdated( d );
13 if( !( this->m_Source.expired( ) ) )
14 ok = this->m_Source.lock( )->IsUpdated( d );
18 // -------------------------------------------------------------------------
19 void cpPlugins::DataObject::
22 this->m_Source.reset( );
25 // -------------------------------------------------------------------------
26 void cpPlugins::DataObject::
27 SetSource( cpPlugins::ProcessObject* source )
30 this->m_Source = source->CastWeakPtr< cpPlugins::ProcessObject >( );
32 this->m_Source.reset( );
35 // -------------------------------------------------------------------------
36 void cpPlugins::DataObject::
39 if( !( this->m_Source.expired( ) ) )
40 this->m_Source.lock( )->Cast< cpPlugins::ProcessObject >( )->Update( );
43 // -------------------------------------------------------------------------
44 cpPlugins::DataObject::
50 // -------------------------------------------------------------------------
51 cpPlugins::DataObject::