COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
utest-tools-growl.cpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for the mesh generators"
9 
10 #include <boost/assign/list_of.hpp>
11 #include <boost/test/unit_test.hpp>
12 
13 #include "common/Core.hpp"
14 
15 #include "common/LibLoader.hpp"
16 #include "common/OSystem.hpp"
17 
18 #include "Tools/Growl/Notifier.hpp"
19 
20 using namespace cf3;
21 using namespace cf3::common;
22 using namespace cf3::Tools::Growl;
23 
24 BOOST_AUTO_TEST_SUITE( Growl )
25 
26 BOOST_AUTO_TEST_CASE( TestGrowl )
28 {
29  Handle<Notifier> notifier = Core::instance().root().create_component<Notifier>("notifier");
30  notifier->notify("event","description");
31 }
32 
33 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(TestGrowl)
Test creation of a 2D grid.
Safe pointer to an object. This is the supported method for referring to components.
Definition: Handle.hpp:39
void notify(const std::string &event, const std::string &description)
Notify Growl.
Definition: Notifier.cpp:121
Top-level namespace for coolfluid.
Definition: Action.cpp:18
common::Component & root() const
Gives the default root component.
Definition: Core.cpp:145
Classes for Growl desktop notifications using the GNTP protocol.
Definition: LibGrowl.cpp:13
static Core & instance()
Definition: Core.cpp:37
Handle< Component > create_component(const std::string &name, const std::string &builder)
Build a (sub)component of this component using the extended type_name of the component.
Definition: Component.cpp:568
Most basic kernel library.
Definition: Action.cpp:19
Growl notifier component
Definition: Notifier.hpp:40
Send comments to:
COOLFluiD Web Admin