openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | Public Attributes | List of all members
GOPPRR::CProperty Struct Reference

property class representation More...

#include <Property.h>

Inheritance diagram for GOPPRR::CProperty:
Inheritance graph
Collaboration diagram for GOPPRR::CProperty:
Collaboration graph

Public Member Functions

 CProperty (const ::std::string &OID="", const ::std::string &Type="", const ::std::string &Value="", const std::map< ::std::string,::GOPPRR::CNonProperty * > &NonProperties=std::map< ::std::string,::GOPPRR::CNonProperty * >()) throw ()
 general constructor
 CProperty (const CProperty &Source) throw ()
 copy constructor
::std::map< ::std::string,
GOPPRR::CNonProperty * > 
NonProperties (const ::std::string &Type, const bool &bSubString=false) const throw ()
 abstraction method
CPropertyoperator= (const CProperty &Source) throw ()
 assignment operator
virtual ~CProperty () throw ()
 destructor

Public Attributes

::std::map< std::string,
GOPPRR::CNonProperty * > 
m_NonProperties
 set of non-propeties as property value
::std::string m_OID
 unique object identifier
::std::string m_Type
 name of a type
::std::string m_Value
 value as string

Detailed Description

property class representation

Definition at line 45 of file Property.h.

Constructor & Destructor Documentation

GOPPRR::CProperty::CProperty ( const ::std::string &  OID = "",
const ::std::string &  Type = "",
const ::std::string &  Value = "",
const std::map< ::std::string,::GOPPRR::CNonProperty * > &  NonProperties = std::map< ::std::string, ::GOPPRR::CNonProperty* >() 
) throw ()

general constructor

Parameters
[in]OIDobject identifier
[in]Typeliteral name of the type

Definition at line 32 of file Property.cpp.

GOPPRR::CProperty::CProperty ( const CProperty Source) throw ()

copy constructor

Parameters
[in]Sourceobject to copy

Definition at line 45 of file Property.cpp.

GOPPRR::CProperty::~CProperty ( ) throw ()
virtual

destructor

Definition at line 58 of file Property.cpp.

Member Function Documentation

std::map<::std::string, GOPPRR::CNonProperty * > GOPPRR::CProperty::NonProperties ( const ::std::string &  Type,
const bool &  bSubString = false 
) const throw ()

abstraction method

Gets certain non-properties of a property object

Parameters
[in]Typenon-property type
[in]bSubStringif true, Type only must be a substring of nin-property type
Returns
map of pointers to non-properties

Definition at line 87 of file Property.cpp.

GOPPRR::CProperty & GOPPRR::CProperty::operator= ( const CProperty Source) throw ()

assignment operator

Parameters
[in]Sourceobject instance to assign from

Definition at line 68 of file Property.cpp.

References m_Value.

Member Data Documentation

::std::map< std::string,GOPPRR::CNonProperty* > GOPPRR::CProperty::m_NonProperties
::std::string GOPPRR::CConcept::m_OID
inherited
::std::string GOPPRR::CConcept::m_Type
inherited
::std::string GOPPRR::CProperty::m_Value

value as string

Definition at line 99 of file Property.h.

Referenced by operator=().


The documentation for this struct was generated from the following files:

Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
The openETCS library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the openETCS library. If not, see "http://www.gnu.org/licenses/.