1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef cmTest_h
- #define cmTest_h
- #include "cmConfigure.h"
- #include "cmListFileCache.h"
- #include "cmPropertyMap.h"
- #include <string>
- #include <vector>
- class cmMakefile;
- class cmTest
- {
- public:
-
- cmTest(cmMakefile* mf);
- ~cmTest();
-
- void SetName(const std::string& name);
- std::string GetName() const { return this->Name; }
- void SetCommand(std::vector<std::string> const& command);
- std::vector<std::string> const& GetCommand() const { return this->Command; }
-
- void SetProperty(const std::string& prop, const char* value);
- void AppendProperty(const std::string& prop, const char* value,
- bool asString = false);
- const char* GetProperty(const std::string& prop) const;
- bool GetPropertyAsBool(const std::string& prop) const;
- cmPropertyMap& GetProperties() { return this->Properties; }
-
- cmMakefile* GetMakefile() { return this->Makefile; }
-
- cmListFileBacktrace const& GetBacktrace() const;
-
- bool GetOldStyle() const { return this->OldStyle; }
- void SetOldStyle(bool b) { this->OldStyle = b; }
- private:
- cmPropertyMap Properties;
- std::string Name;
- std::vector<std::string> Command;
- bool OldStyle;
- cmMakefile* Makefile;
- cmListFileBacktrace Backtrace;
- };
- #endif
|