Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 46) sorted by relevance

12

/thrift-3.4.0/tutorial/perl/
DPerlServer.pl56 my $op = $work->{op};
59 printf("calculate(%d, %d %d %d)\n", $logid, $num1, $num2, $op);
63 if ($op == tutorial::Operation::ADD) {
65 } elsif ($op == tutorial::Operation::SUBTRACT) {
67 } elsif ($op == tutorial::Operation::MULTIPLY) {
69 } elsif ($op == tutorial::Operation::DIVIDE) {
73 $x->whatOp($op);
80 $x->whatOp($op);
DPerlClient.pl58 $work->op(tutorial::Operation::DIVIDE);
69 $work->op(tutorial::Operation::SUBTRACT);
/thrift-3.4.0/tutorial/rb/
DRubyServer.rb45 print "calculate(", logid, ", {", work.op, ",", work.num1, ",", work.num2,"})\n"
46 if work.op == Operation::ADD
48 elsif work.op == Operation::SUBTRACT
50 elsif work.op == Operation::MULTIPLY
52 elsif work.op == Operation::DIVIDE
55 x.whatOp = work.op
62 x.whatOp = work.op
DRubyClient.rb49 work.op = Operation::SUBTRACT
59 work.op = Operation::DIVIDE
/thrift-3.4.0/tutorial/cl/
Dtutorial-implementation.lisp27 (op (tutorial:work-op work))
30 ((= op tutorial:operation.add) (+ num1 num2))
31 ((= op tutorial:operation.subtract) (- num1 num2))
32 ((= op tutorial:operation.multiply) (* num1 num2))
33 ((= op tutorial:operation.divide) (/ num1 num2)))))
/thrift-3.4.0/tutorial/nodejs/
DNodeServerPromise.js41 if (work.op == ttypes.Operation.ADD) {
43 } else if (work.op === ttypes.Operation.SUBTRACT) {
45 } else if (work.op === ttypes.Operation.MULTIPLY) {
47 } else if (work.op === ttypes.Operation.DIVIDE) {
50 x.whatOp = work.op;
57 x.whatOp = work.op;
DNodeServer.js42 if (work.op == ttypes.Operation.ADD) {
44 } else if (work.op === ttypes.Operation.SUBTRACT) {
46 } else if (work.op === ttypes.Operation.MULTIPLY) {
48 } else if (work.op === ttypes.Operation.DIVIDE) {
51 x.whatOp = work.op;
59 x.whatOp = work.op;
DNodeClient.js52 work.op = ttypes.Operation.DIVIDE;
64 work.op = ttypes.Operation.SUBTRACT;
DNodeClientPromise.js52 work.op = ttypes.Operation.DIVIDE;
65 work.op = ttypes.Operation.SUBTRACT;
/thrift-3.4.0/tutorial/py.tornado/
DPythonServer.py53 if work.op == Operation.ADD:
55 elif work.op == Operation.SUBTRACT:
57 elif work.op == Operation.MULTIPLY:
59 elif work.op == Operation.DIVIDE:
61 raise InvalidOperation(work.op, "Cannot divide by 0")
64 raise InvalidOperation(work.op, "Invalid operation")
/thrift-3.4.0/tutorial/py.twisted/
DPythonServer.py55 if work.op == Operation.ADD:
57 elif work.op == Operation.SUBTRACT:
59 elif work.op == Operation.MULTIPLY:
61 elif work.op == Operation.DIVIDE:
63 raise InvalidOperation(work.op, 'Cannot divide by 0')
66 raise InvalidOperation(work.op, 'Invalid operation')
/thrift-3.4.0/tutorial/py/
DPythonServer.py52 if work.op == Operation.ADD:
54 elif work.op == Operation.SUBTRACT:
56 elif work.op == Operation.MULTIPLY:
58 elif work.op == Operation.DIVIDE:
60 raise InvalidOperation(work.op, 'Cannot divide by 0')
63 raise InvalidOperation(work.op, 'Invalid operation')
/thrift-3.4.0/tutorial/java/src/
DCalculatorHandler.java46 …System.out.println("calculate(" + logid + ", {" + work.op + "," + work.num1 + "," + work.num2 + "}… in calculate()
48 switch (work.op) { in calculate()
61 io.whatOp = work.op.getValue(); in calculate()
69 io.whatOp = work.op.getValue(); in calculate()
/thrift-3.4.0/tutorial/rs/src/bin/
Dtutorial_server.rs123 let res = if let Some(ref op) = w.op { in handle_calculate()
126 what_op: Some(op.into()), in handle_calculate()
134 match *op { in handle_calculate()
141 what_op: Some(op.into()), in handle_calculate()
149 let op_val: i32 = op.into(); in handle_calculate()
/thrift-3.4.0/tutorial/php/
DPhpServer.php68 error_log("calculate({$logid}, {{$w->op}, {$w->num1}, {$w->num2}})");
69 switch ($w->op) {
82 $io->whatOp = $w->op;
90 $io->whatOp = $w->op;
/thrift-3.4.0/tutorial/dart/client/web/
Dclient.dart95 SpanElement op = new SpanElement()
99 output.append(op);
142 SelectElement op = new SelectElement()
152 op.add(addOp, 0);
156 op.add(subtractOp, 1);
160 op.add(multiplyOp, 2);
164 op.add(divideOp, 3);
165 output.append(op);
216 SelectElement op = querySelector("#calcOp");
227 work.op = int.parse(op.options[op.selectedIndex].value);
/thrift-3.4.0/tutorial/d/
Dserver.d49 writefln("calculate(%s, {%s, %s, %s})", logid, work.op, work.num1, work.num2); in calculate()
52 switch (work.op) { in calculate()
65 io.whatOp = work.op; in calculate()
73 io.whatOp = work.op; in calculate()
/thrift-3.4.0/tutorial/swift/Sources/TutorialClient/
Dmain.swift31 let work = Work(num1: 1, num2: 0, op: .divide)
39 work.op = .subtract
/thrift-3.4.0/tutorial/c_glib/
Dc_glib_server.c184 Operation op; in tutorial_calculator_handler_calculate() local
209 "op", &op, in tutorial_calculator_handler_calculate()
212 printf ("calculate(%d,{%d,%d,%d})\n", logid, op, num1, num2); in tutorial_calculator_handler_calculate()
214 switch (op) { in tutorial_calculator_handler_calculate()
234 "whatOp", op, in tutorial_calculator_handler_calculate()
252 "whatOp", op, in tutorial_calculator_handler_calculate()
/thrift-3.4.0/lib/cl/
DREADME.md39 Each service definition expands in a collection of generic function definitions. For each `op`
42 …* `op`-request is defined for use by a client. It accepts an additional initial `protocol` argumen…
45 * `op`-response is defined for use by a server. It accepts a single `protocol` argument. A server
46 uses it to decode the request message, invoke the base `op` function with the message arguments,
134 (calculate-op (work-op task) (work-num1 task) (work-num2 task)))
136 (defgeneric calculate-op (op arg1 arg2)
137 (:method :around (op arg1 arg2)
139 (format t "~&Asked to calculate: ~d on ~A and ~A = ~d." op arg1 arg2 result)
142 (:method ((op (eql operation.add)) arg1 arg2)
144 (:method ((op (eql operation.subtract)) arg1 arg2)
[all …]
/thrift-3.4.0/tutorial/swift/Sources/TutorialServer/
DCalculatorService.swift41 switch w.op { in calculate()
50 throw InvalidOperation(whatOp: w.op.rawValue, why: "Cannot divide by 0") in calculate()
/thrift-3.4.0/tutorial/cpp/
DCppServer.cpp62 switch (work.op) { in calculate()
75 io.whatOp = work.op; in calculate()
83 io.whatOp = work.op; in calculate()
DCppClient.cpp51 work.op = Operation::DIVIDE; in main()
64 work.op = Operation::SUBTRACT; in main()
/thrift-3.4.0/tutorial/haxe/src/
DCalculatorHandler.hx52 trace('calculate( $logid, '+work.op+","+work.num1+","+work.num2+")");
55 switch (work.op)
70 io.whatOp = work.op;
78 io.whatOp = work.op;
/thrift-3.4.0/lib/d/src/thrift/codegen/
Dasync_client.d161 TTransport op = void;
163 op = ip;
165 op = otf.getTransport(trans);
173 auto oprot = opf.getProtocol(op);

12