Caffa
1.1.0
C++ Application Framework for Embedded Systems with introspection
|
Basic Application Information. More...
#include <cafApplication.h>
Public Types | |
enum class | AppCapability : unsigned int { CONSOLE = 0x00 , SERVER = 0x01 , CLIENT = 0x02 , GUI = 0x04 } |
Application capability Defines what type of application it is. These flags can be combined. I.e. a Console Server or GUI client. More... | |
Public Member Functions | |
bool | hasCapability (AppCapability typeToCheck) const |
Check if the application has the specified capability. More... | |
std::string | version_string () const |
Construct a full X.Y.Z version string with major, minor and patch version. More... | |
Public Attributes | |
std::string | name |
The name of the application. | |
int | majorVersion |
Major version number. | |
int | minorVersion |
Minor version number. | |
int | patchVersion |
Patch version number. | |
unsigned int | appType |
Application type. Can be CONSOLE, SERVER, CLIENT, GUI. | |
Basic Application Information.
|
strong |
Application capability Defines what type of application it is. These flags can be combined. I.e. a Console Server or GUI client.
Enumerator | |
---|---|
CONSOLE | Console Application. |
SERVER | Server. |
CLIENT | Client. |
GUI | GUI application. |
|
inline |
Check if the application has the specified capability.
typeToCheck |
|
inline |
Construct a full X.Y.Z version string with major, minor and patch version.