#include "MAXProxyHeaders.hpp" //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // MAXCopyProcess::MAXCopyProcess( Stuff::NotationFile *data_file, Interface *i, int p, bool bSuppress, LPVOID fcn ): CopyProcess(data_file,bSuppress,fcn), iPointer(i), progress(p) { Check_Object(data_file); Page *page = data_file->FindPage("Copy"); if (page) { page->GetEntry("Verbose", &suppress); suppress = !suppress; } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void MAXCopyProcess::CopyCallback(Proxies::GenericProxy *proxy) { Check_Object(this); Check_Object(proxy); // //---------------------------- // Print the name of the proxy //---------------------------- // if (!suppress) { MString name; char buffer[200]; if (proxy->GetName(&name)) sprintf(buffer, "Copying %s ", static_cast(name)); else sprintf( buffer, "Copying <%s>...", static_cast(proxy->GetClassString()) ); iPointer->ProgressUpdate(++progress,false,_T(buffer)); } }