You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucy.apache.org by "Marvin Humphrey (JIRA)" <ji...@apache.org> on 2009/09/07 01:21:57 UTC
[jira] Created: (LUCY-30) Boilerplater::Dumpable
Boilerplater::Dumpable
----------------------
Key: LUCY-30
URL: https://issues.apache.org/jira/browse/LUCY-30
Project: Lucy
Issue Type: Sub-task
Components: Boilerplater
Reporter: Marvin Humphrey
The Lucy_Obj_Dump() method creates a JSON-izable data structure from an
object; Load() takes the output of Dump() and builds an object from it.
Classes which implement Dump() and Load have the attribute "dumpable".
If a class declares that it has the attribute "dumpable", but does not declare
either Dump() or Load(), Boilerplater::Dumpable will attempt to auto-generate
those methods if methods inherited from the parent class do not suffice.
{code:none}
class Foo::Bar extends Foo : dumpable {
Thing *thing;
public inert incremented Bar*
new();
void
Destroy(Bar *self);
}
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LUCY-30) Boilerplater::Dumpable
Posted by "Marvin Humphrey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCY-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marvin Humphrey updated LUCY-30:
--------------------------------
Attachment: Dumpable.pm
dumpable_support.diff
> Boilerplater::Dumpable
> ----------------------
>
> Key: LUCY-30
> URL: https://issues.apache.org/jira/browse/LUCY-30
> Project: Lucy
> Issue Type: Sub-task
> Components: Boilerplater
> Reporter: Marvin Humphrey
> Attachments: Dumpable.pm, dumpable_support.diff
>
>
> The Lucy_Obj_Dump() method creates a JSON-izable data structure from an
> object; Load() takes the output of Dump() and builds an object from it.
> Classes which implement Dump() and Load have the attribute "dumpable".
> If a class declares that it has the attribute "dumpable", but does not declare
> either Dump() or Load(), Boilerplater::Dumpable will attempt to auto-generate
> those methods if methods inherited from the parent class do not suffice.
> {code:none}
> class Foo::Bar extends Foo : dumpable {
> Thing *thing;
> public inert incremented Bar*
> new();
> void
> Destroy(Bar *self);
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (LUCY-30) Boilerplater::Dumpable
Posted by "Marvin Humphrey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCY-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marvin Humphrey resolved LUCY-30.
---------------------------------
Resolution: Fixed
Committed as r812773.
> Boilerplater::Dumpable
> ----------------------
>
> Key: LUCY-30
> URL: https://issues.apache.org/jira/browse/LUCY-30
> Project: Lucy
> Issue Type: Sub-task
> Components: Boilerplater
> Reporter: Marvin Humphrey
> Attachments: Dumpable.pm, dumpable_support.diff
>
>
> The Lucy_Obj_Dump() method creates a JSON-izable data structure from an
> object; Load() takes the output of Dump() and builds an object from it.
> Classes which implement Dump() and Load have the attribute "dumpable".
> If a class declares that it has the attribute "dumpable", but does not declare
> either Dump() or Load(), Boilerplater::Dumpable will attempt to auto-generate
> those methods if methods inherited from the parent class do not suffice.
> {code:none}
> class Foo::Bar extends Foo : dumpable {
> Thing *thing;
> public inert incremented Bar*
> new();
> void
> Destroy(Bar *self);
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.