source: XIOS/dev/dev_rv/src4/xmlio/main_server.cpp @ 2338

Last change on this file since 2338 was 258, checked in by hozdoba, 13 years ago
File size: 1.8 KB
Line 
1/* ************************************************************************** *
2 *      Copyright © IPSL/LSCE, XMLIOServer, Avril 2010 - Octobre 2011         *
3 * ************************************************************************** */
4/**
5 * \file    main_server.cpp
6 * \brief   Programme principal du projet.
7 * \author  Hervé Ozdoba
8 * \version 0.4
9 * \date    1er Juin 2011
10 *
11 * Ce fichier contient le point d'entrée du programme permettant
12 * de lancer le serveur d'Entrée/Sortie parallÚle.
13 */
14
15// XMLIOServer headers
16#include "xmlioserver_spl.hpp"
17
18#include "mpi_interface.hpp"
19//~ #include "onetcdf4.hpp"
20//~ #include "onetcdf4_impl.hpp"
21#include "array_util.hpp"
22#include "array_util_impl.hpp"
23
24namespace xios = xmlioserver;
25//~ using namespace xios::data;
26//~ using namespace xios::io;
27//~ using namespace xios::tree;
28//~ using namespace xios::xml;
29using namespace xios::comm;
30//~ using namespace xios::func;
31
32#include <boost/xpressive/xpressive.hpp>
33
34// Point d'entrée du programme serveur principal.
35int main (int argc, char ** argv, char ** XIOS_UNUSED (env))
36{
37   try
38   {
39      CMPIManager::Initialise(&argc, &argv);
40      {
41          std::string hello( "1d 12mo 13mi" );
42
43          boost::xpressive::sregex rex = boost::xpressive::sregex::compile( "(\\d+)([ymodhis]+)" );
44         
45          boost::xpressive::sregex_iterator cur( hello.begin(), hello.end(), rex );
46          boost::xpressive::sregex_iterator end;
47
48          for( ; cur != end; ++cur )
49          {
50             boost::xpressive::smatch const &what = *cur;
51              std::cout << what[0] << '\n';
52          }
53      }
54      CMPIManager::Finalize();
55   }
56   catch (xios::CException & _exception)
57   {
58      std::cerr << _exception.getMessage() << std::endl;
59      return (-1);
60   }
61   return (0);
62}
63
64
Note: See TracBrowser for help on using the repository browser.