~c-e-pidcott/maus/devel

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppProcessors/ObjectProcessor.hh

  • Committer: Chris Rogers
  • Date: 2012-11-06 12:04:39 UTC
  • mfrom: (659.1.45 release-candidate)
  • Revision ID: chris.rogers@stfc.ac.uk-20121106120439-e6znfg5kfg850l38
Tags: MAUS-v0.4.0
MAUS-v0.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
                    void (ObjectType::*SetMethod)(ChildType value),
140
140
                    bool is_required);
141
141
 
 
142
    /** Register a branch for processing, where json value is always the same
 
143
     *
 
144
     *  @param branch_name name used by json to reference the branch
 
145
     *  @param child_value the branch will always be filled with this value
 
146
     *  @param is_required if the branch doesnt exist in json, throw Squeal if
 
147
     *  is_required is set to true
 
148
     *
 
149
     *  This method will never fill anything in the parent C++ class
 
150
     */
 
151
    void RegisterConstantBranch(std::string branch_name,
 
152
                    Json::Value child_value,
 
153
                    bool is_required);
 
154
 
 
155
 
142
156
    /** Return true if json value properties not the same as branches
143
157
     *
144
158
     *  Compare the list of properties on the json value and compare with the