From 8f615a50cc6736ce44b97f51d056311fa8e38c6c Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 28 Mar 2013 20:54:01 +0000 Subject: Move pwd out of common into files --- project2/common/variables/pwd.cpp | 20 -------------------- project2/files/functions/pwd.cpp | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 project2/common/variables/pwd.cpp create mode 100644 project2/files/functions/pwd.cpp diff --git a/project2/common/variables/pwd.cpp b/project2/common/variables/pwd.cpp deleted file mode 100644 index 8a80dd0..0000000 --- a/project2/common/variables/pwd.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include "../variables.h" -#include "../scriptLoader.h" -#include - -/// Variable implementation to access session contents -class Pwd : public VariableImplDyn { - public: - Pwd(ScriptNodePtr e) : - VariableImplDyn(e) - { - } - VariableType value() const - { - return boost::filesystem::current_path().string(); - } -}; -DECLARE_COMPONENT_LOADER("pwd", Pwd, VariableLoader); - - diff --git a/project2/files/functions/pwd.cpp b/project2/files/functions/pwd.cpp new file mode 100644 index 0000000..6915bb6 --- /dev/null +++ b/project2/files/functions/pwd.cpp @@ -0,0 +1,20 @@ +#include +#include +#include +#include + +/// Variable implementation to access session contents +class Pwd : public VariableImplDyn { + public: + Pwd(ScriptNodePtr e) : + VariableImplDyn(e) + { + } + VariableType value() const + { + return boost::filesystem::current_path().string(); + } +}; +DECLARE_COMPONENT_LOADER("pwd", Pwd, VariableLoader); + + -- cgit v1.2.3