trader  v0.1a
A framework to build trading applications
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
trader::Cryptowatch Class Reference

A cryptowatch. More...

#include <cryptowatch.h>

Inheritance diagram for trader::Cryptowatch:
Inheritance graph
[legend]
Collaboration diagram for trader::Cryptowatch:
Collaboration graph
[legend]

Public Member Functions

 Cryptowatch ()
 Initializes a new instance of the Cryptowatch class. More...
 
 ~Cryptowatch ()
 Finalizes an instance of the Cryptowatch class. More...
 
Poco::Dynamic::Var invoke (const std::string &httpMethod, Poco::URI &uri)
 Executes the given operation on a different thread, and waits for the result. More...
 
- Public Member Functions inherited from trader::Api
virtual ~Api ()
 Finalizes an instance of the API class. More...
 
virtual void setParams (const std::string &)
 Sets the parameters. More...
 

Static Public Member Functions

static AutoPtr< Interface::ConnectiongetConnection (const std::string &connectionId)
 Gets a connection. More...
 

Public Attributes

CryptowatchApi::EndPoints api
 The API.
 
Poco::AutoPtr< CryptowatchDatabase::TablesdataBase
 The data base.
 

Protected Member Functions

 Cryptowatch (const Cryptowatch &)
 Initializes a new instance of the Cryptowatch class. More...
 
Cryptowatchoperator= (const Cryptowatch &)
 Assignment operator. More...
 

Detailed Description

A cryptowatch.

Constructor & Destructor Documentation

◆ Cryptowatch() [1/2]

trader::Cryptowatch::Cryptowatch ( )

Initializes a new instance of the Cryptowatch class.

◆ ~Cryptowatch()

trader::Cryptowatch::~Cryptowatch ( )

Finalizes an instance of the Cryptowatch class.

◆ Cryptowatch() [2/2]

trader::Cryptowatch::Cryptowatch ( const Cryptowatch )
protected

Initializes a new instance of the Cryptowatch class.

Parameters
parameter1The first parameter.

Member Function Documentation

◆ getConnection()

AutoPtr< Interface::Connection > trader::Cryptowatch::getConnection ( const std::string &  connectionId)
static

Gets a connection.

Parameters
connectionIdIdentifier for the connection.
Returns
The connection.

◆ invoke()

Dynamic::Var trader::Cryptowatch::invoke ( const std::string &  httpMethod,
Poco::URI &  uri 
)
virtual

Executes the given operation on a different thread, and waits for the result.

Parameters
httpMethodThe HTTP method.
uri[in,out] URI of the document.
Returns
A Poco::Dynamic::Var.
Exceptions
TimeoutExceptionThrown when a Timeout error condition occurs.
ApplicationExceptionThrown when an Application error condition occurs.
Parameters
httpMethodThe HTTP method.
uri[in,out] URI of the document.
Returns
A Dynamic::Var.

Implements trader::Api.

◆ operator=()

Cryptowatch& trader::Cryptowatch::operator= ( const Cryptowatch )
protected

Assignment operator.

Parameters
parameter1The first parameter.
Returns
A shallow copy of this object.

The documentation for this class was generated from the following files: