summaryrefslogtreecommitdiff
path: root/TAO/tao/CurrentC.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/CurrentC.h')
-rw-r--r--TAO/tao/CurrentC.h139
1 files changed, 75 insertions, 64 deletions
diff --git a/TAO/tao/CurrentC.h b/TAO/tao/CurrentC.h
index 072e3a57bf2..f3f73389ac5 100644
--- a/TAO/tao/CurrentC.h
+++ b/TAO/tao/CurrentC.h
@@ -1,40 +1,44 @@
-/* -*- C++ -*- $Id$ */
+/* -*- C++ -*- */
+// $Id$
+// ============================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// CurrentC.h
+//
+// = AUTHOR
+//
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO and the TAO IDL Compiler have been developed by the Center for
-// Distributed Object Computing at Washington University, St. Louis.
+// TAO ORB and the TAO IDL Compiler have been developed by Washington
+// University Computer Science's Distributed Object Computing Group.
//
-// Information about TAO is available at:
+// Information on TAO is available at
// http://www.cs.wustl.edu/~schmidt/TAO.html
+//
+//
+// Modified by Aniruddha Gokhale.
+//
+// ============================================================================
-#ifndef _TAO_IDL_CURRENTC_H_
-#define _TAO_IDL_CURRENTC_H_
-
+#ifndef TAO_IDL_CURRENTC_H
+#define TAO_IDL_CURRENTC_H
#include "ace/pre.h"
-#include "tao/Object.h"
-#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)
-#include "ace/streams.h"
-#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */
+#ifndef TAO_EXPORT_MACRO
+#define TAO_EXPORT_MACRO
+#endif
+
+#include "tao/Object.h"
+#include "tao/Exception.h"
+#include "tao/Environment.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/corbafwd.h"
-
-#if defined (TAO_EXPORT_MACRO)
-#undef TAO_EXPORT_MACRO
-#endif
-#define TAO_EXPORT_MACRO TAO_Export
-
-#if defined (TAO_EXPORT_NESTED_CLASSES)
-# if defined (TAO_EXPORT_NESTED_MACRO)
-# undef TAO_EXPORT_NESTED_MACRO
-# endif /* defined (TAO_EXPORT_NESTED_MACRO) */
-# define TAO_EXPORT_NESTED_MACRO TAO_Export
-#endif /* TAO_EXPORT_NESTED_CLASSES */
-
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
@@ -42,7 +46,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
#if !defined (_CORBA_CURRENT___PTR_CH_)
#define _CORBA_CURRENT___PTR_CH_
@@ -55,21 +58,21 @@ typedef CORBA_Current *CORBA_Current_ptr;
#if !defined (_CORBA_CURRENT___VAR_CH_)
#define _CORBA_CURRENT___VAR_CH_
-class TAO_Export CORBA_Current_var : public TAO_Base_var
+class CORBA_Current_var : public TAO_Base_var
{
public:
CORBA_Current_var (void); // default constructor
- CORBA_Current_var (CORBA_Current_ptr p) : ptr_ (p) {}
+ CORBA_Current_var (CORBA_Current_ptr);
CORBA_Current_var (const CORBA_Current_var &); // copy constructor
~CORBA_Current_var (void); // destructor
-
+
CORBA_Current_var &operator= (CORBA_Current_ptr);
CORBA_Current_var &operator= (const CORBA_Current_var &);
CORBA_Current_ptr operator-> (void) const;
-
+
operator const CORBA_Current_ptr &() const;
operator CORBA_Current_ptr &();
- // in, inout, out, _retn
+ // in, inout, out, _retn
CORBA_Current_ptr in (void) const;
CORBA_Current_ptr &inout (void);
CORBA_Current_ptr &out (void);
@@ -90,19 +93,19 @@ private:
#if !defined (_CORBA_CURRENT___OUT_CH_)
#define _CORBA_CURRENT___OUT_CH_
-class TAO_Export CORBA_Current_out
+class CORBA_Current_out
{
public:
CORBA_Current_out (CORBA_Current_ptr &);
CORBA_Current_out (CORBA_Current_var &);
- CORBA_Current_out (const CORBA_Current_out &);
- CORBA_Current_out &operator= (const CORBA_Current_out &);
+ CORBA_Current_out (CORBA_Current_out &);
+ CORBA_Current_out &operator= (CORBA_Current_out &);
CORBA_Current_out &operator= (const CORBA_Current_var &);
CORBA_Current_out &operator= (CORBA_Current_ptr);
operator CORBA_Current_ptr &();
CORBA_Current_ptr &ptr (void);
CORBA_Current_ptr operator-> (void);
-
+
private:
CORBA_Current_ptr &ptr_;
};
@@ -114,39 +117,38 @@ private:
#if !defined (_CORBA_CURRENT_CH_)
#define _CORBA_CURRENT_CH_
-class TAO_Export CORBA_Current : public virtual CORBA_Object
+class CORBA_Current : public virtual CORBA_Object
{
-public:
-#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
- typedef CORBA_Current_ptr _ptr_type;
- typedef CORBA_Current_var _var_type;
-#endif /* ! __GNUC__ || g++ >= 2.8 */
+ public:
+ #if !defined(__GNUC__) || __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+ typedef CORBA_Current_ptr _ptr_type;
+ typedef CORBA_Current_var _var_type;
+ #endif /* __GNUC__ */
// the static operations
static CORBA_Current_ptr _duplicate (CORBA_Current_ptr obj);
- static CORBA_Current_ptr _narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- static CORBA_Current_ptr _unchecked_narrow (
- CORBA::Object_ptr obj,
- CORBA::Environment &ACE_TRY_ENV =
- TAO_default_environment ()
- );
- static CORBA_Current_ptr _nil (void)
- {
- return (CORBA_Current_ptr)0;
- }
-
- virtual void *_tao_QueryInterface (ptr_arith_t type);
-
+ static CORBA_Current_ptr _narrow (CORBA::Object_ptr obj,
+ CORBA_Environment &ACE_TRY_ENV =
+ TAO_default_environment ());
+ static CORBA_Current_ptr _unchecked_narrow (CORBA::Object_ptr obj,
+ CORBA_Environment &ACE_TRY_ENV =
+ TAO_default_environment ());
+ static CORBA_Current_ptr _nil (void);
+ static void _tao_any_destructor (void*);
+
+ virtual CORBA::Boolean _is_a (const CORBA::Char *type_id,
+ CORBA_Environment &ACE_TRY_ENV =
+ TAO_default_environment ()
+ );
virtual const char* _interface_repository_id (void) const;
-
-protected:
- CORBA_Current (void);
+ protected:
+ CORBA_Current (void); // default constructor
+ CORBA_Current (TAO_Stub *objref,
+ TAO_ServantBase *_tao_servant = 0,
+ CORBA::Boolean _tao_collocated = 0
+ );
virtual ~CORBA_Current (void);
-private:
+ private:
CORBA_Current (const CORBA_Current &);
void operator= (const CORBA_Current &);
};
@@ -154,13 +156,22 @@ private:
#endif /* end #if !defined */
+extern CORBA_Current_ptr (*_TAO_collocation_CORBA_Current_Stub_Factory_function_pointer) (
+ CORBA::Object_ptr obj
+ );
+// Any operators for interface CORBA_Current
+TAO_Export void operator<<= (CORBA::Any &,
+ CORBA_Current_ptr);
+TAO_Export CORBA::Boolean operator>>= (const CORBA::Any &,
+ CORBA_Current *&);
#ifndef __ACE_INLINE__
+ CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA_Current_ptr );
+ CORBA::Boolean operator>> (TAO_InputCDR &, CORBA_Current_ptr &);
#endif /* __ACE_INLINE__ */
-
#if defined (__ACE_INLINE__)
#include "tao/CurrentC.i"
#endif /* defined INLINE */
@@ -170,4 +181,4 @@ private:
#endif /* _MSC_VER */
#include "ace/post.h"
-#endif /* ifndef */
+#endif /* TAO_IDL_CURRENTC_H */