CCCC - C and C++ Code Counter
9999-git
CCCC Development version (post-3.1.4)
Main Page
Classes
Files
File List
File Members
cccc
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
30
enum
MemberNameLevel
{
nlMEMBER_NAME
=-1,
nlMEMBER_TYPE
=-2,
nlMEMBER_PARAMS
=-3 };
31
32
class
CCCC_Module
;
33
34
class
CCCC_Member
:
public
CCCC_Record
35
{
36
friend
class
CCCC_Project
;
37
friend
class
CCCC_Module
;
38
string
member_type
,
member_name
,
param_list
;
39
Visibility
visibility
;
40
CCCC_Module
*
parent
;
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);
49
Visibility
get_visibility
();
50
};
51
52
#endif // CCCC_MEM_H
53
54
55
56
57
58
CCCC_Member::get_visibility
Visibility get_visibility()
Definition:
cccc_mem.cc:245
CCCC_Member::get_count
int get_count(const char *count_tag)
Definition:
cccc_mem.cc:35
CCCC_Member::param_list
string param_list
Definition:
cccc_mem.h:38
CCCC_Member::member_type
string member_type
Definition:
cccc_mem.h:38
CCCC_Member::parent
CCCC_Module * parent
Definition:
cccc_mem.h:40
nlMEMBER_TYPE
Definition:
cccc_mem.h:30
CCCC_Project
Definition:
cccc_prj.h:45
CCCC_Member::visibility
Visibility visibility
Definition:
cccc_mem.h:39
CCCC_Item
Definition:
cccc_itm.h:15
CCCC_Member::FromFile
int FromFile(ifstream &infile)
Definition:
cccc_mem.cc:148
Visibility
Visibility
Definition:
cccc_utl.h:52
CCCC_Member::ToFile
int ToFile(ofstream &outfile)
Definition:
cccc_mem.cc:64
MEMBER_PREFIX
static const string MEMBER_PREFIX
Definition:
cccc_mem.h:27
CCCC_Member::generate_report
void generate_report(ostream &)
CCCC_Member::member_name
string member_name
Definition:
cccc_mem.h:38
CCCC_Member
Definition:
cccc_mem.h:34
CCCC_Member::CCCC_Member
CCCC_Member()
Definition:
cccc_mem.cc:29
CCCC_Member::name
string name(int index) const
Definition:
cccc_mem.cc:99
nlMEMBER_NAME
Definition:
cccc_mem.h:30
cccc_rec.h
nlMEMBER_PARAMS
Definition:
cccc_mem.h:30
MEMEXT_PREFIX
static const string MEMEXT_PREFIX
Definition:
cccc_mem.h:28
MemberNameLevel
MemberNameLevel
Definition:
cccc_mem.h:30
CCCC_Record
Definition:
cccc_rec.h:38
CCCC_Module
Definition:
cccc_mod.h:42
Generated on Sat Sep 19 2015 16:02:27 for CCCC - C and C++ Code Counter by
1.8.10