[GME-commit] GMESRC/GME/Gme GMEEventLogger.h,1.8,1.9
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Wed Mar 10 15:11:22 CST 2004
- Previous message: [GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep
ConnJoint.cpp,1.6,1.7 FCO.cpp,1.7,1.8 ReferenceRep.cpp,1.7,1.8
- Next message: [GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004
BON2Component.cpp,1.11,1.12 BON2Component.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv1989/GME/Gme
Modified Files:
GMEEventLogger.h
Log Message:
Handle "disabled logging" in GMEEventPrintf
CVS User: volgy
Index: GMEEventLogger.h
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEEventLogger.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** GMEEventLogger.h 8 Mar 2004 20:46:05 -0000 1.8
--- GMEEventLogger.h 10 Mar 2004 21:11:18 -0000 1.9
***************
*** 134,171 ****
static void GMEEventPrintf(const char *format, IMgaObject *objOne, IMgaObject *objTwo, ...) //Only works in Transaction!!!!!!!!!
{
! CString output(format);
! if(output.Find("%Z")) {
! if(objOne == NULL)
! output.Replace(CString("%Z"),CString(""));
! else
! {
! CComBSTR ID;
! CComPtr<IMgaObject> ONE = objOne;
! COMTHROW(ONE->get_ID(&ID));
! output.Replace(CString("%Z"),CString(ID));
}
- }
! if(output.Find("%z")) {
! if(objTwo == NULL)
! output.Replace(CString("%z"),CString(""));
! else
! {
! CComBSTR ID;
! CComPtr<IMgaObject> TWO = objTwo;
! COMTHROW(TWO->get_ID(&ID));
! output.Replace(CString("%z"),CString(ID));
}
! }
! CTime time = CTime::GetCurrentTime();
! CString CurrentTime = time.Format("%b %d, %H:%M:%S ");
! fprintf(EventLog,CurrentTime);
! va_list v1;
! va_start(v1,objTwo);
! vfprintf(EventLog,output,v1);
! va_end(v1);
! fflush(EventLog);
};
--- 134,174 ----
static void GMEEventPrintf(const char *format, IMgaObject *objOne, IMgaObject *objTwo, ...) //Only works in Transaction!!!!!!!!!
{
! if(initialized)
! {
! CString output(format);
! if(output.Find("%Z")) {
! if(objOne == NULL)
! output.Replace(CString("%Z"),CString(""));
! else
! {
! CComBSTR ID;
! CComPtr<IMgaObject> ONE = objOne;
! COMTHROW(ONE->get_ID(&ID));
! output.Replace(CString("%Z"),CString(ID));
! }
}
! if(output.Find("%z")) {
! if(objTwo == NULL)
! output.Replace(CString("%z"),CString(""));
! else
! {
! CComBSTR ID;
! CComPtr<IMgaObject> TWO = objTwo;
! COMTHROW(TWO->get_ID(&ID));
! output.Replace(CString("%z"),CString(ID));
! }
}
! CTime time = CTime::GetCurrentTime();
! CString CurrentTime = time.Format("%b %d, %H:%M:%S ");
! fprintf(EventLog,CurrentTime);
! va_list v1;
! va_start(v1,objTwo);
! vfprintf(EventLog,output,v1);
! va_end(v1);
! fflush(EventLog);
! }
};
- Previous message: [GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004/Rep
ConnJoint.cpp,1.6,1.7 FCO.cpp,1.7,1.8 ReferenceRep.cpp,1.7,1.8
- Next message: [GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004
BON2Component.cpp,1.11,1.12 BON2Component.h,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the GME-commit
mailing list