Changeset 643
- Timestamp:
- 05/02/08 01:03:33 (14 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 modified
-
build/msvc80/liblas_test/liblas_test.vcproj (modified) (1 diff)
-
include/liblas/laserror.hpp (modified) (2 diffs)
-
test/unit/laserror_test.cpp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/build/msvc80/liblas_test/liblas_test.vcproj
r641 r643 208 208 </File> 209 209 <File 210 RelativePath="..\..\..\test\unit\laserror_test.cpp" 211 > 212 </File> 213 <File 210 214 RelativePath="..\..\..\test\unit\lasfile_test.cpp" 211 215 > -
trunk/include/liblas/laserror.hpp
r374 r643 17 17 namespace liblas { 18 18 19 /// \todo To be documented. 19 /// Definition of error notification used on the level of C API. 20 /// This class describes details of error condition occured in 21 /// libLAS core. All errors are stacked by C API layer, so it's 22 /// possible to track problem down to its source. 20 23 class LASError 21 24 { 22 25 public: 23 26 27 /// Custom constructor. 28 /// This is the main and the only tool to initialize error instance. 24 29 LASError(int code, std::string const& message, std::string const& method); 30 31 /// Copy constructor. 32 /// Error objects are copyable. 25 33 LASError(LASError const& other); 34 35 /// Assignment operator. 36 /// Error objects are assignable. 26 37 LASError& operator=(LASError const& rhs); 27 38 … … 29 40 // char const* GetMethod() const { return m_method.c_str(); }, etc. 30 41 31 std::string GetMethod() const { return m_method; };42 int GetCode() const { return m_code; }; 32 43 std::string GetMessage() const { return m_message; }; 33 int GetCode() const {return m_code; };44 std::string GetMethod() const { return m_method; }; 34 45 35 46 private: 47 36 48 int m_code; 37 49 std::string m_message;
