OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimErrorStatusInterface.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken (dburken@imagelinks.com)
6 //
7 // Description:
8 //
9 // Contains class definition for common error interfaces.
10 //
11 //*************************************************************************
12 // $Id: ossimErrorStatusInterface.cpp 22149 2013-02-11 21:36:10Z dburken $
13 
14 #include <iostream>
16 #include <ossim/base/ossimString.h>
17 
18 RTTI_DEF(ossimErrorStatusInterface, "ossimErrorStatusInterface");
19 
21  :
22  theErrorStatus(ossimErrorCodes::OSSIM_OK)
23 {}
24 
26 {}
27 
29 {
30  return theErrorStatus;
31 }
32 
34 {
36 }
37 
39 {
40  theErrorStatus = error_status;
41 }
42 
44 {
46 }
47 
49 {
51 }
52 
54 {
56 }
57 
59 {
60  out << "ossimErrorStatusInterface::print"
61  << "\ntheErrorStatus: " << theErrorStatus
62  << "\ntheErrorStatus string: " << getErrorStatusString()
63  << std::endl;
64  return out;
65 }
66 
68  const ossimErrorStatusInterface& obj)
69 {
70  return obj.print(out);
71 }
ossim_int32 ossimErrorCode
virtual ossimString getErrorStatusString() const
static const ossimErrorCode OSSIM_OK
virtual std::ostream & print(std::ostream &out) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
static const ossimErrorCode OSSIM_ERROR
ossimString getErrorString(ossimErrorCode error_code) const
static ossimErrorCodes * instance()
virtual ossimErrorCode getErrorStatus() const
std::ostream & operator<<(std::ostream &out, const ossimErrorStatusInterface &obj)
RTTI_DEF(ossimErrorStatusInterface, "ossimErrorStatusInterface")
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23