83 size_t readLine(
string &str ) ;
85 bool executeCommand(
const string &cmd,
91 _strmCreated( false ),
92 _isInteractive( false ) {}
101 void setOutput( ostream *strm,
bool created ) ;
111 virtual void dump( ostream &strm )
const ;
114 #endif // CmdClient_h
void shutdownClient()
Closes the connection to the OpeNDAP server and closes the output stream.
bool executeClientCommand(const string &cmd)
Executes a client side command.
void brokenPipe()
inform the server that there has been a borken pipe
Base object for bes objects.
bool isConnected()
return whether the client is connected to the BES
virtual void dump(ostream &strm) const
dumps information about this object
void startClient(const string &host, int portVal, int timeout)
Connect the BES client to the BES server.
CmdClient is an object that handles the connection to, sending requests to, and receiving response fr...
void setOutput(ostream *strm, bool created)
Set the output stream for responses from the BES server.
bool executeCommands(const string &cmd, int repeat)
Send the command(s) specified to the BES server after wrapping in request document.
bool interact()
An interactive BES client that takes BES requests on the command line.