torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConnectionHandler.hpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef TORC_GENERIC_CONNECTIONHANDLER_HPP
17 #define TORC_GENERIC_CONNECTIONHANDLER_HPP
18 
20 #include "torc/generic/Error.hpp"
21 
22 namespace torc {
23 namespace generic {
24 
26 
27 public:
28  void connectPortToNet(const PortSharedPtr& inPort) throw (Error);
29 
30  void disconnectPortFromNet(const PortSharedPtr& inPort) throw (Error);
31 
32  void connectPortRefToNet(const PortReferenceSharedPtr& inPort) throw (Error);
33 
34  void disconnectPortRefFromNet(const PortReferenceSharedPtr& inPort) throw (Error);
35 
36  void connectPortListToNet(const PortListSharedPtr& inPortList) throw (Error);
37 
38  void disconnectPortListFromNet(const PortListSharedPtr& inPortList) throw (Error);
39 
40  ConnectionHandler(const NetSharedPtr& inNet) : mNet(inNet) {
41  }
42 
43 private:
45 };
46 
47 } //namespace generic
48 } //namespace torc
49 
50 #endif // TORC_GENERIC_CONNECTIONHANDLER_HPP
void connectPortListToNet(const PortListSharedPtr &inPortList)
ConnectionHandler(const NetSharedPtr &inNet)
void disconnectPortFromNet(const PortSharedPtr &inPort)
void connectPortRefToNet(const PortReferenceSharedPtr &inPort)
void connectPortToNet(const PortSharedPtr &inPort)
The Error object thrown by different methods of EdifOM.
Definition: Error.hpp:41
boost::shared_ptr< Net > NetSharedPtr
boost::shared_ptr< PortReference > PortReferenceSharedPtr
boost::shared_ptr< PortList > PortListSharedPtr
void disconnectPortRefFromNet(const PortReferenceSharedPtr &inPort)
boost::shared_ptr< Port > PortSharedPtr
void disconnectPortListFromNet(const PortListSharedPtr &inPortList)