MOOS 0.2375
|
00001 00002 // 00003 // MOOS - Mission Oriented Operating Suite 00004 // 00005 // A suit of Applications and Libraries for Mobile Robotics Research 00006 // Copyright (C) 2001-2005 Massachusetts Institute of Technology and 00007 // Oxford University. 00008 // 00009 // This software was written by Paul Newman at MIT 2001-2002 and Oxford 00010 // University 2003-2005. email: pnewman@robots.ox.ac.uk. 00011 // 00012 // This file is part of a MOOS Core Component. 00013 // 00014 // This program is free software; you can redistribute it and/or 00015 // modify it under the terms of the GNU General Public License as 00016 // published by the Free Software Foundation; either version 2 of the 00017 // License, or (at your option) any later version. 00018 // 00019 // This program is distributed in the hope that it will be useful, 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00022 // General Public License for more details. 00023 // 00024 // You should have received a copy of the GNU General Public License 00025 // along with this program; if not, write to the Free Software 00026 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00027 // 02111-1307, USA. 00028 // 00030 // ThirdPartyRequest.h: interface for the CThirdPartyRequest class. 00031 // 00033 #ifdef _WIN32 00034 #pragma warning(disable : 4786) 00035 #pragma warning(disable : 4503) 00036 #endif 00037 00038 #if !defined(AFX_THIRDPARTYREQUEST_H__55C4EEE9_531A_42F4_9483_D7D403C19849__INCLUDED_) 00039 #define AFX_THIRDPARTYREQUEST_H__55C4EEE9_531A_42F4_9483_D7D403C19849__INCLUDED_ 00040 00041 00042 #include <map> 00043 #include <string> 00044 #include <list> 00045 //using namespace std; 00046 00047 typedef std::list<std::string> STRING_LIST; 00048 typedef std::map<std::string,STRING_LIST> STRING_LIST_MAP; 00049 00050 00051 class CThirdPartyRequest 00052 { 00053 public: 00054 bool SetTaskInfo(std::string sTaskType); 00055 std::string Close(); 00056 void SetClientInfo(std::string sJob, std::string sClient); 00057 static bool MOOSThirdPartyClear(CThirdPartyRequest &Request); 00058 static std::string MOOSThirdPartyExecute(CThirdPartyRequest &Request); 00059 bool ClearProperties(); 00060 std::string ExecuteRequest(); 00061 void AddProperty(std::string sTok, std::string sVal); 00062 static void MOOSThirdPartyFormat(CThirdPartyRequest &Request, std::string sTok, std::string sVal); 00063 CThirdPartyRequest(); 00064 virtual ~CThirdPartyRequest(); 00065 protected: 00066 std::string m_sCol; 00067 std::string m_sClientInfo; 00068 std::string m_sAt; 00069 std::string m_sEq; 00070 std::string m_sDelim; 00071 std::string m_sTaskType; 00072 00073 00074 STRING_LIST_MAP m_Properties; 00075 }; 00076 00077 #endif // !defined(AFX_THIRDPARTYREQUEST_H__55C4EEE9_531A_42F4_9483_D7D403C19849__INCLUDED_)