File: cccc_ext.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 (49 lines) | stat: -rw-r--r-- 898 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
47
48
49
/*
 * cccc_ext.h
 */
#ifndef CCCC_EXT_H
#define CCCC_EXT_H

#include <string>
using std::string;

#include "cccc_utl.h"

class CCCC_Item;

enum ExtentNameLevel { nlFILENAME=-1, nlLINENUMBER=-2, nlDESCRIPTION=-3};
class CCCC_Extent
{
  friend class CCCC_Record;
  friend class CCCC_Project;
  
  string filename;
  string linenumber;
  string description;
  string flags;
  string count_buffer;
  UseType ut;
  Visibility v;
  static unsigned int nextkey;
  unsigned int extkey;
 public:
  CCCC_Extent();
  CCCC_Extent(CCCC_Item& is);

  string name( int index ) const;
  string key() const; 
  int GetFromItem(CCCC_Item& item);
  int AddToItem(CCCC_Item& item);
  Visibility get_visibility() const { return v; }
  int get_count(const char *count_tag);
  UseType get_usetype() const { return ut; }
  const char* get_description() const { return description.c_str(); }
};

#endif // CCCC_EXT_H