#include <artifact_impl.hpp>
Public Member Functions | |
| artifact_impl () | |
| Default constructor. | |
| artifact_impl (std::string const &name) | |
| Constructor with an artifact name. | |
| ~artifact_impl () | |
| Destructor. | |
| void | add_ref () |
| Increment the reference count. | |
| void | delete_ref () |
| std::string const & | name () const |
| Return the artifact name. | |
| std::time_t | mod_time () const |
| Return the modification time. | |
| std::string | expand (std::string str) const |
| void | build () |
| "Build" the artifact. | |
| std::time_t | get_mod_time () |
| void | store_variable (std::string const &name, std::string const &value) |
Definition at line 15 of file artifact_impl.hpp.
| artifact_impl::artifact_impl | ( | ) |
| void artifact_impl::delete_ref | ( | ) |
Decrement the reference count. When the count reaches zero, destroy this object.
Definition at line 25 of file artifact_impl.cpp.
Referenced by artifact::operator=(), and artifact::~artifact().
| std::string artifact_impl::expand | ( | std::string | str | ) | const |
Expand variable names in str. Each occurrence of is replaced by the value of the variable NAME in str. Look in the local variable map first, then in the global map.
| str | the string to expand |
Definition at line 44 of file artifact_impl.cpp.
References expand().
Referenced by artifact::expand().
| std::time_t artifact_impl::get_mod_time | ( | ) |
Return the modification time of the artifact. In real life, this would probably check the file's modification time.
Definition at line 53 of file artifact_impl.cpp.
Referenced by artifact::get_mod_time().
| void artifact_impl::store_variable | ( | std::string const & | name, | |
| std::string const & | value | |||
| ) |
Store a variable in the local map.
| name | the variable name | |
| value | the replacement value of the variable |
Definition at line 60 of file artifact_impl.cpp.
Referenced by artifact::store_variable().
1.5.3