summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/ImplRepo_Service/utils.h
blob: 7bfde174184f18182341ba4bf8eaedf4f9703136 (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
//$Id$
#ifndef TAO_IMR_UTILS_H
#define TAO_IMR_UTILS_H

#include "ImplRepoC.h"

#include "ace/SString.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class ImR_Utils
{
public:
  static const char * activationModeToString (ImplementationRepository::ActivationMode mode);
  static ImplementationRepository::ActivationMode stringToActivationMode (const ACE_CString& s);

  static const char *envListToString (const ImplementationRepository::EnvironmentList& lst);
  static void stringToEnvList (const ACE_CString& s,
                               ImplementationRepository::EnvironmentList& ret);

  static const char *peerListToString (const CORBA::StringSeq& lst);

  static void stringToPeerList (const ACE_CString& s,
                                CORBA::StringSeq& ret);
};

#endif