CMake/Source/CTest/cmCTestBZR.h

64 lines
1.6 KiB
C
Raw Normal View History

/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc.
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef cmCTestBZR_h
#define cmCTestBZR_h
#include <cmConfigure.h>
#include "cmCTestGlobalVC.h"
#include <iosfwd>
#include <string>
class cmCTest;
/** \class cmCTestBZR
* \brief Interaction with bzr command-line tool
*
*/
class cmCTestBZR : public cmCTestGlobalVC
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestBZR(cmCTest* ctest, std::ostream& log);
2016-06-27 22:25:27 +03:00
~cmCTestBZR() CM_OVERRIDE;
private:
// Implement cmCTestVC internal API.
2016-06-27 22:25:27 +03:00
void NoteOldRevision() CM_OVERRIDE;
void NoteNewRevision() CM_OVERRIDE;
bool UpdateImpl() CM_OVERRIDE;
// URL of repository directory checked out in the working tree.
std::string URL;
std::string LoadInfo();
2016-06-27 22:25:27 +03:00
void LoadModifications() CM_OVERRIDE;
void LoadRevisions() CM_OVERRIDE;
// Parsing helper classes.
class InfoParser;
class LogParser;
class RevnoParser;
class StatusParser;
class UpdateParser;
friend class InfoParser;
friend class LogParser;
friend class RevnoParser;
friend class UpdateParser;
friend class StatusParser;
};
#endif