diff options
Diffstat (limited to 'include/plist/Structure.h')
| -rw-r--r-- | include/plist/Structure.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/plist/Structure.h b/include/plist/Structure.h index ace8b5c..b7fbdb5 100644 --- a/include/plist/Structure.h +++ b/include/plist/Structure.h @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PLIST__STRUCTURE_H -#define PLIST__STRUCTURE_H +#ifndef PLIST_STRUCTURE_H +#define PLIST_STRUCTURE_H #include <plist/Node.h> #include <string> @@ -34,15 +34,18 @@ class Structure : public Node public : virtual ~Structure(); - uint32_t GetSize(); + uint32_t GetSize() const; - std::string ToXml(); - std::vector<char> ToBin(); + std::string ToXml() const; + std::vector<char> ToBin() const; virtual void Remove(Node* node) = 0; static Structure* FromXml(const std::string& xml); static Structure* FromBin(const std::vector<char>& bin); + static Structure* FromBin(const char* bin, uint64_t size); + static Structure* FromMemory(const std::vector<char>& buf, plist_format_t* format = NULL); + static Structure* FromMemory(const char* buf, uint64_t size, plist_format_t* format = NULL); protected: Structure(Node* parent = NULL); @@ -56,4 +59,4 @@ private: }; -#endif // PLIST__STRUCTURE_H +#endif // PLIST_STRUCTURE_H |
