/* -*- c++ -*- */
//=============================================================================
/**
 *  @file    ami4ccm_rh_ex_idl.h
 *
 *  $Id: ami4ccm_rh_ex_idl.h 91742 2010-09-13 18:23:17Z johnnyw $
 *
 *  Concrete visitor for the AMI4CCM Interface node.
 *  This one provides code generation for interfaces in the executor IDL.
 *
 *
 *  @author Jeff Parsons
 */
//=============================================================================

#ifndef _AMI4CCM_RH_EX_IDL_H_
#define _AMI4CCM_RH_EX_IDL_H_

/**
 * @class be_visitor_ami4ccm_rh_ex_idl
 *
 * @brief be_visitor_ami4ccm_rh_ex_idl
 *
 * This is a concrete visitor to generate the reply handler
 * interface IDL in the local executor mapping IDL file.
 */
class be_visitor_ami4ccm_rh_ex_idl : public be_visitor_scope
{
public:
  be_visitor_ami4ccm_rh_ex_idl (be_visitor_context *ctx);

  ~be_visitor_ami4ccm_rh_ex_idl (void);

  virtual int visit_interface (be_interface *node);
  virtual int visit_operation (be_operation *node);
  virtual int visit_attribute (be_attribute *node);
  virtual int visit_argument (be_argument *node);
  virtual int visit_string (be_string *node);
  virtual int visit_sequence (be_sequence *node);

  virtual int pre_process (be_decl *node);

private:
  void gen_attr_rh_ops (bool is_set_op,
                        be_attribute *node);

private:
  TAO_OutStream &os_;
  bool seen_in_or_inout_arg_;
};

#endif /* _AMI4CCM_RH_EX_IDL_H_ */
