30 int main(
int argc,
char * argv[])
34 boost::shared_ptr<Hello> hello = allocate_component<Hello>(
"hello");
41 hello->options().set(
"message",
string(
"Goodbye world!"));
46 CFinfo <<
"Print is called " << hello->properties().value<
int>(
"print_count") <<
" times." <<
CFendl;
64 boost::shared_ptr<Component> hello =
build_component(
"cf3.tutorial.Hello",
"hello_world");
68 (*hello->signal(
"print")->signature())(args);
69 hello->call_signal(
"print",args);
75 options[
"message"].change_value(
string(
"Goodbye world!") );
77 hello->call_signal(
"print",args);
#define CFinfo
these are always defined
Abstracts the use of XML when adding options to a signal frame.
boost::shared_ptr< Component > build_component(const std::string &builder_name, const std::string &name, const std::string &factory_type_name)
Holds the Component class, as well as the ComponentIterator class plus some functions related to comp...
int main(int argc, char *argv[])
Top-level namespace for coolfluid.
Contains Tutorial classes and functions.
Most basic kernel library.