LCOV - code coverage report
Current view: directory - ogr/ogrsf_frmts/vfk - vfkproperty.cpp (source / functions) Found Hit Coverage
Test: gdal_filtered.info Lines: 17 14 82.4 %
Date: 2010-01-09 Functions: 6 5 83.3 %

       1                 : /******************************************************************************
       2                 :  * $Id: vfkproperty.cpp 18488 2010-01-09 03:27:14Z mloskot $
       3                 :  *
       4                 :  * Project:  VFK Reader - Property definition
       5                 :  * Purpose:  Implements VFKProperty class.
       6                 :  * Author:   Martin Landa, landa.martin gmail.com
       7                 :  *
       8                 :  ******************************************************************************
       9                 :  * Copyright (c) 2009-2010, Martin Landa <landa.martin gmail.com>
      10                 :  *
      11                 :  * Permission is hereby granted, free of charge, to any person
      12                 :  * obtaining a copy of this software and associated documentation
      13                 :  * files (the "Software"), to deal in the Software without
      14                 :  * restriction, including without limitation the rights to use, copy,
      15                 :  * modify, merge, publish, distribute, sublicense, and/or sell copies
      16                 :  * of the Software, and to permit persons to whom the Software is
      17                 :  * furnished to do so, subject to the following conditions:
      18                 :  *
      19                 :  * The above copyright notice and this permission notice shall be
      20                 :  * included in all copies or substantial portions of the Software.
      21                 :  *
      22                 :  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
      23                 :  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
      24                 :  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
      25                 :  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
      26                 :  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
      27                 :  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
      28                 :  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      29                 :  * SOFTWARE.
      30                 :  ****************************************************************************/
      31                 : 
      32                 : #include "vfkreader.h"
      33                 : #include "vfkreaderp.h"
      34                 : 
      35                 : #include "cpl_conv.h"
      36                 : #include "cpl_error.h"
      37                 : 
      38                 : /*!
      39                 :   \brief Set VFK property (null)
      40                 : */
      41             180 : VFKProperty::VFKProperty()
      42             180 :     : m_bIsNull(TRUE)
      43                 : {
      44             180 : }
      45                 : 
      46                 : /*!
      47                 :   \brief Set VFK property (integer)
      48                 : */
      49             378 : VFKProperty::VFKProperty(int iValue) 
      50             378 :     : m_bIsNull(FALSE), m_nValue(iValue)
      51                 : {
      52             378 : }
      53                 : 
      54                 : /*!
      55                 :   \brief Set VFK property (double)
      56                 : */
      57              26 : VFKProperty::VFKProperty(double dValue)
      58              26 :     : m_bIsNull(FALSE), m_dValue(dValue)
      59                 : {
      60              26 : }
      61                 : 
      62                 : /*!
      63                 :   \brief Set VFK property (string)
      64                 : */
      65              68 : VFKProperty::VFKProperty(const char *pszValue)
      66              68 :     : m_bIsNull(FALSE), m_strValue(0 != pszValue ? pszValue : "")
      67                 : {
      68              68 : }
      69                 : 
      70                 : /*!
      71                 :   \brief Set VFK property (string)
      72                 : */
      73               0 : VFKProperty::VFKProperty(std::string const& strValue)
      74               0 :     : m_bIsNull(FALSE), m_strValue(strValue)
      75                 : {
      76               0 : }
      77                 : 
      78                 : /*!
      79                 :   \brief VFK property destructor
      80                 : */
      81             652 : VFKProperty::~VFKProperty()
      82                 : {
      83             652 : }

Generated by: LCOV version 1.7