TAO_Notify::Save_Persist_Worker< TOPOOBJ > Class Template Reference

Iterate through children saving persistent topology information. More...

#include <Save_Persist_Worker_T.h>

Inheritance diagram for TAO_Notify::Save_Persist_Worker< TOPOOBJ >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify::Save_Persist_Worker< TOPOOBJ >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Save_Persist_Worker (Topology_Saver &saver, bool want_all_children)
virtual void work (TOPOOBJ *o)

Private Attributes

Topology_Saversaver_
bool want_all_children_

Detailed Description

template<class TOPOOBJ>
class TAO_Notify::Save_Persist_Worker< TOPOOBJ >

Iterate through children saving persistent topology information.

Definition at line 32 of file Save_Persist_Worker_T.h.


Constructor & Destructor Documentation

template<class TOPOOBJ>
TAO_Notify::Save_Persist_Worker< TOPOOBJ >::Save_Persist_Worker Topology_Saver saver,
bool  want_all_children
 

/brief Constructor /param saver the object that will save persistent information. /param want_all_children if true, unmodified children should be saved, too.

Definition at line 25 of file Save_Persist_Worker_T.cpp.

00027     : saver_ (saver)
00028     , want_all_children_ (want_all_children)
00029   {
00030   }


Member Function Documentation

template<class TOPOOBJ>
void TAO_Notify::Save_Persist_Worker< TOPOOBJ >::work TOPOOBJ *  o  )  [virtual]
 

Implements TAO_ESF_Worker< TOPOOBJ >.

Definition at line 34 of file Save_Persist_Worker_T.cpp.

References ACE_ASSERT, ACE_CHECK, ACE_ENV_ARG_PARAMETER, TAO_Notify::Save_Persist_Worker< TOPOOBJ >::saver_, and TAO_Notify::Save_Persist_Worker< TOPOOBJ >::want_all_children_.

00035   {
00036     ACE_ASSERT(o != 0);
00037     if (this->want_all_children_ || o->is_changed ())
00038     {
00039       o->save_persistent (saver_ ACE_ENV_ARG_PARAMETER);
00040       ACE_CHECK;
00041     }
00042   }


Member Data Documentation

template<class TOPOOBJ>
Topology_Saver& TAO_Notify::Save_Persist_Worker< TOPOOBJ >::saver_ [private]
 

Definition at line 46 of file Save_Persist_Worker_T.h.

Referenced by TAO_Notify::Save_Persist_Worker< TOPOOBJ >::work().

template<class TOPOOBJ>
bool TAO_Notify::Save_Persist_Worker< TOPOOBJ >::want_all_children_ [private]
 

Definition at line 47 of file Save_Persist_Worker_T.h.

Referenced by TAO_Notify::Save_Persist_Worker< TOPOOBJ >::work().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:34:31 2006 for TAO_CosNotification by doxygen 1.3.6