CCCC - C and C++ Code Counter  9999-git
CCCC Development version (post-3.1.4)
cccc_mem.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_mem.h
21  */
22 #ifndef CCCC_MEM_H
23 #define CCCC_MEM_H
24 
25 #include "cccc_rec.h"
26 
27 static const string MEMBER_PREFIX="CCCC_Member";
28 static const string MEMEXT_PREFIX="CCCC_MemExt";
29 
31 
32 class CCCC_Module;
33 
34 class CCCC_Member : public CCCC_Record
35 {
36  friend class CCCC_Project;
37  friend class CCCC_Module;
41  CCCC_Member();
42  public:
43  string name( int index ) const;
44  CCCC_Member(CCCC_Item& member_data_line, CCCC_Module* parent_ptr=NULL);
45  int FromFile(ifstream& infile);
46  int ToFile(ofstream& outfile);
47  void generate_report(ostream&);
48  int get_count(const char *count_tag);
50 };
51 
52 #endif // CCCC_MEM_H
53 
54 
55 
56 
57 
58 
Visibility get_visibility()
Definition: cccc_mem.cc:245
int get_count(const char *count_tag)
Definition: cccc_mem.cc:35
string param_list
Definition: cccc_mem.h:38
string member_type
Definition: cccc_mem.h:38
CCCC_Module * parent
Definition: cccc_mem.h:40
Visibility visibility
Definition: cccc_mem.h:39
int FromFile(ifstream &infile)
Definition: cccc_mem.cc:148
Visibility
Definition: cccc_utl.h:52
int ToFile(ofstream &outfile)
Definition: cccc_mem.cc:64
static const string MEMBER_PREFIX
Definition: cccc_mem.h:27
void generate_report(ostream &)
string member_name
Definition: cccc_mem.h:38
string name(int index) const
Definition: cccc_mem.cc:99
static const string MEMEXT_PREFIX
Definition: cccc_mem.h:28
MemberNameLevel
Definition: cccc_mem.h:30