00001 00002 00003 /* 00004 Copyright (C) 2003, 2004 Zentaro Kavanagh 00005 00006 Copyright (C) 2003, 2004 Commonwealth Scientific and Industrial Research 00007 Organisation (CSIRO) Australia 00008 00009 Redistribution and use in source and binary forms, with or without 00010 modification, are permitted provided that the following conditions 00011 are met: 00012 00013 - Redistributions of source code must retain the above copyright 00014 notice, this list of conditions and the following disclaimer. 00015 00016 - Redistributions in binary form must reproduce the above copyright 00017 notice, this list of conditions and the following disclaimer in the 00018 documentation and/or other materials provided with the distribution. 00019 00020 - Neither the name of CSIRO Australia nor the names of its 00021 contributors may be used to endorse or promote products derived from 00022 this software without specific prior written permission. 00023 00024 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00025 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00026 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00027 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ORGANISATION OR 00028 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00029 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00030 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00031 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00032 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00033 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00034 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00035 */ 00036 00037 #pragma once 00038 00039 class LIBCMMLTAGS_API C_CMMLError 00040 { 00041 public: 00042 //Constructors 00043 C_CMMLError(unsigned long inLine, unsigned long inCol, unsigned long inErrorCode); 00044 ~C_CMMLError(void); 00045 00046 //Accessors 00047 unsigned long line(); 00048 unsigned long col(); 00049 unsigned long errorCode(); 00050 00051 //No Mutators 00052 00053 protected: 00054 unsigned long mErrorCode; 00055 unsigned long mLine; 00056 unsigned long mCol; 00057 };