gfxconversion/mifconv/src/mifconv_exception.cpp
changeset 0 f453ebb75370
equal deleted inserted replaced
-1:000000000000 0:f453ebb75370
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Mifconv exception class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "mifconv.h"
       
    20 #include "mifconv_exception.h"
       
    21 
       
    22 MifConvException::MifConvException()
       
    23 :
       
    24 iLine(0)
       
    25 {}
       
    26 
       
    27 MifConvException::MifConvException(const MifConvString& str, const MifConvString& file, int line)
       
    28 :
       
    29 iString(str),
       
    30 iFile(file),
       
    31 iLine(line)
       
    32 {}
       
    33 
       
    34 MifConvException::MifConvException(const MifConvException& rhs)
       
    35 :
       
    36 iString(rhs.iString),
       
    37 iFile(rhs.iFile),
       
    38 iLine(rhs.iLine)
       
    39 {}
       
    40 
       
    41 MifConvException::~MifConvException()
       
    42 {}
       
    43 
       
    44 void MifConvException::SetString(const MifConvString& str)
       
    45 {
       
    46 	iString = str;
       
    47 }
       
    48 const MifConvString& MifConvException::String() const
       
    49 {
       
    50 	return iString;
       
    51 }
       
    52 
       
    53 MifConvString& MifConvException::String()
       
    54 {
       
    55 	return iString;
       
    56 }
       
    57 
       
    58 void MifConvException::SetFile(const MifConvString& file)
       
    59 {
       
    60 	iFile = file;
       
    61 }
       
    62 
       
    63 const MifConvString& MifConvException::File() const
       
    64 {
       
    65 	return iFile;
       
    66 }
       
    67 
       
    68 void MifConvException::SetLine(int line)
       
    69 {
       
    70 	iLine = line;
       
    71 }
       
    72 
       
    73 int MifConvException::Line() const
       
    74 {
       
    75 	return iLine;
       
    76 }