CCCC - C and C++ Code Counter  9999-git
CCCC Development version (post-3.1.4)
cccc_ext.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_ext.h
21  */
22 #ifndef CCCC_EXT_H
23 #define CCCC_EXT_H
24 
25 #include <string>
26 using std::string;
27 
28 #include "cccc_utl.h"
29 
30 class CCCC_Item;
31 
34 {
35  friend class CCCC_Record;
36  friend class CCCC_Project;
37 
38  string filename;
39  string linenumber;
40  string description;
41  string flags;
42  string count_buffer;
45  static unsigned int nextkey;
46  unsigned int extkey;
47  public:
48  CCCC_Extent();
50 
51  string name( int index ) const;
52  string key() const;
53  int GetFromItem(CCCC_Item& item);
54  int AddToItem(CCCC_Item& item);
55  Visibility get_visibility() const { return v; }
56  int get_count(const char *count_tag);
57  UseType get_usetype() const { return ut; }
58  const char* get_description() const { return description.c_str(); }
59 };
60 
61 #endif // CCCC_EXT_H
62 
63 
64 
65 
66 
67 
string description
Definition: cccc_ext.h:40
static unsigned int nextkey
Definition: cccc_ext.h:45
string filename
Definition: cccc_ext.h:38
unsigned int extkey
Definition: cccc_ext.h:46
string key() const
Definition: cccc_ext.cc:145
string flags
Definition: cccc_ext.h:41
int get_count(const char *count_tag)
Definition: cccc_ext.cc:147
Visibility
Definition: cccc_utl.h:52
UseType
Definition: cccc_utl.h:65
ExtentNameLevel
Definition: cccc_ext.h:32
UseType get_usetype() const
Definition: cccc_ext.h:57
int GetFromItem(CCCC_Item &item)
Definition: cccc_ext.cc:84
const char * get_description() const
Definition: cccc_ext.h:58
string linenumber
Definition: cccc_ext.h:39
int AddToItem(CCCC_Item &item)
Definition: cccc_ext.cc:64
Visibility v
Definition: cccc_ext.h:44
Visibility get_visibility() const
Definition: cccc_ext.h:55
string count_buffer
Definition: cccc_ext.h:42
UseType ut
Definition: cccc_ext.h:43
string name(int index) const
Definition: cccc_ext.cc:107