object

# wrapper

> Simple tool for helping porting plain Prolog code.

author:
  `Paulo Moura`
version:
  `0.3`
date:
  `2015/10/22`

compilation flags:
  `static, context_switching_calls`

implements:
  `public expanding`
provides:
  `logtalk::message_hook/4`
  `logtalk::message_prefix_stream/4`
  `logtalk::message_tokens//2`

## Public interface

### advise_for_files/1

> Advise the user on missing directives for converting a list of plain Prolog files in Logtalk objects.

compilation flags:
  `static`
template:
  `advise_for_files(Files)`
mode – number of proofs:
  `advise_for_files(+list(atom)) – one`

### advise_for_directory/2

> Advise the user on missing directives for converting a directory of files, using any of the given extensions, in Logtalk objects.

compilation flags:
  `static`
template:
  `advise_for_directory(Directory,Extensions)`
mode – number of proofs:
  `advise_for_directory(+atom,+list(atom)) – one`

### advise_for_directory/1

> Advise the user on missing directives for converting a directory of Prolog files (using either the .pl or .prolog extensions) in Logtalk objects.

compilation flags:
  `static`
template:
  `advise_for_directory(Directory)`
mode – number of proofs:
  `advise_for_directory(+atom) – one`

## Protected interface

(see related entities)

## Private predicates

### unknown_predicate_called_but_not_defined_/2

> Table of predicates called but not defined.

compilation flags:
  `dynamic`
template:
  `unknown_predicate_called_but_not_defined_(Object,Predicate)`
mode – number of proofs:
  `unknown_predicate_called_but_not_defined_(?atom,?predicate_indicator) – zero_or_more`

### missing_predicate_directive_/3

> Table of missing predicate directives.

compilation flags:
  `dynamic`
template:
  `missing_predicate_directive_(Object,Directive,Predicate)`
mode – number of proofs:
  `missing_predicate_directive_(?atom,?predicate_indicator,?predicate_indicator) – zero_or_more`

### non_standard_predicate_call_/2

> Table of called non-standard predicates.

compilation flags:
  `dynamic`
template:
  `non_standard_predicate_call_(Object,Predicate)`
mode – number of proofs:
  `non_standard_predicate_call_(?atom,?predicate_indicator) – zero_or_more`

### wrapper_object_/2

> Table of converted files and corresponding objects.

compilation flags:
  `dynamic`
template:
  `wrapper_object_(Object,File)`
mode – number of proofs:
  `wrapper_object_(?atom,?atom) – zero_or_more`

### dynamic_directive_/3

> Table of declared dynamic predicates.

compilation flags:
  `dynamic`
template:
  `dynamic_directive_(Object,Line,Predicate)`
mode – number of proofs:
  `dynamic_directive_(?atom,?integer,?predicate_indicator) – zero_or_more`

### multifile_directive_/3

> Table of declared multifile predicates.

compilation flags:
  `dynamic`
template:
  `multifile_directive_(Object,Line,Predicate)`
mode – number of proofs:
  `multifile_directive_(?atom,?integer,?predicate_indicator) – zero_or_more`

### add_directive_/2

> Table of directives to be added.

compilation flags:
  `dynamic`
template:
  `add_directive_(Object,Directive)`
mode – number of proofs:
  `add_directive_(?atom,?predicate_indicator) – zero_or_more`

### add_directive_/3

> Table of directives to be added to complement existing directives.

compilation flags:
  `dynamic`
template:
  `add_directive_(Object,Directive,NewDirective)`
mode – number of proofs:
  `add_directive_(?atom,?predicate_indicator,?predicate_indicator) – zero_or_more`

### file_being_advised_/1

> Table of files being advised.

compilation flags:
  `dynamic`
template:
  `file_being_advised_(File)`
mode – number of proofs:
  `file_being_advised_(+atom) – zero_or_more`

## Operators

### (none)

## Remarks

### (none)

## See also

### (none)