1 //===-- ResourceVisitor.h ---------------------------------------*- C++-*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===---------------------------------------------------------------------===//
9 // This defines a base class visiting resource script resources.
11 //===---------------------------------------------------------------------===//
13 #ifndef LLVM_TOOLS_LLVMRC_RESOURCEVISITOR_H
14 #define LLVM_TOOLS_LLVMRC_RESOURCEVISITOR_H
16 #include "llvm/Support/Error.h"
25 class CharacteristicsStmt
;
28 class LanguageResource
;
34 virtual Error
visitNullResource(const RCResource
*) = 0;
35 virtual Error
visitAcceleratorsResource(const RCResource
*) = 0;
36 virtual Error
visitBitmapResource(const RCResource
*) = 0;
37 virtual Error
visitCursorResource(const RCResource
*) = 0;
38 virtual Error
visitDialogResource(const RCResource
*) = 0;
39 virtual Error
visitHTMLResource(const RCResource
*) = 0;
40 virtual Error
visitIconResource(const RCResource
*) = 0;
41 virtual Error
visitMenuResource(const RCResource
*) = 0;
42 virtual Error
visitStringTableResource(const RCResource
*) = 0;
43 virtual Error
visitUserDefinedResource(const RCResource
*) = 0;
44 virtual Error
visitVersionInfoResource(const RCResource
*) = 0;
46 virtual Error
visitCaptionStmt(const CaptionStmt
*) = 0;
47 virtual Error
visitClassStmt(const ClassStmt
*) = 0;
48 virtual Error
visitCharacteristicsStmt(const CharacteristicsStmt
*) = 0;
49 virtual Error
visitExStyleStmt(const ExStyleStmt
*) = 0;
50 virtual Error
visitFontStmt(const FontStmt
*) = 0;
51 virtual Error
visitLanguageStmt(const LanguageResource
*) = 0;
52 virtual Error
visitStyleStmt(const StyleStmt
*) = 0;
53 virtual Error
visitVersionStmt(const VersionStmt
*) = 0;