#include <VarState.h>
Public Member Functions | |
~ESIVariableUserAgent () override | |
ESIVariableUserAgent (ESIVarState &state) | |
void | eval (ESIVarState &state, char const *, char const *) const override |
Private Types | |
enum | esiUserOs_t { ESI_OS_WIN , ESI_OS_MAC , ESI_OS_UNIX , ESI_OS_OTHER } |
Private Member Functions | |
esiUserOs_t | identifyOs (char const *) const |
char const * | browserVersion () const |
char * | getProductVersion (char const *s) |
Private Attributes | |
esiUserOs_t | UserOs |
esiBrowser_t | browser |
char * | browserversion |
Static Private Attributes | |
static char const * | esiUserOs [] |
Detailed Description
Definition at line 146 of file VarState.h.
Member Enumeration Documentation
◆ esiUserOs_t
|
private |
Enumerator | |
---|---|
ESI_OS_WIN | |
ESI_OS_MAC | |
ESI_OS_UNIX | |
ESI_OS_OTHER |
Definition at line 156 of file VarState.h.
Constructor & Destructor Documentation
◆ ~ESIVariableUserAgent()
|
override |
Definition at line 291 of file VarState.cc.
References browserversion, and safe_free.
◆ ESIVariableUserAgent()
ESIVariableUserAgent::ESIVariableUserAgent | ( | ESIVarState & | state | ) |
Definition at line 296 of file VarState.cc.
References browser, browserversion, ESI_BROWSER_MOZILLA, ESI_BROWSER_MSIE, ESI_BROWSER_OTHER, ESI_OS_OTHER, getProductVersion(), HttpHeader::getStr(), HttpHeader::has(), ESIVarState::header(), identifyOs(), Http::USER_AGENT, UserOs, xstrdup, and xstrndup().
Member Function Documentation
◆ browserVersion()
|
inlineprivate |
◆ eval()
|
overridevirtual |
Reimplemented from ESIVarState::Variable.
Definition at line 475 of file VarState.cc.
References browser, browserVersion(), esiBrowsers, esiUserOs, ESIVarState::getOutput(), HttpHeader::getStr(), HttpHeader::has(), ESIVarState::header(), ESISegment::ListAppend(), Http::USER_AGENT, ESIVarState::useragentUsed(), and UserOs.
◆ getProductVersion()
|
private |
Definition at line 149 of file VarState.cc.
References xstrdup, and xstrndup().
Referenced by ESIVariableUserAgent().
◆ identifyOs()
|
private |
Definition at line 358 of file VarState.cc.
References ESI_OS_MAC, ESI_OS_OTHER, ESI_OS_UNIX, and ESI_OS_WIN.
Referenced by ESIVariableUserAgent().
Member Data Documentation
◆ browser
|
private |
Definition at line 167 of file VarState.h.
Referenced by ESIVariableUserAgent(), and eval().
◆ browserversion
|
private |
Definition at line 168 of file VarState.h.
Referenced by ESIVariableUserAgent(), ~ESIVariableUserAgent(), and browserVersion().
◆ esiUserOs
|
staticprivate |
Definition at line 155 of file VarState.h.
Referenced by eval().
◆ UserOs
|
private |
Definition at line 166 of file VarState.h.
Referenced by ESIVariableUserAgent(), and eval().
The documentation for this class was generated from the following files:
- src/esi/VarState.h
- src/esi/VarState.cc