Loading...
Searching...
No Matches
manifest.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace 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
Definition tnarr.hpp:9
Interface for objects with validation state.
Definition validable.hpp:12
Entry point definition for pod loading.
Definition manifest.hpp:13
pod manifest information
Definition manifest.hpp:32
to Top