Beispiel #1
0
sio_writer::sio_writer( ostream& os, const sio_graph& graph )
 :
 os( os )
{
   if( graph.empty( ) )
      throw runtime_error( "unexpected empty graph" );

   start_section( c_root_section );
   write_section_attributes( *this, graph.get_root_node( ) );
   finish_sections( );
}
Beispiel #2
0
void convert_sio_to_json( const sio_graph& sio, ostream& outs, json_format format )
{
   process_sio( sio.get_root_node( ), outs, format );
}