X-Git-Url: http://deadsoftware.ru/gitweb?p=odcread.git;a=blobdiff_plain;f=fold.h;h=e8c78b7e57e72e5300cb122781a3eb130bda215b;hp=79ee7354cc7c0c005f30f859ab5799240e83c101;hb=a3724718862ea28a70f2c6c330cdc729451d6510;hpb=75cf4599cf50d987efa2e402243c2680640ef339 diff --git a/fold.h b/fold.h index 79ee735..e8c78b7 100644 --- a/fold.h +++ b/fold.h @@ -7,6 +7,10 @@ namespace odc { + /** + * Supertype for views (in MVC framework). + * Included because a Fold is a View and not a Model, for some reason. + */ class View : public Store { private: static const TypeProxy PROXY; @@ -16,9 +20,15 @@ namespace odc { virtual const std::string &getTypeName() const; View(INTEGER id); + /** + * Just calls super and reads the version and checks that its in the allowed range. + */ virtual void internalize(Reader &reader); }; + /** + * Folds are collapsible components in a text document. + */ class Fold : public View { private: static const TypeProxy PROXY; @@ -32,6 +42,10 @@ namespace odc { virtual const std::string &getTypeName() const; Fold(INTEGER id); + /** + * Calls super and reads the version and checks that its in the allowed range. + * Then reads the state of the Fold, including the hidden part. + */ virtual void internalize(Reader &reader); virtual std::string toString();