dcrud  0.0.0
Distributed data and services
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
IRequired.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Arguments.hpp"
4 #include <util/types.h>
5 
6 namespace dcrud {
7 
8  class ICallback;
9 
10  class IRequired {
11  public:
12 
13  static const byte VERY_URGENT_QUEUE = 0;
14  static const byte URGENT_QUEUE = 50;
15  static const byte DEFAULT_QUEUE = 100;
16  static const byte NON_URGENT_QUEUE = 255;
17 
18  static const byte SYNCHRONOUS = 0;
19  static const byte ASYNCHRONOUS_DEFERRED = 1;
20  static const byte ASYNCHRONOUS_IMMEDIATE = 2;
21 
22  virtual ~ IRequired() {}
23 
24  virtual void call( const std::string & opName ) = 0;
25 
26  virtual void call( const std::string & opName, const Arguments & arguments ) = 0;
27 
28  virtual int call( const std::string & opName, const Arguments & arguments, ICallback & callback ) = 0;
29  };
30 }
virtual void call(const std::string &opName)=0
static const byte SYNCHRONOUS
Definition: IRequired.hpp:18
static const byte ASYNCHRONOUS_DEFERRED
Definition: IRequired.hpp:19
static const byte DEFAULT_QUEUE
Definition: IRequired.hpp:15
static const byte NON_URGENT_QUEUE
Definition: IRequired.hpp:16
static const byte ASYNCHRONOUS_IMMEDIATE
Definition: IRequired.hpp:20
virtual ~IRequired()
Definition: IRequired.hpp:22
static const byte URGENT_QUEUE
Definition: IRequired.hpp:14
static const byte VERY_URGENT_QUEUE
Definition: IRequired.hpp:13