summaryrefslogtreecommitdiff
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-12-07 09:45:32 -0500
committerKen Martin <ken.martin@kitware.com>2006-12-07 09:45:32 -0500
commit27379d7b081be852c2b290a98db548cffffbff04 (patch)
treefcc9e19282bdfb71bf4bf9b1f8fcea1401c2fbd5 /Source/cmSourceFile.h
parent833548f53a2ed799bb0df23fd7d973c30b423d1b (diff)
downloadcmake-27379d7b081be852c2b290a98db548cffffbff04.tar.gz
ENH: make properties a bit more formal with documentation and chaining
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index c8391e2cee..0b636ef567 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -18,6 +18,9 @@
#define cmSourceFile_h
#include "cmCustomCommand.h"
+#include "cmPropertyMap.h"
+
+class cmake;
/** \class cmSourceFile
* \brief Represent a class loaded from a makefile.
@@ -32,10 +35,7 @@ public:
* Construct instance as a concrete class with both a
* .h and .cxx file.
*/
- cmSourceFile()
- {
- this->CustomCommand = 0;
- }
+ cmSourceFile();
~cmSourceFile()
{
this->SetCustomCommand(0);
@@ -108,8 +108,14 @@ public:
*/
const std::string& GetSourceNameWithoutLastExtension();
+ // Get the properties
+ cmPropertyMap &GetProperties() { return this->Properties; };
+
+ // Define the properties
+ static void DefineProperties(cmake *cm);
+
private:
- std::map<cmStdString,cmStdString> Properties;
+ cmPropertyMap Properties;
cmCustomCommand *CustomCommand;
std::string FullPath;
std::string SourceName;