comparison Framework/Common/FileValue.h @ 244:02cd7254c949

separating class InputFileValue from FileValue
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Apr 2021 18:43:21 +0200
parents f5dc59c56e65
children
comparison
equal deleted inserted replaced
243:f5dc59c56e65 244:02cd7254c949
35 public: 35 public:
36 FileValue() 36 FileValue()
37 { 37 {
38 } 38 }
39 39
40 explicit FileValue(const std::string& content) :
41 content_(content)
42 {
43 }
44
45 FileValue(const void* buffer,
46 size_t size)
47 {
48 content_.assign(reinterpret_cast<const char*>(buffer), size);
49 }
50
51 std::string& GetContent() 40 std::string& GetContent()
52 { 41 {
53 return content_; 42 return content_;
54 } 43 }
55 44