~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Source/CTest/cmCTestCVS.h

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*============================================================================
 
2
  CMake - Cross Platform Makefile Generator
 
3
  Copyright 2000-2009 Kitware, Inc.
 
4
 
 
5
  Distributed under the OSI-approved BSD License (the "License");
 
6
  see accompanying file Copyright.txt for details.
 
7
 
 
8
  This software is distributed WITHOUT ANY WARRANTY; without even the
 
9
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
10
  See the License for more information.
 
11
============================================================================*/
 
12
#ifndef cmCTestCVS_h
 
13
#define cmCTestCVS_h
 
14
 
 
15
#include "cmCTestVC.h"
 
16
 
 
17
/** \class cmCTestCVS
 
18
 * \brief Interaction with cvs command-line tool
 
19
 *
 
20
 */
 
21
class cmCTestCVS: public cmCTestVC
 
22
{
 
23
public:
 
24
  /** Construct with a CTest instance and update log stream.  */
 
25
  cmCTestCVS(cmCTest* ctest, std::ostream& log);
 
26
 
 
27
  virtual ~cmCTestCVS();
 
28
 
 
29
private:
 
30
  // Implement cmCTestVC internal API.
 
31
  virtual bool UpdateImpl();
 
32
  virtual bool WriteXMLUpdates(std::ostream& xml);
 
33
 
 
34
  // Update status for files in each directory.
 
35
  class Directory: public std::map<cmStdString, PathStatus> {};
 
36
  std::map<cmStdString, Directory> Dirs;
 
37
 
 
38
  std::string ComputeBranchFlag(std::string const& dir);
 
39
  void LoadRevisions(std::string const& file, const char* branchFlag,
 
40
                     std::vector<Revision>& revisions);
 
41
  void WriteXMLDirectory(std::ostream& xml, std::string const& path,
 
42
                         Directory const& dir);
 
43
 
 
44
  // Parsing helper classes.
 
45
  class UpdateParser;
 
46
  class LogParser;
 
47
  friend class UpdateParser;
 
48
  friend class LogParser;
 
49
};
 
50
 
 
51
#endif