cppCreCVertex
UseCase3
//***************************************************************************
//
// Date Created: November 20, 1995
//
//***************************************************************************
//
// Changes: Made Structure Shy
// Date Changed: November 25, 1995
//
//
// This propagation pattern creates a new Construction Vertex. It takes in
// the Vertex Name, its Location and the Offset (the distance from the vertex
// that the vertex name is drawn). This propagation pattern first copies the
// defaultConstVertex, then calls: fill_in_vertex_label, fill_in_vertex_loca-
// tion and fill_in_vertex_label_offset. Lastly, this propagation pattern
// appends the new ConstVertex to the Vertex_List.
//
//
//***************************************************************************
(@
#include <iostream.h>
#include <strstream.h>
// #include "tclexec.h"
@)
*operation* void cppCreCVertex(char* Labelname,
char* Location,
char* Offset)
*wrapper* Graph
(@ ConstVertex* temp = (ConstVertex*) defaultConstVertex->g_copy();
temp->fill_in_vertex_label(Labelname);
temp->fill_in_vertex_location(Location);
temp->fill_in_vertex_label_offset(Offset);
this->get_vertices()->append(temp); @)