wloc  0.9.2
Simple Wi-Fi geolocation library and tool
wloc.app.App Class Reference

Public Member Functions

None __init__ (self)
 
None run (self)
 

Private Member Functions

None __call_backend (self, str name)
 
None __check_arguments (self)
 
None __get_results (self)
 
None __parse_arguments (self)
 
None __parser_add_arguments (self)
 
None __parser_create (self)
 
None __set_backends (self)
 
None __setlogger (self)
 

Private Attributes

 __arguments
 
 __locator
 
 __logger
 
 __parser
 
 __selector
 

Constructor & Destructor Documentation

◆ __init__()

None wloc.app.App.__init__ (   self)
Main constructor of the App class.

Member Function Documentation

◆ __call_backend()

None wloc.app.App.__call_backend (   self,
str  name 
)
private
Directly calls one of the supported geolocation backend.
:param name: Backend name.

◆ __check_arguments()

None wloc.app.App.__check_arguments (   self)
private
Checks if at least one of the optional command-line arguments present.
:exception MissingArgumentError: No backends were selected.

◆ __get_results()

None wloc.app.App.__get_results (   self)
private
Calls enabled by user backends.

◆ __parse_arguments()

None wloc.app.App.__parse_arguments (   self)
private
Parses command-line arguments and provides a special object
to work with.

◆ __parser_add_arguments()

None wloc.app.App.__parser_add_arguments (   self)
private
Adds new options to the command-line arguments parser.

◆ __parser_create()

None wloc.app.App.__parser_create (   self)
private
Creates an instance of the command-line arguments parser.

◆ __set_backends()

None wloc.app.App.__set_backends (   self)
private
Creates an instance of the WiFiLocator class and special switch surrogate.

◆ __setlogger()

None wloc.app.App.__setlogger (   self)
private
Configures logger for internal use.

◆ run()

None wloc.app.App.run (   self)
Run the application.