Lines Matching refs:aFile
180 bool SGCOLORS::WriteVRML( std::ostream& aFile, bool aReuseFlag ) in WriteVRML() argument
189 aFile << "color DEF " << GetName() << " Color { color [\n "; in WriteVRML()
194 aFile << "color USE " << GetName() << "\n"; in WriteVRML()
200 aFile << "color Color { color [\n "; in WriteVRML()
212 aFile << tmp ; in WriteVRML()
217 aFile << ","; in WriteVRML()
221 aFile << "\n "; in WriteVRML()
232 aFile << "] }\n"; in WriteVRML()
238 bool SGCOLORS::WriteCache( std::ostream& aFile, SGNODE* parentNode ) in WriteCache() argument
249 if( np->WriteCache( aFile, nullptr ) ) in WriteCache()
260 if( !aFile.good() ) in WriteCache()
267 aFile << "[" << GetName() << "]"; in WriteCache()
269 aFile.write( (char*)&ncolors, sizeof(size_t) ); in WriteCache()
272 S3D::WriteColor( aFile, colors[i] ); in WriteCache()
274 if( aFile.fail() ) in WriteCache()
282 bool SGCOLORS::ReadCache( std::istream& aFile, SGNODE* parentNode ) in ReadCache() argument
287 aFile.read( (char*) &ncolors, sizeof( size_t ) ); in ReadCache()
290 if( aFile.fail() ) in ReadCache()
295 if( !S3D::ReadColor( aFile, tmp ) || aFile.fail() ) in ReadCache()