summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/file.h12
-rw-r--r--include/value.h2
2 files changed, 13 insertions, 1 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();
diff --git a/include/value.h b/include/value.h
index 9447fc8..363779d 100644
--- a/include/value.h
+++ b/include/value.h
@@ -405,7 +405,7 @@ public:
char *reserve(size_t size);
/**
- * Get access to the raw buffer for read operationrs.
+ * Get access to the raw buffer for read operations.
* @return const char *
*/
const char *rawValue() const;