Stores a value for the note. More...

#include <Notes.h>

Inheritance diagram for Note::Value:
Collaboration diagram for Note::Value:

Public Types

enum  Method {
  mhReplace,
  mhAppend
}
 
typedef RefCount< ValuePointer
 

Public Member Functions

 Value (const char *aVal, const bool quoted, const char *descr, const Method method=mhReplace)
 
 ~Value ()
 
 Value (const Value &)=delete
 
Valueoperator= (const Value &)=delete
 
Method method () const
 
const SBufvalue () const
 

Public Attributes

ACLListaclList
 The access list used to determine if this value is valid for a request. More...
 

Private Member Functions

const SBufformat (const AccessLogEntryPointer &al)
 

Private Attributes

Format::FormatvalueFormat
 Compiled annotation value format. More...
 
SBuf theValue
 
SBuf theFormattedValue
 The expanded value produced by format(), empty for non-quoted values. More...
 
Method theMethod
 

Friends

class Note
 

Detailed Description

Definition at line 41 of file Notes.h.

Member Typedef Documentation

Definition at line 44 of file Notes.h.

Member Enumeration Documentation

Enumerator
mhReplace 
mhAppend 

Definition at line 47 of file Notes.h.

Constructor & Destructor Documentation

Note::Value::Value ( const char *  aVal,
const bool  quoted,
const char *  descr,
const Method  method = mhReplace 
)

Definition at line 34 of file Notes.cc.

References SBuf::c_str(), Format::Format::parse(), SBuf::Printf(), TexcHere, theValue, and valueFormat.

Note::Value::~Value ( )

Definition at line 28 of file Notes.cc.

References aclDestroyAclList(), aclList, and valueFormat.

Note::Value::Value ( const Value )
delete

Member Function Documentation

const SBuf & Note::Value::format ( const AccessLogEntryPointer al)
private
Returns
the formatted value with expanded logformat macros (quoted values).
the original value (non-quoted values).

Definition at line 49 of file Notes.cc.

References MemBuf::content(), and MemBuf::reset().

Method Note::Value::method ( ) const
inline

Definition at line 54 of file Notes.h.

References theMethod.

Value& Note::Value::operator= ( const Value )
delete
const SBuf& Note::Value::value ( ) const
inline

Definition at line 55 of file Notes.h.

References theValue.

Friends And Related Function Documentation

friend class Note
friend

Definition at line 45 of file Notes.h.

Member Data Documentation

ACLList* Note::Value::aclList

Definition at line 57 of file Notes.h.

Referenced by ~Value().

SBuf Note::Value::theFormattedValue
private

Definition at line 67 of file Notes.h.

Method Note::Value::theMethod
private

Specifies how theValue will be applied to the existing annotation with the same key: it either replaces the existing value or is appended to the list of existing values.

Definition at line 71 of file Notes.h.

Referenced by method().

SBuf Note::Value::theValue
private

Configured annotation value, possibly with macros.

Definition at line 65 of file Notes.h.

Referenced by Value(), and value().

Format::Format* Note::Value::valueFormat
private

Definition at line 64 of file Notes.h.

Referenced by Value(), and ~Value().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors