/home/thomas/development/delivery-check/repo/src/avrfactory.h File Reference

#include <string>
Include dependency graph for avrfactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AvrFactory
 Produces AVR devices. More...

Defines

#define AVR_REGISTER(name, class)

Define Documentation

#define AVR_REGISTER ( name,
class   ) 
Value:
struct AVRFactoryEntryMaker_ ## name { \
        public: \
            static AvrDevice *create_one() { \
                return new class; \
            } \
            AVRFactoryEntryMaker_ ## name() { \
                AvrFactory::reg(#name, create_one); \
            } \
    }; \
    AVRFactoryEntryMaker_ ## name maker_ ##name;

Macro to be used to register an AVR device with the AvrFactory. For a usage example, see atmega128.cpp.

Definition at line 69 of file avrfactory.h.

Generated on Sun Feb 12 16:43:56 2012 for Simulavr by  doxygen 1.6.3