CCCC - C and C++ Code Counter  9999-git
CCCC Development version (post-3.1.4)
cccc_use.h
Go to the documentation of this file.
1 /*
2  CCCC - C and C++ Code Counter
3  Copyright (C) 1994-2005 Tim Littlefair (tim_littlefair@hotmail.com)
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 /*
20  * cccc_use.h
21  */
22 #ifndef CCCC_USE_H
23 #define CCCC_USE_H
24 
25 #include "cccc_rec.h"
26 
27 class CCCC_Module;
28 
29 static const string USEREL_PREFIX="CCCC_UseRel";
30 static const string USEEXT_PREFIX="CCCC_UseExt";
31 
33 
35 {
36  friend class CCCC_Project;
41 
42  public:
43  string name( int index ) const;
45  int FromFile(ifstream& infile);
46  int ToFile(ofstream& outfile);
47  void add_extent(CCCC_Item&);
48  int get_count(const char *count_tag);
49  UseType get_usetype() const { return ut; }
50  AugmentedBool is_visible () const { return visible; }
51  AugmentedBool is_concrete () const { return concrete; }
52  void generate_report(ostream& os);
55 };
56 
57 
58 #endif // CCCC_USE_H
59 
60 
61 
62 
63 
64 
AugmentedBool concrete
Definition: cccc_use.h:39
CCCC_Module * client_module_ptr(CCCC_Project *prj)
Definition: cccc_use.cc:169
CCCC_Project * prj
Definition: ccccmain.cc:49
UserelNameLevel
Definition: cccc_use.h:32
int get_count(const char *count_tag)
Definition: cccc_use.cc:122
static const string USEEXT_PREFIX
Definition: cccc_use.h:30
string name(int index) const
Definition: cccc_use.cc:40
UseType get_usetype() const
Definition: cccc_use.h:49
UseType
Definition: cccc_utl.h:65
void add_extent(CCCC_Item &)
Definition: cccc_use.cc:68
AugmentedBool is_concrete() const
Definition: cccc_use.h:51
int ToFile(ofstream &outfile)
Definition: cccc_use.cc:175
AugmentedBool is_visible() const
Definition: cccc_use.h:50
AugmentedBool visible
Definition: cccc_use.h:39
int FromFile(ifstream &infile)
Definition: cccc_use.cc:206
CCCC_Module * supplier_module_ptr(CCCC_Project *prj)
Definition: cccc_use.cc:164
AugmentedBool
Definition: cccc_utl.h:59
static const string USEREL_PREFIX
Definition: cccc_use.h:29
void generate_report(ostream &os)