Documentation
¶
Index ¶
- type HistorianPoint
- type PITIMESTAMP
- type PointCache
- type PointLookup
- func (pl *PointLookup) AddPoint(point *PointCache)
- func (pl *PointLookup) GetPointByDataLogID(dataLogID int) (*PointCache, bool)
- func (pl *PointLookup) GetPointByDataLogName(datalogName string) (*PointCache, bool)
- func (pl *PointLookup) GetPointIDByDataLogID(dataLogID int) (*int32, bool)
- func (pl *PointLookup) PrintAll()
- type PointType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistorianPoint ¶
type HistorianPoint struct {
PIId int32
}
type PITIMESTAMP ¶
type PITIMESTAMP struct {
Month C.int32_t
Year C.int32_t
Day C.int32_t
Hour C.int32_t
Minute C.int32_t
Tzinfo C.int32_t
Second C.double
}
func NewPITIMESTAMP ¶
func NewPITIMESTAMP(dt time.Time) PITIMESTAMP
type PointCache ¶
type PointCache struct {
DatalogName string
DataLogID int
DataLogType int
Process bool
PIName string
PIId *int32
}
func (*PointCache) Print ¶
func (pc *PointCache) Print()
Add a method to print out the contents of the PointCache
type PointLookup ¶
type PointLookup struct {
// contains filtered or unexported fields
}
func NewPointLookup ¶
func NewPointLookup() *PointLookup
func (*PointLookup) AddPoint ¶
func (pl *PointLookup) AddPoint(point *PointCache)
AddPoint adds or updates a point in the lookup
func (*PointLookup) GetPointByDataLogID ¶
func (pl *PointLookup) GetPointByDataLogID(dataLogID int) (*PointCache, bool)
GetPoint retrieves a point based on DataLogID
func (*PointLookup) GetPointByDataLogName ¶
func (pl *PointLookup) GetPointByDataLogName(datalogName string) (*PointCache, bool)
GetPointByName retrieves a point based on DatalogName
func (*PointLookup) GetPointIDByDataLogID ¶
func (pl *PointLookup) GetPointIDByDataLogID(dataLogID int) (*int32, bool)
GetPoint retrieves a point based on DataLogID
func (*PointLookup) PrintAll ¶
func (pl *PointLookup) PrintAll()
PrintAll method to print all PointCache instances in the map
Click to show internal directories.
Click to hide internal directories.