blob: 4218b4b627aed19a8710c0a855e4f0c9b428b488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// -*- C++ -*-
//=============================================================================
/**
* \file Save_Persist_Worker_T.h
*
* $Id$
*
* \author Jonathan Pollack <pollack_j@ociweb.com>
*/
//=============================================================================
#ifndef SAVE_PERSIST_WORKER_H
#define SAVE_PERSIST_WORKER_H
#include /**/ "ace/pre.h"
#include "orbsvcs/ESF/ESF_Worker.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO_Notify
{
/**
* \brief Iterate through children saving persistent topology information.
*/
template<class TOPOOBJ>
class Save_Persist_Worker : public TAO_ESF_Worker<TOPOOBJ>
{
public:
/**
* /brief Constructor
* /param saver the object that will save persistent information.
* /param want_all_children if true, unmodified children should be saved, too.
*/
Save_Persist_Worker(Topology_Saver& saver, bool want_all_children);
// override virtual ESF_Worker method
virtual void work (TOPOOBJ* o);
private:
Topology_Saver& saver_;
bool want_all_children_;
};
} // namespace TAO_Notify
TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "orbsvcs/Notify/Save_Persist_Worker_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Save_Persist_Worker_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
#endif /* SAVE_PERSIST_WORKER_H */
|