P4Table (Class)

In: p4table.rb
Parent: Object

*******************************************************************************

  • Base class for all table classes.

*******************************************************************************

Methods

Attributes

name  [R] 
p4  [R] 

Public Class methods

[Source]

     # File p4table.rb, line 534
534:     def initialize( p4, name )
535:         @p4    = p4
536:         @name  = name
537:     end

Public Instance methods

[Source]

     # File p4table.rb, line 545
545:     def load_record( seq )
546:         P4Record.load( p4, self, P4RecId.new( @name, seq ) )
547:     end

[Source]

     # File p4table.rb, line 541
541:     def new_record
542:         P4Record.create( p4, self ) 
543:     end

[Source]

     # File p4table.rb, line 549
549:     def query( expr )
550:         P4Record.query( p4, name, expr )
551:     end

[Source]

     # File p4table.rb, line 560
560:     def storage_map( rec )
561:         return [ rec.table.name ]
562:     end

[Validate]