跳转至

Base

labridge.func_modules.reference.base

labridge.func_modules.reference.base.RefInfoBase

This is the base class for reference information.

Source code in labridge\func_modules\reference\base.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
class RefInfoBase:
	r"""
	This is the base class for reference information.
	"""
	def __init__(self, ref_file_path: str = None):
		self.ref_file_path = ref_file_path

	@abstractmethod
	def dumps(self):
		r""" Dump an object of the class to a string in JSON format. """

	@classmethod
	@abstractmethod
	def loads(cls, info_str):
		r""" Load an object of the class from a string in JSON format. """

labridge.func_modules.reference.base.RefInfoBase.dumps() abstractmethod

Dump an object of the class to a string in JSON format.

Source code in labridge\func_modules\reference\base.py
15
16
17
@abstractmethod
def dumps(self):
	r""" Dump an object of the class to a string in JSON format. """

labridge.func_modules.reference.base.RefInfoBase.loads(info_str) abstractmethod classmethod

Load an object of the class from a string in JSON format.

Source code in labridge\func_modules\reference\base.py
19
20
21
22
@classmethod
@abstractmethod
def loads(cls, info_str):
	r""" Load an object of the class from a string in JSON format. """