typedef enum { SURFACE_PDF, SURFACE_SVG, SURFACE_IMAGE, SURFACE_PS } SurfaceType; class MyPage { MyPage(SurfaceType type); };