Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.cpp

    r49e1ae r6adb96  
    44 *
    55 */
    6 
    7 #include <cstring>
    86
    97#include "atom.hpp"
     
    6159  delete(start);
    6260};
     61
     62
     63// getter and setter
     64const std::string molecule::getName(){
     65  return std::string(name);
     66}
     67
     68void molecule::setName(const std::string _name){
     69  START_OBSERVER;
     70  strncpy(name,_name.c_str(),MAXSTRINGSIZE);
     71  FINISH_OBSERVER;
     72}
    6373
    6474
     
    589599  else
    590600    molname = filename; // contains no slashes
    591   const char *endname = strchr(molname, '.');
     601  char *endname = strchr(molname, '.');
    592602  if ((endname == NULL) || (endname < molname))
    593603    length = strlen(molname);
     
    10831093  }
    10841094};
     1095
     1096void molecule::flipActiveFlag(){
     1097  ActiveFlag = !ActiveFlag;
     1098}
Note: See TracChangeset for help on using the changeset viewer.