00001 // ======================================================================== // 00002 // // 00003 // File : path.h // 00004 // Purpose : // 00005 // Time-stamp: <Wed Nov/13/2002 05:45 MET Coder@ReallySoft.de> // 00006 // // 00007 // (C) May 2002 by Ralf Westram // 00008 // // 00009 // Permission to use, copy, modify, distribute and sell this software // 00010 // and its documentation for any purpose is hereby granted without fee, // 00011 // provided that the above copyright notice appear in all copies and // 00012 // that both that copyright notice and this permission notice appear // 00013 // in supporting documentation. // 00014 // // 00015 // Ralf Westram makes no representations about the suitability of this // 00016 // software for any purpose. It is provided "as is" without express or // 00017 // implied warranty. // 00018 // // 00019 // ======================================================================== // 00020 00021 #ifndef PATH_H 00022 #define PATH_H 00023 00024 #ifndef VECTOR 00025 #include <vector> 00026 #endif 00027 #ifndef STRING 00028 #include <string> 00029 #endif 00030 00031 namespace rs { 00032 namespace sys_dep { 00033 00035 class Path { 00036 private: 00037 std::vector<std::string> dirs; 00038 00039 void init(const char *path); 00040 public: 00041 Path(); 00042 Path(const char *path); 00043 virtual ~Path() {} 00044 00045 std::vector<std::string>::const_iterator begin() const { return dirs.begin(); } 00046 std::vector<std::string>::const_iterator end() const { return dirs.end(); } 00047 }; 00048 }; 00049 }; // end of namespace rs 00050 00051 #else 00052 #error path.h included twice 00053 #endif // PATH_H 00054
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |