Back to index

Public Member Functions | Public Attributes | Private Attributes
dialogue_command_rep Class Reference
Inheritance diagram for dialogue_command_rep:
Inheritance graph
Collaboration diagram for dialogue_command_rep:
Collaboration graph

List of all members.

Public Member Functions

 dialogue_command_rep (server_rep *sv2, object fun2, int nr_args2)
void apply ()
tm_ostreamprint (tm_ostream &out)
virtual void apply (object args)

Public Attributes

int ref_count

Private Attributes

object fun
int nr_args

Detailed Description

Definition at line 24 of file tm_dialogue.cpp.

Constructor & Destructor Documentation

dialogue_command_rep::dialogue_command_rep ( server_rep sv2,
object  fun2,
int  nr_args2 
) [inline]

Definition at line 30 of file tm_dialogue.cpp.

    sv (sv2), fun (fun2), nr_args (nr_args2) {}

Member Function Documentation

void command_rep::apply ( object  args) [virtual, inherited]

Reimplemented in object_command_rep.

Definition at line 20 of file command.cpp.

  (void) args;
  apply ();

Here is the call graph for this function:

void dialogue_command_rep::apply ( ) [virtual]

Implements command_rep.

Definition at line 38 of file tm_dialogue.cpp.

  int i;
  object cmd  = null_object ();
  object learn= null_object ();
  for (i=nr_args-1; i>=0; i--) {
    string s_arg;
    sv->dialogue_inquire (i, s_arg);
    if (s_arg == "#f") {
      exec_delayed (scheme_cmd ("(dialogue-end)"));
    object arg= string_to_object (s_arg);
    learn= cons (cons (object (as_string (i)), arg), learn);
    cmd= cons (arg, cmd);
    //call ("learn-interactive-arg", fun, object (i), arg);
  call ("learn-interactive", fun, learn);
  cmd= cons (fun, cmd);
  exec_delayed (scheme_cmd ("(dialogue-end)"));
  exec_delayed (scheme_cmd (cmd));

Here is the call graph for this function:

tm_ostream& dialogue_command_rep::print ( tm_ostream out) [inline, virtual]

Reimplemented from command_rep.

Definition at line 33 of file tm_dialogue.cpp.

    return out << "Dialogue"; }

Member Data Documentation

Definition at line 26 of file tm_dialogue.cpp.

Definition at line 27 of file tm_dialogue.cpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

Definition at line 25 of file tm_dialogue.cpp.

The documentation for this class was generated from the following file: