27 lines
698 B
C++
27 lines
698 B
C++
#include "pibytearray.h"
|
|
#include "picodeparser.h"
|
|
#include "piiostream.h"
|
|
#include "pijson.h"
|
|
#include "piliterals_time.h"
|
|
#include "pimathbase.h"
|
|
#include "pip.h"
|
|
#include "pivaluetree_conversions.h"
|
|
|
|
using namespace PICoutManipulators;
|
|
|
|
|
|
int main(int argc, char * argv[]) {
|
|
/*PISerial ser;
|
|
ser.setSpeed(PISerial::S115200);
|
|
piCout << ser.open("COM15", PIIODevice::ReadWrite);
|
|
CONNECTL(&ser, threadedReadEvent, ([](const uchar * data, ssize_t size) { piCout << PIByteArray(data, size); }));
|
|
ser.startThreadedRead();
|
|
(2_s).sleep();
|
|
ser.stopAndWait();*/
|
|
PISet<int> set = {1, 3, 4};
|
|
set |= PISet<int>{2, 4};
|
|
set -= PISet<int>{2};
|
|
piCout << set << (set & PISet<int>{1, 2, 4});
|
|
return 0;
|
|
}
|