General KERNEL Documentation     End User KERNEL Services  


src/Container/SALOME_FileRef_i.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
00002 // 
00003 //  This library is free software; you can redistribute it and/or 
00004 //  modify it under the terms of the GNU Lesser General Public 
00005 //  License as published by the Free Software Foundation; either 
00006 //  version 2.1 of the License. 
00007 // 
00008 //  This library is distributed in the hope that it will be useful, 
00009 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00010 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00011 //  Lesser General Public License for more details. 
00012 // 
00013 //  You should have received a copy of the GNU Lesser General Public 
00014 //  License along with this library; if not, write to the Free Software 
00015 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00016 // 
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 //
00020 //
00021 //  File   : SALOME_FileRef_i.hxx
00022 //  Author : Paul RASCLE, EDF
00023 //  Module : SALOME
00024 //  $Header: /home/server/cvs/KERNEL/KERNEL_SRC/src/Container/SALOME_FileRef_i.hxx,v 1.3 2006/06/01 11:15:16 jfa Exp $
00025 
00026 #ifndef _SALOME_FILEREF_I_HXX_
00027 #define _SALOME_FILEREF_I_HXX_
00028 
00029 #include <SALOMEconfig.h>
00030 #include CORBA_SERVER_HEADER(SALOME_Component)
00031 
00032 #include <string>
00033 #include <map>
00034 
00035 class fileRef_i:
00036   public virtual POA_Engines::fileRef,
00037   public virtual PortableServer::RefCountServantBase
00038 {
00039 public:
00040   fileRef_i();
00041   fileRef_i(Engines::Container_ptr container,
00042          const char* origFileName);
00043   virtual ~fileRef_i();
00044 
00045   char* origFileName();
00046 
00047   char* refMachine();
00048 
00049   Engines::Container_ptr getContainer();
00050 
00051   CORBA::Boolean addRef(const char* machine,
00052                const char* fileName);
00053 
00054   char* getRef(const char* machine);
00055 
00056 protected:
00057   Engines::Container_var _container;
00058   std::string _origFileName;
00059   std::string _machine;
00060   std::map<std::string, std::string> _copies;
00061 };
00062 
00063 #endif