ChimeraTK-ApplicationCore  04.01.00
FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart > Struct Template Reference

#include <fixtures.h>

+ Collaboration diagram for FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >:

Public Member Functions

 FixtureWithPollAndPushInput ()
 
 ~FixtureWithPollAndPushInput ()
 
template<typename T >
auto read (ChimeraTK::DummyRegisterRawAccessor &accessor)
 
template<typename T >
auto read (ChimeraTK::DummyRegisterRawAccessor &&accessor)
 
template<typename T >
void write (ChimeraTK::DummyRegisterRawAccessor &accessor, T value)
 
template<typename T >
void write (ChimeraTK::DummyRegisterRawAccessor &&accessor, T value)
 
bool isDeviceInError ()
 

Public Attributes

boost::shared_ptr< ChimeraTK::ExceptionDummy > deviceBackend
 
boost::shared_ptr< ChimeraTK::ExceptionDummy > deviceBackend2
 
boost::shared_ptr< ChimeraTK::ExceptionDummy > deviceBackend3
 
DummyApplication application
 
ChimeraTK::TestFacility testFacitiy {application, enableTestFacility}
 
ChimeraTK::ScalarRegisterAccessor< int > status
 
ChimeraTK::ScalarRegisterAccessor< int > status2
 
ChimeraTK::VoidRegisterAccessor deviceBecameFunctional
 
ChimeraTK::ScalarRegisterAccessor< std::string > message
 
ChimeraTK::DummyRegisterRawAccessor exceptionDummyRegister
 
ChimeraTK::DummyRegisterRawAccessor exceptionDummyRegister2
 
ChimeraTK::DummyRegisterRawAccessor exceptionDummyRegister3
 
ChimeraTK::DummyRegisterRawAccessor exceptionDummy2Register
 
ChimeraTK::ScalarPushInput< int > & pushVariable {application.group1.pushModule.reg1.pushInput}
 
ChimeraTK::ScalarPollInput< int > & pollVariable {application.group1.pollModule.pollInput}
 
ChimeraTK::ScalarPollInput< int > & pollVariable2 {application.group1.pollModule.pollInput2}
 
ChimeraTK::ScalarOutput< int > & outputVariable2 {application.group1.outputModule.deviceRegister2}
 
ChimeraTK::ScalarOutput< int > & outputVariable3 {application.group1.outputModule.deviceRegister3}
 
ChimeraTK::VoidOutputoutputVariableV {application.group1.outputModule.deviceRegisterV}
 
ChimeraTK::ScalarPushInput< int > & triggeredInput {application.group2.pushModule2.reg1.pushInput}
 
ChimeraTK::ScalarPushInput< int > & pushVariable3 {application.group2.pushModule3.reg1.pushInput}
 
ChimeraTK::ScalarPushInput< int > & pushVariable3copy {application.group2.pushModule3.reg1.pushInputCopy}
 
ChimeraTK::ScalarPollInput< int > & pollVariable3 {application.group3.pollModule3.pollInput}
 
ChimeraTK::VoidRegisterAccessor interrupt
 
std::atomic< bool > initHandler1Throws {false}
 
std::atomic< bool > initHandler2Throws {false}
 
std::atomic< bool > initHandler1Called {false}
 
std::atomic< bool > initHandler2Called {false}
 

Detailed Description

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
struct FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >

Definition at line 127 of file fixtures.h.

Constructor & Destructor Documentation

◆ FixtureWithPollAndPushInput()

template<bool enableTestFacility, bool addInitHandlers, bool breakSecondDeviceAtStart>
FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::FixtureWithPollAndPushInput

Definition at line 185 of file fixtures.h.

+ Here is the call graph for this function:

◆ ~FixtureWithPollAndPushInput()

template<bool enableTestFacility, bool addInitHandlers, bool breakSecondDeviceAtStart>
FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::~FixtureWithPollAndPushInput

Definition at line 263 of file fixtures.h.

Member Function Documentation

◆ isDeviceInError()

template<bool enableTestFacility, bool addInitHandlers, bool breakSecondDeviceAtStart>
bool FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::isDeviceInError

Definition at line 279 of file fixtures.h.

◆ read() [1/2]

template<bool enableTestFacility, bool addInitHandlers, bool breakSecondDeviceAtStart>
template<typename T >
auto FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::read ( ChimeraTK::DummyRegisterRawAccessor &&  accessor)

Definition at line 299 of file fixtures.h.

◆ read() [2/2]

template<bool enableTestFacility, bool addInitHandlers, bool breakSecondDeviceAtStart>
template<typename T >
auto FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::read ( ChimeraTK::DummyRegisterRawAccessor &  accessor)

Definition at line 289 of file fixtures.h.

◆ write() [1/2]

template<bool enableTestFacility, bool addInitHandlers, bool breakSecondDeviceAtStart>
template<typename T >
void FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::write ( ChimeraTK::DummyRegisterRawAccessor &&  accessor,
value 
)

Definition at line 318 of file fixtures.h.

◆ write() [2/2]

template<bool enableTestFacility, bool addInitHandlers, bool breakSecondDeviceAtStart>
template<typename T >
void FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::write ( ChimeraTK::DummyRegisterRawAccessor &  accessor,
value 
)

Definition at line 308 of file fixtures.h.

Member Data Documentation

◆ application

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
DummyApplication FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::application

Definition at line 149 of file fixtures.h.

◆ deviceBackend

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
boost::shared_ptr<ChimeraTK::ExceptionDummy> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::deviceBackend

Definition at line 146 of file fixtures.h.

◆ deviceBackend2

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
boost::shared_ptr<ChimeraTK::ExceptionDummy> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::deviceBackend2

Definition at line 147 of file fixtures.h.

◆ deviceBackend3

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
boost::shared_ptr<ChimeraTK::ExceptionDummy> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::deviceBackend3

Definition at line 148 of file fixtures.h.

◆ deviceBecameFunctional

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::VoidRegisterAccessor FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::deviceBecameFunctional

Definition at line 153 of file fixtures.h.

◆ exceptionDummy2Register

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::DummyRegisterRawAccessor FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::exceptionDummy2Register

Definition at line 158 of file fixtures.h.

◆ exceptionDummyRegister

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::DummyRegisterRawAccessor FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::exceptionDummyRegister

Definition at line 155 of file fixtures.h.

◆ exceptionDummyRegister2

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::DummyRegisterRawAccessor FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::exceptionDummyRegister2

Definition at line 156 of file fixtures.h.

◆ exceptionDummyRegister3

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::DummyRegisterRawAccessor FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::exceptionDummyRegister3

Definition at line 157 of file fixtures.h.

◆ initHandler1Called

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
std::atomic<bool> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::initHandler1Called {false}

Definition at line 177 of file fixtures.h.

◆ initHandler1Throws

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
std::atomic<bool> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::initHandler1Throws {false}

Definition at line 175 of file fixtures.h.

◆ initHandler2Called

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
std::atomic<bool> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::initHandler2Called {false}

Definition at line 178 of file fixtures.h.

◆ initHandler2Throws

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
std::atomic<bool> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::initHandler2Throws {false}

Definition at line 176 of file fixtures.h.

◆ interrupt

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::VoidRegisterAccessor FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::interrupt

Definition at line 173 of file fixtures.h.

◆ message

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarRegisterAccessor<std::string> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::message

Definition at line 154 of file fixtures.h.

◆ outputVariable2

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarOutput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::outputVariable2 {application.group1.outputModule.deviceRegister2}

Definition at line 163 of file fixtures.h.

◆ outputVariable3

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarOutput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::outputVariable3 {application.group1.outputModule.deviceRegister3}

Definition at line 164 of file fixtures.h.

◆ outputVariableV

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::VoidOutput& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::outputVariableV {application.group1.outputModule.deviceRegisterV}

Definition at line 165 of file fixtures.h.

◆ pollVariable

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarPollInput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::pollVariable {application.group1.pollModule.pollInput}

Definition at line 161 of file fixtures.h.

◆ pollVariable2

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarPollInput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::pollVariable2 {application.group1.pollModule.pollInput2}

Definition at line 162 of file fixtures.h.

◆ pollVariable3

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarPollInput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::pollVariable3 {application.group3.pollModule3.pollInput}

Definition at line 171 of file fixtures.h.

◆ pushVariable

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarPushInput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::pushVariable {application.group1.pushModule.reg1.pushInput}

Definition at line 160 of file fixtures.h.

◆ pushVariable3

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarPushInput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::pushVariable3 {application.group2.pushModule3.reg1.pushInput}

Definition at line 169 of file fixtures.h.

◆ pushVariable3copy

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarPushInput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::pushVariable3copy {application.group2.pushModule3.reg1.pushInputCopy}

Definition at line 170 of file fixtures.h.

◆ status

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarRegisterAccessor<int> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::status

Definition at line 152 of file fixtures.h.

◆ status2

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarRegisterAccessor<int> FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::status2

Definition at line 152 of file fixtures.h.

◆ testFacitiy

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::TestFacility FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::testFacitiy {application, enableTestFacility}

Definition at line 150 of file fixtures.h.

◆ triggeredInput

template<bool enableTestFacility, bool addInitHandlers = false, bool breakSecondDeviceAtStart = false>
ChimeraTK::ScalarPushInput<int>& FixtureWithPollAndPushInput< enableTestFacility, addInitHandlers, breakSecondDeviceAtStart >::triggeredInput {application.group2.pushModule2.reg1.pushInput}

Definition at line 167 of file fixtures.h.


The documentation for this struct was generated from the following file: