OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimToolClient.h
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM Open Source Geospatial Data Processing Library
4 // See top level LICENSE.txt file for license information
5 //
6 //**************************************************************************************************
7 
8 #ifndef ossimToolClient_HEADER
9 #define ossimToolClient_HEADER 1
10 
13 
21 {
22 public:
23 
25 
29  ~ossimToolClient();
30 
34  int connectToServer(char* hostname, char* portname=NULL);
35 
43  bool setProductFilePath(const char* filepath);
44 
49  const char* getProductFilePath() const { return m_prodFilePath; }
50 
61  bool execute(const char* command_spec);
62 
67  const char* getTextResponse() const { return m_textResponse.chars(); }
68 
72  bool disconnect();
73 
74 protected:
75 
76  void error(const char *msg);
77 
78  bool receiveText();
79  bool receiveFile();
80  bool acknowledgeRcv();
81 
83  char* m_buffer;
86 };
87 
88 #endif
Utility class providing an interface to ossimTool-derived functionality via TCP sockets Results are r...
const char * getProductFilePath() const
Returns the filename (including full client-side path) of the local product file waiting after execut...
ossimFilename m_prodFilePath
#define OSSIM_DLL
ossimString m_textResponse
const char * getTextResponse() const
Returns the server's text response generated by the execute() call, or NULL if no response available...