biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change naming convention for C++ interfaces
[alexxy/gromacs.git]
/
src
/
gromacs
/
utility
/
exceptions.cpp
diff --git
a/src/gromacs/utility/exceptions.cpp
b/src/gromacs/utility/exceptions.cpp
index cb683dafb298772770a0a40534e2a967ce335ef7..5d85ec506bca05a77274d73378928b1c2199e4b2 100644
(file)
--- a/
src/gromacs/utility/exceptions.cpp
+++ b/
src/gromacs/utility/exceptions.cpp
@@
-254,10
+254,10
@@
namespace
* exceptions while still supporting output to different formats (e.g., to a
* string or to \c stderr).
*/
* exceptions while still supporting output to different formats (e.g., to a
* string or to \c stderr).
*/
-class
MessageWriterInterface
+class
IMessageWriter
{
public:
{
public:
- virtual ~
MessageWriterInterface
() {}
+ virtual ~
IMessageWriter
() {}
/*! \brief
* Writes a single line of text into the output.
/*! \brief
* Writes a single line of text into the output.
@@
-283,7
+283,7
@@
class MessageWriterInterface
* Formats the messages into the provided FILE handle without checking for
* errors in std::fprintf() calls.
*/
* Formats the messages into the provided FILE handle without checking for
* errors in std::fprintf() calls.
*/
-class MessageWriterFileNoThrow : public
MessageWriterInterface
+class MessageWriterFileNoThrow : public
IMessageWriter
{
public:
//! Initializes a writer that writes to the given file handle.
{
public:
//! Initializes a writer that writes to the given file handle.
@@
-312,7
+312,7
@@
class MessageWriterFileNoThrow : public MessageWriterInterface
/*! \brief
* Exception information writer to format into a TextOutputStream.
*/
/*! \brief
* Exception information writer to format into a TextOutputStream.
*/
-class MessageWriterTextWriter : public
MessageWriterInterface
+class MessageWriterTextWriter : public
IMessageWriter
{
public:
//! Initializes a writer that writes to the given stream.
{
public:
//! Initializes a writer that writes to the given stream.
@@
-345,7
+345,7
@@
class MessageWriterTextWriter : public MessageWriterInterface
/*! \brief
* Exception information writer to format into an std::string.
*/
/*! \brief
* Exception information writer to format into an std::string.
*/
-class MessageWriterString : public
MessageWriterInterface
+class MessageWriterString : public
IMessageWriter
{
public:
//! Post-processes the output string to not end in a line feed.
{
public:
//! Post-processes the output string to not end in a line feed.
@@
-394,7
+394,7
@@
class MessageWriterString : public MessageWriterInterface
*
* Does not throw unless the writer throws.
*/
*
* Does not throw unless the writer throws.
*/
-void formatExceptionMessageInternal(
MessageWriterInterface
*writer,
+void formatExceptionMessageInternal(
IMessageWriter
*writer,
const std::exception &ex, int indent)
{
const boost::exception *boostEx = dynamic_cast<const boost::exception *>(&ex);
const std::exception &ex, int indent)
{
const boost::exception *boostEx = dynamic_cast<const boost::exception *>(&ex);