You cannot programmatically retrieve things that have already been sent to cout
.
You could output the item to a memory buffer instead:
#include <sstream>
#include <ostream>
#include <string>
// ...
std::ostringstream oss;
oss << Markers[0];
std::string the_output = oss.str();
// you write some code to parse out the info you want from this string