::mediapipe::Status RunMPPGraph() {
std::string calculator_graph_config_contents;
MP_RETURN_IF_ERROR(mediapipe::file::GetContents(
FLAGS_calculator_graph_config_file, &calculator_graph_config_contents));
LOG(INFO) << "Get calculator graph config contents: "
<< calculator_graph_config_contents;
mediapipe::CalculatorGraphConfig config =
mediapipe::ParseTextProtoOrDie<mediapipe::CalculatorGraphConfig>(
calculator_graph_config_contents);
This is a small section of a larger code offered by Google's Mediapipe, which uses the scope resolution operator to define RunMPPGraph()
. I don't understand anything about this definition. Can someone tell me what is going on?
This looks like a function and I'm pretty sure it is: ::mediapipe::Status RunMPPGraph()
... but the basic way to define a function is ---> ReturnType FunctionName(parameters)
, and in this program RunMPPGraph
is the name, so that means ::mediapipe::Status
is the return type. In the main function, RunMPPGraph
() is called with this statement ---> ::mediapipe::Status run_status = RunMPPGraph();
so that means ::mediapipe::Status
is some form of user defined data type. So I wanted to know if we can break down ::mediapipe::Status
into more smaller parts ?