113481Sgiacomo.travaglini@arm.com
213481Sgiacomo.travaglini@arm.comThe Google Mock class generator is an application that is part of cppclean.
313481Sgiacomo.travaglini@arm.comFor more information about cppclean, see the README.cppclean file or
413481Sgiacomo.travaglini@arm.comvisit http://code.google.com/p/cppclean/
513481Sgiacomo.travaglini@arm.com
613481Sgiacomo.travaglini@arm.comcppclean requires Python 2.3.5 or later.  If you don't have Python installed
713481Sgiacomo.travaglini@arm.comon your system, you will also need to install it.  You can download Python
813481Sgiacomo.travaglini@arm.comfrom:  http://www.python.org/download/releases/
913481Sgiacomo.travaglini@arm.com
1013481Sgiacomo.travaglini@arm.comTo use the Google Mock class generator, you need to call it
1113481Sgiacomo.travaglini@arm.comon the command line passing the header file and class for which you want
1213481Sgiacomo.travaglini@arm.comto generate a Google Mock class.
1313481Sgiacomo.travaglini@arm.com
1413481Sgiacomo.travaglini@arm.comMake sure to install the scripts somewhere in your path.  Then you can
1513481Sgiacomo.travaglini@arm.comrun the program.
1613481Sgiacomo.travaglini@arm.com
1713481Sgiacomo.travaglini@arm.com  gmock_gen.py header-file.h [ClassName]...
1813481Sgiacomo.travaglini@arm.com
1913481Sgiacomo.travaglini@arm.comIf no ClassNames are specified, all classes in the file are emitted.
2013481Sgiacomo.travaglini@arm.com
2113481Sgiacomo.travaglini@arm.comTo change the indentation from the default of 2, set INDENT in
2213481Sgiacomo.travaglini@arm.comthe environment.  For example to use an indent of 4 spaces:
2313481Sgiacomo.travaglini@arm.com
2413481Sgiacomo.travaglini@arm.comINDENT=4 gmock_gen.py header-file.h ClassName
2513481Sgiacomo.travaglini@arm.com
2613481Sgiacomo.travaglini@arm.comThis version was made from SVN revision 281 in the cppclean repository.
2713481Sgiacomo.travaglini@arm.com
2813481Sgiacomo.travaglini@arm.comKnown Limitations
2913481Sgiacomo.travaglini@arm.com-----------------
3013481Sgiacomo.travaglini@arm.comNot all code will be generated properly.  For example, when mocking templated
3113481Sgiacomo.travaglini@arm.comclasses, the template information is lost.  You will need to add the template
3213481Sgiacomo.travaglini@arm.cominformation manually.
3313481Sgiacomo.travaglini@arm.com
3413481Sgiacomo.travaglini@arm.comNot all permutations of using multiple pointers/references will be rendered
3513481Sgiacomo.travaglini@arm.comproperly.  These will also have to be fixed manually.
36