RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
ValueEventData.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
5package org.wpilib.networktables;
6
8public final class ValueEventData {
10 public final int topic;
11
16 public final int subentry;
17
20
31 this.m_inst = inst;
32 this.topic = topic;
33 this.subentry = subentry;
34 this.value = value;
35 }
36
37 /* Cached topic object. */
38 private Topic m_topicObject;
39
40 private final NetworkTableInstance m_inst;
41
47 public Topic getTopic() {
48 if (m_topicObject == null) {
49 m_topicObject = new Topic(m_inst, topic);
50 }
51 return m_topicObject;
52 }
53}
ValueEventData(NetworkTableInstance inst, int topic, int subentry, NetworkTableValue value)