10 : durations(durations_), length(length_), toBeFreed(toBeFreed_) {
27 return new IrSequence(durationsClone, length,
true);
31 for (
unsigned int i = 0U; i < length; i++) {
35 stream << ((i & 1) ?
'-' :
'+');
36 stream << durations[i];
44 std::string s = os.str();
45 char* buf =
new char[s.length()+1];
46 strncpy(buf, s.c_str(), s.length());
52 for (
unsigned int i = 0; i < length; i++)
IrSequence * clone() const
Creates a (deep) clone of the current object.
const char * toString() const
microseconds_t getTotalDuration() const
uint32_t microseconds_t
Type for durations in micro seconds.
This class consists of a vector of durations.
void dump(std::ostream &stream=std::cout, bool usingSigns=false) const
Prints the IrSequence on the stream provided.
IrSequence()
Create an empty sequence.