~daniele-bigoni/dytsi/trunk

« back to all changes in this revision

Viewing changes to src/GeneralModel/ComponentConnectorCouple.h

  • Committer: Daniele Bigoni
  • Date: 2014-12-16 09:17:16 UTC
  • Revision ID: dabi@dtu.dk-20141216091716-j5gukm1k7ktzji9x
started with dytsi on Launchpad

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of DYTSI.
 
3
 *
 
4
 * DYTSI is free software: you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation, either version 3 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * DYTSI is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public License
 
15
 * along with DYTSI.  If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * DYnamics Train SImulation (DYTSI)
 
18
 * Copyright (C) 2011-2014 The Technical University of Denmark
 
19
 * Scientific Computing Section
 
20
 * Department of Applied Mathematics and Computer Science
 
21
 *
 
22
 * Author: Daniele Bigoni
 
23
 * E-mail: dabi@dtu.dk
 
24
 *
 
25
 */
 
26
 
 
27
/* 
 
28
 * File:   ComponentConnectorCouple.h
 
29
 * Author: s083781
 
30
 *
 
31
 * Created on February 11, 2011, 4:40 PM
 
32
 */
 
33
 
 
34
#ifndef COMPONENTCONNECTORCOUPLE_H
 
35
#define COMPONENTCONNECTORCOUPLE_H
 
36
 
 
37
#include <memory>
 
38
 
 
39
namespace DYTSI_Modelling {
 
40
    class Component;
 
41
    class Connector;
 
42
 
 
43
    class ComponentConnectorCouple {
 
44
    public:
 
45
        ComponentConnectorCouple(Component* component,
 
46
                Connector* connector);
 
47
        virtual ~ComponentConnectorCouple();
 
48
 
 
49
        Component* getComponent();
 
50
        Connector* getConnector();
 
51
    private:
 
52
        Component* component;
 
53
        Connector* connector;
 
54
 
 
55
    };
 
56
}
 
57
 
 
58
#endif  /* COMPONENTCONNECTORCOUPLE_H */
 
59