Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Application.h File Reference

#include <cb2/utils.h>
#include <cb2/Template.h>
#include <cb2/Widgets.h>
#include <iostream>

Go to the source code of this file.

Namespaces

namespace  CB2

Defines

#define CB2_IMPLEMENT_APP_SER(AppType, SerType)
#define CB2_IMPLEMENT_APP(AppType)   CB2_IMPLEMENT_APP_SER(AppType, Serializer)
#define CB2_DECLARE_SERIALIZEDCLASS(ClassType)   virtual const char * GetSerialName();
#define CB2_IMPLEMENT_SERIALIZEDCLASS(ClassType)


Define Documentation

#define CB2_DECLARE_SERIALIZEDCLASS ClassType   )     virtual const char * GetSerialName();
 

#define CB2_IMPLEMENT_APP AppType   )     CB2_IMPLEMENT_APP_SER(AppType, Serializer)
 

#define CB2_IMPLEMENT_APP_SER AppType,
SerType   ) 
 

Value:

int main(int argc, char * argv[]) { \ try { \ SerType serializer(argc, argv, std::cin); \ AppType app; \ } catch (Exception & e) { \ CB2::Application::AppError("Application exception", e.What()); \ } catch (...) { \ CB2::Application::AppError("Fatal application exception"); \ } \ \ return 0; \ }

#define CB2_IMPLEMENT_SERIALIZEDCLASS ClassType   ) 
 

Value:

const char * ClassType::GetSerialName() { \ return #ClassType; \ }


Generated on Thu Sep 16 23:26:49 2004 for ColorBox2 by doxygen 1.3.7