summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-19 17:28:46 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-19 17:28:46 (GMT)
commit24bce99cbff13cb337c543dce55f056351caa2fc (patch)
tree6f34febd8379a1c848a8c22721552964afc34c61 /Source/cmCustomCommand.h
parent57c4325c7dc3a19dea5276f9ab92647d42a3d43a (diff)
downloadCMake-24bce99cbff13cb337c543dce55f056351caa2fc.zip
CMake-24bce99cbff13cb337c543dce55f056351caa2fc.tar.gz
CMake-24bce99cbff13cb337c543dce55f056351caa2fc.tar.bz2
cleaned up the coding style made ivars private etc
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r--Source/cmCustomCommand.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h
index 1e0374e..e7353e6 100644
--- a/Source/cmCustomCommand.h
+++ b/Source/cmCustomCommand.h
@@ -19,6 +19,11 @@
#include "cmStandardIncludes.h"
class cmMakefile;
+/** \class cmCustomCommand
+ * \brief A class to encapsulate a custom command
+ *
+ * cmCustomCommand encapsulates the properties of a custom command
+ */
class cmCustomCommand
{
public:
@@ -26,8 +31,38 @@ public:
std::vector<std::string> dep,
std::vector<std::string> out);
cmCustomCommand(const cmCustomCommand& r);
+
+ /**
+ * Use the cmMakefile's Expand commands to expand any variables in
+ * this objects members.
+ */
void ExpandVariables(const cmMakefile &);
+
+ /**
+ * Return the name of the source file. I'm not sure if this is a full path or not.
+ */
+ std::string GetSourceName() const {return m_Source;}
+ void SetSourceName(const char *name) {m_Source = name;}
+
+ /**
+ * Return the command to execute
+ */
+ std::string GetCommand() const {return m_Command;}
+ void SetCommand(const char *cmd) {m_Command = cmd;}
+
+ /**
+ * Return the vector that holds the list of dependencies
+ */
+ const std::vector<std::string> &GetDepends() const {return m_Depends;}
+ std::vector<std::string> &GetDepends() {return m_Depends;}
+
+ /**
+ * Return the vector that holds the list of outputs of this command
+ */
+ const std::vector<std::string> &GetOutputs() const {return m_Outputs;}
+ std::vector<std::string> &GetOutputs() {return m_Outputs;}
+private:
std::string m_Source;
std::string m_Command;
std::vector<std::string> m_Depends;