blob: 9064ea21d21af60a2ff8385a6dc2b299079a362c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef NAMINGTASK_H
#define NAMINGTASK_H
#include "tao/corba.h"
#include "ace/Task.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/Synch_Traits.h"
class NamingTask : public ACE_Task_Base
{
public:
NamingTask (const char* orbname, int argc, ACE_TCHAR** argv);
virtual int svc();
void waitInit ();
void end();
CosNaming::NamingContext_ptr root (void) const;
private:
CORBA::ORB_var orb_;
bool initialized_;
CosNaming::NamingContext_var root_;
};
#endif
|