This class stores the platform-specific project name, which is used as a subpath for the project directories.
It should be obtained via a call to dire::name()
, which returns a name standarized for the build platform.
If you REALLY want to enforce your own name, initialize it by using IReallyWantMyOwnPlatformProjectName
.
This object is passed into dire::ProjectDirsBundle::make()
or all of project free functions, which return valid project directories.
Used to obtain a platform specific PlatformProjectName
which is used for obtaining project specific directories for caches, configs and such.
If you want to override the name to your own one, initialize PlatformProjectName
directly with IReallyWantMyOwnPlatformProjectName
.
On linux only app_name
is used and produces a name that is lowercased and with spaces removed. On windows only app_name
and org
are used and produces a path like domain / name
without other modifications. On mac all three are used and produce a name like domain.org.app_name
with all free segments lowercased and spaces replaced with hyphens. e.g. dire::name("me", "dich0tomy", "dire")
will produce:
Platform | Result |
Linux | dire |
Mac | me.dich0tomy.dire |
Windows | Dichotomy/Dire |