torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Pip.cpp
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 /// \file
17 /// \brief Source for the Pip class.
18 
19 #include "torc/physical/Pip.hpp"
20 
21 namespace torc {
22 namespace physical {
23 
24  /// \brief String representation of pip directions.
26  "==", // ePipBidirectionalUnbufferedString = 0,
27  "=>", // ePipBidirectionalUnidirectionallyBufferedString,
28  "=-", // ePipBidirectionalBidirectionallyBufferedString,
29  "->" // ePipUnidirectionalBufferedString
30  };
31 
32  const char* Pip::getDirectionString(void) const {
34  }
35 
36  const char* Pip::getDirectionString(EPipDirection inPipDirection) {
37  return sPipDirectionStrings[inPipDirection];
38  }
39 
40 } // namespace physical
41 } // namespace torc
const char * getDirectionString(void) const
Returns the pip directionality as a string.
Definition: Pip.cpp:32
EPipDirection mDirection
The connection directionality for this pip. See EPipDirection.
Definition: Pip.hpp:50
static const char * sPipDirectionStrings[]
String representation of pip directions.
Definition: Pip.hpp:54
Header for the Pip class.
EPipDirection
Enumeration of pip directionality.