• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KHolidays Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kholidays
  • parsers
  • plan2
holidayscannerplan_p.h
1 /*
2  This file is part of the kholidays library.
3 
4  Copyright 2010 John Layt <john@layt.net>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KHOLIDAYS_HOLIDAYSCANNERPLAN_P_H
23 #define KHOLIDAYS_HOLIDAYSCANNERPLAN_P_H
24 
25 // Flex expects the signature of yylex to be defined in the macro YY_DECL, and
26 // the C++ parser expects it to be declared. We can factor both as follows.
27 
28 #ifndef YY_DECL
29 
30 #define YY_DECL \
31  KHolidays::HolidayParserPlan::token_type \
32  KHolidays::HolidayScannerPlan::lex( \
33  KHolidays::HolidayParserPlan::semantic_type* yylval, \
34  KHolidays::HolidayParserPlan::location_type* yylloc \
35  )
36 #endif
37 
38 #ifndef __FLEX_LEXER_H
39 #define yyFlexLexer HolidayScannerFlexLexer
40 #include "FlexLexer.h"
41 #undef yyFlexLexer
42 #endif
43 
44 #include "holidayparserplan.hpp"
45 
46 namespace KHolidays {
47 
63 class HolidayScannerPlan : public HolidayScannerFlexLexer
64 {
65 public:
66  HolidayScannerPlan( std::istream* arg_yyin = 0, std::ostream* arg_yyout = 0 );
67 
68  virtual ~HolidayScannerPlan();
69 
70  virtual HolidayParserPlan::token_type lex( HolidayParserPlan::semantic_type* yylval,
71  HolidayParserPlan::location_type* yylloc );
72 
73  void set_debug(bool b);
74 };
75 
76 } // namespace KHolidays
77 
78 #endif // KHOLIDAYS_HOLIDAYSCANNERPLAN_P_H
KHolidays::HolidayScannerPlan
HolidayScannerPlan implementation class.
Definition: holidayscannerplan_p.h:63
KHolidays::HolidayParserPlan::semantic_type
Symbol semantic values.
Definition: holidayparserplan.hpp:119
KHolidays::location
Abstract a location.
Definition: location.hh:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHolidays Library

Skip menu "KHolidays Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal