Changeset 91 for trunk/lib/Node.h


Ignore:
Timestamp:
Mar 23, 2006, 11:56:17 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixes #4, #19, #32, #34: Started to implement subversion API usage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.h

    r84 r91  
    2929#include <ostream>
    3030#include <sstream>
     31#include <stdexcept>
    3132#include <string>
    3233
    3334namespace theplu{
    3435namespace svnstat{
     36
     37  ///
     38  /// If something goes wrong in the use of the Node or its derived
     39  /// classes, a NodeException is thrown.
     40  ///
     41  struct NodeException : public std::runtime_error
     42  { inline NodeException(const std::string& msg) : runtime_error(msg) {} };
    3543
    3644  ///
     
    4048  {
    4149  public:
     50
     51    ///
     52    /// @brief Constructor
     53    ///
     54    //    Node(void) : path_("JARI_trixar"), stats_("JARI_trixar") { };
     55
    4256    ///
    4357    /// @brief Constructor
     
    7387    virtual const Stats& parse(const bool verbose=false)=0;
    7488
     89    inline const std::string& path(void) const { return path_; }
     90
    7591    ///
    7692    /// Function printing HTML in current working directory
    7793    ///
    7894    virtual void print(const bool verbose=false) const=0;
    79 
    80     ///
    81     ///
    82     ///
    83     inline virtual void purge(const bool verbose=false)
    84     { /* Nothing to be done */ };
    85 
    86     ///
    87     /// Check if the node is under subversion control. This is done by
    88     /// checking the return status of 'svn proplist <Node>.
    89     ///
    90     /// @return True if subversion controlled, false otherwise.
    91     ///
    92     bool subversion_controlled(void) const;
    9395
    9496  protected:
Note: See TracChangeset for help on using the changeset viewer.