summaryrefslogtreecommitdiffstats
path: root/Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h')
-rw-r--r--Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h b/Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h
new file mode 100644
index 0000000..a42daea
--- /dev/null
+++ b/Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h
@@ -0,0 +1,22 @@
+#ifndef IPBook_impl_h
+#define IPBook_impl_h 1
+
+#include "IPBook.h"
+
+#include <map>
+#include <string>
+using namespace std;
+
+class IPBook_impl : virtual public POA_IPBook
+{
+public:
+ // implement pure virtual functions from POA_IPBook
+ virtual void addEntry( const char* name, const char* number );
+ virtual char* searchEntry( const char* name );
+ virtual CORBA::Long count( );
+
+private:
+ map <string, string, less<string> > _numbers;
+};
+
+#endif