CARMA C++
SymlinkManager.h
Go to the documentation of this file.
1 #ifndef CARMA_DBMS_SYMLINKMANAGER_H
2 #define CARMA_DBMS_SYMLINKMANAGER_H
3 
12 #include "carma/dbms/SymlinkInfo.h"
13 #include <vector>
14 
15 namespace carma {
16  namespace dbms {
17 
18  class SymlinkManager {
19 
20  public:
21  SymlinkManager();
22 
23  ~SymlinkManager();
24 
41  void openFiles( ::std::vector<SymlinkInfo> & info,
42  const char* mode);
43 
50  void finishedWithFiles( const ::std::vector<SymlinkInfo>& info );
51 
52  private:
53 
61  void logSymlinkError( const int err,
62  const char* oldpath,
63  const char* newpath );
64  };
65  }
66 }
67 
68 #endif // CARMA_DBMS_SYMLINKMANAGER_H