blob: 088be03fad3a3c8861a387d7e395c077b4c6b1c3 [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef ADC_ADOC_TOKINTPR_HXX
#define ADC_ADOC_TOKINTPR_HXX
// USED SERVICES
// BASE CLASSES
// COMPONENTS
// PARAMETERS
namespace adoc {
class Tok_at_std;
class Tok_at_base;
class Tok_at_exception;
class Tok_at_impl;
class Tok_at_key;
class Tok_at_param;
class Tok_at_see;
class Tok_at_template;
class Tok_at_interface;
class Tok_at_internal;
class Tok_at_obsolete;
class Tok_at_module;
class Tok_at_file;
class Tok_at_gloss;
class Tok_at_global;
class Tok_at_include;
class Tok_at_label;
class Tok_at_since;
class Tok_at_HTML; // Sets default to: Use HTML in DocuText
class Tok_at_NOHTML; // Sets default to: Don't use HTML in DocuText
class Tok_DocWord;
class Tok_LineStart;
class Tok_Whitespace;
class Tok_Eol;
class Tok_EoDocu;
#define DECL_TOK_HANDLER(token) \
virtual void Hdl_##token( \
const Tok_##token & i_rTok ) = 0
class TokenInterpreter
{
public:
virtual ~TokenInterpreter() {}
DECL_TOK_HANDLER(at_std);
DECL_TOK_HANDLER(at_base);
DECL_TOK_HANDLER(at_exception);
DECL_TOK_HANDLER(at_impl);
DECL_TOK_HANDLER(at_key);
DECL_TOK_HANDLER(at_param);
DECL_TOK_HANDLER(at_see);
DECL_TOK_HANDLER(at_template);
DECL_TOK_HANDLER(at_interface);
DECL_TOK_HANDLER(at_internal);
DECL_TOK_HANDLER(at_obsolete);
DECL_TOK_HANDLER(at_module);
DECL_TOK_HANDLER(at_file);
DECL_TOK_HANDLER(at_gloss);
DECL_TOK_HANDLER(at_global);
DECL_TOK_HANDLER(at_include);
DECL_TOK_HANDLER(at_label);
DECL_TOK_HANDLER(at_since);
DECL_TOK_HANDLER(at_HTML);
DECL_TOK_HANDLER(at_NOHTML);
DECL_TOK_HANDLER(DocWord);
DECL_TOK_HANDLER(Whitespace);
DECL_TOK_HANDLER(LineStart);
DECL_TOK_HANDLER(Eol);
DECL_TOK_HANDLER(EoDocu);
};
#undef DECL_TOK_HANDLER
// IMPLEMENTATION
} // namespace adoc
#endif