#include <logfilestatistics.h>
Inheritance diagram for YStatisticEntry< T >:
Public Member Functions | |
YStatisticEntry () | |
YStatisticEntry (const T &t) | |
virtual bool | IsValid () const |
Returns true if the content is valid. | |
virtual void | Invalid () |
Set the content to invalid. | |
virtual void | Reset () |
Reset the content to its initial state. | |
const T & | SetContent (const T &t) |
Set a valid content. | |
const T & | GetContent () const |
Get a content. This function may only be called if the content is valid, see YStatisticEntry::IsValid(). | |
virtual QString | GetVisibleString () const |
Returns the visible string of the content. | |
virtual QString | GetKey () const |
Returns a string used to sorting more than one item of this type. | |
virtual const T & | operator= (const T &t) |
Protected Member Functions | |
virtual QString | _GetVisibleString () const=0 |
Returns the visible string of the content. | |
virtual QString | _GetKey () const |
Returns a string used to sorting more than one item of this type. | |
Private Attributes | |
bool | initvalid |
contains the state of the content during construction. Needed if Reset() is called. | |
T | initcontent |
contains the value given during construction. Needed if Reset() is called. | |
bool | valid |
Is this statistic entry set correctly ? | |
T | content |
content value, represents the current valid value (if valid=true) |
|
|
|
|
|
Returns a string used to sorting more than one item of this type.
Reimplemented in YYasaTimeStatisticEntry, YIntStatisticEntry, YPriorityStatisticEntry, YPercentStatisticEntry, and YVersionStatisticEntry. |
|
Returns the visible string of the content.
Implemented in YYasaTimeStatisticEntry, YBoolStatisticEntry, YStringStatisticEntry, YIntStatisticEntry, YPriorityStatisticEntry, YPercentStatisticEntry, and YVersionStatisticEntry. |
|
Get a content. This function may only be called if the content is valid, see YStatisticEntry::IsValid().
|
|
Returns a string used to sorting more than one item of this type.
Implements YStatisticBaseEntry. |
|
Returns the visible string of the content.
Implements YStatisticBaseEntry. |
|
Set the content to invalid.
Implements YStatisticBaseEntry. |
|
Returns true if the content is valid.
Implements YStatisticBaseEntry. |
|
|
|
Reset the content to its initial state.
Implements YStatisticBaseEntry. |
|
Set a valid content.
|
|
content value, represents the current valid value (if valid=true)
|
|
contains the value given during construction. Needed if Reset() is called.
|
|
contains the state of the content during construction. Needed if Reset() is called.
|
|
Is this statistic entry set correctly ?
|