Reduce Beast public interface and eliminate unused code:

Beast includes a lot of code for encapsulating cross-platform differences
which are not used or needed by rippled. Additionally, a lot of that code
implements functionality that is available from the standard library.

This moves away from custom implementations of features that the standard
library provides and reduces the number of platform-specific interfaces
andfeatures that Beast makes available.

Highlights include:
* Use std:: instead of beast implementations when possible
* Reduce the use of beast::String in public interfaces
* Remove Windows-specific COM and Registry code
* Reduce the public interface of beast::File
* Reduce the public interface of beast::SystemStats
* Remove unused sysctl/getsysinfo functions
* Remove beast::Logger
This commit is contained in:
Nik Bougalis
2014-10-13 14:20:54 -07:00
committed by Vinnie Falco
parent fefdb32d08
commit 186ca9c235
82 changed files with 361 additions and 7762 deletions

View File

@@ -68,7 +68,7 @@ public:
@param lineNumber The line number in the source file.
*/
virtual void onFatalError (char const* message,
char const* stackBacktrace,
char const* backtrace,
char const* filePath,
int lineNumber);
@@ -80,7 +80,7 @@ public:
@param formattedMessage The message to report.
*/
virtual void reportMessage (String& formattedMessage);
virtual void reportMessage (std::string const& formattedMessage);
protected:
/** Called to format the message.
@@ -96,10 +96,11 @@ public:
@param filePath The file path from the report.
@param lineNumber The line number from the report
*/
virtual String formatMessage (char const* message,
char const* stackBacktrace,
char const* filePath,
int lineNumber);
virtual std::string formatMessage (
char const* message,
char const* backtrace,
char const* filePath,
int lineNumber);
/** Call to reformat the file path.
@@ -111,7 +112,7 @@ public:
You can override this to do a custom format on the file path.
*/
virtual String formatFilePath (char const* filePath);
virtual std::string formatFilePath (char const* filePath);
};
/** Returns the current fatal error reporter. */