Ignore:
Timestamp:
01/03/15 18:26:23 (10 years ago)
Author:
tbretz
Message:
Updated to v20r11
Location:
trunk/FACT++/dim/src/examples
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/examples/pvss_dim_client.cxx

    r11071 r18058  
    1919        }
    2020public :
    21         SimpleService(char *name) : DimInfo(name, -1.0) {};
     21        SimpleService(const char *name) : DimInfo(name, -1.0) {};
    2222};
    2323
     
    3939        }
    4040public :
    41         DimDoubleArray(char *name) : DimInfo(name, no_link_darray, 8*sizeof(double)) {};
     41        DimDoubleArray(const char *name) : DimInfo(name, no_link_darray, 8*sizeof(double)) {};
    4242};
    4343
     
    7676        }
    7777public :
    78         ComplexService(char *name) : DimInfo(name, -1.0) {};
     78        ComplexService(const char *name) : DimInfo(name, -1.0) {};
    7979};
    8080
     
    8888                cout << "RPC Service received: " << value << "\n" << endl;
    8989        }
    90         RpcService(char *name, int timeout) :   DimRpcInfo(name, timeout, -1) {};
     90        RpcService(const char *name, int timeout) :     DimRpcInfo(name, timeout, -1) {};
    9191};
    9292
  • trunk/FACT++/dim/src/examples/pvss_dim_server.cxx

    r15282 r18058  
    3131        }
    3232public :
    33         RecvCommand(char *name) : DimCommand(name,"C") {reset_flag = 0;};
     33        RecvCommand(const char *name) : DimCommand(name,"C") {reset_flag = 0;};
    3434        int isReset() {return reset_flag;};
    3535        void clearReset() {reset_flag = 0;};
     
    4747        }
    4848public :
    49         RecvCommandComplex(char *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") {};
    5050};
    5151/*
     
    9595        }
    9696public:
    97         RpcService(char *name): DimRpc(name,"I","I") {val = 0;};
     97        RpcService(const char *name): DimRpc(name,"I","I") {val = 0;};
    9898};
    9999
  • trunk/FACT++/dim/src/examples/rpc_client.cxx

    r14575 r18058  
    22#include <iostream>
    33using namespace std;
     4#include <stdio.h>
    45
    56class Rpc : public DimRpcInfo
     
    1011                cout << "Callback RPC Received : " << getInt() << endl;
    1112        }
    12         Rpc(char *name) :       DimRpcInfo(name, 1, -1) {};
     13        Rpc(const char *name) : DimRpcInfo(name, 1, -1) {};
    1314};
    1415
     
    3132                cout << val->str1 << " " << val->str2 << " " << val->int1 << endl;
    3233        }
    33         RpcStruct(char *name) : DimRpcInfo(name, "dead") {};
     34        RpcStruct(const char *name) :   DimRpcInfo(name, (char *)"dead") {};
    3435};
    3536
     
    4142        int out, in;
    4243       
    43         sprintf(name,"TESTRPC%d/INT",(dim_long)tag);
     44        sprintf(name,"TESTRPC%ld/INT",(dim_long)tag);
    4445        myRpc = new DimRpcInfo(name, 10, -1);
    4546//      myRpc = new Rpc(name);
     
    6566        Rpc *myRpc;
    6667        char name[64];
    67         int out, in;
     68        int out;
    6869       
    6970        sprintf(name,"TESTRPC/INT");
  • trunk/FACT++/dim/src/examples/rpc_server.cxx

    r15282 r18058  
    33#include <iostream>
    44using namespace std;
     5#include <stdio.h>
    56
    67class RpcInt : public DimRpc
     
    2021        }
    2122public:
    22         RpcInt(char *name): DimRpc(name,"I","I") {val = 0;};
     23        RpcInt(const char *name): DimRpc(name,"I","I") {val = 0;};
    2324};
    2425
     
    5657        }
    5758public:
    58         RpcStruct(char *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",
    5960                "C:16;I:5;C:18;F:4;I:1;F:16") {val = 0;};
    6061};
     
    7576        }
    7677public:
    77         JeffRpcStruct(char *name): DimRpc(name,"C:1;C:1;C:1;C",
     78        JeffRpcStruct(const char *name): DimRpc(name,"C:1;C:1;C:1;C",
    7879                "I:1;C:1;C") {counter = 0;};
    7980};
Note: See TracChangeset for help on using the changeset viewer.