37 string count_tag_str=count_tag;
39 if(count_tag_str==
"WMC1")
43 else if(count_tag_str==
"WMCv")
77 while(extent_ptr!=NULL)
110 namestr.append(
"<NULL>::");
118 namestr.append(
"::");
142 cerr <<
"unexpected name level" << endl;
145 return namestr.c_str();
151 enum MemberFromFileStatuses { MEMBER_RECORD_NO_PARENT_FOUND=3 };
157 string line_keyword_dummy;
163 next_line.
Extract(line_keyword_dummy) &&
164 next_line.
Extract(parent_name) &&
193 string parent_key_dummy, member_name_dummy,
194 member_type_dummy, param_list_dummy;
197 next_line.
Extract(line_keyword_dummy) &&
198 next_line.
Extract(parent_key_dummy) &&
199 next_line.
Extract(member_name_dummy) &&
200 next_line.
Extract(member_type_dummy) &&
201 next_line.
Extract(param_list_dummy) &&
209 if(found_eptr!=new_extent)
211 cerr <<
"Failed to add extent for member "
222 retval=MEMBER_RECORD_NO_PARENT_FOUND;
239 cerr <<
"Ignoring member extent on line " <<
ifstr_line << endl;
CCCC_Table< CCCC_Module > module_table
Visibility get_visibility()
int get_count(const char *count_tag)
virtual string key() const
CCCC_Table< CCCC_Member > member_table
bool Insert(const string &s)
int FromFile(ifstream &infile)
virtual int get_count(const char *count_tag)
CCCC_Project * current_loading_project
int ToFile(ofstream &outfile)
int GetFromItem(CCCC_Item &item)
static const string MEMBER_PREFIX
T * find_or_insert(T *new_item_ptr)
bool FromFile(ifstream &ifstr)
Extent_Table extent_table
int AddToItem(CCCC_Item &item)
string name(int name_level) const
string name(int index) const
bool PeekAtNextLinePrefix(ifstream &ifstr, string pfx)
static const string MEMEXT_PREFIX
bool ToFile(ofstream &ofstr)