Skip to content
Snippets Groups Projects
Commit 190f7260 authored by Jan Reher's avatar Jan Reher
Browse files

progress

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #727 failed with stages
in 2 seconds
# 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
cmake_minimum_required(VERSION 2.8)
project(apdBatchSetter)
add_executable(${PROJECT_NAME} "main.cxx")
add_library(${PROJECT_SOURCE_DIR} "libproddbclient.so")
main.cxx 0 → 100644
#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());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment