diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h')
| -rw-r--r-- | Bachelor/Verteilte Systeme/Praktikum3/IPBook_impl.h | 22 |
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 |
