Skip to content

Commit 18e36db

Browse files
Using struct instead of class
1 parent 2b3702c commit 18e36db

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

Include/runcpp2/Data/DependencyInfo.hpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ namespace runcpp2
1616
{
1717
namespace Data
1818
{
19-
class DependencyInfo
19+
struct DependencyInfo
2020
{
21-
public:
22-
std::string Name;
23-
std::unordered_set<PlatformName> Platforms;
24-
DependencySource Source;
25-
DependencyLibraryType LibraryType;
26-
std::vector<std::string> IncludePaths;
27-
std::vector<std::string> AbsoluteIncludePaths;
28-
std::unordered_map<PlatformName, DependencyLinkProperty> LinkProperties;
29-
std::unordered_map<PlatformName, ProfilesCommands> Setup;
30-
std::unordered_map<PlatformName, ProfilesCommands> Cleanup;
31-
std::unordered_map<PlatformName, ProfilesCommands> Build;
32-
std::unordered_map<PlatformName, FilesToCopyInfo> FilesToCopy;
33-
34-
bool ParseYAML_Node(ryml::ConstNodeRef node);
35-
std::string ToString(std::string indentation) const;
36-
bool Equals(const DependencyInfo& other) const;
21+
std::string Name;
22+
std::unordered_set<PlatformName> Platforms;
23+
DependencySource Source;
24+
DependencyLibraryType LibraryType;
25+
std::vector<std::string> IncludePaths;
26+
std::vector<std::string> AbsoluteIncludePaths;
27+
std::unordered_map<PlatformName, DependencyLinkProperty> LinkProperties;
28+
std::unordered_map<PlatformName, ProfilesCommands> Setup;
29+
std::unordered_map<PlatformName, ProfilesCommands> Cleanup;
30+
std::unordered_map<PlatformName, ProfilesCommands> Build;
31+
std::unordered_map<PlatformName, FilesToCopyInfo> FilesToCopy;
32+
33+
bool ParseYAML_Node(ryml::ConstNodeRef node);
34+
35+
std::string ToString(std::string indentation) const;
36+
bool Equals(const DependencyInfo& other) const;
3737
};
3838
}
3939
}

Include/runcpp2/Data/FileProperties.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ namespace runcpp2
1010
{
1111
namespace Data
1212
{
13-
class FileProperties
13+
struct FileProperties
1414
{
15-
public:
16-
std::unordered_map<PlatformName, std::string> Prefix;
17-
std::unordered_map<PlatformName, std::string> Extension;
18-
19-
bool ParseYAML_Node(ryml::ConstNodeRef node);
20-
std::string ToString(std::string indentation) const;
21-
bool Equals(const FileProperties& other) const;
15+
std::unordered_map<PlatformName, std::string> Prefix;
16+
std::unordered_map<PlatformName, std::string> Extension;
17+
18+
bool ParseYAML_Node(ryml::ConstNodeRef node);
19+
20+
std::string ToString(std::string indentation) const;
21+
bool Equals(const FileProperties& other) const;
2222
};
2323

2424
}

Include/runcpp2/Data/FilesTypesInfo.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ namespace runcpp2
99
{
1010
namespace Data
1111
{
12-
class FilesTypesInfo
12+
struct FilesTypesInfo
1313
{
14-
public:
15-
FileProperties ObjectLinkFile;
16-
FileProperties SharedLinkFile;
17-
FileProperties SharedLibraryFile;
18-
FileProperties StaticLinkFile;
19-
FileProperties DebugSymbolFile;
14+
FileProperties ObjectLinkFile;
15+
FileProperties SharedLinkFile;
16+
FileProperties SharedLibraryFile;
17+
FileProperties StaticLinkFile;
18+
FileProperties DebugSymbolFile;
2019

2120
bool ParseYAML_Node(ryml::ConstNodeRef node);
21+
2222
std::string ToString(std::string indentation) const;
2323
bool Equals(const FilesTypesInfo& other) const;
2424
};

0 commit comments

Comments
 (0)