|
From: Markus R. <rol...@us...> - 2007-06-15 10:41:14
|
Update of /cvsroot/simspark/simspark/contrib/rsgedit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv28620 Modified Files: simspark.cpp simspark.h Log Message: - added methods SetLogPriority() and GetLogPriority() to acces the filter settings of the managed log stream at runtime Index: simspark.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/simspark.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** simspark.cpp 15 Mar 2007 07:26:24 -0000 1.5 --- simspark.cpp 15 Jun 2007 10:41:06 -0000 1.6 *************** *** 55,58 **** --- 55,68 ---- } + unsigned int SimSpark::GetLogPriority() + { + return GetLog()->GetPriorityMask(&mLogStream); + } + + void SimSpark::SetLogPriority(unsigned int mask) + { + GetLog()->SetPriorityMask(&mLogStream, mask); + } + void SimSpark::ResetSimulation() { Index: simspark.h =================================================================== RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/simspark.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** simspark.h 15 Mar 2007 07:26:24 -0000 1.4 --- simspark.h 15 Jun 2007 10:41:06 -0000 1.5 *************** *** 61,64 **** --- 61,70 ---- static void ClearLogBuffer(); + /** change the priority filter of the managed log stream */ + void SetLogPriority(unsigned int mask); + + /** returns the current priority filter of the managed log stream */ + unsigned int GetLogPriority(); + protected: //! the state of the current simulation |