~ubuntu-branches/ubuntu/breezy/cmake/breezy

« back to all changes in this revision

Viewing changes to Source/cmDocumentation.h

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2004-08-12 09:21:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20040812092132-qus2c27xt84ypfx4
Tags: 2.0.3-1
* New upstream release
* finds QT's moc, gets bug closing syntax right (Closes: #250000)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   CMake - Cross-Platform Makefile Generator
4
4
  Module:    $RCSfile: cmDocumentation.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2003/08/06 18:49:21 $
7
 
  Version:   $Revision: 1.11 $
 
6
  Date:      $Date: 2004/04/14 18:25:43 $
 
7
  Version:   $Revision: 1.13 $
8
8
 
9
9
  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
10
10
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
28
28
  // High-level interface for standard documents:
29
29
  
30
30
  /** Types of help provided.  */
31
 
  enum Type { None, Usage, Full, HTML, Man, Copyright, Version };
 
31
  enum Type { None, Usage, Single, List, Full, HTML, Man, Copyright, Version };
32
32
  
33
33
  /**
34
34
   * Check command line arguments for documentation options.  Returns
47
47
  bool PrintRequestedDocumentation(std::ostream& os);
48
48
  
49
49
  /** Print help of the given type.  */
50
 
  void PrintDocumentation(Type ht, std::ostream& os);
 
50
  bool PrintDocumentation(Type ht, std::ostream& os);
51
51
  
52
52
  /** Set the program name for standard document generation.  */
53
53
  void SetName(const char* name);
121
121
  void PrintColumn(std::ostream& os, const char* text);
122
122
  void PrintHTMLEscapes(std::ostream& os, const char* text);
123
123
 
124
 
  void PrintCopyright(std::ostream& os);
125
 
  void PrintVersion(std::ostream& os);
126
 
  void PrintDocumentationUsage(std::ostream& os);
127
 
  void PrintDocumentationFull(std::ostream& os);
128
 
  void PrintDocumentationHTML(std::ostream& os);
129
 
  void PrintDocumentationMan(std::ostream& os);
 
124
  bool PrintCopyright(std::ostream& os);
 
125
  bool PrintVersion(std::ostream& os);
 
126
  bool PrintDocumentationList(std::ostream& os);
 
127
  bool PrintDocumentationSingle(std::ostream& os);
 
128
  bool PrintDocumentationUsage(std::ostream& os);
 
129
  bool PrintDocumentationFull(std::ostream& os);
 
130
  bool PrintDocumentationHTML(std::ostream& os);
 
131
  bool PrintDocumentationMan(std::ostream& os);
130
132
  void PrintDocumentationCommand(std::ostream& os,
131
133
                                 cmDocumentationEntry* entry);
132
134
  
139
141
                  const cmDocumentationEntry* footer,
140
142
                  std::vector<cmDocumentationEntry>&);
141
143
  const char* GetNameString();
 
144
  bool IsOption(const char* arg);
142
145
 
143
146
  std::string NameString;
144
147
  std::vector<cmDocumentationEntry> NameSection;
149
152
  std::vector<cmDocumentationEntry> GeneratorsSection;
150
153
  std::vector<cmDocumentationEntry> SeeAlsoSection;
151
154
  std::string SeeAlsoString;
152
 
  
 
155
  std::string SingleCommand;
 
156
 
153
157
  std::vector< const char* > Names;
154
158
  std::vector< const cmDocumentationEntry* > Sections;
155
159
  Form CurrentForm;