A Discrete-Event Network Simulator
API
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
check-style.PatchChunkLine Class Reference

PatchChunkLine class. More...

Public Member Functions

def __init__ (self)
 Initializer. More...
 
def append_to_line (self, s)
 Append to line. More...
 
def is_dst (self)
 Is destination. More...
 
def is_src (self)
 Is source. More...
 
def line (self)
 Get line. More...
 
def set_both (self, line)
 Set both. More...
 
def set_dst (self, line)
 Set destination. More...
 
def set_src (self, line)
 Set source. More...
 
def write (self, f)
 Write to file. More...
 

Static Public Attributes

int BOTH = 3
 Both. More...
 
int DST = 2
 Destination. More...
 
int SRC = 1
 Source. More...
 

Private Attributes

 __line
 line More...
 
 __type
 type More...
 

Detailed Description

PatchChunkLine class.

Definition at line 134 of file check-style.py.

Constructor & Destructor Documentation

◆ __init__()

def check-style.PatchChunkLine.__init__ (   self)

Initializer.

Parameters
selfThe current class
Returns
none

Definition at line 148 of file check-style.py.

Member Function Documentation

◆ append_to_line()

def check-style.PatchChunkLine.append_to_line (   self,
  s 
)

Append to line.

Parameters
selfThe current class
sline to append
Returns
none

Definition at line 179 of file check-style.py.

References check-style.PatchChunkLine.__line.

◆ is_dst()

def check-style.PatchChunkLine.is_dst (   self)

Is destination.

Parameters
selfThe current class
Returns
true if type is destination

Definition at line 198 of file check-style.py.

References check-style.PatchChunkLine.__type, check-style.PatchChunkLine.BOTH, and check-style.PatchChunkLine.DST.

◆ is_src()

def check-style.PatchChunkLine.is_src (   self)

Is source.

Parameters
selfThe current class
Returns
true if type is source

Definition at line 192 of file check-style.py.

References check-style.PatchChunkLine.__type, check-style.PatchChunkLine.BOTH, and check-style.PatchChunkLine.SRC.

◆ line()

def check-style.PatchChunkLine.line (   self)

Get line.

Parameters
selfThe current class
Returns
line

Definition at line 186 of file check-style.py.

References check-style.PatchChunkLine.__line.

◆ set_both()

def check-style.PatchChunkLine.set_both (   self,
  line 
)

Set both.

Parameters
selfThe current class
line
Returns
none

Definition at line 171 of file check-style.py.

References check-style.PatchChunkLine.__line, check-style.PatchChunkLine.__type, and check-style.PatchChunkLine.BOTH.

◆ set_dst()

def check-style.PatchChunkLine.set_dst (   self,
  line 
)

Set destination.

Parameters
selfThe current class
linedestination line
Returns
none

Definition at line 163 of file check-style.py.

References check-style.PatchChunkLine.__line, check-style.PatchChunkLine.__type, and check-style.PatchChunkLine.DST.

◆ set_src()

def check-style.PatchChunkLine.set_src (   self,
  line 
)

Set source.

Parameters
selfThe current class
linesource line
Returns
none

Definition at line 155 of file check-style.py.

References check-style.PatchChunkLine.__line, check-style.PatchChunkLine.__type, and check-style.PatchChunkLine.SRC.

◆ write()

def check-style.PatchChunkLine.write (   self,
  f 
)

Write to file.

Parameters
selfThe current class
ffile
Returns
exception if invalid type

Definition at line 204 of file check-style.py.

References check-style.PatchChunkLine.__line, check-style.PatchChunkLine.__type, check-style.PatchChunkLine.BOTH, check-style.PatchChunkLine.DST, and check-style.PatchChunkLine.SRC.

Referenced by visualizer.ipython_view.IPythonView.onKeyPressExtend().

Member Data Documentation

◆ __line

check-style.PatchChunkLine.__line
private

◆ __type

check-style.PatchChunkLine.__type
private

◆ BOTH

check-style.PatchChunkLine.BOTH = 3
static

◆ DST

check-style.PatchChunkLine.DST = 2
static

◆ SRC

check-style.PatchChunkLine.SRC = 1
static

The documentation for this class was generated from the following file: