OpenMW
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
components
misc
messageformatparser.hpp
Go to the documentation of this file.
1
#ifndef OPENMW_COMPONENTS_MISC_MESSAGEFORMATPARSER_H
2
#define OPENMW_COMPONENTS_MISC_MESSAGEFORMATPARSER_H
3
4
#include <string>
5
6
namespace
Misc
7
{
8
class
MessageFormatParser
9
{
10
protected
:
11
enum
Placeholder
12
{
13
StringPlaceholder
,
14
IntegerPlaceholder
,
15
FloatPlaceholder
16
};
17
18
enum
Notation
19
{
20
FixedNotation
,
21
ScientificNotation
,
22
ShortestNotation
23
};
24
25
virtual
void
visitedPlaceholder
(
Placeholder
placeholder,
char
padding,
int
width,
int
precision,
Notation
notation) = 0;
26
virtual
void
visitedCharacter
(
char
c) = 0;
27
28
public
:
29
virtual
~MessageFormatParser
();
30
31
virtual
void
process
(
const
std::string&
message
);
32
};
33
}
34
35
#endif
Misc::MessageFormatParser::~MessageFormatParser
virtual ~MessageFormatParser()
Definition:
messageformatparser.cpp:5
Compiler::Generator::message
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition:
generator.cpp:537
Misc::MessageFormatParser::ScientificNotation
Definition:
messageformatparser.hpp:21
Misc::MessageFormatParser::Placeholder
Placeholder
Definition:
messageformatparser.hpp:11
Misc::MessageFormatParser::process
virtual void process(const std::string &message)
Definition:
messageformatparser.cpp:7
Misc::MessageFormatParser::StringPlaceholder
Definition:
messageformatparser.hpp:13
Misc::MessageFormatParser::FloatPlaceholder
Definition:
messageformatparser.hpp:15
Misc::MessageFormatParser::visitedPlaceholder
virtual void visitedPlaceholder(Placeholder placeholder, char padding, int width, int precision, Notation notation)=0
Misc::MessageFormatParser::visitedCharacter
virtual void visitedCharacter(char c)=0
Misc::MessageFormatParser
Definition:
messageformatparser.hpp:8
Misc::MessageFormatParser::IntegerPlaceholder
Definition:
messageformatparser.hpp:14
Misc::MessageFormatParser::ShortestNotation
Definition:
messageformatparser.hpp:22
Misc::MessageFormatParser::Notation
Notation
Definition:
messageformatparser.hpp:18
Misc::MessageFormatParser::FixedNotation
Definition:
messageformatparser.hpp:20
Generated on Sat Sep 29 2018 15:25:04 for OpenMW by
1.8.6