OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimErrorCodes.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken
6 //
7 // Description:
8 //
9 // Contains class declaration with common error codes and methods to go
10 // from code to string and string to code.
11 //
12 //*************************************************************************
13 // $Id: ossimErrorCodes.h 14789 2009-06-29 16:48:14Z dburken $
14 
15 #ifndef ossimErrorCodes_HEADER
16 #define ossimErrorCodes_HEADER
17 
19 #include <ossim/base/ossimString.h>
20 
21 
28 {
29 public:
30 
31  ~ossimErrorCodes();
32 
36  static ossimErrorCodes* instance();
37 
42  ossimErrorCode getErrorCode(const ossimString& error_string) const;
43 
48  ossimString getErrorString(ossimErrorCode error_code) const;
49 
50  static const ossimErrorCode OSSIM_OK;
78 
79 protected:
80  // Only allow instantiation through the "instance()" method.
82  ossimErrorCodes(const ossimErrorCodes& rhs);
83  const ossimErrorCodes& operator=(const ossimErrorCodes &rhs);
84 
86 };
87 
88 #endif
ossim_int32 ossimErrorCode
static const ossimErrorCode OSSIM_RADIUS_ERROR
#define OSSIMDLLEXPORT
static const ossimErrorCode OSSIM_ORIGIN_LAT_ERROR
static const ossimErrorCode OSSIM_OK
static const ossimErrorCode OSSIM_A_ERROR
static const ossimErrorCode OSSIM_ERROR_STD_PARALLEL_1
static const ossimErrorCode OSSIM_SEC_STDP_ERROR
static const ossimErrorCode OSSIM_ERROR
static const ossimErrorCode OSSIM_HEMISPHERE_ERROR
static const ossimErrorCode OSSIM_EASTING_ERROR
static const ossimErrorCode OSSIM_FIRST_SECOND_ERROR
static const ossimErrorCode OSSIM_B_ERROR
static const ossimErrorCode OSSIM_NO_ERROR
static const ossimErrorCode OSSIM_LON_ERROR
static const ossimErrorCode OSSIM_LAT_ERROR
static const ossimErrorCode OSSIM_NORTHING_ERROR
static const ossimErrorCode OSSIM_WARNING
static const ossimErrorCode OSSIM_CENT_MER_ERROR
static const ossimErrorCode OSSIM_INVALID_FILE_ERROR
static const ossimErrorCode OSSIM_FIRST_STDP_ERROR
static const ossimErrorCode OSSIM_ZONE_ERROR
static const ossimErrorCode OSSIM_SCALE_FACTOR_ERROR
static const ossimErrorCode OSSIM_ERROR_UNKNOWN
static const ossimErrorCode OSSIM_ORIGIN_LON_ERROR
static const ossimErrorCode OSSIM_WRITE_FILE_ERROR
static const ossimErrorCode OSSIM_OPEN_FILE_ERROR
static const ossimErrorCode OSSIM_A_LESS_B_ERROR
static ossimErrorCodes * theInstance
static const ossimErrorCode OSSIM_ORIENTATION_ERROR
static const ossimErrorCode OSSIM_ZONE_OVERRIDE_ERROR