OpenASIP
2.0
src
base
mach
MachineTestReporter.hh
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2009 Tampere University.
3
4
This file is part of TTA-Based Codesign Environment (TCE).
5
6
Permission is hereby granted, free of charge, to any person obtaining a
7
copy of this software and associated documentation files (the "Software"),
8
to deal in the Software without restriction, including without limitation
9
the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
and/or sell copies of the Software, and to permit persons to whom the
11
Software is furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
DEALINGS IN THE SOFTWARE.
23
*/
24
/**
25
* @file MachineTestReporter.hh
26
*
27
* Declaration of MachineTestReporter class.
28
*
29
* @author Lasse Laasonen 2004 (lasse.laasonen-no.spam-tut.fi)
30
*/
31
32
#ifndef TTA_MACHINE_TEST_REPORTER_HH
33
#define TTA_MACHINE_TEST_REPORTER_HH
34
35
#include <string>
36
37
#include "
Socket.hh
"
38
39
class
MachineTester
;
40
41
/**
42
* Creates string error messages according to the error stated by
43
* MachineTester.
44
*/
45
class
MachineTestReporter
{
46
public
:
47
static
std::string
socketSegmentConnectionError
(
48
const
TTAMachine::Socket
& socket,
49
const
TTAMachine::Segment
& segment,
50
const
MachineTester
& tester);
51
static
std::string
socketPortConnectionError
(
52
const
TTAMachine::Socket
& socket,
53
const
TTAMachine::Port
& port,
54
const
MachineTester
& tester);
55
static
std::string
bridgingError
(
56
const
TTAMachine::Bus
& sourceBus,
57
const
TTAMachine::Bus
& destinationBus,
58
const
MachineTester
& tester);
59
static
std::string
socketDirectionSettingError
(
60
const
TTAMachine::Socket
& socket,
61
TTAMachine::Socket::Direction
,
62
const
MachineTester
& tester);
63
};
64
65
#endif
MachineTestReporter::bridgingError
static std::string bridgingError(const TTAMachine::Bus &sourceBus, const TTAMachine::Bus &destinationBus, const MachineTester &tester)
Definition:
MachineTestReporter.cc:219
TTAMachine::Segment
Definition:
Segment.hh:54
TTAMachine::Bus
Definition:
Bus.hh:53
MachineTestReporter::socketDirectionSettingError
static std::string socketDirectionSettingError(const TTAMachine::Socket &socket, TTAMachine::Socket::Direction, const MachineTester &tester)
Definition:
MachineTestReporter.cc:299
MachineTestReporter::socketSegmentConnectionError
static std::string socketSegmentConnectionError(const TTAMachine::Socket &socket, const TTAMachine::Segment &segment, const MachineTester &tester)
Definition:
MachineTestReporter.cc:55
TTAMachine::Socket::Direction
Direction
Definition:
Socket.hh:58
Socket.hh
MachineTestReporter::socketPortConnectionError
static std::string socketPortConnectionError(const TTAMachine::Socket &socket, const TTAMachine::Port &port, const MachineTester &tester)
Definition:
MachineTestReporter.cc:150
TTAMachine::Port
Definition:
Port.hh:54
TTAMachine::Socket
Definition:
Socket.hh:53
MachineTestReporter
Definition:
MachineTestReporter.hh:45
MachineTester
Definition:
MachineTester.hh:46
Generated by
1.8.17