summaryrefslogtreecommitdiffstats
path: root/Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h
diff options
context:
space:
mode:
authorSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
committerSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
commit33613a85afc4b1481367fbe92a17ee59c240250b (patch)
tree670b842326116b376b505ec2263878912fca97e2 /Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h
downloadStudium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz
Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2
add new repoHEADmaster
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