]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/format/TokenTableEntry.h
88bc3d0d434ca464375352a1bee07cc33318ff97
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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.
9 #ifndef _SQUID_FORMAT_TOKENTABLEENTRY_H
10 #define _SQUID_FORMAT_TOKENTABLEENTRY_H
12 #include "format/ByteCode.h"
15 * Squid configuration allows users to define custom formats in
18 * - external ACL input
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.
29 /// One entry in a table of format tokens.
33 TokenTableEntry() : configTag(NULL
), tokenType(LFT_NONE
), options(0) {}
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
37 TokenTableEntry(const TokenTableEntry
& t
) : configTag(t
.configTag
), tokenType(t
.tokenType
), options(t
.options
) {}
39 /// the config file ASCII representation for this token
40 /// just the base tag bytes, excluding any option syntax bytes
41 const char *configTag
;
43 /// the internal byte code representatio of this token
46 /// 32-bit mask? of options affecting the output display of this token
50 TokenTableEntry
&operator =(const TokenTableEntry
&); // not implemented
55 #endif /* _SQUID_FORMAT_TOKENTABLEENTRY_H */