Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / examples / RTCORBA / Activity / Job_i.h
blobf1e532d57115407b31e98be272544c49bab388d3
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Job_i.h
6 * This file defines the servant for the Job.idl interface
8 * @author Pradeep Gore <pradeep@cs.wustl.edu>
9 */
10 //=============================================================================
11 #ifndef JOB_I_H
12 #define JOB_I_H
14 #include "JobS.h"
15 #include "ace/SString.h"
16 #include "ace/Arg_Shifter.h"
18 /**
19 * @class Job_i
21 * @brief Implements a Job that performs some cpu bound work.
23 class Job_i : public POA_Job
25 public:
26 /// Constructor
27 Job_i ();
29 /// Init the state of this object.
30 int init (ACE_Arg_Shifter& arg_shifter);
32 /// = Accessors
33 const ACE_CString& name ();
34 const ACE_CString& poa ();
36 /// = inteface Job method implementation.
37 virtual void work (CORBA::ULong work);
39 virtual void shutdown ();
40 protected:
41 /// The name of this Job
42 ACE_CString job_name_;
44 /// The name of the POA that we live in.
45 ACE_CString POA_name_;
48 #endif /* JOB_I_H */