Changeset 343 for trunk/lib/Directory.cc


Ignore:
Timestamp:
May 19, 2007, 3:58:19 PM (14 years ago)
Author:
Peter Johansson
Message:

refs #169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r313 r343  
    5454    : Node(level,path,output)
    5555  {
     56    output_dir_=local_path();
     57    if (!output_dir_.empty())
     58      output_dir_+="/";
     59
    5660    using namespace std;
    5761    DIR* directory=opendir(path.c_str());    // C API from dirent.h
     
    106110  }
    107111
     112
     113  std::string Directory::node_type(void) const
     114  {
     115    return std::string("file");
     116  }
     117
     118
     119  std::string Directory::output_path(void) const
     120  {
     121    return output_dir()+"index.html";
     122  }
     123
    108124  const Stats& Directory::parse(const bool verbose)
    109125  {
     
    114130        stats_ += (*i)->parse(verbose);
    115131    return stats_;
    116   }
    117 
    118 
    119   const std::string Directory::node_type(void) const
    120   {
    121     return std::string("directory");
    122132  }
    123133
Note: See TracChangeset for help on using the changeset viewer.