RTXI  2.4
The Real-Time eXperiment Interface Documentation
Public Member Functions
MockIOBlock Class Reference

#include <io_tests.h>

Inheritance diagram for MockIOBlock:
Inheritance graph
Collaboration diagram for MockIOBlock:
Collaboration graph

Public Member Functions

 MockIOBlock (std::string n, IO::channel_t *l, size_t c)
 
 ~MockIOBlock ()
 
 MOCK_METHOD (std::string, getName,(),(const))
 
 MOCK_METHOD (size_t, getCount,(IO::flags_t),(const, override))
 
 MOCK_METHOD (std::string, getName,(IO::flags_t, size_t),(const, override))
 
 MOCK_METHOD (std::string, getDescription,(IO::flags_t, size_t),(const, override))
 
 MOCK_METHOD (double, getValue,(IO::flags_t, size_t),(const, override))
 
 MOCK_METHOD (double, input,(size_t),(const))
 
 MOCK_METHOD (double, output,(size_t),(const))
 
void changeOutput (double val)
 
- Public Member Functions inherited from IO::Block
 Block (std::string name, channel_t *channels, size_t size)
 
virtual ~Block (void)
 
std::string getName (void) const
 
virtual size_t getCount (flags_t type) const
 
virtual std::string getName (flags_t type, size_t index) const
 
virtual std::string getDescription (flags_t type, size_t index) const
 
virtual double getValue (flags_t type, size_t index) const
 
double input (size_t index) const
 
double output (size_t index) const
 
- Public Member Functions inherited from Settings::Object
 Object (void)
 
virtual ~Object (void)
 
ID getID (void) const
 
State save (void) const
 
void load (const State &)
 
void deferred (const State &)
 

Additional Inherited Members

- Public Types inherited from Settings::Object
typedef unsigned long ID
 
- Static Public Attributes inherited from Settings::Object
const static ID INVALID = 0
 
- Protected Member Functions inherited from IO::Block
double & output (size_t index)
 
- Protected Member Functions inherited from Settings::Object
virtual void doLoad (const State &)
 
virtual void doDeferred (const State &)
 
virtual void doSave (State &) const
 

Detailed Description

Definition at line 66 of file io_tests.h.

Constructor & Destructor Documentation

◆ MockIOBlock()

MockIOBlock::MockIOBlock(std::string n,
IO::channel_tl,
size_t c 
)
inline

Definition at line 69 of file io_tests.h.

◆ ~MockIOBlock()

MockIOBlock::~MockIOBlock()
inline

Definition at line 70 of file io_tests.h.

Member Function Documentation

◆ changeOutput()

void MockIOBlock::changeOutput(double val)
inline

Definition at line 79 of file io_tests.h.

Here is the call graph for this function:

◆ MOCK_METHOD() [1/7]

MockIOBlock::MOCK_METHOD(double ,
getValue ,
(IO::flags_t, size_t) ,
(const, override)  
)

◆ MOCK_METHOD() [2/7]

MockIOBlock::MOCK_METHOD(double ,
input ,
(size_t) ,
(const)  
)

◆ MOCK_METHOD() [3/7]

MockIOBlock::MOCK_METHOD(double ,
output ,
(size_t) ,
(const)  
)

◆ MOCK_METHOD() [4/7]

MockIOBlock::MOCK_METHOD(size_t ,
getCount ,
(IO::flags_t,
(const, override)  
)

◆ MOCK_METHOD() [5/7]

MockIOBlock::MOCK_METHOD(std::string ,
getDescription ,
(IO::flags_t, size_t) ,
(const, override)  
)

◆ MOCK_METHOD() [6/7]

MockIOBlock::MOCK_METHOD(std::string ,
getName ,
() ,
(const)  
)

◆ MOCK_METHOD() [7/7]

MockIOBlock::MOCK_METHOD(std::string ,
getName ,
(IO::flags_t, size_t) ,
(const, override)  
)

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