rem: cout << "Testtree:" << endl;
add: std::cout << "Testtree:" << std::endl;
context: int main (int argc, char **argv){    osgInit( argc, argv );//    osgLog().setLogLevel(OSG::LOG_DEBUG);    NodePtr  p1 = Node::create();    GroupPtr g1 = Group::create();    TransformPtr t1 = Transform::create();    FieldContainerPtr pb1 = p1;    FieldContainerPtr gb1 = g1;    FieldContainerPtr tb1 = t1;    cout << "Types:" << endl;    cout << "Node (NodePtr):           " << p1->getType().getId() << endl         << "(Node::getStaticType()) : " << Node::getClassType().getId() << endl         << "(FieldContainerPtr)     : " << pb1->getType().getId() << endl         << "Fields: " << endl;    p1->getType().dump();    cout << endl;    cout << "Nodes:" << endl;    cout << "Group (GroupPtr):           " << g1->getType().getId() << endl         << "(GroupPtr::getStaticType()):" << Group::getClassType().getId() << endl         << "(FieldContainerPtr):        " << gb1->getType().getId() << endl         << "Fields: " << endl;    g1->getType().dump();    cout << endl;    cout << "Transform (TransformPtr):       " << t1->getType().getId() << endl         << "(TransformPtr::getStaticType()):" << Transform::getClassType().getId() << endl         << "(FieldContainerPtr):            " << tb1->getType().getId() << endl         << "Fields: " << endl;    t1->getType().dump();    cout << endl;    // create a test tree    NodePtr  p2 = Node::create();    NodePtr  p3 = Node::create();    NodePtr  p4 = Node::create();    NodePtr  p5 = Node::create();    TransformPtr t2 = Transform::create();    GroupPtr g2 = Group::create();        p1->setCore( g1 );    p2->setCore( t1 );    p3->setCore( g2 );    p4->setCore( t2 );    p5->setCore( t2 );    p1->addChild( p2 );    p2->addChild( p3 );    p2->addChild( p4 );    p4->addChild( p5 );    Matrix m1,m2;    m1.setIdentity();    m1.setScale( 2,2,2 );    m2.setIdentity();    m2.setTranslate( 1,1,1 );    t1->getSFMatrix()->setValue( m1 );      t2->getSFMatrix()->setValue( m2 );      cout << "Testtree:" << endl;    p1->dump();    cout << "ToWorlds:" << endl;    cout << "p1:" << endl << p1->getToWorld() << endl;    cout << "p2:" << endl << p2->getToWorld() << endl;    cout << "p3:" << endl << p3->getToWorld() << endl;    cout << "p4:" << endl << p4->getToWorld() << endl;    cout << "p5:" << endl << p5->getToWorld() << endl;    p1 = NullFC;    p1.dump();    p1 = FieldContainerFactory::the()->createNode("Node");    p1.dump();    p1 = FieldContainerFactory::the()->createNode("Transform");    p1.dump();    NodeCorePtr nc1 = NullFC;    nc1.dump();    nc1 = FieldContainerFactory::the()->createNodeCore("Transform");    nc1.dump();    // double children    cout << "Double add: before:" << endl;    p2->dump();    p2->addChild( p5 );    cout << "Double add: after:" << endl;    p2->dump();    return 0;}