Menu

Novice Use

Help
Yogesh
2007-01-17
2013-04-24
  • Yogesh

    Yogesh - 2007-01-17

    hi everybody,

    I am planning to use this lybrary for communication and try simple example to communicate betweeen clent and server.
    I have one big doubt generally what i see that we declare a class that is derived from
    XmlRpcServerMethod and it look like this:

    class Hello : public XmlRpcServerMethod
    {
    public:
      Hello(XmlRpcServer* s) : XmlRpcServerMethod("Hello", s) {}

      void execute(XmlRpcValue& params, XmlRpcValue& result)
      {
        result = "Hello";
      }

      std::string help() { return std::string("Say hello"); }

    } hello(&s);   

    Here i use a single construcotr and execute function in the class, is it possible to create a single class and use different function in it instead of using different class.

    Like Calculation class have functions :
    Add();
    sunstract()
    Multiply() ect;
    Can anyone please guide me , thanks
    Yogesh Chaturvedi

     
    • quique123

      quique123 - 2007-05-11

      Is this still an up-to-date issue?

      Jose

       

Log in to post a comment.