-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathProjectFile.h
More file actions
44 lines (33 loc) · 1.11 KB
/
ProjectFile.h
File metadata and controls
44 lines (33 loc) · 1.11 KB
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
35
36
37
38
39
40
41
42
43
#pragma once
#include <string>
#include <functional>
#include "ProjectFileTypes.h"
class Project;
//
// Information about that particular file.
//
class SPM_DLLEXPORT ProjectFile : public ReflectClassT<ProjectFile>
{
public:
ProjectFile();
REFLECTABLE(ProjectFile,
(ProjectItemGeneralConf)General
);
void VisitTool(
std::function<void(PlatformConfigurationProperties*)> visitConf,
CppTypeInfo* confType, // Type to create, null if just to locate
const wchar_t* configurationName = nullptr,
const wchar_t* platform = nullptr
);
// Generic autoprobe - file extension to guessed type.
static EItemType GetFromPath(const wchar_t* file);
// Relative path to file (from project path perspective)
std::wstring relativePath;
virtual void OnAfterSetProperty(ReflectPath& path);
// Configuration/platform specific tools
std::vector< std::shared_ptr<PlatformConfigurationProperties> > tools;
// Xml node containing child xml data.
pugi::xml_node node;
//Project owning this file
Project* project;
};