aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-03-16 11:11:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-03-16 11:11:54 +0200
commit0d62005a3ff3b62d02c2eb3fd8644e0e19b202e8 (patch)
tree6cda0acea2d58cff3649af8a43e92fe024e4861d /examples
parentf793c66692ef717ffec874b5002a9d95aef3485e (diff)
Change sequence names to be consistent with documentation
The *_seq names were changed to *_sequence. Also, the generated code now uses sequence names from the xml_schema namespace instead of the implementation namespaces (xsde::cxx::hybrid).
Diffstat (limited to 'examples')
-rw-r--r--examples/cxx/hybrid/binary/custom/irawstream.cxx2
-rw-r--r--examples/cxx/hybrid/binary/custom/irawstream.hxx8
-rw-r--r--examples/cxx/hybrid/binary/custom/irawstream.txx8
-rw-r--r--examples/cxx/hybrid/binary/custom/orawstream.cxx4
-rw-r--r--examples/cxx/hybrid/binary/custom/orawstream.hxx8
-rw-r--r--examples/cxx/hybrid/binary/custom/orawstream.txx10
-rw-r--r--examples/cxx/hybrid/custom/wildcard/envelope.hxx2
7 files changed, 21 insertions, 21 deletions
diff --git a/examples/cxx/hybrid/binary/custom/irawstream.cxx b/examples/cxx/hybrid/binary/custom/irawstream.cxx
index d3d6aae..d4829ea 100644
--- a/examples/cxx/hybrid/binary/custom/irawstream.cxx
+++ b/examples/cxx/hybrid/binary/custom/irawstream.cxx
@@ -56,7 +56,7 @@ operator>> (buffer& x)
}
void
-operator>> (irawstream& s, str_seq& x)
+operator>> (irawstream& s, string_sequence& x)
{
size_t n;
irawstream::as_size as_size (n);
diff --git a/examples/cxx/hybrid/binary/custom/irawstream.hxx b/examples/cxx/hybrid/binary/custom/irawstream.hxx
index 94d2382..e4292a7 100644
--- a/examples/cxx/hybrid/binary/custom/irawstream.hxx
+++ b/examples/cxx/hybrid/binary/custom/irawstream.hxx
@@ -75,16 +75,16 @@ void operator>> (irawstream&, xml_schema::gyear&);
void operator>> (irawstream&, xml_schema::gyear_month&);
void operator>> (irawstream&, xml_schema::time&);
-void operator>> (irawstream&, xml_schema::str_seq&);
+void operator>> (irawstream&, xml_schema::string_sequence&);
template <typename T>
-void operator>> (irawstream&, xml_schema::pod_seq<T>&);
+void operator>> (irawstream&, xml_schema::pod_sequence<T>&);
template <typename T>
-void operator>> (irawstream&, xml_schema::fix_seq<T>&);
+void operator>> (irawstream&, xml_schema::fix_sequence<T>&);
template <typename T>
-void operator>> (irawstream&, xml_schema::var_seq<T>&);
+void operator>> (irawstream&, xml_schema::var_sequence<T>&);
#include "irawstream.ixx"
#include "irawstream.txx"
diff --git a/examples/cxx/hybrid/binary/custom/irawstream.txx b/examples/cxx/hybrid/binary/custom/irawstream.txx
index b1bf757..635f131 100644
--- a/examples/cxx/hybrid/binary/custom/irawstream.txx
+++ b/examples/cxx/hybrid/binary/custom/irawstream.txx
@@ -6,7 +6,7 @@
template <typename T>
void
-operator>> (irawstream& s, xml_schema::pod_seq<T>& x)
+operator>> (irawstream& s, xml_schema::pod_sequence<T>& x)
{
size_t n;
irawstream::as_size as_size (n);
@@ -21,7 +21,7 @@ operator>> (irawstream& s, xml_schema::pod_seq<T>& x)
template <typename T>
void
-operator>> (irawstream& s, xml_schema::fix_seq<T>& x)
+operator>> (irawstream& s, xml_schema::fix_sequence<T>& x)
{
size_t n;
irawstream::as_size as_size (n);
@@ -44,7 +44,7 @@ operator>> (irawstream& s, xml_schema::fix_seq<T>& x)
template <typename T>
void
-operator>> (irawstream& s, xml_schema::var_seq<T>& x)
+operator>> (irawstream& s, xml_schema::var_sequence<T>& x)
{
size_t n;
irawstream::as_size as_size (n);
@@ -59,7 +59,7 @@ operator>> (irawstream& s, xml_schema::var_seq<T>& x)
while (n--)
{
T* p = new T;
- typename xml_schema::var_seq<T>::guard g (p);
+ typename xml_schema::var_sequence<T>::guard g (p);
s >> *p;
g.release ();
x.push_back (p);
diff --git a/examples/cxx/hybrid/binary/custom/orawstream.cxx b/examples/cxx/hybrid/binary/custom/orawstream.cxx
index dc4b477..d3c7867 100644
--- a/examples/cxx/hybrid/binary/custom/orawstream.cxx
+++ b/examples/cxx/hybrid/binary/custom/orawstream.cxx
@@ -63,11 +63,11 @@ operator<< (const buffer& x)
}
void
-operator<< (orawstream& s, const str_seq& x)
+operator<< (orawstream& s, const string_sequence& x)
{
s << orawstream::as_size (x.size ());
- for (str_seq::const_iterator i = x.begin ();
+ for (string_sequence::const_iterator i = x.begin ();
i != x.end (); ++i)
{
s << *i;
diff --git a/examples/cxx/hybrid/binary/custom/orawstream.hxx b/examples/cxx/hybrid/binary/custom/orawstream.hxx
index 9689e61..04b5ace 100644
--- a/examples/cxx/hybrid/binary/custom/orawstream.hxx
+++ b/examples/cxx/hybrid/binary/custom/orawstream.hxx
@@ -74,16 +74,16 @@ void operator<< (orawstream&, const xml_schema::gyear&);
void operator<< (orawstream&, const xml_schema::gyear_month&);
void operator<< (orawstream&, const xml_schema::time&);
-void operator<< (orawstream&, const xml_schema::str_seq&);
+void operator<< (orawstream&, const xml_schema::string_sequence&);
template <typename T>
-void operator<< (orawstream&, const xml_schema::pod_seq<T>&);
+void operator<< (orawstream&, const xml_schema::pod_sequence<T>&);
template <typename T>
-void operator<< (orawstream&, const xml_schema::fix_seq<T>&);
+void operator<< (orawstream&, const xml_schema::fix_sequence<T>&);
template <typename T>
-void operator<< (orawstream&, const xml_schema::var_seq<T>&);
+void operator<< (orawstream&, const xml_schema::var_sequence<T>&);
#include "orawstream.ixx"
#include "orawstream.txx"
diff --git a/examples/cxx/hybrid/binary/custom/orawstream.txx b/examples/cxx/hybrid/binary/custom/orawstream.txx
index 46c5b71..cc95de9 100644
--- a/examples/cxx/hybrid/binary/custom/orawstream.txx
+++ b/examples/cxx/hybrid/binary/custom/orawstream.txx
@@ -6,7 +6,7 @@
template <typename T>
void
-operator<< (orawstream& s, const xml_schema::pod_seq<T>& x)
+operator<< (orawstream& s, const xml_schema::pod_sequence<T>& x)
{
size_t n = x.size ();
@@ -22,11 +22,11 @@ operator<< (orawstream& s, const xml_schema::pod_seq<T>& x)
template <typename T>
void
-operator<< (orawstream& s, const xml_schema::fix_seq<T>& x)
+operator<< (orawstream& s, const xml_schema::fix_sequence<T>& x)
{
s << orawstream::as_size (x.size ());
- for (typename xml_schema::fix_seq<T>::const_iterator i = x.begin ();
+ for (typename xml_schema::fix_sequence<T>::const_iterator i = x.begin ();
i != x.end (); ++i)
{
s << *i;
@@ -35,11 +35,11 @@ operator<< (orawstream& s, const xml_schema::fix_seq<T>& x)
template <typename T>
void
-operator<< (orawstream& s, const xml_schema::var_seq<T>& x)
+operator<< (orawstream& s, const xml_schema::var_sequence<T>& x)
{
s << orawstream::as_size (x.size ());
- for (typename xml_schema::var_seq<T>::const_iterator i = x.begin ();
+ for (typename xml_schema::var_sequence<T>::const_iterator i = x.begin ();
i != x.end (); ++i)
{
s << *i;
diff --git a/examples/cxx/hybrid/custom/wildcard/envelope.hxx b/examples/cxx/hybrid/custom/wildcard/envelope.hxx
index 56abedd..de2ba0a 100644
--- a/examples/cxx/hybrid/custom/wildcard/envelope.hxx
+++ b/examples/cxx/hybrid/custom/wildcard/envelope.hxx
@@ -15,7 +15,7 @@ namespace email
class envelope: public envelope_base
{
public:
- typedef xml_schema::var_seq<email::body> body_sequence;
+ typedef xml_schema::var_sequence<email::body> body_sequence;
typedef body_sequence::iterator body_iterator;
typedef body_sequence::const_iterator body_const_iterator;