- "You got another thing comin'" -- Judas Priest
- Add get_request() method to (Dynamic)SubRequest. - Implement most of ConcreteHistory. It is a fairly complex class, with some real evilness in it. It should be thouroughly documented ASAP. git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@699 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
68b92db976
commit
cb8e8dabc7
13 changed files with 212 additions and 104 deletions
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include "sub_request.hh"
|
||||
#include "dynamic_request.hh"
|
||||
#include "dynamic_resource.hh"
|
||||
#include "static_sub_request.hh"
|
||||
|
||||
|
@ -31,7 +32,6 @@
|
|||
namespace sgpem
|
||||
{
|
||||
class DynamicSubRequest;
|
||||
class DynamicRequest;
|
||||
class SerializeVisitor;
|
||||
class Resource;
|
||||
class StaticSubRequest;
|
||||
|
@ -40,8 +40,7 @@ namespace sgpem
|
|||
{
|
||||
public:
|
||||
DynamicSubRequest(StaticSubRequest* core,
|
||||
DynamicRequest* owner,
|
||||
resource_key_t resource);
|
||||
DynamicRequest* owner);
|
||||
|
||||
virtual ~DynamicSubRequest();
|
||||
|
||||
|
@ -56,6 +55,8 @@ namespace sgpem
|
|||
int get_queue_position() const;
|
||||
void set_queue_position(int position);
|
||||
|
||||
virtual DynamicRequest& get_request();
|
||||
|
||||
void serialize(SerializeVisitor& translator) const;
|
||||
|
||||
StaticSubRequest& get_core();
|
||||
|
@ -64,11 +65,9 @@ namespace sgpem
|
|||
private:
|
||||
memory::smart_ptr<StaticSubRequest> _static_subrequest;
|
||||
DynamicRequest* _owner;
|
||||
resource_key_t _resource_key;
|
||||
int _queue_position;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue