-
…uble. A smart pointer is now used for the static memory allocation so that memory gets freed correctly before exit.
-
The new method using GRegistryPointer led to segmentation faults on some platforms. Probably not all platforms handle static variables in the same manner.
-
…or the GModelTemporalRegistry class. The smart pointer takes care of deleting the pointer upon exit of gammalib. Before there were remaining allocated memory zones due to the static pointers holding the registry information. Using smart pointer it is made sure that the memory is deallocated properly.
-
Add GChatter argument to print() method. The print() method now takes an argument of type GChatter to control the chattiness of the output in a homogenous manner. Pass NORMAL chatter level in __str__ method. Add chatter argument to print() methods. Use GLog::chatter() method to control the chattiness of the log stream operator. Add chatter() methods and provide member access through const references. Add chatter() methods, provide member access through const references, and declare one liners as inline methods. The chatter() methods control the new m_chatter attribute that is used to control the chattiness of the object's print() methods. name() and version() methods return const references. logFileOpen() method now sets the chattiness from the applications's chatter parameter, and name() and version() methods now return a const reference.
-
All registry classes are now based on the GRegistry interface. The ostream and GLog friend functions have been removed from the classes as they are now implement on the GRegistry level. The source code was checked to comply to the actual coding standards. The Doxygen documentation of the source code was improved.