Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Apd Toolbox
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jan Reher
Apd Toolbox
Commits
6ff2941f
Commit
6ff2941f
authored
6 years ago
by
Jan Reher
Browse files
Options
Downloads
Patches
Plain Diff
Trying to access the database.
Fixed CMakeLists to make it usable on a mac.
parent
1a9891b0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
main.cxx
+8
-1
8 additions, 1 deletion
main.cxx
with
9 additions
and
2 deletions
CMakeLists.txt
+
1
−
1
View file @
6ff2941f
cmake_minimum_required
(
VERSION 2.8
)
INCLUDE_DIRECTORIES
(
/home/tau/jreher/git
/proddb-clientlib/
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/..
/proddb-clientlib/
)
LINK_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/libs
)
project
(
apdBatchSetter
)
...
...
This diff is collapsed.
Click to expand it.
main.cxx
+
8
−
1
View file @
6ff2941f
...
...
@@ -4,6 +4,7 @@
#include
<productiondatabaseclient.h>
using
namespace
std
;
using
namespace
ProductionDatabase
;
int
main
()
{
...
...
@@ -24,5 +25,11 @@ int main()
cout
<<
"Found APD no. "
<<
nAPDs
<<
": "
<<
newEntry
<<
endl
;
}
return
(
apdSerials
.
empty
());
ProductionDatabaseClient
*
proddb
=
new
ProductionDatabaseClient
();
proddb
->
queryCredentials
();
DatabaseClientResponse
response
=
proddb
->
checkConnectivityAndCredentials
();
if
(
response
!=
Successful
)
return
response
;
return
(
-
apdSerials
.
empty
());
}
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