A gstreamermm Gst::ElementFactory example.
#include <gstreamermm.h>
#include <iostream>
int main(int argc, char *argv[])
{
  
  std::cout << 
"List of primary demuxers: " << 
std::endl;
   {
    std::cout << 
" * " << factory->get_name() << 
std::endl;
  }
  if (!fakesrc_factory)
  {
    std::cerr << 
"Failed to find factory of type 'fakesrc'" << 
std::endl;
     return -1;
  }
  
  std::cout << 
"Author of the element '" << fakesrc_factory->
get_name() << 
"' is "  
  std::cout << 
"All information about element '" << fakesrc_factory->
get_name() << 
"':" << 
std::endl;
  {
  }
  
  
  {
    if (!fakesrc)
    {
      std::cerr << 
"Failed to create element of type 'fakesrc'" << 
std::endl;
      return -1;
    }
  }
  
  {
    if (!fakesrc)
    {
      std::cerr << 
"Failed to create element of type 'fakesrc'" << 
std::endl;
      return -1;
    }
  }
  return 0;
}