C++ Implementation of metadataStore