TokenTableEntry.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_FORMAT_TOKENTABLEENTRY_H
10 #define SQUID_SRC_FORMAT_TOKENTABLEENTRY_H
11 
12 #include "format/ByteCode.h"
13 
14 /*
15  * Squid configuration allows users to define custom formats in
16  * several components.
17  * - logging
18  * - external ACL input
19  * - deny page URL
20  *
21  * These enumerations and classes define the API for parsing of
22  * format directives to define these patterns. Along with output
23  * functionality to produce formatted buffers.
24  */
25 
26 namespace Format
27 {
28 
31 {
32 public:
34  TokenTableEntry(const char *aTag, const ByteCode_t &aType) : configTag(aTag), tokenType(aType), options(0) {}
35  // nothing to destruct configTag is pointer to global const string
38 
41  const char *configTag;
42 
45 
47  uint32_t options;
48 
49 private:
50  TokenTableEntry &operator =(const TokenTableEntry&); // not implemented
51 };
52 
53 } // namespace Format
54 
55 #endif /* SQUID_SRC_FORMAT_TOKENTABLEENTRY_H */
56 
uint32_t options
32-bit mask? of options affecting the output display of this token
ByteCode_t tokenType
the internal byte code representatio of this token
ByteCode_t
Definition: ByteCode.h:30
One entry in a table of format tokens.
TokenTableEntry(const char *aTag, const ByteCode_t &aType)
TokenTableEntry & operator=(const TokenTableEntry &)
TokenTableEntry(const TokenTableEntry &t)
@ LFT_NONE
Definition: ByteCode.h:31

 

Introduction

Documentation

Support

Miscellaneous