http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252014-05-27T19:46:07ZRedmineWt - Feature #3217: Virtual functions to allow shared memory for WCssRule and WTemplatehttp://redmine.emweb.be/issues/3217?journal_id=94342014-05-27T19:46:07ZSaif Rehmansaifi0102@gmail.com
<ul></ul><p>Or maybe an abstract class for WTemplate?</p>
Wt - Feature #3217: Virtual functions to allow shared memory for WCssRule and WTemplatehttp://redmine.emweb.be/issues/3217?journal_id=95512014-06-11T14:52:52ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>InProgress</i></li><li><strong>Assignee</strong> set to <i>Roel Standaert</i></li><li><strong>Target version</strong> set to <i>3.3.4</i></li></ul><p>Hey, I agree with the suggestion to make both methods virtual (and change the signature not to return a const ref, but return the string by value). Also make sure that the class itself uses the accessor method instead of the member variable directly.</p>
Wt - Feature #3217: Virtual functions to allow shared memory for WCssRule and WTemplatehttp://redmine.emweb.be/issues/3217?journal_id=96092014-06-19T09:24:42ZSaif Rehmansaifi0102@gmail.com
<ul></ul><p>Just a little more information.</p>
<p>The purpose of this feature request is to minimize memory overhead by storing all rules and templates in backend database tables(I'm using different tables for templates and rules). Instead of loading the selector/declarations strings for each rule in every session, I'm using a derived class called DboCssRule which stores a Dbo::ptr to that rule so the strings can be shared between sessions.</p>
<p>For minimizing template/language strings, I don't know how Wt's tr() function stores the strings so I can't suggest a solution for weather modifying tr() or WTemplate. Maybe there should be a way we can manage how tr() stores the strings. I want to store the strings using Dbo::ptr to share the strings between sessions.</p>
Wt - Feature #3217: Virtual functions to allow shared memory for WCssRule and WTemplatehttp://redmine.emweb.be/issues/3217?journal_id=96122014-06-19T11:09:42ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>InProgress</i> to <i>Resolved</i></li></ul> Wt - Feature #3217: Virtual functions to allow shared memory for WCssRule and WTemplatehttp://redmine.emweb.be/issues/3217?journal_id=96282014-06-19T16:53:22ZKoen Deforchekoen@emweb.be
<ul></ul><p>Hey Saif,</p>
<p>WString::tr() does not actually store the value --- the value itself is always requested from WLocalizedStrings which you can reimplement to cope with different trade-offs.</p>
<p>Regards,<br><br>
koen</p>
Wt - Feature #3217: Virtual functions to allow shared memory for WCssRule and WTemplatehttp://redmine.emweb.be/issues/3217?journal_id=96652014-06-24T13:06:49ZSaif Rehmansaifi0102@gmail.com
<ul></ul><p>Constructor without selector</p>
<pre><code>WCssRule::WCssRule(WObject* parent)
: WObject(parent),
sheet_(0)
{ }
</code></pre> Wt - Feature #3217: Virtual functions to allow shared memory for WCssRule and WTemplatehttp://redmine.emweb.be/issues/3217?journal_id=103052014-10-22T00:29:40ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>