object
wrapper
ï
Adviser tool for porting and wrapping plain Prolog applications.
logtalk_load(wrapper(loader))
static, context_switching_calls
prolog_extensions(Extensions) option: List of file name extensions used to recognize Prolog source files (default is
['.pl','.pro','.prolog']
).logtalk_extension(Extension) option: Logtalk file name extension to be used for the generated wrapper files (default is
'.lgt'
).exclude_files(Files) option: List of Prolog source files names to exclude (default is
[]
).exclude_directories(Files) option: List of sub-directory names to exclude (default is
[]
).include_wrapped_files(Boolean): Generate
include/1
directives for the wrapped Prolog source files (default istrue
).
Public predicatesï
rdirectory/2
ï
Advises the user on missing directives for converting all plain Prolog files in a directory and its sub-directories to Logtalk objects using the specified options.
static
rdirectory(Directory,Options)
rdirectory(+atom,+list(compound))
- one
rdirectory/1
ï
Advises the user on missing directives for converting all plain Prolog files in a directory and its sub-directories to Logtalk objects using default options.
static
rdirectory(Directory)
rdirectory(+atom)
- one
directory/2
ï
Advises the user on missing directives for converting all plain Prolog files in a directory to Logtalk objects using the specified options.
static
directory(Directory,Options)
directory(+atom,+list(compound))
- one
directory/1
ï
Advises the user on missing directives for converting all plain Prolog files in a directory to Logtalk objects using default options.
static
directory(Directory)
directory(+atom)
- one
directories/2
ï
Advises the user on missing directives for converting all Prolog files in a set of directories to Logtalk objects using the specified options.
static
directories(Directories,Options)
directories(+list(atom),+list(compound))
- one
directories/1
ï
Advises the user on missing directives for converting all Prolog files in a set of directories to Logtalk objects using default options.
static
directories(Directories)
directories(+list(atom))
- one
files/2
ï
Advises the user on missing directives for converting a list of plain Prolog files to Logtalk objects using the specified options.
static
files(Files,Options)
files(+list(atom),+list(compound))
- one
files/1
ï
Advises the user on missing directives for converting a list of plain Prolog files to Logtalk objects using default options.
static
files(Files)
files(+list(atom))
- one
file/2
ï
Advises the user on missing directives for converting a plain Prolog file to Logtalk objects using the specified options.
static
file(File,Options)
file(+atom,+list(compound))
- one
file/1
ï
Advises the user on missing directives for converting a plain Prolog file to Logtalk objects using default options.
static
file(File)
file(+atom)
- one
save/1
ï
Saves the generated wrapper objects (plus a loader file per directory) for all advised files using the specified options. The wrapper objects are saved to the same directories that contain the wrapped Prolog files.
static
save(Options)
save(+list(compound))
- one
save/0
ï
Saves the generated wrapper objects (plus a loader file per directory) for all advised files using default options. The wrapper objects are saved to the same directories that contain the wrapped Prolog files.
static
save
- one
default_option/1
ï
Enumerates by backtracking the default options used when generating the wrapper objects.
static
default_option(DefaultOption)
default_option(?compound)
- zero_or_more
default_options/1
ï
Returns a list of the default options used when generating the wrapper objects.
static
default_options(DefaultOptions)
default_options(-list(compound))
- one
Protected predicatesï
(no local declarations; see entity ancestors if any)
Private predicatesï
merge_options/2
ï
Merges the user options with the default options, returning the list of options used when generating the wrapper objects.
static
merge_options(UserOptions,Options)
merge_options(+list(compound),-list(compound))
- one
predicate_called_but_not_defined_/2
ï
Table of called object predicates that are not locally defined.
dynamic
predicate_called_but_not_defined_(Object,Predicate)
predicate_called_but_not_defined_(?atom,?predicate_indicator)
- zero_or_more
object_predicate_called_/3
ï
Table of called object predicates.
dynamic
object_predicate_called_(Object,Other,Predicate)
object_predicate_called_(?atom,?atom,?predicate_indicator)
- zero_or_more
module_predicate_called_/3
ï
Table of called module predicates.
dynamic
module_predicate_called_(Object,Module,Predicate)
module_predicate_called_(?atom,?atom,?predicate_indicator)
- zero_or_more
unknown_predicate_called_/2
ï
Table of predicates called but not defined.
dynamic
unknown_predicate_called_(Object,Predicate)
unknown_predicate_called_(?atom,?predicate_indicator)
- zero_or_more
missing_predicate_directive_/3
ï
Table of missing predicate directives.
dynamic
missing_predicate_directive_(Object,Directive,Predicate)
missing_predicate_directive_(?atom,?predicate_indicator,?predicate_indicator)
- zero_or_more
non_standard_predicate_call_/2
ï
Table of called non-standard predicates.
dynamic
non_standard_predicate_call_(Object,Predicate)
non_standard_predicate_call_(?atom,?predicate_indicator)
- zero_or_more
dynamic_directive_/3
ï
Table of declared dynamic predicates.
dynamic
dynamic_directive_(Object,Line,Predicate)
dynamic_directive_(?atom,?integer,?predicate_indicator)
- zero_or_more
multifile_directive_/3
ï
Table of declared multifile predicates.
dynamic
multifile_directive_(Object,Line,Predicate)
multifile_directive_(?atom,?integer,?predicate_indicator)
- zero_or_more
add_directive_before_entity_/2
ï
Table of directives to be added before the entity opening directive.
dynamic
add_directive_before_entity_(Object,Directive)
add_directive_before_entity_(?atom,?predicate_indicator)
- zero_or_more
add_directive_/2
ï
Table of directives to be added.
dynamic
add_directive_(Object,Directive)
add_directive_(?atom,?predicate_indicator)
- zero_or_more
add_directive_/3
ï
Table of directives to be added to complement existing directives.
dynamic
add_directive_(Object,Directive,NewDirective)
add_directive_(?atom,?predicate_indicator,?predicate_indicator)
- zero_or_more
remove_directive_/2
ï
Table of directives to be removed.
dynamic
remove_directive_(Object,Directive)
remove_directive_(?atom,?predicate_indicator)
- zero_or_more
file_being_advised_/4
ï
Table of files being advised are respective directories and names (basename without extension).
dynamic
file_being_advised_(File,Path,Directory,Name)
file_being_advised_(?atom,?atom,?atom,?atom)
- zero_or_more
Operatorsï
(none)