Choreonoid  1.8
MultiValueSeq.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_MULTI_VALUE_SEQ_H
7 #define CNOID_UTIL_MULTI_VALUE_SEQ_H
8 
9 #include "MultiSeq.h"
10 #include "NullOut.h"
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class CNOID_EXPORT MultiValueSeq : public MultiSeq<double>
16 {
18 
19 public:
20  MultiValueSeq();
21  MultiValueSeq(int numFrames, int numParts = 1);
22  MultiValueSeq(const MultiValueSeq& org);
23  virtual ~MultiValueSeq();
24 
25  using BaseSeqType::operator=;
26  virtual std::shared_ptr<AbstractSeq> cloneSeq() const override;
27 
28  bool loadPlainFormat(const std::string& filename, std::ostream& os = nullout());
29  bool saveAsPlainFormat(const std::string& filename, std::ostream& os = nullout());
30 
31 protected:
32  virtual bool doReadSeq(const Mapping* archive, std::ostream& os) override;
33  virtual bool doWriteSeq(YAMLWriter& writer, std::function<void()> writeAdditionalPart) override;
34 };
35 
36 #ifdef CNOID_BACKWARD_COMPATIBILITY
37 typedef std::shared_ptr<MultiValueSeq> MultiValueSeqPtr;
38 #endif
39 
40 }
41 
42 #endif
cnoid::Mapping
Definition: ValueTree.h:253
cnoid::YAMLWriter
Definition: YAMLWriter.h:16
MultiSeq.h
cnoid::MultiSeq
Definition: MultiSeq.h:17
NullOut.h
cnoid::nullout
std::ostream & nullout()
Definition: NullOut.cpp:26
cnoid::MultiValueSeq
Definition: MultiValueSeq.h:15
cnoid
Definition: AbstractSceneLoader.h:11