diff options
Diffstat (limited to 'cpp/demo/Freeze/library/LibraryI.h')
-rw-r--r-- | cpp/demo/Freeze/library/LibraryI.h | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/cpp/demo/Freeze/library/LibraryI.h b/cpp/demo/Freeze/library/LibraryI.h index 3fb81d5f11d..88c18a97a15 100644 --- a/cpp/demo/Freeze/library/LibraryI.h +++ b/cpp/demo/Freeze/library/LibraryI.h @@ -1,66 +1,66 @@ -// **********************************************************************
-//
-// Copyright (c) 2001
-// MutableRealms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#ifndef LIBRARY_I_H
-#define LIBRARY_I_H
-
-#include <IceUtil/RWRecMutex.h>
-
-#include <Library.h>
-#include <LibraryTypes.h>
-
-class LibraryI : public Library, public IceUtil::RWRecMutex
-{
-public:
-
- LibraryI(const Ice::ObjectAdapterPtr&, const Freeze::DBPtr&, const Freeze::EvictorPtr&);
- virtual ~LibraryI();
-
- virtual ::BookPrx createBook(const ::BookDescription&, const Ice::Current&);
- virtual ::BookPrx findByIsbn(const ::std::string&, const Ice::Current&);
- virtual ::BookPrxSeq findByAuthors(const ::std::string&, const Ice::Current&);
- virtual void setEvictorSize(::Ice::Int, const Ice::Current&);
- virtual void shutdown(const Ice::Current&);
-
- void remove(const BookDescription&);
-
-private:
-
- Ice::ObjectAdapterPtr _adapter;
- Freeze::EvictorPtr _evictor;
-
- //
- // This is a dictionary of authors to a sequence of isbn numbers
- // for efficient lookup of books by authors.
- //
- StringIsbnSeqDict _authors;
-};
-
-typedef IceUtil::Handle<LibraryI> LibraryIPtr;
-
-class BookI : public Book, public IceUtil::RWRecMutex
-{
-public:
-
- BookI(const LibraryIPtr&);
- virtual ~BookI();
-
- virtual ::BookDescription getBookDescription(const Ice::Current&);
- virtual void destroy(const Ice::Current&);
- virtual void rentBook(const ::std::string&, const Ice::Current&);
- virtual ::std::string getRenterName(const Ice::Current&);
- virtual void returnBook(const Ice::Current&);
-
-private:
-
- LibraryIPtr _library;
-};
-
-#endif
+// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef LIBRARY_I_H +#define LIBRARY_I_H + +#include <IceUtil/RWRecMutex.h> + +#include <Library.h> +#include <LibraryTypes.h> + +class LibraryI : public Library, public IceUtil::RWRecMutex +{ +public: + + LibraryI(const Ice::ObjectAdapterPtr&, const Freeze::DBPtr&, const Freeze::EvictorPtr&); + virtual ~LibraryI(); + + virtual ::BookPrx createBook(const ::BookDescription&, const Ice::Current&); + virtual ::BookPrx findByIsbn(const ::std::string&, const Ice::Current&); + virtual ::BookPrxSeq findByAuthors(const ::std::string&, const Ice::Current&); + virtual void setEvictorSize(::Ice::Int, const Ice::Current&); + virtual void shutdown(const Ice::Current&); + + void remove(const BookDescription&); + +private: + + Ice::ObjectAdapterPtr _adapter; + Freeze::EvictorPtr _evictor; + + // + // This is a dictionary of authors to a sequence of isbn numbers + // for efficient lookup of books by authors. + // + StringIsbnSeqDict _authors; +}; + +typedef IceUtil::Handle<LibraryI> LibraryIPtr; + +class BookI : public Book, public IceUtil::RWRecMutex +{ +public: + + BookI(const LibraryIPtr&); + virtual ~BookI(); + + virtual ::BookDescription getBookDescription(const Ice::Current&); + virtual void destroy(const Ice::Current&); + virtual void rentBook(const ::std::string&, const Ice::Current&); + virtual ::std::string getRenterName(const Ice::Current&); + virtual void returnBook(const Ice::Current&); + +private: + + LibraryIPtr _library; +}; + +#endif |