diff options
Diffstat (limited to 'cpp/demo/Manual/simple_filesystem/FilesystemI.h')
-rw-r--r-- | cpp/demo/Manual/simple_filesystem/FilesystemI.h | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/cpp/demo/Manual/simple_filesystem/FilesystemI.h b/cpp/demo/Manual/simple_filesystem/FilesystemI.h deleted file mode 100644 index 3b4e4a47bc1..00000000000 --- a/cpp/demo/Manual/simple_filesystem/FilesystemI.h +++ /dev/null @@ -1,77 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef __FilesystemI_h__ -#define __FilesystemI_h__ - -#include <Ice/Ice.h> -#include <Filesystem.h> - -#ifdef _MSC_VER -# pragma warning(push) -# pragma warning(disable:4250) // ... : inherits ... via dominance -#endif - -namespace Filesystem -{ - class DirectoryI; - typedef IceUtil::Handle<DirectoryI> DirectoryIPtr; - - class NodeI : virtual public Node - { - public: - - virtual std::string name(const Ice::Current&); - NodeI(const Ice::CommunicatorPtr&, const std::string&, const DirectoryIPtr&); - void activate(const Ice::ObjectAdapterPtr&); - - private: - - std::string _name; - Ice::Identity _id; - DirectoryIPtr _parent; - NodeI(const NodeI&); // Copy forbidden - void operator=(const NodeI&); // Assignment forbidden - }; - typedef IceUtil::Handle<NodeI> NodeIPtr; - - class FileI : public File, public NodeI - { - public: - - virtual Lines read(const Ice::Current&); - virtual void write(const Lines&, - const Ice::Current& = Ice::Current()); - FileI(const Ice::CommunicatorPtr&, const std::string&, const DirectoryIPtr&); - - private: - - Lines _lines; - }; - typedef IceUtil::Handle<FileI> FileIPtr; - - class DirectoryI : public Directory, public NodeI - { - public: - - virtual NodeSeq list(const Ice::Current&); - DirectoryI(const Ice::CommunicatorPtr&, const std::string&, const DirectoryIPtr&); - void addChild(const Filesystem::NodePrx&); - - private: - - Filesystem::NodeSeq _contents; - }; -} - -#ifdef _MSC_VER -# pragma warning(pop) -#endif - -#endif |