Pagina Principale   Moduli   Lista dei namespaces   Gerarchia delle classi   Lista in ordine alfabetico   Lista dei composti   Lista dei files   Membri dei namespaces   Membri dei composti   Membri dei files   Esempi  

/home/fbassi/devel/projects/reti/Proxy/Proxy_i.h

Vai alla documentazione di questo file.
00001 /*
00002  *    FBFS Distributed Object Repository
00003  *    Copyright (C) 2001 Francesco V. Bassi
00004  *
00005  *    This program is free software; you can redistribute it and/or modify
00006  *    it under the terms of the GNU General Public License as published by
00007  *    the Free Software Foundation; either version 2 of the License, or
00008  *    (at your option) any later version.
00009  *
00010  *    This program is distributed in the hope that it will be useful,
00011  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *    GNU General Public License for more details.
00014  *
00015  *    You should have received a copy of the GNU General Public License
00016  *    along with this program; if not, write to the Free Software
00017  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #ifndef _fbfs_PROXY
00021 #define _fbfs_PROXY 1
00022 
00023 #include "../idl/Proxy.hh"
00024 #include "../utils/Prefs.h"
00025 #include "../utils/ShareLock.h"
00026 #include "../NameServer/NameServerClient.h"
00027 
00034 namespace fbfs {
00035     class Proxy_i;
00036 };
00037 
00049 class fbfs::Proxy_i : public POA_fbfs::Proxy, public PortableServer::RefCountServantBase {
00050 public:
00055     Proxy_i(utils::Prefs &prefs, const CORBA::ORB_ptr &orb);
00056 
00060     virtual ~Proxy_i() {};
00061 
00082      fbfs::Obj *get(const Security &cert, const Obj_id &id)
00083             throw(NotFound, SecurityException, InternalError);
00084 
00104     void put(const Security &cert, const Obj_id &id, const Obj &obj, const Obj_prop &props)
00105             throw(AlreadyPresent, NotFound, SecurityException, InternalError);
00106 
00121     void remove(const Security &cert, const Obj_id &id)
00122             throw(NotFound, SecurityException, InternalError);
00123 
00124 private:
00125     utils::Prefs &prefs;
00126     const string dir;
00127     CORBA::ORB_ptr orb;
00128     NameServerClient nsclient;
00129     utils::ShareLock lock;
00130 };
00131 
00144 #endif

Generato il Thu Feb 15 13:24:56 2001 per A Simple Distributed Object Repository with CORBA & C++. da doxygen1.2.3 scritto da Dimitri van Heesch, © 1997-2000