Nymph  v1.5.2
Flow-Based Data Processing Framework
KTCacheDirectory.cc
Go to the documentation of this file.
1 /*
2  * KTCacheDirectory.cc
3  *
4  * Created on: Dec 3, 2012
5  * Author: nsoblath
6  */
7 
8 #include "KTCacheDirectory.hh"
9 
10 #include "KTLogger.hh"
11 #include "param.hh"
12 
13 using std::string;
14 
15 namespace Nymph
16 {
17  KTLOGGER(dirlog, "KTCacheDirectory");
18 
19  KTCacheDirectory::KTCacheDirectory(const std::string& name) :
20  KTDirectory(),
21  KTSelfConfigurable(name)
22  {
23  }
24 
26  {
27  }
28 
29  bool KTCacheDirectory::Configure(const scarab::param_node& node)
30  {
31  return SetPath(node.get_value("path", fPath.string()));
32  }
33 
34 } /* namespace Nymph */
KTCacheDirectory(const std::string &name="cache-directory")
::Nymph::KTLogger dirlog("KTCacheDirectory")
bool SetPath(const std::string &strPath)
Definition: KTDirectory.cc:49
KTLOGGER(applog, "KTApplication")
boost::filesystem::path fPath
Definition: KTDirectory.hh:40
virtual bool Configure()
Configure by getting the top-level node from the parameter store.
Contains the logger class and macros, based on Kasper's KLogger class.