blob: b6b1023231510cdbf66de41b638696efda848085 (
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
64
65
66
67
68
69
70
71
72
73
74
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file Topology_Loader.h
*
* $Id$
*
* @author Jonathan Pollack <pollack_j@ociweb.com>
*/
//=============================================================================
#ifndef TOPOLOGY_LOADER_H
#define TOPOLOGY_LOADER_H
#include /**/ "ace/pre.h"
#include "notify_serv_export.h"
#include "ace/config-all.h"
#include "tao/corba.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
namespace TAO_Notify
{
/// A forward declaration.
class Topology_Object;
/**
* \brief An interface for an object that loads Persistent Topology Information.
*
* A persistent store must provide an implemention this interface.
*
*/
class TAO_Notify_Serv_Export Topology_Loader
{
public:
/// The constructor.
Topology_Loader ();
/// The destructor.
virtual ~Topology_Loader ();
/** \brief Begin the restore process.
*
* Call this function to start the reload of data from a persistent store.
* When the Topology_Loader detects a child object, it should
* call the load_child method of the object passed in, then do the same
* loading process on the returned object.
*/
virtual void load (Topology_Object *root ACE_ENV_ARG_DECL) = 0;
/**
* \brief Close the loader after loading is complete.
*
* This is not pure virtual because some loaders may not need to be closed.
* The default implementation does nothing.
*
* There should be a corresponding open, but the signature may
* vary based on the type of loader, so we can't include it in the
* interface.
*/
virtual void close (ACE_ENV_SINGLE_ARG_DECL);
};
} // namespace TAO_Notify
#include /**/ "ace/post.h"
#endif /* TOPOLOGY_LOADER */
|