|
From: <mk...@us...> - 2003-07-23 05:07:53
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Source
In directory sc8-pr-cvs1:/tmp/cvs-serv22001/Source
Modified Files:
Exception.cpp FileUtility.cpp
Removed Files:
main.cpp
Log Message:
Index: Exception.cpp
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/Source/Exception.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Exception.cpp 23 Apr 2003 09:14:22 -0000 1.4
--- Exception.cpp 23 Jul 2003 05:07:51 -0000 1.5
***************
*** 49,52 ****
--- 49,56 ----
}
+ std::string ExceptionBase::getError() {
+ return _type + ": " + _msg;
+ }
+
void ExceptionBase::appendMessage(std::string const &msg) {
_msg += "\n" + msg;
***************
*** 58,62 ****
void ExceptionBase::details() {
! std::cerr << _type << ": " << _msg << std::endl;
}
--- 62,66 ----
void ExceptionBase::details() {
! std::cerr << getError() << std::endl;
}
Index: FileUtility.cpp
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/Source/FileUtility.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FileUtility.cpp 11 Apr 2003 18:16:22 -0000 1.1
--- FileUtility.cpp 23 Jul 2003 05:07:51 -0000 1.2
***************
*** 111,115 ****
return ".";
}
! return path.substr(0, base-1);
}
--- 111,115 ----
return ".";
}
! return path.substr(0, base+1);
}
--- main.cpp DELETED ---
|