Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
xdlrc
model
Pin.hpp
Go to the documentation of this file.
1
6
#pragma once
7
#ifndef BIL_PIN_HPP
8
#define BIL_PIN_HPP
9
10
#include <string>
11
#include <vector>
12
#include <
serialization/PinBS.hpp
>
13
14
15
namespace
bil {
16
24
class
Pin
{
25
public
:
26
27
/**********************************************************************/
28
/* CONSTRUCTION / DESTRUCTION */
29
/**********************************************************************/
30
34
Pin
();
35
36
37
/**********************************************************************/
38
/* NAME */
39
/**********************************************************************/
40
45
std::string&
externalName
();
46
51
const
std::string&
externalName
()
const
;
52
53
54
/**********************************************************************/
55
/* INPUT/OUTPUT FLAG */
56
/**********************************************************************/
57
62
void
isInput
(
bool
flag);
63
68
bool
isInput
()
const
;
69
70
71
/**********************************************************************/
72
/* MODIFICATORS */
73
/**********************************************************************/
74
78
void
clear
();
79
80
81
private
:
82
83
friend
void
writeBinary
(
const
Pin
& data, std::ostream& outputStream);
84
friend
void
readBinary
(
Pin
& data, std::istream& inputStream);
85
86
std::string m_externalName;
87
bool
m_isInput;
88
89
};
90
92
typedef
std::vector<Pin>
Pins
;
93
94
}
95
96
#endif
Generated on Wed Aug 8 2012 21:57:41 for Bitstream Interpretation Library (BIL) by
1.8.1.1