cmake/Source/CTest/cmCTestCVS.h

56 lines
1.3 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 cmCTestCVS_h
#define cmCTestCVS_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include <iosfwd>
#include <map>
#include <string>
#include <vector>
2020-02-01 23:06:01 +01:00
#include "cmCTestVC.h"
2016-10-30 18:24:19 +01:00
class cmCTest;
class cmXMLWriter;
2009-10-04 10:30:41 +03:00
/** \class cmCTestCVS
* \brief Interaction with cvs command-line tool
*
*/
2016-07-09 11:21:54 +02:00
class cmCTestCVS : public cmCTestVC
2009-10-04 10:30:41 +03:00
{
public:
/** Construct with a CTest instance and update log stream. */
cmCTestCVS(cmCTest* ctest, std::ostream& log);
2018-01-26 17:06:56 +01:00
~cmCTestCVS() override;
2009-10-04 10:30:41 +03:00
private:
// Implement cmCTestVC internal API.
2018-01-26 17:06:56 +01:00
bool UpdateImpl() override;
bool WriteXMLUpdates(cmXMLWriter& xml) override;
2009-10-04 10:30:41 +03:00
// Update status for files in each directory.
2016-07-09 11:21:54 +02:00
class Directory : public std::map<std::string, PathStatus>
{
};
2015-04-27 22:25:09 +02:00
std::map<std::string, Directory> Dirs;
2009-10-04 10:30:41 +03:00
std::string ComputeBranchFlag(std::string const& dir);
void LoadRevisions(std::string const& file, const char* branchFlag,
std::vector<Revision>& revisions);
2015-08-17 11:37:30 +02:00
void WriteXMLDirectory(cmXMLWriter& xml, std::string const& path,
2009-10-04 10:30:41 +03:00
Directory const& dir);
// Parsing helper classes.
class LogParser;
2016-10-30 18:24:19 +01:00
class UpdateParser;
2009-10-04 10:30:41 +03:00
friend class LogParser;
2016-10-30 18:24:19 +01:00
friend class UpdateParser;
2009-10-04 10:30:41 +03:00
};
#endif