* doc/examples/tuto3/println.cc,
* doc/examples/tuto4/site_set_create.cc:
Use doc::begin_output and doc::end_output instead of hand-made
delimiters.
---
milena/ChangeLog | 9 +++++++++
milena/doc/examples/tuto3/println.cc | 10 ++++++----
milena/doc/examples/tuto4/site_set_create.cc | 14 ++++++++------
3 files changed, 23 insertions(+), 10 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index a4d2bd9..f52482d 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,12 @@
+2010-03-18 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Prepare doc source files for the automation of output splitting.
+
+ * doc/examples/tuto3/println.cc,
+ * doc/examples/tuto4/site_set_create.cc:
+ Use doc::begin_output and doc::end_output instead of hand-made
+ delimiters.
+
2010-03-17 Roland Levillain <roland(a)lrde.epita.fr>
Have split_sample.sh announce the right number of output files.
diff --git a/milena/doc/examples/tuto3/println.cc b/milena/doc/examples/tuto3/println.cc
index 8ee60be..ca789db 100644
--- a/milena/doc/examples/tuto3/println.cc
+++ b/milena/doc/examples/tuto3/println.cc
@@ -5,29 +5,31 @@
#include <mln/debug/println.hh>
#include <mln/debug/println_with_border.hh>
+#include <doc/tools/sample_utils.hh>
+
int main()
{
using namespace mln;
using namespace mln::value;
{
- std::cout << "// \\{" << std::endl;
+ doc::begin_output();
// \{
image2d<int_u8> ima(5,5);
data::fill(ima, 2);
debug::println(ima);
// \}
- std::cout << "// \\}" << std::endl;
+ doc::end_output();
}
{
- std::cout << "// \\{" << std::endl;
+ doc::begin_output();
// \{
image2d<int_u8> ima(5,5);
data::fill(ima, 2);
border::fill(ima, 7);
debug::println_with_border(ima);
// \}
- std::cout << "// \\}" << std::endl;
+ doc::end_output();
}
}
diff --git a/milena/doc/examples/tuto4/site_set_create.cc
b/milena/doc/examples/tuto4/site_set_create.cc
index 8f0e5fe..d7cf355 100644
--- a/milena/doc/examples/tuto4/site_set_create.cc
+++ b/milena/doc/examples/tuto4/site_set_create.cc
@@ -2,6 +2,8 @@
#include <mln/core/site_set/p_array.hh>
#include <mln/make/box2d.hh>
+#include <doc/tools/sample_utils.hh>
+
int main()
{
using namespace mln;
@@ -10,14 +12,14 @@ int main()
box2d b(4,4);
// \}
- std::cout << "// \\{" << std::endl;
+ doc::begin_output();
// \{
mln_piter_(box2d) p(b);
for_all(p)
std::cout << p << ", ";
std::cout << std::endl;
// \}
- std::cout << "// \\}" << std::endl;
+ doc::end_output();
{
@@ -27,14 +29,14 @@ int main()
arr.append(point2d(1,2));
// \}
- std::cout << "// \\{" << std::endl;
+ doc::begin_output();
// \{
mln_piter_(p_array<point2d>) p(arr);
for_all(p)
std::cout << p << ", ";
std::cout << std::endl;
// \}
- std::cout << "// \\}" << std::endl;
+ doc::end_output();
}
{
@@ -42,11 +44,11 @@ int main()
box2d b = make::box2d(-2,-2, 2, 2);
// \}
- std::cout << "// \\{" << std::endl;
+ doc::begin_output();
mln_piter_(box2d) p(b);
for_all(p)
std::cout << p << ", ";
std::cout << std::endl;
- std::cout << "// \\}" << std::endl;
+ doc::end_output();
}
}
--
1.5.6.5