Commit 3bce6df4 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

some cosmetic changes to line length in XdmfArray

parent 317d6f81
This diff is collapsed.
...@@ -19,19 +19,19 @@ XdmfError::~XdmfError() throw() ...@@ -19,19 +19,19 @@ XdmfError::~XdmfError() throw()
XdmfError::Level XdmfError::Level
XdmfError::getLevel() XdmfError::getLevel()
{ {
return XdmfError::mLevel; return XdmfError::mLevel;
} }
void void
XdmfError::setLevel(Level l) XdmfError::setLevel(Level l)
{ {
XdmfError::mLevel = l; XdmfError::mLevel = l;
} }
const char * const char *
XdmfError::what() const throw() XdmfError::what() const throw()
{ {
return XdmfError::mMessage.c_str(); return XdmfError::mMessage.c_str();
} }
/******************************* /*******************************
...@@ -41,27 +41,27 @@ XdmfError::what() const throw() ...@@ -41,27 +41,27 @@ XdmfError::what() const throw()
XdmfError::Level XdmfError::Level
XdmfError::getLevelLimit() XdmfError::getLevelLimit()
{ {
return XdmfError::mLevelLimit; return XdmfError::mLevelLimit;
} }
void void
XdmfError::setLevelLimit(Level l) XdmfError::setLevelLimit(Level l)
{ {
XdmfError::mLevelLimit = l; XdmfError::mLevelLimit = l;
} }
void void
XdmfError::message(Level level, std::string msg) XdmfError::message(Level level, std::string msg)
{ {
if(level<=XdmfError::getLevelLimit()) if(level<=XdmfError::getLevelLimit())
XdmfError::WriteToStream(msg); XdmfError::WriteToStream(msg);
throw XdmfError(level, msg); throw XdmfError(level, msg);
} }
void void
XdmfError::setBuffer(std::streambuf* buf) XdmfError::setBuffer(std::streambuf* buf)
{ {
XdmfError::mBuf = buf; XdmfError::mBuf = buf;
} }
/******************************** /********************************
...@@ -73,9 +73,9 @@ XdmfError::setBuffer(std::streambuf* buf) ...@@ -73,9 +73,9 @@ XdmfError::setBuffer(std::streambuf* buf)
void void
XdmfError::WriteToStream(std::string msg) XdmfError::WriteToStream(std::string msg)
{ {
if(msg[msg.length()-1] != '\n') if(msg[msg.length()-1] != '\n')
msg+='\n'; msg+='\n';
XdmfError::mBuf->sputn(msg.c_str(),msg.length()); XdmfError::mBuf->sputn(msg.c_str(),msg.length());
} }
/****************************************** /******************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment