00001 // This is oxl/mvl/HomgPrettyPrint.h 00002 #ifndef HomgPrettyPrint_h_ 00003 #define HomgPrettyPrint_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \author 00010 // Andrew W. Fitzgibbon, Oxford RRG, 12 Oct 97 00011 // 00012 // \verbatim 00013 // Modifications: 00014 // 971012 AWF Initial version. 00015 // \endverbatim 00016 // 00017 //----------------------------------------------------------------------------- 00018 00019 class HomgPrettyPrint 00020 { 00021 // Data Members-------------------------------------------------------------- 00022 bool last_pretty_; 00023 00024 public: 00025 // Constructors/Destructors-------------------------------------------------- 00026 00027 HomgPrettyPrint(bool new_value) { last_pretty_ = pretty; pretty = new_value; } 00028 ~HomgPrettyPrint() { pretty = last_pretty_; } 00029 00030 static bool pretty; 00031 }; 00032 00033 #endif // HomgPrettyPrint_h_