diff --git a/src/Examples/CMakeLists.txt b/src/Examples/CMakeLists.txt index 235f8602161b7b6ce4abc873dc82fc046c84494a..2375c669318e56ca03f9f7670a6be59d5688842c 100644 --- a/src/Examples/CMakeLists.txt +++ b/src/Examples/CMakeLists.txt @@ -24,6 +24,9 @@ target_link_libraries( ConfigDescriptionExample tnl ) ADD_EXECUTABLE( FileExample FileExample.cpp ) target_link_libraries( FileExample tnl ) +ADD_EXECUTABLE( ListExample ListExample.cpp ) +target_link_libraries( ListExample tnl ) + ADD_EXECUTABLE( LoggerExample LoggerExample.cpp ) target_link_libraries( LoggerExample tnl ) diff --git a/src/Examples/ConfigDescriptionExample.cpp b/src/Examples/ConfigDescriptionExample.cpp index 56f3e954565a9d79b958e87927e64fc4ee5d0486..a6e0bded8a0cb1ebae8740c6d0d467362b253fae 100644 --- a/src/Examples/ConfigDescriptionExample.cpp +++ b/src/Examples/ConfigDescriptionExample.cpp @@ -7,5 +7,8 @@ using namespace std; int main() { ConfigDescription confd; - + confd.template addEntry< String >("--new-entry","Specific description."); + confd.template addEntryEnum< String >("option1"); + confd.template addEntryEnum< String >("option2"); + confd.addDelimiter("-----------------------------"); } diff --git a/src/Examples/ListExample.cpp b/src/Examples/ListExample.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4582436a4431062f47031b94d920dbab4b62e3eb --- /dev/null +++ b/src/Examples/ListExample.cpp @@ -0,0 +1,11 @@ +#include <iostream> +#include <TNL/ConfigDescription.h> + +using namespace TNL; +using namespace std; + +int main() +{ + List lst; + lst.Append(data); +} \ No newline at end of file