Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
0bafd8d9
There was an error fetching the commit references. Please try again later.
Commit
0bafd8d9
authored
6 years ago
by
Nina Džugasová
Browse files
Options
Downloads
Patches
Plain Diff
Added ListExample and ConfigDescriptionExample.
parent
119de82f
No related branches found
No related tags found
1 merge request
!15
Nina
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Examples/CMakeLists.txt
+3
-0
3 additions, 0 deletions
src/Examples/CMakeLists.txt
src/Examples/ConfigDescriptionExample.cpp
+4
-1
4 additions, 1 deletion
src/Examples/ConfigDescriptionExample.cpp
src/Examples/ListExample.cpp
+11
-0
11 additions, 0 deletions
src/Examples/ListExample.cpp
with
18 additions
and
1 deletion
src/Examples/CMakeLists.txt
+
3
−
0
View file @
0bafd8d9
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/Examples/ConfigDescriptionExample.cpp
+
4
−
1
View file @
0bafd8d9
...
...
@@ -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
(
"-----------------------------"
);
}
This diff is collapsed.
Click to expand it.
src/Examples/ListExample.cpp
0 → 100644
+
11
−
0
View file @
0bafd8d9
#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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment