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/Storage/Storage_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_STORAGE
00021 #define _fbfs_STORAGE 1
00022 
00023 #include <omniORB3/CORBA.h>
00024 
00025 #include "../idl/Storage.hh"
00026 
00027 #include "../utils/Prefs.h"
00028 #include "../utils/ShareLock.h"
00029 
00036 namespace fbfs {
00037         class Storage_i;
00038 };
00039 
00040 using namespace fbfs;
00041 using namespace utils;
00042 
00060 class fbfs::Storage_i : public POA_fbfs::Storage, public PortableServer::RefCountServantBase {
00061 public:
00066     Storage_i(Prefs &prefs, const CORBA::ORB_ptr &orb);
00067 
00071     virtual ~Storage_i() {};
00072     
00082     Obj *get(const Security &cert, const Obj_id &id)
00083             throw(NotFound, SecurityException, InternalError);
00084 
00094     Obj_ts get_ts(const Security &cert, const Obj_id &id)
00095             throw(NotFound, SecurityException, InternalError);
00096 
00106     Obj_prop get_prop(const Security &cert, const Obj_id &id)
00107             throw(NotFound, SecurityException, InternalError);
00108 
00120     void put(const Security &cert,const Obj &obj,const Obj_id &id,const Obj_prop &prop,const Obj_ts &ts)
00121             throw(AlreadyPresent, SecurityException, InternalError);
00122 
00130     Obj_infoList *list(const Security &cert)
00131             throw(SecurityException, InternalError);
00132 
00144     void put_from_peer(const Security &cert, const Obj_id &id, const char *peer)
00145             throw(NotFound, PeerNotAvailable, AlreadyPresent, SecurityException, InternalError);
00146 
00155     void remove(const Security &cert, const Obj_id &id)
00156             throw(NotFound, SecurityException, InternalError);
00157 
00158 private:
00159     Prefs &prefs;
00160     CORBA::ORB_ptr orb;
00161     string dirname;
00162     string metadirname;
00163     utils::ShareLock lock;
00164 };
00165 
00190 #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