VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
test.h
Go to the documentation of this file.
1 // test.h
2 /*
3  *
4  * Copyright 2012 - 2016 Brenton Ross
5  *
6  * VICI is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * VICI is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with VICI. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
29 #ifndef VICI_TEST_H
30 #define VICI_TEST_H
31 
32 #include <string>
33 
34 // ----------------------------------------------------------------
36 namespace VICI
37 {
39 
42 typedef void (*AsyncTestEventFn)( const std::string &s);
43 
45 
50 void defaultAsyncTestEvent( const std::string & s);
51 
53 // Initialised in cfi/log.cpp to point to defaultAsyncTestEvent
54 // During testing it is set to an event handler function.
55 //
57 
58 } // end namespace vici
59 
60 #endif
void(* AsyncTestEventFn)(const std::string &s)
Pointer to function used to enqueue a test event.
Definition: test.h:42
void defaultAsyncTestEvent(const std::string &s)
Function used to enqueue a test event.
Definition: log.cpp:39
AsyncTestEventFn asyncTestEvent
Pointer to function used to enqueue a test event.
Definition: log.cpp:41