source: CMT/v1r20p20090520/source/cmt_vcs.h @ 615

Last change on this file since 615 was 496, checked in by rybkin, 15 years ago

See C.L. 391

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1//-----------------------------------------------------------
2// Copyright Christian Arnault LAL-Orsay CNRS
3// arnault@lal.in2p3.fr
4// See the complete license in cmt_license.txt "http://www.cecill.info".
5//-----------------------------------------------------------
6
7#ifndef __cmt_vcs_h__
8#define __cmt_vcs_h__
9
10#include "cmt_system.h"
11
12class Vcs
13{
14 public:
15 
16/*   static void tags (const CmtSystem::cmt_string_vector& arguments); */
17/*   static void branches (const cmt_string& module); */
18/*   static void subpackages (const cmt_string& module); */
19/*   static void subprojects (const cmt_string& module); */
20  static void checkout (const CmtSystem::cmt_string_vector& arguments);
21
22  class Checkout
23  {
24  public:
25    cmt_string m_version_tag;
26    cmt_string m_checkout_dir;
27    cmt_string m_version_dir;
28    cmt_string m_offset;
29    CmtSystem::cmt_string_vector m_modules;
30    void print ()
31      {
32        cerr << "m_version_tag: " << m_version_tag << endl;
33        cerr << "m_checkout_dir: " << m_checkout_dir << endl;
34        cerr << "m_version_dir: " << m_version_dir << endl;
35        cerr << "m_offset: " << m_offset << endl;
36        for (int arg = 0; arg < m_modules.size (); arg++)
37          {
38            cerr << "m_modules[" << arg << "]: " << m_modules[arg] << endl;
39          }
40      }
41  };
42
43 private:
44
45  static void help ();
46  static void add_cmtpath (const cmt_string& dir);
47  static bool need_version_directory ();
48  static int parse_checkout (const CmtSystem::cmt_string_vector& arguments,
49                             Checkout& checkout, bool& config);
50};
51
52class Svn
53{
54 public:
55 
56  static void checkout (const Vcs::Checkout& checkout,
57                       bool config, bool with_version_directory);
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.