]> git.tdb.fi Git - builder.git/blobdiff - source/packageref.cpp
Split class Package into SourcePackage and BinaryPackage
[builder.git] / source / packageref.cpp
index 0f7dc265fa851032440222da73c4c3154aa8af79..bfd0010de2dada21b1dc13895a100875900f764c 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include "builder.h"
 #include "package.h"
 #include "packageref.h"
@@ -10,6 +17,11 @@ PackageRef::PackageRef(Builder &b, const string &n):
        package(0)
 { }
 
+/**
+Tries to get the package from Builder if we don't have it already.
+
+@return  The package pointer (0 if the package was not found)
+*/
 Package *PackageRef::resolve()
 {
        if(!package)