Overte C++ Documentation
NodeType.h
Go to the documentation of this file.
1 //
2 // NodeType.h
3 // libraries/networking/src
4 //
5 // Created by Stephen Birarda on 05/29/15.
6 // Copyright 2015 High Fidelity, Inc.
7 // Copyright 2021 Vircadia contributors.
8 //
9 // Distributed under the Apache License, Version 2.0.
10 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
11 //
12 
13 #ifndef hifi_NodeType_h
14 #define hifi_NodeType_h
15 
16 #pragma once
17 
20 
22 typedef quint8 NodeType_t;
23 
24 namespace NodeType {
25  const NodeType_t DomainServer = 'D';
26  const NodeType_t EntityServer = 'o'; // was ModelServer
27  const NodeType_t Agent = 'I';
28  const NodeType_t AudioMixer = 'M';
29  const NodeType_t AvatarMixer = 'W';
30  const NodeType_t AssetServer = 'A';
31  const NodeType_t MessagesMixer = 'm';
32  const NodeType_t EntityScriptServer = 'S';
33  const NodeType_t UpstreamAudioMixer = 'B';
34  const NodeType_t UpstreamAvatarMixer = 'C';
35  const NodeType_t DownstreamAudioMixer = 'a';
36  const NodeType_t DownstreamAvatarMixer = 'w';
37  const NodeType_t Unassigned = 1;
38 
39  const QString& getNodeTypeName(NodeType_t nodeType);
40  bool isUpstream(NodeType_t nodeType);
41  bool isDownstream(NodeType_t nodeType);
42  NodeType_t upstreamType(NodeType_t primaryType);
43  NodeType_t downstreamType(NodeType_t primaryType);
44 
45  NodeType_t fromString(QString type);
46  NodeType_t fromChar(QChar type);
47 }
48 
49 typedef QSet<NodeType_t> NodeSet;
50 
51 #endif // hifi_NodeType_h
quint8 NodeType_t
An 8-bit value identifying the type of a node - domain server, audio mixer, etc.
Definition: NodeType.h:22
Handles assignments of type AudioMixer - mixing streams of audio and re-distributing to various clien...
Definition: AudioMixer.h:34
Handles assignments of type AvatarMixer - distribution of avatar data to various clients.
Definition: AvatarMixer.h:32
Handles assignments of type MessagesMixer - distribution of avatar data to various clients.
Definition: MessagesMixer.h:23