Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

ParsePairs.cpp

Go to the documentation of this file.
00001 // $Id: ParsePairs.cpp,v 1.3 2007/11/15 14:01:06 marcocle Exp $
00002 // ============================================================================
00003 // CVS tag $Name:  $, version $Revision: 1.3 $ 
00004 // ============================================================================
00005 // Include files
00006 // ============================================================================
00007 // Local
00008 // ============================================================================
00009 #include "GaudiKernel/Parsers.icpp"
00010 // ============================================================================
00027 // ============================================================================
00028 namespace Gaudi
00029 { 
00030   namespace Parsers
00031   {    
00032     // ========================================================================
00033     // pair< TYPE1 , TYPE2 > 
00034     // ========================================================================
00035     StatusCode parse ( pair<double,double>& result , const string& input )
00036     {
00037       return parse
00038         ( createIterator(input), 
00039           IteratorT(),
00040           PairGrammar < RealGrammar<double> , RealGrammar <double> >()
00041           [var(result)=arg1],
00042           SkipperGrammar()).full;
00043     }
00044     // ===========================================================================
00045     StatusCode parse ( pair<int,int>& result        , const string& input )
00046     {
00047       return parse
00048         ( createIterator(input), 
00049           IteratorT(),
00050           PairGrammar < IntGrammar<int> , IntGrammar <int> >()[var(result)=arg1],
00051           SkipperGrammar()).full;
00052     }
00053     // ========================================================================
00054   } // end of namespace Parsers
00055 } // end of namespace Gaudi
00056 // ============================================================================
00057 // The END 
00058 // ============================================================================
00059 
00060 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:24:56 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004