cmake/Source/CTest/cmCTestBZR.h

55 lines
1.2 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2009-10-04 10:30:41 +03:00
#ifndef cmCTestBZR_h
#define cmCTestBZR_h
2016-10-30 18:24:19 +01:00
#include <cmConfigure.h>
2009-10-04 10:30:41 +03:00
#include "cmCTestGlobalVC.h"
2016-10-30 18:24:19 +01:00
#include <iosfwd>
#include <string>
class cmCTest;
2009-10-04 10:30:41 +03:00
/** \class cmCTestBZR
* \brief Interaction with bzr command-line tool
*
*/
2016-07-09 11:21:54 +02:00
class cmCTestBZR : public cmCTestGlobalVC
2009-10-04 10:30:41 +03:00
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestBZR(cmCTest* ctest, std::ostream& log);
2016-10-30 18:24:19 +01:00
~cmCTestBZR() CM_OVERRIDE;
2009-10-04 10:30:41 +03:00
private:
// Implement cmCTestVC internal API.
2016-10-30 18:24:19 +01:00
void NoteOldRevision() CM_OVERRIDE;
void NoteNewRevision() CM_OVERRIDE;
bool UpdateImpl() CM_OVERRIDE;
2009-10-04 10:30:41 +03:00
// URL of repository directory checked out in the working tree.
std::string URL;
std::string LoadInfo();
2016-10-30 18:24:19 +01:00
void LoadModifications() CM_OVERRIDE;
void LoadRevisions() CM_OVERRIDE;
2009-10-04 10:30:41 +03:00
// Parsing helper classes.
class InfoParser;
class LogParser;
2016-10-30 18:24:19 +01:00
class RevnoParser;
2009-10-04 10:30:41 +03:00
class StatusParser;
2016-10-30 18:24:19 +01:00
class UpdateParser;
2009-10-04 10:30:41 +03:00
friend class InfoParser;
friend class LogParser;
2016-10-30 18:24:19 +01:00
friend class RevnoParser;
2009-10-04 10:30:41 +03:00
friend class UpdateParser;
friend class StatusParser;
};
#endif