89 if ( io->get_type() == sgDDSType ) {
90 buf =
reinterpret_cast<char*
>(&fdm.dds);
93 buf =
reinterpret_cast<char*
>(&fdm.net);
99 if ( io->get_type() == sgDDSType ) {
105 if ( ! io->write( buf, length ) ) {
106 SG_LOG( SG_IO, SG_ALERT,
"Error writing data." );
110 if ( io->get_type() == sgFileType ) {
111 if ( io->read( buf, length ) == length ) {
112 SG_LOG( SG_IO, SG_INFO,
"Success reading data." );
115 }
else if ( io->get_type() == sgDDSType ) {
116 while ( io->read( buf, length ) == length ) {
117 SG_LOG( SG_IO, SG_INFO,
" Success reading data." );
121 while ( io->read( buf, length ) == length ) {
122 SG_LOG( SG_IO, SG_INFO,
" Success reading data." );