VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCore
DtAsynchronousAgentManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtAsynchronousAgentManager.h,v $ $Revision: 1.11 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCore/vrvCore.h
>
16
#include <
vrvCore/DtAgentManagerInterface.h
>
17
#include <
vrvUtil/DtLockedBufferedQueue.h
>
18
#include <boost/function.hpp>
19
20
namespace
makVrv
21
{
22
class
DtModelDefinition;
23
class
DtAgentManager;
24
27
class
DT_DLL_VRVCORE
DtAsynchronousAgentManager
:
public
DtAgentManagerInterface
28
{
29
public
:
30
typedef
boost::function< void (DtAgentManagerInterface*) >
31
SceneManagerInterfaceFunction
;
32
33
typedef
DtLockedBufferedQueue<SceneManagerInterfaceFunction>
34
AsyncAgentManagerInterfaceFunctionQueue
;
35
40
DtAsynchronousAgentManager
(
DtAgentManager
& agentManager,
const
std::string& ownerName);
41
46
virtual
~
DtAsynchronousAgentManager
();
47
58
virtual
void
tick();
59
60
//@name Locked asynchronous operations. These functions may take effect performance.
62
63
65
virtual
void
addModelDefinition(
const
DtModelDefinition
&);
66
67
72
virtual
DtModelDefinition
* lookupModelDefinition(
const
std::string& str);
74
76
AsyncAgentManagerInterfaceFunctionQueue
* asyncFunctionQueue();
77
78
protected
:
79
DtAgentManager
&
myAgentManager
;
80
AsyncAgentManagerInterfaceFunctionQueue
myAsyncFunctionQueue
;
81
};
82
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)