Enhancement - annotation substitution

- Annotations are now modifiable using the /from/to/ modification
  command.
This commit is contained in:
Paul Beckingham
2009-04-12 00:56:58 -04:00
parent daea320564
commit a6b45af0a2
6 changed files with 38 additions and 2 deletions

View File

@@ -254,11 +254,17 @@ void T::setSubstitution (const std::string& from, const std::string& to)
}
////////////////////////////////////////////////////////////////////////////////
void T::getAnnotations (std::map <time_t, std::string>& all)
void T::getAnnotations (std::map <time_t, std::string>& all) const
{
all = mAnnotations;
}
////////////////////////////////////////////////////////////////////////////////
void T::setAnnotations (const std::map <time_t, std::string>& all)
{
mAnnotations = all;
}
////////////////////////////////////////////////////////////////////////////////
void T::addAnnotation (const std::string& description)
{