로딩중...
검색중...
일치하는것 없음
manifest.hpp
이 파일의 문서화 페이지로 가기
1
2
#pragma once
3
4
#include "
core/ast/validable.hpp
"
5
6
namespace
by {
7
8
// TODO: entrypoints[== filePath] can be various. but not language.
13
struct
_nout
entrypoint
:
public
validable
{
14
entrypoint
(
const
std::string&
newLang
,
const
std::vector<std::string>&
newPaths
);
15
virtual
~entrypoint
();
16
17
public
:
18
nbool
isValid()
const override
;
19
20
public
:
21
std::string lang;
22
std::vector<std::string> paths;
23
};
24
25
typedef
std::vector<entrypoint> entrypoints;
26
32
struct
manifest
:
public
validable
{
33
static
constexpr
const
nchar
* DEFAULT_NAME =
"{default}"
;
34
35
manifest
();
36
manifest
(
const
std::string&
newName
);
37
manifest
(
const
std::string&
newName
,
const
std::string&
newFilePath
,
const
std::string&
newAuthor
,
38
const
std::string&
newVer
,
const
entrypoints&
newPoints
);
39
virtual
~manifest
();
40
41
nbool
isValid()
const override
;
42
43
public
:
44
std::string name;
// manifest name should not contain '.'(dot) character.
45
std::string filePath;
46
std::string author;
47
std::string version;
48
std::string ver;
49
50
entrypoints points;
51
};
52
53
typedef
std::vector<manifest> manifests;
54
}
// namespace by
by::tnarr
Definition
tnarr.hpp:9
by::validable
Interface for objects with validation state
Definition
validable.hpp:12
by::entrypoint
Entry point definition for pod loading
Definition
manifest.hpp:13
by::manifest
pod manifest information
Definition
manifest.hpp:32
validable.hpp
to Top