torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InterfaceAttributes.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_INTERFACEATTRIBUTES_HPP
17 #define TORC_GENERIC_INTERFACEATTRIBUTES_HPP
18 
22 
23 namespace torc {
24 namespace generic {
25 
26 /**
27  * @brief Represents attributes of a view interface.
28  *
29  * The InterfaceAttributes class stores some optional attributes of a view interface.
30  */
32 
33 public:
34  /**
35  * Get the designated number.
36  *
37  * @return std::string Value representing designated number of a view interface.
38  */
39  inline const std::string getDesignator() const;
40 
41  /**
42  * Set the designated number.
43  *
44  * @param[in] inSource std::string representing designated number of a view interface.
45  */
46  void setDesignator(const std::string& inSource);
47 
48  /**
49  * Get the pointer to the simulate.
50  *
51  * @return Pointer to the simulate
52  */
53  inline const SimulateSharedPtr getSimulate() const;
54 
55  /**
56  * Set the pointer to the simulate.
57  *
58  * @param[in] inSource Pointer to the simulate
59  */
60  void setSimulate(const SimulateSharedPtr& inSource);
61 
62  /**
63  * Get the pointer to the timing object
64  *
65  * @return Pointer to the timing object
66  */
67  inline const TimingSharedPtr getTiming() const;
68 
69  /**
70  * Set the pointer to the timing object
71  *
72  * @param[in] inSource Pointer to the timing object
73  */
74  void setTiming(const TimingSharedPtr& inSource);
75 
77 
78  ~InterfaceAttributes() throw ();
79 
81 
83 
84 private:
88 
89 };
90 
92  return mDesignator;
93 }
94 
95 /**
96  * Get the pointer to the simulate.
97  *
98  * @return Pointer to the simulatie
99  */
101  return mSimulate;
102 }
103 
104 /**
105  * Get the pointer to the timing object
106  *
107  * @return Pointer to the timing object
108  */
110  return mTiming;
111 }
112 
113 } // namespace generic
114 } // namespace torc
115 #endif // TORC_GENERIC_INTERFACEATTRIBUTES_HPP
const TimingSharedPtr getTiming() const
void setSimulate(const SimulateSharedPtr &inSource)
Represents all classes that can hold user comments.
Definition: Commentable.hpp:36
Represents class that can hold userData.
const std::string getDesignator() const
boost::shared_ptr< Simulate > SimulateSharedPtr
std::string string
Represents attributes of a view interface.
void setDesignator(const std::string &inSource)
void setTiming(const TimingSharedPtr &inSource)
const SimulateSharedPtr getSimulate() const
boost::shared_ptr< Timing > TimingSharedPtr
InterfaceAttributes & operator=(const InterfaceAttributes &source)