~sophie-middleton08/maus/devel

« back to all changes in this revision

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

  • Committer: Chris Rogers
  • Date: 2012-05-10 20:25:42 UTC
  • mfrom: (663.6.10 merge)
  • Revision ID: chris.rogers@stfc.ac.uk-20120510202542-cr294lltgh14lde0
Tags: MAUS-v0.2.2
ReleaseĀ 0.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
     *  @param json_array Json arrayValue
53
53
     *
54
54
     *  @returns std::vector C++ representation of the data. As with all
55
 
     *  processors, caller has ownership of this memory
 
55
     *  processors, caller has ownership of this memory. NULL values in the json
 
56
     *  representation always give NULL values in the cpp representation.
56
57
     */
57
58
    std::vector<ArrayContents*>* JsonToCpp(const Json::Value& json_array);
58
59
 
62
63
     *
63
64
     *  @returns Json::Value arrayValue with vector contents in Json
64
65
     *  representation. As with all processors, caller has ownership of this
65
 
     *  memory
 
66
     *  memory. NULL values in the cpp representation always give NULL values in
 
67
     *  the json representation.
66
68
     */
67
69
    Json::Value* CppToJson(const std::vector<ArrayContents*>& cpp_array);
68
70
  private:
96
98
     *  @param json_array Json arrayValue
97
99
     *
98
100
     *  @returns std::vector C++ representation of the data. As with all
99
 
     *  processors, caller has ownership of this memory
 
101
     *  processors, caller has ownership of this memory. Note json null values
 
102
     *  usually result in an exception, depending on the ArrayContentsProcessor.
100
103
     */
101
104
    std::vector<ArrayContents>* JsonToCpp(const Json::Value& json_array);
102
105
 
106
109
     *
107
110
     *  @returns Json::Value arrayValue with vector contents in Json
108
111
     *  representation. As with all processors, caller has ownership of this
109
 
     *  memory
 
112
     *  memory.
110
113
     */
111
114
    Json::Value* CppToJson(const std::vector<ArrayContents>& cpp_array);
112
115
  private: