#include <memory>
#include <vector>
#include <loaders/xml.h>
#include <managers/dynamic_lib_manager.h>
#include <managers/object_manager.h>
#include <utilities/mvc/mvc_defines.h>
#include <utilities/mvc/mvc_interfaces.h>
#include <utilities/shared_pointer.h>
Go to the source code of this file.
Classes | |
class | nitro::MVC |
Namespaces | |
namespace | nitro |
Defines | |
#define | WIN32_PLATFORM |
#define | BEGIN_EXTRACTION_SECTION() |
#define | DECLARE_MODEL_EXTRACTOR(TYPE_NAME, MODEL_NAME) |
#define | DECLARE_CONTROLLER_EXTRACTOR(TYPE_NAME, CONTROLLER_NAME) |
#define | DECLARE_VIEW_EXTRACTOR(TYPE_NAME, VIEW_NAME) |
#define | END_EXTRACTION_SECTION() |
Functions | |
MVC * | nitro::GetMainMVCObject (void) |
#define BEGIN_EXTRACTION_SECTION | ( | ) |
std::vector< nitro::SharedPointer< nitro::ModelInterface > > StoredModels;\ std::vector< nitro::SharedPointer< nitro::ViewInterface > > StoredViews;\ std::vector< nitro::SharedPointer< nitro::ControllerInterface > > StoredControllers;
Definition at line 21 of file mvc_core.h.
#define DECLARE_CONTROLLER_EXTRACTOR | ( | TYPE_NAME, | ||
CONTROLLER_NAME | ||||
) |
EXTERN_C NITRO_EXPORTING void GetController( char * ControllerName , nitro::ControllerInterface * & Controller , const nitro::XMLTag & ManifestPart )\ {\ ControllerName[ 0 ] = '\0';\ StoredControllers.push_back( nitro::SharedPointer< nitro::ControllerInterface >( ( nitro::ControllerInterface * )new TYPE_NAME( ManifestPart ) ) );\ Controller = StoredControllers.back().GetData();;\ strcpy( ControllerName , CONTROLLER_NAME );\ }
Definition at line 35 of file mvc_core.h.
#define DECLARE_MODEL_EXTRACTOR | ( | TYPE_NAME, | ||
MODEL_NAME | ||||
) |
EXTERN_C NITRO_EXPORTING void GetModel( char * ModelName , nitro::ModelInterface * & Model , const nitro::XMLTag & ManifestPart )\ {\ ModelName[ 0 ] = '\0';\ StoredModels.push_back( nitro::SharedPointer< nitro::ModelInterface >( ( nitro::ModelInterface * )new TYPE_NAME( ManifestPart ) ) );\ Model = StoredModels.back().GetData();;\ strcpy( ModelName , MODEL_NAME );\ }
Definition at line 26 of file mvc_core.h.
#define DECLARE_VIEW_EXTRACTOR | ( | TYPE_NAME, | ||
VIEW_NAME | ||||
) |
EXTERN_C NITRO_EXPORTING void GetView( char * ViewName , nitro::ViewInterface * & View , const nitro::XMLTag & ManifestPart )\ {\ ViewName[ 0 ] = '\0';\ StoredViews.push_back( nitro::SharedPointer< nitro::ViewInterface >( ( nitro::ViewInterface * )new TYPE_NAME( ManifestPart ) ) );\ View = StoredViews.back().GetData();\ strcpy( ViewName , VIEW_NAME );\ }
Definition at line 44 of file mvc_core.h.
#define END_EXTRACTION_SECTION | ( | ) |
Definition at line 53 of file mvc_core.h.
#define WIN32_PLATFORM |
Definition at line 15 of file mvc_core.h.