Your challenge will be to develop a BSON (Binary Json) parser in C++.
Bson is a binary version of JSON, frequenlty used in web apps. only partially reversed.
Your code will be fully developped in C++
Your main() function will load the contents of a "BSON" sample file to a ‘std::vector‘ buffer.
Once loaded, this buffer will be given to the constructor of the "BSON" class in charge of parsing.
You are free to define an approriate class architecture for proper format parsing.
Your base class will provide appropriate accessors to the parsed values.
Your base class will provide a Dump() method printing in a "human readable" form loaded contents. Unknown fields will be dumped in hexadecimal format.
You will be evaluated on the following criterions:
- C++ code readability (using proper class names, method names)
- Class architecture (defining pertinent sub-classes with appropriate methods)
- Comments
- Respect of those guidelines