summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/Repository.h
blob: aa8467e2d2c93fc5da2f37b762dd63c5c73510a0 (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
26
27
28
29
30
31
32
33
34
35
// $Id$
#if !defined (REPOSITORY_H)
#define REPOSITORY_H

#include "ace/Naming_Context.h"

class Repository
{
public:
  Repository ();
  // Default Constructor

  int add (const char *key, const char *comm_line, const char *env, const char *wdir);
  // Add a new server to the Repository
  
  int remove (const char *key);
  // Removes the server from the Repository

  int resolve (const char *key, char *&comm_line, char *&env, char *&wdir);
  // Find the key record in the Repository

  // = Accessor methods
  int get_comm_line (const char *key, char *&comm_line);
  int get_env (const char *key, char *&env);
  int get_wdir (const char *key, char *&wdir);

  // Dump method
  void dump (void);

private:
  ACE_Naming_Context repository_;
};


#endif /* REPOSITORY_H */