Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_TYPECODE_BASE_ATTRIBUTES_H
00014 #define TAO_TYPECODE_BASE_ATTRIBUTES_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/config-all.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/Versioned_Namespace.h"
00025
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028 namespace TAO
00029 {
00030 namespace TypeCode
00031 {
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 template <typename STRING_TYPE>
00044 class Base_Attributes
00045 {
00046 public:
00047
00048
00049 Base_Attributes (char const * id,
00050 char const * name);
00051
00052
00053 Base_Attributes (char const * id);
00054
00055
00056 char const * id (void) const;
00057
00058
00059
00060 char const * name (void) const;
00061
00062
00063
00064
00065
00066
00067
00068 void name (char const * the_name);
00069
00070 private:
00071
00072
00073 STRING_TYPE const id_;
00074
00075
00076
00077 STRING_TYPE name_;
00078
00079 };
00080
00081 }
00082 }
00083
00084 TAO_END_VERSIONED_NAMESPACE_DECL
00085
00086 #ifdef __ACE_INLINE__
00087 # include "tao/AnyTypeCode/TypeCode_Base_Attributes.inl"
00088 #endif
00089
00090 #ifdef ACE_TEMPLATES_REQUIRE_SOURCE
00091 # include "tao/AnyTypeCode/TypeCode_Base_Attributes.cpp"
00092 #endif
00093
00094 #ifdef ACE_TEMPLATES_REQUIRE_PRAGMA
00095 # pragma implementation ("TypeCode_Base_Attributes.cpp")
00096 #endif
00097
00098
00099 #include "ace/post.h"
00100
00101 #endif