summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h
blob: a228f4eb68f1f400054e1dc41c61a956842340c8 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//$Id$
/* -*- C++ -*- */
/***************************************************************
 * @file   ImplementationInfo.h
 *
 * @brief  This file defines some helper functions for paring the
 *         Component ImplementationInfo and properties from
 *         the plan.
 *
 * @author Tao Lu <lu@dre.vanderbilt.edu>
 * @author Gan Deng <dengg@dre.vanderbilt.edu>
 ***************************************************************/

#ifndef IMPLEMENTATIONIFO_H
#define IMPLEMENTATIONIFO_H
#include /**/ "ace/pre.h"

#include "ace/config-all.h"

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

//#include "Deployment_CoreS.h"
//#include "ace/os_types.h"
#include "ciao/DeploymentC.h"
#include "ace/SString.h"

//@@ I wish we could have precompiled header support soon!!!

// This method is a helper function to parse the local deployment plan into the
// NodeImplementationInfo struct.

namespace CIAO
{
  bool operator<< (Deployment::NodeImplementationInfo & info,
		  const Deployment::DeploymentPlan & plan);
}

/*
// Helper function to parse the property.
template < typename OUTPUT>
bool operator<< (OUTPUT & info,
			   const Deployment::Property & property);

// Sepcialized for the entry point property
template < >
bool operator<< < TAO_String_Manager>
				(TAO_String_Manager & info,
				 const Deployment::Property & property)
{
  const char * tmp;
  if (property.value >>= tmp)
    info = CORBA::string_duplicate (tmp);
  else
  {
    ACE_DEBUG ((LM_DEBUG, "Property::value >>= TAO_String_Manager failed!\n"));
    return 0;
  }

  return 1;
}
*/

//#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
//#include "ImplementationInfo.cpp"
//#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */

//#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
//#pragma implementation ("ImplementationInfo.cpp")
//#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */


#include /**/ "ace/post.h"
#endif /* IMPLEMENTATIONIFO_H */