|
|
@ -88,6 +88,7 @@ struct Resources { |
|
|
|
|
|
|
|
|
|
|
|
class Op { |
|
|
|
class Op { |
|
|
|
public: |
|
|
|
public: |
|
|
|
|
|
|
|
virtual ~Op(); |
|
|
|
virtual v8::Handle<v8::Value> GetNodeValue() const = 0; |
|
|
|
virtual v8::Handle<v8::Value> GetNodeValue() const = 0; |
|
|
|
virtual bool ParseOp(v8::Handle<v8::Value> value, grpc_op *out, |
|
|
|
virtual bool ParseOp(v8::Handle<v8::Value> value, grpc_op *out, |
|
|
|
shared_ptr<Resources> resources) = 0; |
|
|
|
shared_ptr<Resources> resources) = 0; |
|
|
@ -98,7 +99,6 @@ class Op { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
typedef std::vector<unique_ptr<Op>> OpVec; |
|
|
|
typedef std::vector<unique_ptr<Op>> OpVec; |
|
|
|
|
|
|
|
|
|
|
|
struct tag { |
|
|
|
struct tag { |
|
|
|
tag(NanCallback *callback, OpVec *ops, |
|
|
|
tag(NanCallback *callback, OpVec *ops, |
|
|
|
shared_ptr<Resources> resources); |
|
|
|
shared_ptr<Resources> resources); |
|
|
|