#include "MAXProxyHeaders.hpp" //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // MAXFlattenHierarchyProcess::MAXFlattenHierarchyProcess(Stuff::NotationFile *data_file, Interface *i, int p, bool bSuppress, LPVOID fcn ): FlattenHierarchyProcess(data_file,bSuppress,fcn), iPointer(i), progress(p) { Check_Object(data_file); Page *page = data_file->FindPage("FlattenHierarchy"); if (page) { page->GetEntry("Verbose", &suppress); suppress = !suppress; } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void MAXFlattenHierarchyProcess::FlattenHierarchyCallback(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, "Flattening %s...", static_cast(name)); else sprintf( buffer, "Flattening <%s>...", static_cast(proxy->GetClassString()) ); iPointer->ProgressUpdate(++progress,false,_T(buffer)); } }