]> git.tdb.fi Git - builder.git/blobdiff - source/executable.h
Reorder class members
[builder.git] / source / executable.h
index d7d8ebbea909fa3f1c853b1212d3827d1962e51c..a6ebb978175c46029ae804728418d3a423fc1efc 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef EXECUTABLE_H_
 #define EXECUTABLE_H_
 
@@ -12,15 +19,19 @@ library.
 */
 class Executable: public Target
 {
+private:
+       const Component ∁
+
 public:
        Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
-       const char      *get_type() const      { return "Executable"; }
+       virtual const char *get_type() const { return "Executable"; }
        const Component &get_component() const { return comp; }
-       void            find_depends();
-       Action          *build();
+       virtual void find_depends();
 private:
-       const Component &comp;
+       virtual Action *create_action();
 
+       /** Returns the name for the executable.  We can't do this in the
+       constructor since we need to pass the value to the Target c'tor. */
        static std::string generate_target_name(const Component &);
 };