openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
oETCS::UT::CLanguage Class Reference

test class for oETCS::DF::CTelegram, oETCS::DF::CPacket and oETCS::DF::CVariable, More...

#include <UnitTesting.h>

Inheritance diagram for oETCS::UT::CLanguage:
Inheritance graph
Collaboration diagram for oETCS::UT::CLanguage:
Collaboration graph

Public Member Functions

 CLanguage () throw ()
 default constructor
void setUp () throw (::std::bad_alloc)
 creates all test objects
void tearDown () throw ()
 delete all test objects
void TestTelegram () throw (::std::exception)
 test method for testing oETCS::DF::CTelegram

Public Attributes

::std::map< ::std::string,
oETCS::DF::DOUBLE_ARRAY_INPUT_T * > 
m_DoubleArrayInput
 map of double array input storages indexed by their literal name
::std::map< ::std::string,
oETCS::DF::INT_INPUT_T * > 
m_IntInput
 map of integer input storages indexed by their literal name
::std::map< ::std::string,
oETCS::DF::STRING_INPUT_T * > 
m_StringInput
 map of string input storages indexed by their literal name

Private Member Functions

 CPPUNIT_TEST (TestTelegram)
 CPPUNIT_TEST_SUITE (CLanguage)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

::std::map< ::std::string,
oETCS::DF::BOOL_INPUT_T * > 
m_BoolInput
 map of boolean input storages indexed by their literal name
::std::map< ::std::string,
oETCS::DF::DOUBLE_INPUT_T * > 
m_DoubleInput
 map of double input storages indexed by their literal name
oETCS::DF::CTelegramm_pTelegram
 pointer to telegram object for testing
oETCS::DF::CEVCStateMachine m_StateMachine
 EVC state machine object needed for instanciation of other objects.

Detailed Description

test class for oETCS::DF::CTelegram, oETCS::DF::CPacket and oETCS::DF::CVariable,

Definition at line 608 of file UnitTesting.h.

Constructor & Destructor Documentation

oETCS::UT::CLanguage::CLanguage ( ) throw ()
explicit

default constructor

Definition at line 1378 of file UnitTesting.cpp.

Member Function Documentation

oETCS::UT::CLanguage::CPPUNIT_TEST ( TestTelegram  )
private
oETCS::UT::CLanguage::CPPUNIT_TEST_SUITE ( CLanguage  )
private
oETCS::UT::CLanguage::CPPUNIT_TEST_SUITE_END ( )
private
void oETCS::UT::CLanguage::setUp ( ) throw (::std::bad_alloc)
void oETCS::UT::CLanguage::tearDown ( ) throw ()

delete all test objects

Definition at line 1468 of file UnitTesting.cpp.

void oETCS::UT::CLanguage::TestTelegram ( ) throw (::std::exception)

test method for testing oETCS::DF::CTelegram

Definition at line 1479 of file UnitTesting.cpp.

References m_DoubleArrayInput, m_IntInput, m_StringInput, and oETCS::DF::STRING.

Member Data Documentation

::std::map< ::std::string, oETCS::DF::BOOL_INPUT_T* > oETCS::UT::CLanguage::m_BoolInput
private

map of boolean input storages indexed by their literal name

Definition at line 663 of file UnitTesting.h.

Referenced by setUp().

::std::map< ::std::string, oETCS::DF::DOUBLE_ARRAY_INPUT_T* > oETCS::UT::CLanguage::m_DoubleArrayInput

map of double array input storages indexed by their literal name

Definition at line 679 of file UnitTesting.h.

Referenced by setUp(), and TestTelegram().

::std::map< ::std::string, oETCS::DF::DOUBLE_INPUT_T* > oETCS::UT::CLanguage::m_DoubleInput
private

map of double input storages indexed by their literal name

Definition at line 670 of file UnitTesting.h.

Referenced by setUp().

::std::map< ::std::string, oETCS::DF::INT_INPUT_T* > oETCS::UT::CLanguage::m_IntInput

map of integer input storages indexed by their literal name

Definition at line 686 of file UnitTesting.h.

Referenced by setUp(), and TestTelegram().

oETCS::DF::CTelegram* oETCS::UT::CLanguage::m_pTelegram
private

pointer to telegram object for testing

Definition at line 656 of file UnitTesting.h.

Referenced by setUp().

oETCS::DF::CEVCStateMachine oETCS::UT::CLanguage::m_StateMachine
private

EVC state machine object needed for instanciation of other objects.

Definition at line 649 of file UnitTesting.h.

Referenced by setUp().

::std::map< ::std::string, oETCS::DF::STRING_INPUT_T* > oETCS::UT::CLanguage::m_StringInput

map of string input storages indexed by their literal name

Definition at line 693 of file UnitTesting.h.

Referenced by setUp(), and TestTelegram().


The documentation for this class 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/.