#include <VarState.h>

Inheritance diagram for ESIVariableUserAgent:
Collaboration diagram for ESIVariableUserAgent:

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

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()

ESIVariableUserAgent::~ESIVariableUserAgent ( )
override

Definition at line 291 of file VarState.cc.

References browserversion, and safe_free.

◆ ESIVariableUserAgent()

Member Function Documentation

◆ browserVersion()

char const * ESIVariableUserAgent::browserVersion ( ) const
inlineprivate

Definition at line 163 of file VarState.h.

References browserversion.

Referenced by eval().

◆ eval()

void ESIVariableUserAgent::eval ( ESIVarState state,
char const *  subref,
char const *  found_default 
) const
overridevirtual

◆ getProductVersion()

char * ESIVariableUserAgent::getProductVersion ( char const *  s)
private

Definition at line 149 of file VarState.cc.

References xstrdup, and xstrndup().

Referenced by ESIVariableUserAgent().

◆ identifyOs()

ESIVariableUserAgent::esiUserOs_t ESIVariableUserAgent::identifyOs ( char const *  s) const
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

esiBrowser_t ESIVariableUserAgent::browser
private

Definition at line 167 of file VarState.h.

Referenced by ESIVariableUserAgent(), and eval().

◆ browserversion

char* ESIVariableUserAgent::browserversion
private

Definition at line 168 of file VarState.h.

Referenced by ESIVariableUserAgent(), ~ESIVariableUserAgent(), and browserVersion().

◆ esiUserOs

char const * ESIVariableUserAgent::esiUserOs
staticprivate
Initial value:
= {
"WIN",
"MAC",
"UNIX",
"OTHER"
}

Definition at line 155 of file VarState.h.

Referenced by eval().

◆ UserOs

esiUserOs_t ESIVariableUserAgent::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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors