| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Classes | Public Member Functions | Public Attributes | Private Attributes

# Gaudi::Parsers::SkipperGrammar< Iterator > Class Template Reference

Skipping spaces and comments. More...

`#include <Grammar.h>`

Inheritance diagram for Gaudi::Parsers::SkipperGrammar< Iterator >:
[legend]
Collaboration diagram for Gaudi::Parsers::SkipperGrammar< Iterator >:
[legend]

List of all members.

## Classes
struct | definition
## Public Member Functions
| SkipperGrammar ()
| SkipperGrammar (const bool skipnewline=true)
| Constructor.
bool | skipnewline () const
| SkipperGrammar ()
## Public Attributes
qi::rule< Iterator > | comments
## Private Attributes
bool | m_skipnewline

## Detailed Description

### template<typename Iterator>
class Gaudi::Parsers::SkipperGrammar< Iterator >

Skipping spaces and comments.

Comments can be

- // ... - one line
- \/\* ... \*\/ - multiline

Author:
  Alexander MAZUROV Alexander.Mazurov@gmail.com
  Vanya BELYAEV ibelyaev@physics.syr.edu

Date:
  2006-05-14

Definition at line 36 of file Grammar.h.

## Constructor & Destructor Documentation

template<typename Iterator >

Gaudi::Parsers::SkipperGrammar< Iterator >::SkipperGrammar | ( | ) | `[inline]`

Definition at line 24 of file Grammar.h.

               :
    // ============================================================================

template<typename Iterator >

Gaudi::Parsers::SkipperGrammar< Iterator >::SkipperGrammar | ( | const bool | skipnewline = `true` ) | `[inline]`

Constructor.

Parameters:

  skipnewline | Skip new line symbols or not

Definition at line 312 of file Grammars.h.

            : m_skipnewline(skipnewline){}

template<typename Iterator >

Gaudi::Parsers::SkipperGrammar< Iterator >::SkipperGrammar | ( | ) | `[inline]`

Definition at line 78 of file GrammarsV2.h.

                             : SkipperGrammar::base_type(comments) {
                    comments = enc::space | rep::confix("/*", "*/")[*(qi::char_ - "*/")]
                          |
                          rep::confix("//", (sp::eol | sp::eoi))[*(qi::char_ - (sp::eol|sp::eoi))];
            }

## Member Function Documentation

template<typename Iterator >

bool Gaudi::Parsers::SkipperGrammar< Iterator >::skipnewline | ( | ) | const`[inline]`

Returns:
  true - skip new line symbols, false - not skip

Definition at line 316 of file Grammars.h.

    {return m_skipnewline;}

## Member Data Documentation

template<typename Iterator >

qi::rule< Iterator > Gaudi::Parsers::SkipperGrammar< Iterator >::comments

Definition at line 29 of file Grammar.h.

template<typename Iterator >

bool Gaudi::Parsers::SkipperGrammar< Iterator >::m_skipnewline`[private]`

Definition at line 344 of file Grammars.h.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiCoreSvc/src/JobOptionsSvc/Grammar.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiKernel/GaudiKernel/Grammars.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiKernel/GaudiKernel/GrammarsV2.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines