00001 /* Copyright (c) 2006, Gennady Bystritsky <bystr@mac.com> 00002 * 00003 * Distributed under the MIT Licence. 00004 * This is free software. See 'LICENSE' for details. 00005 * You must read and accept the license prior to use. 00006 */ 00007 00008 #ifndef _SK_CPPUNIT_SOURCEPATH_ 00009 #define _SK_CPPUNIT_SOURCEPATH_ 00010 00011 #include <sk/util/Object.h> 00012 #include <sk/util/String.h> 00013 00014 namespace sk { 00015 namespace cppunit { 00016 class SourcePath 00017 : public virtual sk::util::Object 00018 { 00019 public: 00020 // sk::util::Object re-implementation. 00021 const sk::util::Class getClass() const; 00022 00023 static void setBase(const sk::util::String& path); 00024 static const sk::util::String make(const sk::util::String& file); 00025 00026 private: 00027 SourcePath(); 00028 virtual ~SourcePath(); 00029 00030 SourcePath(const SourcePath& other); 00031 SourcePath& operator = (const SourcePath& other); 00032 00033 static sk::util::String _base; 00034 }; 00035 } 00036 } 00037 00038 #endif /* _SK_CPPUNIT_SOURCEPATH_ */