Classes | Namespaces | Typedefs | Functions

Any.h File Reference

#include "tao/AnyTypeCode/TAO_AnyTypeCode_Export.h"
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/Pseudo_VarOut_T.h"
#include "tao/Arg_Traits_T.h"
#include "tao/Object.h"
#include "ace/CDR_Stream.h"
#include "tao/AnyTypeCode/Any.inl"
Include dependency graph for Any.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CORBA::Any
 Generic container for IDL types. More...
struct  CORBA::Any::to_object
 These are not in ACE. More...
struct  CORBA::Any::to_abstract_base
struct  CORBA::Any::to_value
class  CORBA::Any_var
 Provide for automatic storage deallocation on going out of scope. More...
class  CORBA::Any_out
 CORBA::Any_out. More...

Namespaces

namespace  TAO
 

Define symbolic names for the ORB collocation strategies.


namespace  CORBA
 

FUZZ: disable check_for_include/.


Typedefs

typedef Any * CORBA::Any_ptr
typedef TypeCode * CORBA::TypeCode_ptr
typedef AbstractBase * CORBA::AbstractBase_ptr

Functions

TAO_AnyTypeCode_Export
CORBA::Boolean 
operator<< (TAO_OutputCDR &, const CORBA::Any &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>> (TAO_InputCDR &, CORBA::Any &)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::Short)
 Typesafe insertion.
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::UShort)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::Long)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::ULong)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::LongLong)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::ULongLong)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::Float)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::Double)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::LongDouble)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, const CORBA::Any &)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::Any *)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, const char *)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, const CORBA::WChar *)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::TypeCode_ptr)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::TypeCode_ptr *)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, const CORBA::Object_ptr)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::Object_ptr *)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, const std::string &)
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, std::string *)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::Short &)
 Typesafe extraction.
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::UShort &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::Long &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::ULong &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::LongLong &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::ULongLong &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::Float &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::Double &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::LongDouble &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, const CORBA::Any *&)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, CORBA::TypeCode_ptr &)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, const CORBA::Char *&)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, const CORBA::WChar *&)
TAO_AnyTypeCode_Export
CORBA::Boolean 
operator>>= (const CORBA::Any &, std::string &)

Detailed Description

Id:
Any.h 90586 2010-06-14 13:48:01Z parsons
Author:
Carlos O'Ryan
Jeff Parsons

Definition in file Any.h.


Function Documentation

TAO_AnyTypeCode_Export CORBA::Boolean operator<< ( TAO_OutputCDR ,
const CORBA::Any  
)

Definition at line 253 of file Any.cpp.

{
  TAO::Any_Impl *impl = any.impl ();

  if (impl != 0)
    {
      return impl->marshal (cdr);
    }

  return (cdr << CORBA::_tc_null);
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::UShort   
)

Definition at line 378 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::ULongLong   
)

Definition at line 402 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::TypeCode_ptr   
)

Definition at line 452 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::TypeCode_ptr  
)

Definition at line 460 of file Any.cpp.

{
  TAO::Any_Impl_T<CORBA::TypeCode>::insert (
      any,
      CORBA::TypeCode::_tao_any_destructor,
      CORBA::_tc_TypeCode,
      *tc
    );
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::Float   
)

Definition at line 408 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
const CORBA::Object_ptr   
)

Definition at line 472 of file Any.cpp.

{
  CORBA::Object_ptr dup = CORBA::Object::_duplicate (obj);
  any <<= &dup;
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::Object_ptr  
)

Definition at line 480 of file Any.cpp.

{
  TAO::Any_Impl_T<CORBA::Object>::insert (any,
                                          CORBA::Object::_tao_any_destructor,
                                          CORBA::_tc_Object,
                                          *objptr);
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::Long   
)

Definition at line 384 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::Double   
)

Definition at line 414 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
const std::string &   
)

Definition at line 520 of file Any.cpp.

{
  any <<= str.c_str ();
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
std::string *   
)

Definition at line 526 of file Any.cpp.

{
  // TODO
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::LongDouble   
)

Definition at line 420 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::Short   
)

Typesafe insertion.

Definition at line 372 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::ULong   
)

Definition at line 390 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
const CORBA::Any  
)

Definition at line 427 of file Any.cpp.

{
  if (0 == &a) // Trying to de-reference NULL Any
    any <<= static_cast<CORBA::Any *>( 0 ); // Use non-copying insertion of a NULL
  else
    TAO::Any_Dual_Impl_T<CORBA::Any>::insert_copy (
        any,
        CORBA::Any::_tao_any_destructor,
        CORBA::_tc_any,
        a
      );
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::Any  
)

Definition at line 442 of file Any.cpp.

{
  TAO::Any_Dual_Impl_T<CORBA::Any>::insert (any,
                                            CORBA::Any::_tao_any_destructor,
                                            CORBA::_tc_any,
                                            a);
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
CORBA::LongLong   
)

Definition at line 396 of file Any.cpp.

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
const char *   
)

Definition at line 492 of file Any.cpp.

{
  TAO::Any_Special_Impl_T<
      char,
      CORBA::Any::from_string,
      CORBA::Any::to_string
    >::insert (any,
               TAO::Any_Impl::_tao_any_string_destructor,
               CORBA::_tc_string,
               CORBA::string_dup (s),
               0);
}

TAO_AnyTypeCode_Export void operator<<= ( CORBA::Any ,
const CORBA::WChar  
)

Definition at line 506 of file Any.cpp.

{
  TAO::Any_Special_Impl_T<
      CORBA::WChar,
      CORBA::Any::from_wstring,
      CORBA::Any::to_wstring
    >::insert (any,
               TAO::Any_Impl::_tao_any_wstring_destructor,
               CORBA::_tc_wstring,
               CORBA::wstring_dup (ws),
               0);
}

TAO_AnyTypeCode_Export CORBA::Boolean operator>> ( TAO_InputCDR ,
CORBA::Any  
)

Definition at line 266 of file Any.cpp.

{
  CORBA::TypeCode_var tc;

  if ((cdr >> tc.out ()) == 0)
    {
      return false;
    }

  try
    {
      TAO::Unknown_IDL_Type *impl = 0;
      ACE_NEW_RETURN (impl,
                      TAO::Unknown_IDL_Type (tc.in ()),
                      false);

      any.replace (impl);
      impl->_tao_decode (cdr);
    }
  catch (const ::CORBA::Exception&)
    {
      return false;
    }

  return true;
}

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::TypeCode_ptr  
)

Definition at line 726 of file Any.cpp.

{
  return TAO::Any_Impl_T<CORBA::TypeCode>::extract (
      any,
      CORBA::TypeCode::_tao_any_destructor,
      CORBA::_tc_TypeCode,
      tc
    );
}

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::Double  
)

Definition at line 668 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::Short  
)

Typesafe extraction.

Definition at line 612 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::UShort  
)

Definition at line 618 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::LongLong  
)

Definition at line 642 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::ULongLong  
)

Definition at line 651 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
const CORBA::Any *&   
)

Definition at line 685 of file Any.cpp.

{
  return TAO::Any_Dual_Impl_T<CORBA::Any>::extract (
      any,
      CORBA::Any::_tao_any_destructor,
      CORBA::_tc_any,
      a
    );
}

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::LongDouble  
)

Definition at line 676 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
const CORBA::Char *&   
)

Definition at line 696 of file Any.cpp.

{
  return
    TAO::Any_Special_Impl_T<
        char,
        CORBA::Any::from_string,
        CORBA::Any::to_string
      >::extract (any,
                  TAO::Any_Impl::_tao_any_string_destructor,
                  CORBA::_tc_string,
                  s,
                  0);
}

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::Float  
)

Definition at line 660 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::ULong  
)

Definition at line 634 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
CORBA::Long  
)

Definition at line 626 of file Any.cpp.

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
std::string &   
)

Definition at line 737 of file Any.cpp.

{
  const char *buf = 0;
  CORBA::Boolean flag = any >>= buf;
  str.assign (buf);
  ACE::strdelete (const_cast <char *> (buf));
  return flag;
}

TAO_AnyTypeCode_Export CORBA::Boolean operator>>= ( const CORBA::Any ,
const CORBA::WChar *&   
)

Definition at line 711 of file Any.cpp.

{
  return
    TAO::Any_Special_Impl_T<
        CORBA::WChar,
        CORBA::Any::from_wstring,
        CORBA::Any::to_wstring
      >::extract (any,
                  TAO::Any_Impl::_tao_any_wstring_destructor,
                  CORBA::_tc_wstring,
                  ws,
                  0);
}

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines