Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
DynamicLibraryInfo.h
Go to the documentation of this file.
1#pragma once
2#include <cstring>
3#include <misc/global.h>
4#include <string>
5
9#define SF_DL_NAME_SEPARATOR "\n\n"
10
14#define SF_DL_MARKER_BEGIN "\n#@$!*^\n"
18#define SF_DL_MARKER_END "\n^*!$@#\n"
19
20namespace sf
21{
22
27{
31 DynamicLibraryInfo() = default;
32
37
41 std::string directory{};
45 std::string filename{};
49 std::string name{};
53 std::string description{};
54
58 [[nodiscard]] std::string path() const;
59
67 bool read(const std::string& dir, const std::string& filename);
68
72 void clear();
73};
74
75}// namespace sf
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10
Information on a dynamic library file using the _DL_INFORMATION macro.
Definition DynamicLibraryInfo.h:27
bool read(const std::string &dir, const std::string &filename)
Reads the information from the file.
DynamicLibraryInfo(const DynamicLibraryInfo &)
Copy constructor.
void clear()
Clears all the members.
std::string path() const
PAth to the library. Combines directory and filename.
DynamicLibraryInfo()=default
Default constructor.