All Classes Namespaces Files Functions Variables Typedefs Macros
clizCommunicator.h
Go to the documentation of this file.
1 // clizCommunicator.h - ClusterLizard header file - Module: Communicator
2 
3 // Copyright (C) 2013, 2014 Simeon Knieling, M.Sc.
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 //
9 
10 //Communicator Class
11 
12 #pragma once
13 #ifndef _INCLUDE_CLIZCOMMUNICATOR
14 #define _INCLUDE_CLIZCOMMUNICATOR
15 
16 #include "clizSave.h"
17 
20 namespace cliz
21 {
22 
23  //Callback prototype
24  typedef void(*CallBackFunc)(float *mySpikes, uint64_t *myTimestamps, unsigned int *myIDs, unsigned int numSpikes, unsigned int *myFusions, unsigned int numFusions);
25 
43  {
44  private:
45  std::vector<Save*> inputSaveVec; //Input Saves
46  CallBackFunc callbackFunction;
47  public:
52  Communicator(std::vector<Save*> &iInputSaveVec);
53 
58  void setCallbackFunc(CallBackFunc iCallbackFunction);
59 
63  void threadFunc();
64  };
65 }
66 
67 #endif
Definition: cliz.h:55
boost::thread Thread
Definition: clizFunctions.h:41
void threadFunc()
Definition: clizCommunicator.cpp:41
void(* CallBackFunc)(float *mySpikes, uint64_t *myTimestamps, unsigned int *myIDs, unsigned int numSpikes, unsigned int *myFusions, unsigned int numFusions)
Definition: clizCommunicator.h:24
Definition: clizCommunicator.h:42
Thread * thisThread
Definition: clizCommunicator.h:51
Communicator(std::vector< Save * > &iInputSaveVec)
Definition: clizCommunicator.cpp:22
void setCallbackFunc(CallBackFunc iCallbackFunction)
Definition: clizCommunicator.cpp:31