[Saga-devel] saga SVN commit 3311: /trunk/examples/misc/
amerzky at cct.lsu.edu
amerzky at cct.lsu.edu
Sat Jan 17 04:59:34 CST 2009
User: amerzky
Date: 2009/01/17 04:59 AM
Added:
/trunk/examples/misc/
misc.cpp
Log:
another_test
File Changes:
Directory: /trunk/examples/misc/
================================
File [added]: misc.cpp
Delta lines: +30 -0
===================================================================
--- trunk/examples/misc/misc.cpp 2009-01-16 16:22:49 UTC (rev 3310)
+++ trunk/examples/misc/misc.cpp 2009-01-17 10:59:24 UTC (rev 3311)
@@ -0,0 +1,30 @@
+// Copyright (c) 2005-2007 Andre Merzky <andre at merzky.net>
+//
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE file or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#include <saga/saga.hpp>
+#include <saga/saga/adaptors/utils/utils.hpp>
+
+///////////////////////////////////////////////////////////////////////////////
+int main (int argc, char* argv[])
+{
+ try
+ {
+ std::vector <std::string> names = saga::adaptors::utils::get_localhosts ();
+ for ( int i = 0; i < names.size (); i++ )
+ {
+ std::cout << names[i] << std::endl;
+ }
+
+ std::cout << std::endl << saga::adaptors::utils::get_localhost () << std::endl;
+ }
+ catch ( saga::exception const & e )
+ {
+ std::cerr << e.what ();
+ }
+
+ return 0;
+}
+
More information about the saga-devel
mailing list