c++/EEDB/MetadataSet.cpp
/*
EEDB::MetadataSet::convert_bad_symbols {
  my $self = shift;
  //since Symbol is a special subclass of Metadata and uses the same
  //instance variables, I can just recast if there is a problem
  
  foreach my $mdata (@{$self->metadata_list}) {
    my $value = $mdata->data;
    if (($mdata->class eq "Symbol") and (($value =~ /\s/) or (length($value)>120))) {
      //if has whitespace or it is too long then this is Metadata
      bless $mdata, "EEDB::Metadata";
      $mdata->primary_id(undef);
      $mdata->database(undef);
    }
  }
  return $self;
}
*/
:MetadataSet::convert_bad_symbols {
my $self = shift;
since Symbol is a special subclass of Metadata and uses the same
instance variables, I can just recast if there is a problem


: MetadataSet :: convert_bad_symbols { my $self = shift ; since Symbol is a special subclass of Metadata and uses the same instance variables I can just recast if there is a problem
void EEDB::MetadataSet::extract_keywords() {
  for(unsigned int i=0; i<_metadata.size(); i++) {
    EEDB::Metadata *mdata = _metadata[i];
    if(mdata->type() == "configXML") { continue; }
    if(mdata->classname() == EEDB::Metadata::class_name) {
      mdata->extract_keywords(this);
    }
  }
  remove_duplicates();
}
void EEDB :: MetadataSet :: extract_keywords ( ) { for ( unsigned int i = 0 ; i < _metadata . size ( ) ; i ++ ) { EEDB :: Metadata * mdata = _metadata [ i ] ; if ( mdata -> type ( ) == " " ) { continue ; } if ( mdata -> classname ( ) == EEDB :: Metadata :: class_name ) { mdata -> extract_keywords ( this ) ; } } remove_duplicates ( ) ; }
EEDB::MetadataSet::convert_bad_symbols {
my $self = shift;
since Symbol is a special subclass of Metadata and uses the same
instance variables, I can just recast if there is a problem
EEDB :: MetadataSet :: convert_bad_symbols { my $self = shift ; since Symbol is a special subclass of Metadata and uses the same instance variables I can just recast if there is a problem