~frankencode/drycore/trunk

« back to all changes in this revision

Viewing changes to dry/Yason.hpp

  • Committer: Frank Mertens
  • Date: 2013-04-12 22:05:06 UTC
  • Revision ID: frank@cyblogic.de-20130412220506-yagp0n2cmxlz7o8z
Improved usability of Recipe files by type validation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        typedef Map<String, Variant> Super;
43
43
 
44
44
public:
45
 
        inline static Ref<YasonObject> create() { return new YasonObject(); }
 
45
        inline static Ref<YasonObject> create(const String &className = "") { return new YasonObject(className); }
46
46
 
47
47
        inline String className() const { return className_; }
48
48
 
49
49
protected:
50
50
        friend class Yason;
51
51
 
52
 
        YasonObject() {}
 
52
        YasonObject(const String &className = ""): className_(className) {}
53
53
 
54
54
private:
55
55
        explicit YasonObject(const YasonObject &b)