Public Member Functions | Private Attributes

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 34 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.

    : saver_ (saver)
    , want_all_children_ (want_all_children)
  {
  }


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.

  {
    ACE_ASSERT(o != 0);
    if (this->want_all_children_ || o->is_changed ())
    {
      o->save_persistent (saver_);
    }
  }


Member Data Documentation

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

Definition at line 48 of file Save_Persist_Worker_T.h.

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

Definition at line 49 of file Save_Persist_Worker_T.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines