What is the Open C++ Libraries?
The Open C++ Libraries is a collection of C++ components built by C++ developers to serve C++ developers. We aim for stable and useful libraries that you can rely on in your projects.
Our Mission:
Providing high-quality, well-tested C++ libraries that are easy to integrate and maintain.
Example: FIX Protocol Parser Test
constexpr char default_fix[] = {
'8', '=', 'F', 'I', 'X', '.', '4', '.', '2', 0x01,
'9', '=', '6', '3', 0x01, // BodyLength = 63
'3', '5', '=', 'A', 0x01,
'4', '9', '=', 'S', 'E', 'N', 'D', 'E', 'R', 0x01,
'5', '6', '=', 'T', 'A', 'R', 'G', 'E', 'T', 0x01,
'1', '0', '=', '1', '2', '3', 0x01,
};
ocl::fix::visitor basic_visitor;
ocl::fix::range_buffer fix = basic_visitor.visit(default_fix);
TEST(FIXTest, FIXGoodPacket) {
EXPECT_TRUE(fix.is_valid());
}
TEST(FIXTest, FIXGoodParse) {
EXPECT_TRUE(fix["35"] == "A");
}
TEST(FIXTest, FIXGoodErrorOnParse) {
EXPECT_TRUE(fix["133"].empty() == true);
}