Skip to content
Snippets Groups Projects
Commit 2a0aed4b authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Added a common method signature for setting up the main parser.

parent 10c3c196
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,18 @@ class ParserInterface(with_metaclass(ABCMeta, object)): ...@@ -121,6 +121,18 @@ class ParserInterface(with_metaclass(ABCMeta, object)):
""" """
pass pass
# @abstractmethod # Keep this way for a file in order to avoid breaking
def setup_main_parser(self, version_dictionary):
"""Setup the attribute 'main_parser' which contains the object that
starts the parsing from the main file. The main parser should be
decided based on the information contained on the given dictionary.
Args:
version_dictionary: Dictionary containing version information. It
can include the version number, run type, etc.
"""
pass
@abstractmethod @abstractmethod
def get_metainfo_filename(self): def get_metainfo_filename(self):
"""This function should return the name of the metainfo file that is """This function should return the name of the metainfo file that is
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment