[Top] [Prev] [Next] [Bottom]



Chapter 3:Example Used in this Tutorial

This chapter gives an overview of the SDE project and SDE systems that are used as an example in this document.

It describes the structures of the project smarter and the used systems square and CompareVersion. It also describes the dependencies between these systems and an external product.

3.1 Project Smarter

The goal of the project smarter is to create a function that reads an integer from the terminal and writes the value of its square back to the terminal. It should also implement a function where two values are compared and the result is written. Quite simple functions to implement. For the project smarter, the project manager Paul and the two programmers John and Anne will do the implementation.

The files for the function will be stored in an SDE system called square. The function that compares values will be stored in a system called CompareVersion.

In the company where Paul, Anne and John work, the convention is to place the user's home directory as follows:

/"company"/"department"/"user"

Paul, John and Anne both work for the office aut, and the department km.

Paul decides to place the square and CompareVersion systems and the project smarter at the same level:

/aut/km/square
/aut/km/CompareVersion
/aut/km/smarter

The smarter project structure will be:

Fig 3.1 smarter project structure

3.2 CompareVersion

Fig 3.2 CompareVersion system structure

In each subsystem there is also an RCS library that will contain the versioned files for the subsystem. On configuration level (here 1.0-0) there is also an RCS library to contain versioned files that are common for the whole configuration.

3.2.1 Version Subsystem

The Version subsystem will contain the source code files Version.C, Version.H, the library libversion.a, and a Makefile to build the library.

To build the library the external SDE product c++_complib (a C++ class library) is needed.

3.3 Square System

Fig 3.3 Square system structure

In each subsystem there is also an RCS library that will contain the versioned files for the subsystem. On configuration level (here work) there is also an RCS library to contain versioned files that are common for the whole configuration.

3.3.1 Math subsystem

The Math subsystem will contain the source code files Math.C, and Math.H, and a library libmath.a. It will also contain a Makefile to build the library.

3.3.2 Square subsystem

The square subsystem will contain the source code file main.C and a Makefile to build the program sqr.

The program sqr depends on files from another subsystem, another system, but also from an SDE product.



[Top] [Prev] [Next] [Bottom]