-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from coderdj/alternate_v2
Redax 2.0, attempt 2
- Loading branch information
Showing
43 changed files
with
2,183 additions
and
1,914 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,8 @@ | |
*.swp | ||
*~ | ||
|
||
# executables | ||
main | ||
ccontrol | ||
# executable | ||
redax | ||
|
||
# DAQ logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,35 @@ | ||
#ifndef _CCONTROL_HANDLER_HH_ | ||
#define _CCONTROL_HANDLER_HH_ | ||
|
||
#include <string> | ||
#include <bsoncxx/document/value.hpp> | ||
#include "DAQController.hh" | ||
|
||
class MongoLog; | ||
class Options; | ||
class V2718; | ||
class DDC10; | ||
class V1495; | ||
#ifdef HASDDC10 | ||
class DDC10; | ||
#endif | ||
|
||
class CControl_Handler{ | ||
|
||
class CControl_Handler : public DAQController{ | ||
public: | ||
CControl_Handler(MongoLog *log, std::string procname); | ||
~CControl_Handler(); | ||
CControl_Handler(std::shared_ptr<MongoLog>&, std::string); | ||
virtual ~CControl_Handler(); | ||
|
||
bsoncxx::document::value GetStatusDoc(std::string hostname); | ||
int DeviceArm(int run, Options *opts); | ||
int DeviceStart(); | ||
int DeviceStop(); | ||
virtual void StatusUpdate(mongocxx::collection*); | ||
virtual int Arm(std::shared_ptr<Options>&); | ||
virtual int Start(); | ||
virtual int Stop(); | ||
|
||
private: | ||
|
||
V2718 *fV2718; | ||
DDC10 *fDDC10; | ||
V1495 *fV1495; | ||
std::unique_ptr<V2718> fV2718; | ||
std::unique_ptr<V1495> fV1495; | ||
#ifdef HASDDC10 | ||
std::unique_ptr<DDC10> fDDC10; | ||
#endif | ||
|
||
int fStatus; | ||
int fCurrentRun; | ||
int fBID; | ||
int fBoardHandle; | ||
std::string fProcname; | ||
Options *fOptions; | ||
MongoLog *fLog; | ||
}; | ||
|
||
#endif | ||
#endif // _CCONTROL_HANDLER_HH_ defined |
Oops, something went wrong.