diff --git a/Hazelnupp.sln b/Hazelnupp.sln index c71b343..07c02a8 100644 --- a/Hazelnupp.sln +++ b/Hazelnupp.sln @@ -7,6 +7,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Hazelnupp", "Hazelnupp\Haze EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test_Hazelnupp", "Test_Hazelnupp\Test_Hazelnupp.vcxproj", "{B098AA37-A9CC-4BA2-B17D-189B706FDB16}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StaticTestProject", "StaticTestProject\StaticTestProject.vcxproj", "{901BB5F6-E2A0-4363-B725-5F966CBF111E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 @@ -31,6 +33,14 @@ Global {B098AA37-A9CC-4BA2-B17D-189B706FDB16}.Release|x64.Build.0 = Release|x64 {B098AA37-A9CC-4BA2-B17D-189B706FDB16}.Release|x86.ActiveCfg = Release|Win32 {B098AA37-A9CC-4BA2-B17D-189B706FDB16}.Release|x86.Build.0 = Release|Win32 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Debug|x64.ActiveCfg = Debug|x64 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Debug|x64.Build.0 = Debug|x64 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Debug|x86.ActiveCfg = Debug|Win32 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Debug|x86.Build.0 = Debug|Win32 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Release|x64.ActiveCfg = Release|x64 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Release|x64.Build.0 = Release|x64 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Release|x86.ActiveCfg = Release|Win32 + {901BB5F6-E2A0-4363-B725-5F966CBF111E}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Hazelnupp/Hazelnupp.vcxproj b/Hazelnupp/Hazelnupp.vcxproj index a22ab04..4590f97 100644 --- a/Hazelnupp/Hazelnupp.vcxproj +++ b/Hazelnupp/Hazelnupp.vcxproj @@ -143,7 +143,6 @@ - diff --git a/Hazelnupp/Hazelnupp.vcxproj.filters b/Hazelnupp/Hazelnupp.vcxproj.filters index f64c1da..9bf5e80 100644 --- a/Hazelnupp/Hazelnupp.vcxproj.filters +++ b/Hazelnupp/Hazelnupp.vcxproj.filters @@ -15,9 +15,6 @@ - - Quelldateien - Quelldateien diff --git a/StaticTestProject/StaticTestProject.vcxproj b/StaticTestProject/StaticTestProject.vcxproj new file mode 100644 index 0000000..67ee232 --- /dev/null +++ b/StaticTestProject/StaticTestProject.vcxproj @@ -0,0 +1,152 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {901bb5f6-e2a0-4363-b725-5f966cbf111e} + StaticTestProject + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + {9aeaa0c6-9088-4f6e-9224-5c67d3163a17} + + + + + + \ No newline at end of file diff --git a/StaticTestProject/StaticTestProject.vcxproj.filters b/StaticTestProject/StaticTestProject.vcxproj.filters new file mode 100644 index 0000000..46d313e --- /dev/null +++ b/StaticTestProject/StaticTestProject.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Quelldateien + + + \ No newline at end of file diff --git a/StaticTestProject/main.cpp b/StaticTestProject/main.cpp new file mode 100644 index 0000000..912ef0a --- /dev/null +++ b/StaticTestProject/main.cpp @@ -0,0 +1,31 @@ +#include +#include "../Hazelnupp/Hazelnupp.h" + +using namespace Hazelnp; + +int main(int argc, char** argv) +{ + Hazelnupp nupp; + + nupp.SetBriefDescription("This is the testing application for Hazelnupp."); + + nupp.RegisterDescription("--help", "This will display the parameter documentation."); + nupp.RegisterDescription("--force", "Just forces it."); + nupp.RegisterDescription("--width", "The width of something..."); + nupp.RegisterDescription("--name", "The names to target"); + nupp.RegisterDescription("--fruit", "The fruit to use"); + + nupp.RegisterAbbreviation("-f", "--force"); + nupp.RegisterAbbreviation("-w", "--width"); + nupp.RegisterAbbreviation("-h", "--height"); + nupp.RegisterAbbreviation("-d", "--depth"); + + nupp.RegisterConstraint("--width", ParamConstraint::TypeSafety(DATA_TYPE::FLOAT)); + nupp.RegisterConstraint("--depth", ParamConstraint::TypeSafety(DATA_TYPE::FLOAT)); + nupp.RegisterConstraint("--name", ParamConstraint(true, DATA_TYPE::LIST, { "peter", "hannes" }, true)); + nupp.RegisterConstraint("--fruit", ParamConstraint(true, DATA_TYPE::STRING, {}, true)); + + nupp.Parse(argc, argv); + + return 0; +}