~ubuntu-branches/ubuntu/utopic/cccc/utopic

« back to all changes in this revision

Viewing changes to cccc/cccc_mem.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2003-08-23 04:34:05 UTC
  • Revision ID: james.westby@ubuntu.com-20030823043405-xnzd3mn3hwtvi6dr
Tags: upstream-3.pre81
ImportĀ upstreamĀ versionĀ 3.pre81

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * cccc_mem.h
 
3
 */
 
4
#ifndef CCCC_MEM_H
 
5
#define CCCC_MEM_H
 
6
 
 
7
#include "cccc_rec.h"
 
8
 
 
9
static const string MEMBER_PREFIX="CCCC_Member";
 
10
static const string MEMEXT_PREFIX="CCCC_MemExt";
 
11
 
 
12
enum MemberNameLevel { nlMEMBER_NAME=-1, nlMEMBER_TYPE=-2, nlMEMBER_PARAMS=-3 };
 
13
 
 
14
class CCCC_Member : public CCCC_Record 
 
15
{
 
16
  friend class CCCC_Project;
 
17
  friend class CCCC_Module;
 
18
  string member_type, member_name, param_list;
 
19
  Visibility visibility;
 
20
  CCCC_Module *parent;
 
21
  CCCC_Member(); 
 
22
 public:
 
23
  string name( int index ) const;
 
24
  CCCC_Member(CCCC_Item& member_data_line, CCCC_Module* parent_ptr=NULL);
 
25
  int FromFile(ifstream& infile);
 
26
  int ToFile(ofstream& outfile);
 
27
  void generate_report(ostream&); 
 
28
  int get_count(const char *count_tag);
 
29
  Visibility get_visibility();
 
30
};
 
31
 
 
32
#endif // CCCC_MEM_H
 
33
 
 
34
 
 
35
 
 
36
 
 
37
 
 
38