-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProject.h
34 lines (31 loc) · 1.06 KB
/
Project.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//---------------------------------------------------------------------------
#ifndef ProjectH
#define ProjectH
//---------------------------------------------------------------------------
#include <vector>
#include "JsonFile.h"
#include "Window.h"
//---------------------------------------------------------------------------
class Project : public JsonFile
{
private:
struct FileEntry
{
String Name;
String Type;
String SubType;
};
typedef std::vector<FileEntry> FilesList;
String m_Name;
String m_Machine;
FilesList m_Files;
Window m_Window;
public:
__fastcall Project();
void __fastcall Create(const String& name, const String& machine);
void __fastcall Save();
void __fastcall AddFile(const String& name, const String& type, const String& subType, bool create = true);
Window __property WindowInfo = { read = m_Window, write = m_Window };
};
//---------------------------------------------------------------------------
#endif