- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# Y:/msp/devkits/temp_geotrans/master/geotrans3.1/CCS/src/dtcc/Exception/CoordinateConversionException.h

Go to the documentation of this file.

    00001 // CLASSIFICATION: UNCLASSIFIED
    00002
    00003 #ifndef CoordinateConversionException_H
    00004 #define CoordinateConversionException_H
    00005
    00006 /*
    00007  * CoordinateConversionException.h
    00008  *
    00009  * Created on April 15, 2008, 3:12 PM
    00010  *
    00011  * To change this template, choose Tools | Template Manager
    00012  * and open the template in the editor.
    00013  */
    00014
    00015 #include <string.h>
    00016 #include "DtccApi.h"
    00017
    00023 namespace MSP
    00024 {
    00025   namespace CCS
    00026   {
    00027     class MSP_DTCC_API CoordinateConversionException
    00028     {
    00032       public:
    00033
    00034         CoordinateConversionException( char* __message )
    00035         {
    00036           strcpy( _message, __message );
    00037           _message[strlen( __message )] = '\0';
    00038         }
    00039
    00040         CoordinateConversionException( char* __directionStr, char* __coordinateSystemName, char* __separatorStr, char* __message )
    00041         {
    00042           strcpy( _message, __directionStr );
    00043           strcat( _message, __coordinateSystemName );
    00044           strcat( _message, __separatorStr );
    00045           strcat( _message, __message );
    00046           _message[strlen( _message )] = '\0';
    00047         }
    00048
    00049         virtual ~CoordinateConversionException() {}
    00050
    00051
    00052         char* getMessage()
    00053         {
    00054           return _message;
    00055         }
    00056
    00057      private:
    00058
    00059         char _message[2000];
    00060     };
    00061   }
    00062 }
    00063
    00064 #endif
    00065
    00066 // CLASSIFICATION: UNCLASSIFIED