RobotCore
1.0
WPILib port to raspberry Pi
Toggle main menu visibility
Loading...
Searching...
No Matches
TopicInfo.java
1
// Copyright (c) FIRST and other WPILib contributors.
2
// Open Source Software; you can modify and/or share it under the terms of
3
// the WPILib BSD license file in the root directory of this project.
4
5
package
org.wpilib.networktables;
6
8
public
final
class
TopicInfo
{
10
public
final
int
topic
;
11
13
public
final
String
name
;
14
16
public
final
NetworkTableType
type
;
17
19
public
final
String
typeStr
;
20
30
public
TopicInfo
(
NetworkTableInstance
inst,
int
handle, String
name
,
int
type
, String
typeStr
) {
31
this.m_inst = inst;
32
this.topic = handle;
33
this.name =
name
;
34
this.type =
NetworkTableType
.
getFromInt
(
type
);
35
this.typeStr =
typeStr
;
36
}
37
38
/* Network table instance. */
39
private
final
NetworkTableInstance
m_inst;
40
41
/* Cached topic object. */
42
private
Topic
m_topicObject;
43
49
public
NetworkTableInstance
getInstance
() {
50
return
m_inst;
51
}
52
58
public
Topic
getTopic
() {
59
if
(m_topicObject ==
null
) {
60
m_topicObject =
new
Topic
(m_inst,
topic
);
61
}
62
return
m_topicObject;
63
}
64
}
org.wpilib.networktables.NetworkTableInstance
Definition
NetworkTableInstance.java:47
org.wpilib.networktables.Topic
Definition
Topic.java:8
org.wpilib.networktables.TopicInfo.getInstance
NetworkTableInstance getInstance()
Definition
TopicInfo.java:49
org.wpilib.networktables.TopicInfo.type
final NetworkTableType type
Definition
TopicInfo.java:16
org.wpilib.networktables.TopicInfo.name
final String name
Definition
TopicInfo.java:13
org.wpilib.networktables.TopicInfo.typeStr
final String typeStr
Definition
TopicInfo.java:19
org.wpilib.networktables.TopicInfo.TopicInfo
TopicInfo(NetworkTableInstance inst, int handle, String name, int type, String typeStr)
Definition
TopicInfo.java:30
org.wpilib.networktables.TopicInfo.topic
final int topic
Definition
TopicInfo.java:10
org.wpilib.networktables.TopicInfo.getTopic
Topic getTopic()
Definition
TopicInfo.java:58
org.wpilib.networktables.NetworkTableType
Definition
NetworkTableType.java:8
org.wpilib.networktables.NetworkTableType.getFromInt
static NetworkTableType getFromInt(int value)
Definition
NetworkTableType.java:66
org
wpilib
networktables
TopicInfo.java
Generated by
1.18.0