Changeset 74 for trunk/lib/Node.h


Ignore:
Timestamp:
Mar 7, 2006, 4:46:59 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Improved web presentation. Y axises normalized, ticket ticket:15 resolved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r72 r74  
    77
    88#include <ostream>
     9#include <sstream>
    910#include <string>
    10 #include <sstream>
    1111
    1212namespace theplu{
     
    2929    virtual inline ~Node(void) {};
    3030
     31    ///
     32    /// @return A properly formatted html link to this node.
     33    ///
     34    inline std::string html_link(void) const
     35    { return "<a href=\"" + output_name() + ".html\">" + name() + "</a>"; }
     36
     37    inline std::string html_tablerow(void) const
     38    {
     39      std::stringstream ss;
     40      ss << "<tr><td>" << html_link() << "</td><td align=right>" << stats_.rows()
     41         << "</td></tr>\n";
     42      return ss.str();
     43    }
     44
    3145    inline const std::string& output_name(void) const { return output_name_; }
    3246
     
    4155    virtual void print(const bool verbose=false) const=0;
    4256
    43     ///
    44     /// @return html link.
    45     ///
    46     std::string html_link(void) const;
    47  
    4857    ///
    4958    ///
Note: See TracChangeset for help on using the changeset viewer.