ReactOS 0.4.16-dev-401-g45b008d
|
#include <CJournaledTestList.h>
Public Member Functions | |
CJournaledTestList (CTest *Test) | |
~CJournaledTestList () | |
CTestInfo * | GetNextTestInfo () |
virtual CTestInfo * | GetNextTestInfo ()=0 |
Private Member Functions | |
void | LoadJournalFile () |
void | OpenJournal (DWORD DesiredAccess, bool CreateNew=false) |
void | SerializeIntoJournal (const string &String) |
void | SerializeIntoJournal (const wstring &String) |
void | UnserializeFromBuffer (char **Buffer, string &Output) |
void | UnserializeFromBuffer (char **Buffer, wstring &Output) |
void | UpdateJournal () |
void | WriteInitialJournalFile () |
Private Attributes | |
HANDLE | m_hJournal |
size_t | m_ListIterator |
vector< CTestInfo > | m_List |
wstring | m_JournalFile |
Additional Inherited Members | |
Protected Member Functions inherited from CTestList | |
CTestList (CTest *Test) | |
Protected Attributes inherited from CTestList | |
CTest * | m_Test |
Definition at line 8 of file CJournaledTestList.h.
CJournaledTestList::CJournaledTestList | ( | CTest * | Test | ) |
Constructs a CJournaledTestList object for an associated CTest-derived object.
Test | Pointer to a CTest-derived object, for which this test list shall serve. |
Definition at line 19 of file CJournaledTestList.cpp.
CJournaledTestList::~CJournaledTestList | ( | ) |
Destructs a CJournaledTestList object.
Definition at line 49 of file CJournaledTestList.cpp.
|
virtual |
Interface to other classes for receiving information about the next test to be run.
Implements CTestList.
Definition at line 276 of file CJournaledTestList.cpp.
|
private |
Loads the existing journal file and sets all members to the values saved in that file.
Definition at line 195 of file CJournaledTestList.cpp.
Referenced by CJournaledTestList().
Opens the journal file through the CreateFileW API using the m_hJournal handle.
DesiredAccess | dwDesiredAccess parameter passed to CreateFileW |
CreateNew | true if the journal file shall be created, false if an existing one shall be opened |
Definition at line 65 of file CJournaledTestList.cpp.
Referenced by LoadJournalFile(), UpdateJournal(), and WriteInitialJournalFile().
Serializes a std::string and writes it into the opened journal file.
String | The std::string to serialize |
Definition at line 90 of file CJournaledTestList.cpp.
Referenced by WriteInitialJournalFile().
Serializes a std::wstring and writes it into the opened journal file.
String | The std::wstring to serialize |
Definition at line 106 of file CJournaledTestList.cpp.
Unserializes the next std::string from the journal buffer. The passed buffer pointer will point at the next element afterwards.
Buffer | Pointer to a pointer to a char array containing the journal buffer |
Output | The std::string to unserialize the value into. |
Definition at line 124 of file CJournaledTestList.cpp.
Referenced by LoadJournalFile().
Unserializes the next std::wstring from the journal buffer. The passed buffer pointer will point at the next element afterwards.
Buffer | Pointer to a pointer to a char array containing the journal buffer |
Output | The std::wstring to unserialize the value into. |
Definition at line 141 of file CJournaledTestList.cpp.
|
private |
Writes the current m_ListIterator value into the journal.
Definition at line 252 of file CJournaledTestList.cpp.
Referenced by GetNextTestInfo().
|
private |
Gets all tests to be run and writes an initial journal file with this information.
Definition at line 151 of file CJournaledTestList.cpp.
Referenced by CJournaledTestList().
|
private |
Definition at line 11 of file CJournaledTestList.h.
Referenced by CJournaledTestList(), LoadJournalFile(), OpenJournal(), SerializeIntoJournal(), UpdateJournal(), WriteInitialJournalFile(), and ~CJournaledTestList().
|
private |
Definition at line 14 of file CJournaledTestList.h.
Referenced by CJournaledTestList(), GetNextTestInfo(), and OpenJournal().
Definition at line 13 of file CJournaledTestList.h.
Referenced by GetNextTestInfo(), LoadJournalFile(), and WriteInitialJournalFile().
|
private |
Definition at line 12 of file CJournaledTestList.h.
Referenced by GetNextTestInfo(), LoadJournalFile(), UpdateJournal(), and WriteInitialJournalFile().