AndroMeta  2.0.0
AndroMeta/include/AndroMeta/MBrokerBase.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2009-2012 AndroMeta LLC. All rights reserved.
00003  *
00004  * AndroMeta LLC retains all intellectual property and proprietary 
00005  * rights to this software and related documentation and any modifications 
00006  * thereto.  Any use, reproduction, disclosure, or distribution of this 
00007  * software and related documentation without an express license agreement 
00008  * from AndroMeta LLC is strictly prohibited.
00009  * 
00010  */
00011 
00018 #ifndef ANDROMETA_M_BROKER_BASE_H
00019 #define ANDROMETA_M_BROKER_BASE_H
00020 
00021 #include <AndroMeta/MNode.h>
00022 #include <AndroMeta/MObject.h>
00023 
00024 namespace Meta{
00025   
00026   class MProcTask;
00027   
00032   class MBrokerBase{
00033   public:
00034     virtual bool release(MObject* object, bool disconnect=false) = 0;
00035     
00036     virtual mnode process(MObject* object, mnode n, bool block) = 0;
00037     
00038     virtual mvar& session(MObject* object) = 0;
00039     
00040     virtual MProcTask* task() = 0;
00041   };
00042   
00043 } // end namespace Meta
00044 
00045 #endif // ANDROMETA_M_BROKER_BASE_H