summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp')
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp
new file mode 100644
index 00000000000..4bd4de11c67
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp
@@ -0,0 +1,22 @@
+// $Id$
+#ifndef PC_UPDATER_T_C
+#define PC_UPDATER_T_C
+#include "PC_Updater.h"
+#include "PC_Updater_T.h"
+
+ namespace PC_Updater_T
+ {
+ // Dumps a sequence
+ template <typename SEQUENCE>
+ void update_sequence (const SEQUENCE &seq, PC_Updater* updater)
+ {
+ CORBA::ULong size = seq.length ();
+
+ if (size != 0)
+ for (CORBA::ULong i = 0; i < size; ++i)
+ updater->update (seq[i]);
+ }
+
+ }
+
+#endif /* PC_Updater_C */