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

◆ Pointer

Definition at line 44 of file Notes.h.

Member Enumeration Documentation

◆ Method

Enumerator
mhReplace 
mhAppend 

Definition at line 47 of file Notes.h.

Constructor & Destructor Documentation

◆ Value() [1/2]

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.

Referenced by Note::addValue().

◆ ~Value()

Note::Value::~Value ( )

Definition at line 28 of file Notes.cc.

References aclDestroyAclList(), aclList, and valueFormat.

◆ Value() [2/2]

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

Member Function Documentation

◆ format()

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 Format::Format::assemble(), SBuf::assign(), MemBuf::content(), MemBuf::reset(), theFormattedValue, theValue, and valueFormat.

◆ method()

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

Definition at line 54 of file Notes.h.

References theMethod.

Referenced by Notes::parseKvPair().

◆ operator=()

Value& Note::Value::operator= ( const Value )
delete

◆ value()

const SBuf& Note::Value::value ( ) const
inline

Definition at line 55 of file Notes.h.

References theValue.

Referenced by NotePairs::hasPair(), Note::Note(), and NotePairs::NotePairs().

Friends And Related Function Documentation

◆ Note

friend class Note
friend

Definition at line 45 of file Notes.h.

Referenced by Notes::add(), and Note::Note().

Member Data Documentation

◆ aclList

ACLList* Note::Value::aclList

Definition at line 57 of file Notes.h.

Referenced by ~Value().

◆ theFormattedValue

SBuf Note::Value::theFormattedValue
private

Definition at line 67 of file Notes.h.

Referenced by format().

◆ theMethod

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

◆ theValue

SBuf Note::Value::theValue
private

Configured annotation value, possibly with macros.

Definition at line 65 of file Notes.h.

Referenced by format(), Value(), value(), and NotePairs::Entry::value().

◆ valueFormat

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

Definition at line 64 of file Notes.h.

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


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors