Class TopicInfo

java.lang.Object
org.wpilib.networktables.TopicInfo

public final class TopicInfo extends Object
NetworkTables topic information.
  • Field Details

    • topic

      public final int topic
      Topic handle.
    • name

      public final String name
      Topic name.
    • type

      public final NetworkTableType type
      Topic type.
    • typeStr

      public final String typeStr
      Topic type string.
  • Constructor Details

    • TopicInfo

      public TopicInfo(NetworkTableInstance inst, int handle, String name, int type, String typeStr)
      Constructor. This should generally only be used internally to NetworkTables.
      Parameters:
      inst - Instance
      handle - Topic handle
      name - Name
      type - Type (integer version of NetworkTableType)
      typeStr - Type string
  • Method Details

    • getInstance

      public NetworkTableInstance getInstance()
      Get the instance.
      Returns:
      Instance
    • getTopic

      public Topic getTopic()
      Get the topic as an object.
      Returns:
      Topic