Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

story Class Reference

story: A tree-structured list of character strings. More...

#include <story.h>

List of all members.

Public Member Functions

 story (int flag=0)
 Default is a bare story holding a single text line.
storyget_next_story_node ()
 Next line in the story, possibly in a new chapter.
storyget_first_daughter_node ()
 First line in this chapter.
storyget_last_daughter_node ()
 Last line in this chapter.
char * get_text ()
 Contents of the text line in this story node.
int get_chapter_flag ()
 Is this a chapter (1) or a text line(0)?
void set_next_story_node (story *s)
 Add to a story.
void set_first_daughter_node (story *s)
 Set first text line.
void set_last_daughter_node (story *s)
 Add/set last text line.
void set_text (char *a_string)
 Add text to a story node.

Private Attributes

storynext_story_node
storyfirst_daughter_node
storylast_daughter_node
char * text
int chapter_flag


Detailed Description

story: A tree-structured list of character strings.

Definition at line 71 of file story.h.


Constructor & Destructor Documentation

story::story int  flag = 0  )  [inline]
 

Default is a bare story holding a single text line.

A general story consists of a linked list of chapters, each containing a list of text lines.

Definition at line 89 of file story.h.

References chapter_flag, first_daughter_node, last_daughter_node, next_story_node, and text.


The documentation for this class was generated from the following file:
Generated on Wed Jul 20 12:43:39 2005 for Starlab by  doxygen 1.4.3