Skip to content
GitLab
Explore
Sign in
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
190f7260
Commit
190f7260
authored
6 years ago
by
Jan Reher
Browse files
Options
Downloads
Patches
Plain Diff
progress
parents
No related branches found
No related tags found
No related merge requests found
Pipeline
#727
failed with stages
in 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+73
-0
73 additions, 0 deletions
.gitignore
CMakeLists.txt
+5
-0
5 additions, 0 deletions
CMakeLists.txt
main.cxx
+28
-0
28 additions, 0 deletions
main.cxx
with
106 additions
and
0 deletions
.gitignore
0 → 100644
+
73
−
0
View file @
190f7260
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------
*~
*.autosave
*.a
*.core
*.moc
*.o
*.obj
*.orig
*.rej
*.so
*.so.*
*_pch.h.cpp
*_resource.rc
*.qm
.#*
*.*#
core
!core/
tags
.DS_Store
.directory
*.debug
Makefile*
*.prl
*.app
moc_*.cpp
ui_*.h
qrc_*.cpp
Thumbs.db
*.res
*.rc
/.qmake.cache
/.qmake.stash
# qtcreator generated files
*.pro.user*
# xemacs temporary files
*.flc
# Vim temporary files
.*.swp
# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.sdf
*.opensdf
*.vcxproj
*vcxproj.*
# MinGW generated files
*.Debug
*.Release
# Python byte code
*.pyc
# Binaries
# --------
*.dll
*.exe
This diff is collapsed.
Click to expand it.
CMakeLists.txt
0 → 100644
+
5
−
0
View file @
190f7260
cmake_minimum_required
(
VERSION 2.8
)
project
(
apdBatchSetter
)
add_executable
(
${
PROJECT_NAME
}
"main.cxx"
)
add_library
(
${
PROJECT_SOURCE_DIR
}
"libproddbclient.so"
)
This diff is collapsed.
Click to expand it.
main.cxx
0 → 100644
+
28
−
0
View file @
190f7260
#include
<iostream>
#include
<vector>
#include
<fstream>
#include
<productiondatabaseclient.h>
using
namespace
std
;
int
main
()
{
vector
<
string
>
apdSerials
;
string
fileName
=
"serials.dat"
;
int
nAPDs
=
0
;
ifstream
in
(
fileName
.
c_str
());
if
(
!
in
.
good
())
cerr
<<
"Could not load serials. Does the input file exist?"
<<
endl
;
apdSerials
.
clear
();
while
(
in
.
good
())
{
string
newEntry
=
""
;
in
>>
newEntry
;
if
(
!
isdigit
(
newEntry
[
0
]))
continue
;
nAPDs
++
;
apdSerials
.
push_back
(
newEntry
);
cout
<<
"Found APD no. "
<<
nAPDs
<<
": "
<<
newEntry
<<
endl
;
}
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