1 using System;
2 using System.Collections;
3 using System.IO;
4
5
6
7
8
9 namespace soulcm.scmpg
10 {
11 public class ProjectFile
12 {
13 public ProjectFile(const string& fileName_, const ustring& projectName_) :
14 fileName(fileName_), projectName(projectName_), basePath(Path.GetDirectoryName(GetFullPath(fileName)))
15 {
16 }
17 public const string& BasePath() const
18 {
19 return basePath;
20 }
21 public const List<string>& SourceFiles() const
22 {
23 return sourceFiles;
24 }
25 public void AddSourceFile(const string& sourceFile)
26 {
27 sourceFiles.Add(sourceFile);
28 }
29 public nothrow void AddRuleFile(const string& ruleFile)
30 {
31 ruleFiles.Add(ruleFile);
32 }
33 public nothrow const List<string>& RuleFiles() const
34 {
35 return ruleFiles;
36 }
37 private string fileName;
38 private string basePath;
39 private ustring projectName;
40 private List<string> sourceFiles;
41 private List<string> ruleFiles;
42 }
43 }