File: cccc_use.h

package info (click to toggle)
cccc 3.pre81-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,820 kB
  • ctags: 4,972
  • sloc: ansic: 33,244; cpp: 10,691; java: 618; makefile: 165; sh: 11
file content (46 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * cccc_use.h
 */
#ifndef CCCC_USE_H
#define CCCC_USE_H

#include "cccc_rec.h"

class CCCC_Module;

static const string USEREL_PREFIX="CCCC_UseRel";
static const string USEEXT_PREFIX="CCCC_UseExt";

enum UserelNameLevel { nlSUPPLIER=-1, nlCLIENT=-2, nlMEMBER=-3 };

class CCCC_UseRelationship : public CCCC_Record 
{
  friend class CCCC_Project;
  string supplier, client, member;
  UseType ut;
  AugmentedBool visible, concrete;
  CCCC_UseRelationship() { ut=utDONTKNOW; }

 public:
  string name( int index ) const;
  CCCC_UseRelationship(CCCC_Item& is);
  int FromFile(ifstream& infile);
  int ToFile(ofstream& outfile);
  void add_extent(CCCC_Item&);
  int get_count(const char *count_tag);
  UseType get_usetype() const { return ut; }
  AugmentedBool is_visible () const { return visible; }
  AugmentedBool is_concrete () const { return concrete; }
  void generate_report(ostream& os);
  CCCC_Module* supplier_module_ptr(CCCC_Project *prj);
  CCCC_Module* client_module_ptr(CCCC_Project *prj);
};


#endif // CCCC_USE_H