int main( int , char *[] )
{
WriterType::Pointer writer = WriterType::New();
EllipseType::Pointer ellipse = EllipseType::New();
ellipse->SetRadius(3);
writer->SetInput(ellipse);
writer->SetFileName("ellipse.meta");
writer->Update();
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName("ellipse.meta");
reader->Update();
ReaderType::SceneType * scene = reader->GetScene();
std::cout << "Number of objects in the scene: ";
std::cout << scene->GetNumberOfObjects() << std::endl;
ReaderType::GroupType * group = reader->GetGroup();
std::cout << "Number of objects in the group: ";
std::cout << group->GetNumberOfChildren() << std::endl;
return EXIT_SUCCESS;
}