summaryrefslogtreecommitdiff
path: root/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp')
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp
new file mode 100644
index 00000000000..c42738744bc
--- /dev/null
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp
@@ -0,0 +1,41 @@
+#ifndef guard_bounded_string_sequence_hpp
+#define guard_bounded_string_sequence_hpp
+/**
+ * @file
+ *
+ * @brief Implement bounded sequences for strings.
+ *
+ * $Id$
+ *
+ * @author Carlos O'Ryan
+ */
+
+#include "bounded_basic_string_sequence.hpp"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace TAO
+{
+
+template<CORBA::ULong MAX>
+class bounded_string_sequence
+ : public details::bounded_basic_string_sequence<char,MAX>
+{
+public:
+ inline bounded_string_sequence()
+ : details::bounded_basic_string_sequence<char,MAX>()
+ {}
+ inline bounded_string_sequence(
+ CORBA::ULong length,
+ char * * data,
+ CORBA::Boolean release = false)
+ : details::bounded_basic_string_sequence<char,MAX>(
+ length, data, release)
+ {}
+};
+
+
+} // namespace TAO
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+#endif // guard_bounded_string_sequence_hpp