diff options
Diffstat (limited to 'CIAO/ciao/Deployment_common.h')
-rw-r--r-- | CIAO/ciao/Deployment_common.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/CIAO/ciao/Deployment_common.h b/CIAO/ciao/Deployment_common.h new file mode 100644 index 00000000000..725b6afd953 --- /dev/null +++ b/CIAO/ciao/Deployment_common.h @@ -0,0 +1,54 @@ +// $Id$ + +/** + * @file Deployment_common.h + * + * This file collects common type definitions used across different + * objects of DAnCE toolchain. + * + * @author Gan Deng <dengg@dre.vanderbilt.edu> + */ + +#ifndef DANCE_COMMON_H +#define DANCE_COMMON_H +#include /**/ "ace/pre.h" + +#include "ace/config-all.h" + +#if !defined ACE_LACKS_PRAGMA_ONCE +#pragma once +#endif /* ! ACE_LACKS_PRAGMA_ONCE */ + +/// A struct which captures the binding information about a component + +namespace CIAO +{ + /// A struct which captures the compnent binding information, which + /// is useful for inter-assembly connection setup + typedef struct _component_binding + { + _component_binding () + { + providedReference_ = 0; + } + + ACE_CString name_; + ACE_CString plan_uuid_; + ACE_CString node_; + + Deployment::Connections_var providedReference_; + + bool operator==(const struct _component_binding & comp) + { + if (this->name_ == comp.name_ && + this->plan_uuid_ == comp.plan_uuid_ && + this->node_ == comp.node_) + return true; + else + return false; + } + } Component_Binding_Info; +} + +#include /**/ "ace/post.h" +#endif /* DANCE_COMMON_H */ |