SASSY  0.0
Software Architecture Support System
 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 - 2017 Brenton Ross
5  *
6  * SASSY 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  * SASSY 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 SASSY. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
29 #ifndef SASSY_TEST_H
30 #define SASSY_TEST_H
31 
32 #include <string>
33 
34 // ----------------------------------------------------------------
36 namespace SASSY
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 SASSY
59 
60 #endif
AsyncTestEventFn asyncTestEvent
Pointer to function used to enqueue a test event.
Definition: log.cpp:41
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