diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/tfstats/eventlist.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/tfstats/eventlist.h')
| -rw-r--r-- | utils/tfstats/eventlist.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/utils/tfstats/eventlist.h b/utils/tfstats/eventlist.h new file mode 100644 index 0000000..031f9d6 --- /dev/null +++ b/utils/tfstats/eventlist.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Interface of CEventList +// +// $Workfile: $ +// $Date: $ +// +//------------------------------------------------------------------------------------------------------ +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// +#ifndef EVENTLIST_H +#define EVENTLIST_H +#ifdef WIN32 +#pragma once +#endif +#pragma warning(disable :4786) + +#include <list> +#include <map> +#include "LogEvent.h" +#include "util.h" + + +typedef std::list<const CLogEvent*> event_list; +typedef std::list<const CLogEvent*>::iterator CEventListIterator; + + +using namespace std; + +#include <cstring> +#include <string> + +//------------------------------------------------------------------------------------------------------ +// Purpose: CEventList is just a thin wrapper around a list of CLogEvent objects +// It also provides a factory method to read and return a CEventList from a +// log file +//------------------------------------------------------------------------------------------------------ +class CEventList +{ +public: + static CEventList* readEventList(const char* filename); + void insert(CEventListIterator cli, const CLogEvent* cle){m_List.insert(cli,cle);} + CEventListIterator begin(){return m_List.begin();} + CEventListIterator end(){return m_List.end();} + bool empty(){return m_List.empty();} + +private: + event_list m_List; + + + +}; + + + +#endif // EVENTLIST_H |