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

Trying to access the database.

Fixed CMakeLists to make it usable on a mac.
parent 1a9891b0
No related branches found
No related tags found
No related merge requests found
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)
......
......@@ -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());
}
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