def __init__(self, cflags):
        """Class constructor that parses the XML generator's command line

        Args:
            cflags (str): cflags command line arguments passed to the XML
                generator
        """
        super(cxx_standard, self).__init__()

        self._stdcxx = None
        self._is_implicit = False
        for key in cxx_standard.__STD_CXX:
            if key in cflags:
                self._stdcxx = key
                self._cplusplus = cxx_standard.__STD_CXX[key]

        if not self._stdcxx:
            if '-std=' in cflags:
                raise RuntimeError('Unknown -std=c++xx flag used')

            # Assume c++03 by default
            self._stdcxx = '-std=c++03'
            self._cplusplus = cxx_standard.__STD_CXX['-std=c++03']
            self._is_implicit = True
def __init__ ( self , cflags ) : super ( cxx_standard , self ) . __init__ ( ) self . _stdcxx = None self . _is_implicit = False for key in cxx_standard . __STD_CXX : if key in cflags : self . _stdcxx = key self . _cplusplus = cxx_standard . __STD_CXX [ key ] if not self . _stdcxx : if '-std=' in cflags : raise RuntimeError ( 'Unknown -std=c++xx flag used' ) self . _stdcxx = '-std=c++03' self . _cplusplus = cxx_standard . __STD_CXX [ '-std=c++03' ] self . _is_implicit = True
Class constructor that parses the XML generator's command line

        Args:
            cflags (str): cflags command line arguments passed to the XML
                generator