CPN
Computational Process Networks
KernelBase.h
Go to the documentation of this file.
1 //=============================================================================
2 // Computational Process Networks class library
3 // Copyright (C) 1997-2006 Gregory E. Allen and The University of Texas
4 //
5 // This library is free software; you can redistribute it and/or modify it
6 // under the terms of the GNU Library General Public License as published
7 // by the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Library General Public License for more details.
14 //
15 // The GNU Public License is available in the file LICENSE, or you
16 // can write to the Free Software Foundation, Inc., 59 Temple Place -
17 // Suite 330, Boston, MA 02111-1307, USA, or you can find it on the
18 // World Wide Web at http://www.fsf.org.
19 //=============================================================================
24 #ifndef CPN_KERNELBASE_H
25 #define CPN_KERNELBASE_H
26 #pragma once
27 #include <cpn/common.h>
28 #include <cpn/QueueAttr.h>
29 #include <cpn/NodeAttr.h>
30 
31 namespace CPN {
32 
40  public:
41  virtual ~KernelBase();
42  virtual void RemoteCreateWriter(SimpleQueueAttr attr);
43  virtual void RemoteCreateReader(SimpleQueueAttr attr);
44  virtual void RemoteCreateQueue(SimpleQueueAttr attr);
45  virtual void RemoteCreateNode(NodeAttr attr);
46  virtual void NotifyTerminate();
47  virtual bool IsTerminated() = 0;
48  virtual void CheckTerminated() = 0;
49  virtual shared_ptr<Context> GetContext() const = 0;
50  virtual bool UseD4R() = 0;
51  virtual bool GrowQueueMaxThreshold() = 0;
52  virtual bool SwallowBrokenQueueExceptions() = 0;
53  virtual unsigned CalculateGrowSize(unsigned currentsize, unsigned request) = 0;
54  };
55 }
56 
57 #endif
Attributes for a node.
Definition: NodeAttr.h:58
Definition of the queue attributes.
Definition for node attributes.
#define CPN_API
Definition: common.h:36
This is a simplified internal representation of the queue attributes needed to create a queue...
Definition: QueueAttr.h:237