7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for static sub-components"
10 #include <boost/test/unit_test.hpp>
12 #include <boost/foreach.hpp>
13 #include <boost/iterator.hpp>
22 using namespace boost;
40 static std::string
type_name () {
return std::string(
"Part"); }
46 template <
typename SubCompT >
53 m_subcomp (create_static_component<SubCompT>(
"subc"))
69 BOOST_AUTO_TEST_SUITE( StaticSubComponent_TestSuite )
75 boost::shared_ptr<Component>
root = boost::static_pointer_cast<
Component>(allocate_component<Group>(
"root"));
84 BOOST_CHECK_EQUAL ( cp->
name(), std::string(
"myHolderT_Part"));
90 BOOST_AUTO_TEST_SUITE_END()
std::string name(ComponentWrapper &self)
external boost library namespace
Part(const std::string &name)
static std::string type_name()
static std::string type_name()
std::string type_name(const boost::python::api::object &python_object)
const std::string & name() const
Access the name of the component.
Holds the Component class, as well as the ComponentIterator class plus some functions related to comp...
Top-level namespace for coolfluid.
HolderT(const std::string &name)
Handle< SubCompT > m_subcomp
BOOST_AUTO_TEST_CASE(add_component)
Base class for defining CF components.
Most basic kernel library.