00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/generic/om/InterfaceAttributes.cpp $ 00003 // $Id: InterfaceAttributes.cpp 10 2011-10-12 18:40:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 #include "torc/generic/om/InterfaceAttributes.hpp" 00017 00018 namespace torc { 00019 00020 namespace generic { 00021 00022 void 00023 InterfaceAttributes::setDesignator(const std::string & inSource) throw() { 00024 mDesignator = inSource; 00025 } 00026 00027 /** 00028 * Set the pointer to the simulate. 00029 * 00030 * @param[in] inSource Pointer to the simulate 00031 */ 00032 void 00033 InterfaceAttributes::setSimulate(const SimulateSharedPtr & inSource ) throw() { 00034 mSimulate = inSource; 00035 } 00036 00037 /** 00038 * Set the pointer to the timing object 00039 * 00040 * @param[in] inSource Pointer to the timing object 00041 */ 00042 void 00043 InterfaceAttributes::setTiming(const TimingSharedPtr & inSource ) throw() { 00044 mTiming = inSource; 00045 } 00046 00047 InterfaceAttributes::InterfaceAttributes() 00048 : Commentable(), 00049 UserDataContainer(), 00050 mDesignator(), 00051 mSimulate(), 00052 mTiming() { 00053 } 00054 00055 InterfaceAttributes::~InterfaceAttributes() throw() { 00056 } 00057 00058 } // namespace torc::generic 00059 00060 } // namespace torc