home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / arts / connect.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  2.3 KB  |  56 lines

  1. /*
  2.     Copyright (C) 2000 Nicolas Brodu
  3.     nicolas.brodu@free.fr
  4.  
  5.     This library is free software; you can redistribute it and/or
  6.     modify it under the terms of the GNU Library General Public
  7.     License as published by the Free Software Foundation; either
  8.     version 2 of the License, or (at your option) any later version.
  9.  
  10.     This library is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.     Library General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU Library General Public License
  16.     along with this library; see the file COPYING.LIB.  If not, write to
  17.     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18.     Boston, MA 02111-1307, USA.
  19. */
  20.  
  21. #ifndef MCOP_CONNECT_H
  22. #define MCOP_CONNECT_H
  23.  
  24. /*
  25.  * BC - Status (2002-03-08): connect / setValue functions
  26.  *
  27.  * Will be kept as they are (binary compatible).
  28.  */
  29.  
  30. #include <string>
  31. #include "arts_export.h"
  32.  
  33. namespace Arts {
  34. class Object;
  35.  
  36. // Connect function overloaded for components with default port
  37. void ARTS_EXPORT connect(const Object& src, const std::string& output, const Object& dest, const std::string& input);
  38. void ARTS_EXPORT connect(const Object& src, const std::string& output, const Object& dest);
  39. void ARTS_EXPORT connect(const Object& src, const Object& dest, const std::string& input);
  40. void ARTS_EXPORT connect(const Object& src, const Object& dest);
  41. // Same for disconnect function
  42. void ARTS_EXPORT disconnect(const Object& src, const std::string& output, const Object& dest, const std::string& input);
  43. void ARTS_EXPORT disconnect(const Object& src, const std::string& output, const Object& dest);
  44. void ARTS_EXPORT disconnect(const Object& src, const Object& dest, const std::string& input);
  45. void ARTS_EXPORT disconnect(const Object& src, const Object& dest);
  46.  
  47. // setValue function overloaded for components with default port
  48. void ARTS_EXPORT setValue(const Object& c, const std::string& port, const float fvalue);
  49. void ARTS_EXPORT setValue(const Object& c, const float fvalue);
  50. //void setValue(const Object& c, const std::string& port, const std::string& svalue);
  51. //void setValue(const Object& c, const std::string& svalue);
  52.  
  53. }
  54.  
  55. #endif
  56.