summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h
new file mode 100644
index 00000000000..0abc936b92a
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h
@@ -0,0 +1,54 @@
+/* -*- C++ -*- */
+
+//=============================================================================
+/**
+ * @file Event_Persistence_Factory.h
+ *
+ * $Id$
+ *
+ * A factory class that creates a Routing_Slip_Persistence_Manager.
+ *
+ * @author Jonathan Pollack <pollack_j@ociweb.com>
+ */
+//=============================================================================
+
+#ifndef EVENT_PERSISTENCE_FACTORY_H
+#define EVENT_PERSISTENCE_FACTORY_H
+#include /**/ "ace/pre.h"
+
+#include "orbsvcs/Notify/notify_serv_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/Versioned_Namespace.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace TAO_Notify
+{
+ class Routing_Slip_Persistence_Manager;
+ class Persistent_Callback;
+
+ /// interface to be implemented by specific Event_Persistence_Factories
+ class TAO_Notify_Serv_Export Event_Persistence_Factory
+ {
+ public:
+ virtual ~Event_Persistence_Factory();
+
+ /// Create a Persistence Manager
+ virtual Routing_Slip_Persistence_Manager *
+ create_routing_slip_persistence_manager (Persistent_Callback * callback) = 0;
+
+ /// Begin the reload process by returning the first Routing_Slip_Persistence_Manager
+ /// to continue call Routing_Slip_Persistence_Manager::load_next ()
+ virtual Routing_Slip_Persistence_Manager * first_reload_manager () = 0;
+
+ };
+} // namespace TAO_Notify
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+#endif /* EVENT_PERSISTENCE_FACTORY_H */