Changeset 1008


Ignore:
Timestamp:
Jan 3, 2010, 7:36:08 PM (12 years ago)
Author:
Peter Johansson
Message:

refs #405. support for fomrat none which is not really a format but images will be ignored.

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Configuration.cc

    r1003 r1008  
    1919  along with svndigest. If not, see <http://www.gnu.org/licenses/>.
    2020*/
     21
     22#include <config.h>
    2123
    2224#include "Configuration.h"
     
    448450
    449451    dictionary_ = VectorPair(1, std::make_pair("*.in", "$1"));
    450     image_format_ = "png";
     452    image_format_ = "none";
    451453    image_anchor_format_ = "png";
    452454  }
  • trunk/lib/Stats.cc

    r1007 r1008  
    364364                          const std::string& linetype) const
    365365  {
     366    if (Configuration::instance().image_format()=="none")
     367      return filename;
    366368    assert(total_stats().size());
    367369    Graph gp(filename+"."+Configuration::instance().image_format(),
     
    433435  void Stats::plot_summary(const std::string& filename) const
    434436  {
     437    if (Configuration::instance().image_format()=="none")
     438      return;
    435439    Graph gp(filename+"."+Configuration::instance().image_format(),
    436440             Configuration::instance().image_format());
  • trunk/lib/html_utility.cc

    r1007 r1008  
    7373    else if (format=="png")
    7474      os << "<img src='" << name << ".png' alt='[plot]'/>";
     75    else if (format=="none")
     76      os << "<!-- no images -->";
    7577    else {
    7678      assert(false);
Note: See TracChangeset for help on using the changeset viewer.