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

A kraken. More...

#include <kraken.h>

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

Public Member Functions

 Kraken ()
 Initializes a new instance of the Kraken class. More...
 
 ~Kraken ()
 Finalizes an instance of the Kraken 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...
 
void run ()
 Runs this object. More...
 
void execute (Poco::Timer &timer)
 Executes the given timer. 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

KrakenApi::EndPoints api
 The API.
 

Protected Member Functions

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

Protected Attributes

std::string _uri
 _URI of the document
 

Detailed Description

A kraken.

Constructor & Destructor Documentation

◆ Kraken() [1/2]

trader::Kraken::Kraken ( )

Initializes a new instance of the Kraken class.

◆ ~Kraken()

trader::Kraken::~Kraken ( )

Finalizes an instance of the Kraken class.

◆ Kraken() [2/2]

trader::Kraken::Kraken ( const Kraken )
protected

Initializes a new instance of the Kraken class.

Parameters
parameter1The first parameter.

Member Function Documentation

◆ execute()

void trader::Kraken::execute ( Poco::Timer &  timer)

Executes the given timer.

Parameters
timer[in,out] The timer.

◆ getConnection()

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

Gets a connection.

Parameters
connectionIdIdentifier for the connection.
Returns
The connection.

◆ invoke()

Dynamic::Var trader::Kraken::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=()

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

Assignment operator.

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

◆ run()

void trader::Kraken::run ( )

Runs this object.


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