General refactoring of beast framework classes

This commit is contained in:
Vinnie Falco
2013-09-12 08:26:25 -07:00
parent 8c1c7b48bb
commit 681f98ad07
34 changed files with 533 additions and 339 deletions

View File

@@ -4,20 +4,14 @@
*/
//==============================================================================
#ifdef TWICE
#error die
#endif
#define TWICE
FatalErrorReporter::FatalErrorReporter ()
{
FatalError::setReporter (*this);
m_savedReporter = FatalError::setReporter (this);
}
FatalErrorReporter::~FatalErrorReporter ()
{
FatalError::resetReporter (*this);
FatalError::setReporter (m_savedReporter);
}
void FatalErrorReporter::reportMessage (String& formattedMessage)

View File

@@ -25,6 +25,9 @@ public:
~FatalErrorReporter ();
void reportMessage (String& formattedMessage);
private:
FatalError::Reporter* m_savedReporter;
};
#endif

View File

@@ -29,8 +29,8 @@ namespace ripple
// Application
//
# include "main/ripple_FatalErrorReporter.h"
#include "main/ripple_FatalErrorReporter.cpp"
# include "main/FatalErrorReporter.h"
#include "main/FatalErrorReporter.cpp"
# include "peers/PeerDoor.h"
#include "peers/PeerDoor.cpp"