UniSet  2.6.0
IORFile.h
00001 /*
00002  * Copyright (c) 2015 Pavel Vainerman.
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU Lesser General Public License as
00006  * published by the Free Software Foundation, version 2.1.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00011  * Lesser General Lesser Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00015  */
00016 // --------------------------------------------------------------------------
00020 // --------------------------------------------------------------------------
00021 #ifndef IORFile_H_
00022 #define IORFile_H_
00023 // --------------------------------------------------------------------------
00024 #include <string>
00025 #include "UniSetTypes.h"
00026 #include "Exceptions.h"
00027 // --------------------------------------------------------------------------
00028 namespace uniset
00029 {
00033 class IORFile
00034 {
00035     public:
00036         IORFile();
00037 
00038         static std::string getIOR( const ObjectId id );
00039         static void setIOR( const ObjectId id, const std::string& sior );
00040         static void unlinkIOR( const ObjectId id );
00041 
00042         static std::string getFileName( const ObjectId id );
00043 
00044     protected:
00045 
00046     private:
00047 };
00048 // -----------------------------------------------------------------------------------------
00049 }    // end of namespace
00050 // -----------------------------------------------------------------------------------------
00051 #endif