request_info_cs.cpp

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 86 行

CPP
86
字号
//
// request_info_cs.cpp,v 1.6 2002/07/01 13:49:18 parsons Exp
//

// ============================================================================
//
// = LIBRARY
//    TAO IDL
//
// = FILENAME
//    request_info_cs.cpp
//
// = DESCRIPTION
//    Visitor that generates the constructor memberlist in Request_Info class for interceptors
//
// = AUTHOR
//    Kirthika Parameswaran  <kirthika@cs.wustl.edu>
//
// ============================================================================

ACE_RCSID (be_visitor_argument, 
           request_info_cs, 
           "request_info_cs.cpp,v 1.6 2002/07/01 13:49:18 parsons Exp")


// ************************************************************
// be_visitor_args_request_info_cs for parameter list in method declarations and
// definitions
// ************************************************************

be_visitor_args_request_info_cs::be_visitor_args_request_info_cs (
    be_visitor_context *ctx
  )
  : be_visitor_args (ctx)
{
}

be_visitor_args_request_info_cs::~be_visitor_args_request_info_cs (void)
{
}

int be_visitor_args_request_info_cs::visit_argument (be_argument *node)
{
  TAO_OutStream *os = this->ctx_->stream ();
  this->ctx_->node (node);

  // Retrieve the type.
  be_type *bt = be_type::narrow_from_decl (node->field_type ());

  if (!bt)
    {
      ACE_ERROR_RETURN ((LM_ERROR,
                         "be_visitor_args_request_info_cs::"
                         "visit_argument - "
                         "Bad argument type\n"),
                        -1);
    }

  switch (this->ctx_->state ())
    {
    case TAO_CodeGen::TAO_ARGUMENT_INTERCEPTORS_ARGLIST_CS:
      {
        // Generate the memberlist definition for the constructor.
        *os << "    " << node->local_name ()
            << "_ " << "(" << node->local_name () << ")";
        break;
      }
    case TAO_CodeGen::TAO_ARGUMENT_INTERCEPTORS_INFO_ARGLIST_CS:
      {
        // Generate the arglist for object instantiation.
        *os << node->local_name ();
        break;
      }
    default:
      {
        ACE_ERROR_RETURN ((LM_ERROR,
                           "(%N:%l) be_visitor_interceptors_request_info_cs::"
                           "post_process - "
                           "Bad context\n"),
                          -1);
      }
    }

  return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?