Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

ArClientArgUtils.h

Go to the documentation of this file.
00001 /*
00002 MobileRobots Advanced Robotics Interface for Applications (ARIA)
00003 Copyright (C) 2004, 2005 ActivMedia Robotics LLC
00004 Copyright (C) 2006, 2007 MobileRobots Inc.
00005 
00006      This program is free software; you can redistribute it and/or modify
00007      it under the terms of the GNU General Public License as published by
00008      the Free Software Foundation; either version 2 of the License, or
00009      (at your option) any later version.
00010 
00011      This program is distributed in the hope that it will be useful,
00012      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014      GNU General Public License for more details.
00015 
00016      You should have received a copy of the GNU General Public License
00017      along with this program; if not, write to the Free Software
00018      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 If you wish to redistribute ARIA under different terms, contact 
00021 MobileRobots for information about a commercial version of ARIA at 
00022 robots@mobilerobots.com or 
00023 MobileRobots Inc, 19 Columbia Drive, Amherst, NH 03031; 800-639-9481
00024 */
00025 
00032 #ifndef ARCLIENTARGUTILS_H
00033 #define ARCLIENTARGUTILS_H
00034 
00035 #include "Aria.h"
00036 
00037 class ArNetPacket;
00038 class ArConfigArg;
00039 
00041 
00086 class ArClientArg
00087 {
00088 public:
00089 
00091         AREXPORT ArClientArg(bool isDisplayHintParsed = false);
00092         
00094         AREXPORT virtual ~ArClientArg();
00095 
00097 
00101   AREXPORT virtual bool isSendableParamType(const ArConfigArg &arg);
00102         
00104 
00110         AREXPORT virtual bool createArg(ArNetPacket *packet, 
00111                                                              ArConfigArg &argOut);
00112 
00113 
00115 
00121   AREXPORT virtual bool createPacket(const ArConfigArg &arg,
00122                             ArNetPacket *packet);
00123 
00124 
00125 
00127 
00133   AREXPORT virtual bool bufToArgValue(ArNetPacket *packet,
00134                              ArConfigArg &arg);
00135 
00137 
00143         AREXPORT virtual bool argValueToBuf(const ArConfigArg &arg,
00144                              ArNetPacket *packet);
00145 
00146 
00147 
00149 
00157         AREXPORT virtual bool argTextToBuf(const ArConfigArg &arg,
00158                             ArNetPacket *packet);
00159 
00160 protected:
00161 
00162 
00163   enum {
00164     BUFFER_LENGTH = 1024
00165   };
00166 
00167   bool myIsDisplayHintParsed;
00168   char myBuffer[BUFFER_LENGTH];
00169   char myDisplayBuffer[BUFFER_LENGTH];
00170 
00171 }; // end class ArClientArgUtils
00172  
00173 #endif //ARCLIENTARGUTILS_H

Generated on Tue Feb 20 10:51:49 2007 for ArNetworking by  doxygen 1.4.0