36ed113ff6478921b3a2d05c6ece8e2f20a61ecf
[reactos.git] / reactos / tools / rbuild / installfile.cpp
1 #include "pch.h"
2 #include <assert.h>
3
4 #include "rbuild.h"
5
6 using std::string;
7
8 InstallFile::InstallFile ( const Project& project_,
9 const XMLElement& installfileNode,
10 const string& path )
11 : project ( project_ ),
12 node ( installfileNode )
13 {
14 const XMLAttribute* att = node.GetAttribute ( "base", false );
15 if ( att != NULL )
16 base = att->value;
17 else
18 base = "";
19
20 att = node.GetAttribute ( "newname", false );
21 if ( att != NULL )
22 newname = att->value;
23 else
24 newname = node.value;
25 name = node.value;
26 this->path = path;
27 }
28
29 InstallFile::~InstallFile ()
30 {
31 }
32
33 string
34 InstallFile::GetPath () const
35 {
36 return path + SSEP + name;
37 }
38
39 void
40 InstallFile::ProcessXML()
41 {
42 }