Changeset 18058 for trunk/FACT++/dim/src/examples
- Timestamp:
- 01/03/15 18:26:23 (10 years ago)
- Location:
- trunk/FACT++/dim/src/examples
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/examples/pvss_dim_client.cxx
r11071 r18058 19 19 } 20 20 public : 21 SimpleService(c har *name) : DimInfo(name, -1.0) {};21 SimpleService(const char *name) : DimInfo(name, -1.0) {}; 22 22 }; 23 23 … … 39 39 } 40 40 public : 41 DimDoubleArray(c har *name) : DimInfo(name, no_link_darray, 8*sizeof(double)) {};41 DimDoubleArray(const char *name) : DimInfo(name, no_link_darray, 8*sizeof(double)) {}; 42 42 }; 43 43 … … 76 76 } 77 77 public : 78 ComplexService(c har *name) : DimInfo(name, -1.0) {};78 ComplexService(const char *name) : DimInfo(name, -1.0) {}; 79 79 }; 80 80 … … 88 88 cout << "RPC Service received: " << value << "\n" << endl; 89 89 } 90 RpcService(c har *name, int timeout) : DimRpcInfo(name, timeout, -1) {};90 RpcService(const char *name, int timeout) : DimRpcInfo(name, timeout, -1) {}; 91 91 }; 92 92 -
trunk/FACT++/dim/src/examples/pvss_dim_server.cxx
r15282 r18058 31 31 } 32 32 public : 33 RecvCommand(c har *name) : DimCommand(name,"C") {reset_flag = 0;};33 RecvCommand(const char *name) : DimCommand(name,"C") {reset_flag = 0;}; 34 34 int isReset() {return reset_flag;}; 35 35 void clearReset() {reset_flag = 0;}; … … 47 47 } 48 48 public : 49 RecvCommandComplex(c har *name) : DimCommand(name,"I:1;C:1;I:1;F:1;C") {};49 RecvCommandComplex(const char *name) : DimCommand(name,"I:1;C:1;I:1;F:1;C") {}; 50 50 }; 51 51 /* … … 95 95 } 96 96 public: 97 RpcService(c har *name): DimRpc(name,"I","I") {val = 0;};97 RpcService(const char *name): DimRpc(name,"I","I") {val = 0;}; 98 98 }; 99 99 -
trunk/FACT++/dim/src/examples/rpc_client.cxx
r14575 r18058 2 2 #include <iostream> 3 3 using namespace std; 4 #include <stdio.h> 4 5 5 6 class Rpc : public DimRpcInfo … … 10 11 cout << "Callback RPC Received : " << getInt() << endl; 11 12 } 12 Rpc(c har *name) : DimRpcInfo(name, 1, -1) {};13 Rpc(const char *name) : DimRpcInfo(name, 1, -1) {}; 13 14 }; 14 15 … … 31 32 cout << val->str1 << " " << val->str2 << " " << val->int1 << endl; 32 33 } 33 RpcStruct(c har *name) : DimRpcInfo(name,"dead") {};34 RpcStruct(const char *name) : DimRpcInfo(name, (char *)"dead") {}; 34 35 }; 35 36 … … 41 42 int out, in; 42 43 43 sprintf(name,"TESTRPC% d/INT",(dim_long)tag);44 sprintf(name,"TESTRPC%ld/INT",(dim_long)tag); 44 45 myRpc = new DimRpcInfo(name, 10, -1); 45 46 // myRpc = new Rpc(name); … … 65 66 Rpc *myRpc; 66 67 char name[64]; 67 int out , in;68 int out; 68 69 69 70 sprintf(name,"TESTRPC/INT"); -
trunk/FACT++/dim/src/examples/rpc_server.cxx
r15282 r18058 3 3 #include <iostream> 4 4 using namespace std; 5 #include <stdio.h> 5 6 6 7 class RpcInt : public DimRpc … … 20 21 } 21 22 public: 22 RpcInt(c har *name): DimRpc(name,"I","I") {val = 0;};23 RpcInt(const char *name): DimRpc(name,"I","I") {val = 0;}; 23 24 }; 24 25 … … 56 57 } 57 58 public: 58 RpcStruct(c har *name): DimRpc(name,"C:16;I:5;C:18;F:4;I:1;F:16",59 RpcStruct(const char *name): DimRpc(name,"C:16;I:5;C:18;F:4;I:1;F:16", 59 60 "C:16;I:5;C:18;F:4;I:1;F:16") {val = 0;}; 60 61 }; … … 75 76 } 76 77 public: 77 JeffRpcStruct(c har *name): DimRpc(name,"C:1;C:1;C:1;C",78 JeffRpcStruct(const char *name): DimRpc(name,"C:1;C:1;C:1;C", 78 79 "I:1;C:1;C") {counter = 0;}; 79 80 };
Note:
See TracChangeset
for help on using the changeset viewer.