diff options
Diffstat (limited to 'include/file.h')
-rw-r--r-- | include/file.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/file.h b/include/file.h index 093431e..6e24516 100644 --- a/include/file.h +++ b/include/file.h @@ -38,6 +38,18 @@ public: File(const char *name) : File(name, ::strlen(name)) {} /** + * Alternative constructor with a string object + * @param name the filename + */ + File(const std::string &name) : File(name.c_str(), name.size()) {} + + /** + * Alternative constructor with a Value object + * @param name the filename + */ + File(const Value &value) : File(value.stringValue()) {} + + /** * Destructor */ virtual ~File(); |