00001 /* 00002 * Hamlib C++ bindings - rotator API header 00003 * Copyright (c) 2002 by Stephane Fillod 00004 * 00005 * $Id: rotclass.h,v 1.1 2002/01/16 22:43:29 fillods Exp $ 00006 * 00007 * This library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU Library General Public License as 00009 * published by the Free Software Foundation; either version 2 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 * 00021 */ 00022 00023 #ifndef _ROTCLASS_H 00024 #define _ROTCLASS_H 1 00025 00026 #include <hamlib/rotator.h> 00027 00028 00029 00030 class BACKEND_IMPEXP Rotator { 00031 private: 00032 ROT* theRot; // Global ref. to the rot 00033 00034 protected: 00035 public: 00036 Rotator(rot_model_t rot_model); 00037 00038 virtual ~Rotator(); 00039 00040 const struct rot_caps *caps; 00041 00042 // This method open the communication port to the rot 00043 void open(void); 00044 00045 // This method close the communication port to the rot 00046 void close(void); 00047 00048 void setConf(token_t token, const char *val); 00049 void setConf(const char *name, const char *val); 00050 void getConf(token_t token, char *val); 00051 void getConf(const char *name, char *val); 00052 token_t tokenLookup(const char *name); 00053 00054 void setPosition(azimuth_t az, elevation_t el); 00055 void getPosition(azimuth_t& az, elevation_t& el); 00056 void stop(); 00057 void park(); 00058 void reset (rot_reset_t reset); 00059 00060 void move(int direction, int speed); 00061 }; 00062 00063 00064 00065 #endif // _ROTCLASS_H
Hamlib documentation for version 1.2.7 -- Tue Aug 26 21:43:29 2008
Project page: http://hamlib.org