00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PG_Utils.h 00006 * 00007 * $Id: PG_Utils.h 71526 2006-03-14 06:14:35Z jtc $ 00008 * 00009 * Utility methods 00010 * 00011 * @author Balachandran Natarajan <bala@dre.vanderbilt.edu> 00012 */ 00013 //============================================================================= 00014 #ifndef TAO_PORTABLEGROUP_UTILS_H 00015 #define TAO_PORTABLEGROUP_UTILS_H 00016 #include /**/ "ace/pre.h" 00017 00018 #include "orbsvcs/PortableGroupC.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "orbsvcs/PortableGroup/portablegroup_export.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace TAO 00029 { 00030 /** 00031 * @class PG_Utils 00032 * 00033 * @brief Simple utility class 00034 */ 00035 class TAO_PortableGroup_Export PG_Utils 00036 { 00037 public: 00038 00039 /// Set tagged component for the object group 00040 static CORBA::Boolean set_tagged_component ( 00041 PortableGroup::ObjectGroup *&ior, 00042 PortableGroup::TagGroupTaggedComponent &t); 00043 00044 /// Get tagged component for the object group 00045 static CORBA::Boolean get_tagged_component ( 00046 PortableGroup::ObjectGroup *&ior, 00047 PortableGroup::TagGroupTaggedComponent &t); 00048 00049 private: 00050 static CORBA::Boolean encode_properties ( 00051 TAO_OutputCDR &cdr, 00052 PortableGroup::TagGroupTaggedComponent &tg); 00053 }; 00054 } 00055 00056 TAO_END_VERSIONED_NAMESPACE_DECL 00057 00058 #include /**/ "ace/post.h" 00059 #endif /*TAO_PORTABLEGROUP_UTILS_H*/