Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / TAO_IDL / be_include / be_string.h
blob0535b0596a4d17a830f3b2336272c0788286c914
2 //=============================================================================
3 /**
4 * @file be_string.h
6 * Extension of class AST_String that provides additional means for C++
7 * mapping.
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #ifndef BE_STRING_H
15 #define BE_STRING_H
17 #include "be_type.h"
18 #include "ast_string.h"
20 class AST_Expression;
21 class be_visitor;
23 class be_string : public virtual AST_String,
24 public virtual be_type
26 public:
27 be_string (AST_Decl::NodeType nt,
28 UTL_ScopedName *n,
29 AST_Expression *v,
30 long width);
32 // Overridden from class be_type.
33 virtual void gen_member_ostream_operator (TAO_OutStream *os,
34 const char *instance_name,
35 bool use_underscore,
36 bool accessor = false);
38 // Visiting.
39 virtual int accept (be_visitor *visitor);
41 // Cleanup.
42 virtual void destroy ();
44 protected:
45 /// Overridden method to compute typecode name.
46 virtual void compute_tc_name ();
49 #endif