Ejemplo n.º 1
0
 void pluginUnload()
 {
     if(fileBuf.is_open()){
         fileBuf.close();
     }
     /* called when plugin is unloaded, cleanup here */
 }
void ImageFileRecorder::start()
{
	if ( !m_running )
	{
		filebuffer.open ( m_logfile.string().c_str(), std::ios::out );
		if( !filebuffer.is_open()  )
			UBITRACK_THROW( "Error opening file" );
			
		m_running = true;
	}
}