Home » Archimedes archive » Acorn User » AU 1996-12 B.adf » Regulars_2 » StarInfo/Bradley/!STUBS/!HELP

StarInfo/Bradley/!STUBS/!HELP

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1996-12 B.adf » Regulars_2
Filename: StarInfo/Bradley/!STUBS/!HELP
Read OK:
File size: 0802 bytes
Load address: 0000
Exec address: 0000
File contents
Help on 'Stubs' version 1.00   (c) ANN Technology 1996
----------------------------   -----------------------

This utility program help a programmer to generate C++ classes as 
'boilerplate' code (C++ code stubs). The program was really just an excersise
using Acorns new Toolbox (Fantastic) and the C++ compiler (Pretty Good).
Stubs will generate classes that have a public and private sections, a 
contructor and a destructor along with an include directive in the class 
source module for the header file containingthe class declaration. Also 
declared in the class is a default copy contructor and OPERATOR= methods.
The program has a facility for creating the above code stubs in a standard
TEMPLATE form.

Stubs has been tried on RISC OS 3.11 and above.

Using Stubs.
------------

Create a 'c++' and a 'h' directory your CSD (current selected directory).
Stubs writes the code stubs in these two directories. 

THEN

1. Load Stubs the usual RISC OS way.
2. Click on the Stubs icon will open a dialogue box.
3. Fill in the relative writable icons.
4. Click on Construct to create the c++ code stubs.


Writable icons.
---------------

Class       : This icon takes the name of the new class you wish to generate.
Base (1,2,3): Stubs can generate a class which can inherate from 1 to 3 base
              classes. Fill in the icons with the names of the classes which
              you wish your class to inherate.
Template    : Clicking on Template will generate code stubs for you class 
              as a template class. 
Author      : Author of the module will be generated in each file.
Date        : Fill in the date of when the class was created.
Construct   : Clicking on this will construct the new code stubs.


Terms, Disclaimer, etc.
-----------------------

 This software is FREEWARE. Copy it, distribute it, keep it complete.
 No liability is accepted for loss or damage caused by this software.
 
 (c) Paul Bradley, ANN Technology 1996.
 
 Any probs write to 
 
 Paul Bradley,
 27 Awsworth Lane,
 Cossall,
 Notts.
 NG16 2SA
 
 
00000000  48 65 6c 70 20 6f 6e 20  27 53 74 75 62 73 27 20  |Help on 'Stubs' |
00000010  76 65 72 73 69 6f 6e 20  31 2e 30 30 20 20 20 28  |version 1.00   (|
00000020  63 29 20 41 4e 4e 20 54  65 63 68 6e 6f 6c 6f 67  |c) ANN Technolog|
00000030  79 20 31 39 39 36 0a 2d  2d 2d 2d 2d 2d 2d 2d 2d  |y 1996.---------|
00000040  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000050  2d 2d 2d 20 20 20 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |---   ----------|
00000060  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 0a 0a 54  |-------------..T|
00000070  68 69 73 20 75 74 69 6c  69 74 79 20 70 72 6f 67  |his utility prog|
00000080  72 61 6d 20 68 65 6c 70  20 61 20 70 72 6f 67 72  |ram help a progr|
00000090  61 6d 6d 65 72 20 74 6f  20 67 65 6e 65 72 61 74  |ammer to generat|
000000a0  65 20 43 2b 2b 20 63 6c  61 73 73 65 73 20 61 73  |e C++ classes as|
000000b0  20 0a 27 62 6f 69 6c 65  72 70 6c 61 74 65 27 20  | .'boilerplate' |
000000c0  63 6f 64 65 20 28 43 2b  2b 20 63 6f 64 65 20 73  |code (C++ code s|
000000d0  74 75 62 73 29 2e 20 54  68 65 20 70 72 6f 67 72  |tubs). The progr|
000000e0  61 6d 20 77 61 73 20 72  65 61 6c 6c 79 20 6a 75  |am was really ju|
000000f0  73 74 20 61 6e 20 65 78  63 65 72 73 69 73 65 0a  |st an excersise.|
00000100  75 73 69 6e 67 20 41 63  6f 72 6e 73 20 6e 65 77  |using Acorns new|
00000110  20 54 6f 6f 6c 62 6f 78  20 28 46 61 6e 74 61 73  | Toolbox (Fantas|
00000120  74 69 63 29 20 61 6e 64  20 74 68 65 20 43 2b 2b  |tic) and the C++|
00000130  20 63 6f 6d 70 69 6c 65  72 20 28 50 72 65 74 74  | compiler (Prett|
00000140  79 20 47 6f 6f 64 29 2e  0a 53 74 75 62 73 20 77  |y Good)..Stubs w|
00000150  69 6c 6c 20 67 65 6e 65  72 61 74 65 20 63 6c 61  |ill generate cla|
00000160  73 73 65 73 20 74 68 61  74 20 68 61 76 65 20 61  |sses that have a|
00000170  20 70 75 62 6c 69 63 20  61 6e 64 20 70 72 69 76  | public and priv|
00000180  61 74 65 20 73 65 63 74  69 6f 6e 73 2c 20 61 20  |ate sections, a |
00000190  0a 63 6f 6e 74 72 75 63  74 6f 72 20 61 6e 64 20  |.contructor and |
000001a0  61 20 64 65 73 74 72 75  63 74 6f 72 20 61 6c 6f  |a destructor alo|
000001b0  6e 67 20 77 69 74 68 20  61 6e 20 69 6e 63 6c 75  |ng with an inclu|
000001c0  64 65 20 64 69 72 65 63  74 69 76 65 20 69 6e 20  |de directive in |
000001d0  74 68 65 20 63 6c 61 73  73 20 0a 73 6f 75 72 63  |the class .sourc|
000001e0  65 20 6d 6f 64 75 6c 65  20 66 6f 72 20 74 68 65  |e module for the|
000001f0  20 68 65 61 64 65 72 20  66 69 6c 65 20 63 6f 6e  | header file con|
00000200  74 61 69 6e 69 6e 67 74  68 65 20 63 6c 61 73 73  |tainingthe class|
00000210  20 64 65 63 6c 61 72 61  74 69 6f 6e 2e 20 41 6c  | declaration. Al|
00000220  73 6f 20 0a 64 65 63 6c  61 72 65 64 20 69 6e 20  |so .declared in |
00000230  74 68 65 20 63 6c 61 73  73 20 69 73 20 61 20 64  |the class is a d|
00000240  65 66 61 75 6c 74 20 63  6f 70 79 20 63 6f 6e 74  |efault copy cont|
00000250  72 75 63 74 6f 72 20 61  6e 64 20 4f 50 45 52 41  |ructor and OPERA|
00000260  54 4f 52 3d 20 6d 65 74  68 6f 64 73 2e 0a 54 68  |TOR= methods..Th|
00000270  65 20 70 72 6f 67 72 61  6d 20 68 61 73 20 61 20  |e program has a |
00000280  66 61 63 69 6c 69 74 79  20 66 6f 72 20 63 72 65  |facility for cre|
00000290  61 74 69 6e 67 20 74 68  65 20 61 62 6f 76 65 20  |ating the above |
000002a0  63 6f 64 65 20 73 74 75  62 73 20 69 6e 20 61 20  |code stubs in a |
000002b0  73 74 61 6e 64 61 72 64  0a 54 45 4d 50 4c 41 54  |standard.TEMPLAT|
000002c0  45 20 66 6f 72 6d 2e 0a  0a 53 74 75 62 73 20 68  |E form...Stubs h|
000002d0  61 73 20 62 65 65 6e 20  74 72 69 65 64 20 6f 6e  |as been tried on|
000002e0  20 52 49 53 43 20 4f 53  20 33 2e 31 31 20 61 6e  | RISC OS 3.11 an|
000002f0  64 20 61 62 6f 76 65 2e  0a 0a 55 73 69 6e 67 20  |d above...Using |
00000300  53 74 75 62 73 2e 0a 2d  2d 2d 2d 2d 2d 2d 2d 2d  |Stubs..---------|
00000310  2d 2d 2d 0a 0a 43 72 65  61 74 65 20 61 20 27 63  |---..Create a 'c|
00000320  2b 2b 27 20 61 6e 64 20  61 20 27 68 27 20 64 69  |++' and a 'h' di|
00000330  72 65 63 74 6f 72 79 20  79 6f 75 72 20 43 53 44  |rectory your CSD|
00000340  20 28 63 75 72 72 65 6e  74 20 73 65 6c 65 63 74  | (current select|
00000350  65 64 20 64 69 72 65 63  74 6f 72 79 29 2e 0a 53  |ed directory)..S|
00000360  74 75 62 73 20 77 72 69  74 65 73 20 74 68 65 20  |tubs writes the |
00000370  63 6f 64 65 20 73 74 75  62 73 20 69 6e 20 74 68  |code stubs in th|
00000380  65 73 65 20 74 77 6f 20  64 69 72 65 63 74 6f 72  |ese two director|
00000390  69 65 73 2e 20 0a 0a 54  48 45 4e 0a 0a 31 2e 20  |ies. ..THEN..1. |
000003a0  4c 6f 61 64 20 53 74 75  62 73 20 74 68 65 20 75  |Load Stubs the u|
000003b0  73 75 61 6c 20 52 49 53  43 20 4f 53 20 77 61 79  |sual RISC OS way|
000003c0  2e 0a 32 2e 20 43 6c 69  63 6b 20 6f 6e 20 74 68  |..2. Click on th|
000003d0  65 20 53 74 75 62 73 20  69 63 6f 6e 20 77 69 6c  |e Stubs icon wil|
000003e0  6c 20 6f 70 65 6e 20 61  20 64 69 61 6c 6f 67 75  |l open a dialogu|
000003f0  65 20 62 6f 78 2e 0a 33  2e 20 46 69 6c 6c 20 69  |e box..3. Fill i|
00000400  6e 20 74 68 65 20 72 65  6c 61 74 69 76 65 20 77  |n the relative w|
00000410  72 69 74 61 62 6c 65 20  69 63 6f 6e 73 2e 0a 34  |ritable icons..4|
00000420  2e 20 43 6c 69 63 6b 20  6f 6e 20 43 6f 6e 73 74  |. Click on Const|
00000430  72 75 63 74 20 74 6f 20  63 72 65 61 74 65 20 74  |ruct to create t|
00000440  68 65 20 63 2b 2b 20 63  6f 64 65 20 73 74 75 62  |he c++ code stub|
00000450  73 2e 0a 0a 0a 57 72 69  74 61 62 6c 65 20 69 63  |s....Writable ic|
00000460  6f 6e 73 2e 0a 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |ons..-----------|
00000470  2d 2d 2d 2d 0a 0a 43 6c  61 73 73 20 20 20 20 20  |----..Class     |
00000480  20 20 3a 20 54 68 69 73  20 69 63 6f 6e 20 74 61  |  : This icon ta|
00000490  6b 65 73 20 74 68 65 20  6e 61 6d 65 20 6f 66 20  |kes the name of |
000004a0  74 68 65 20 6e 65 77 20  63 6c 61 73 73 20 79 6f  |the new class yo|
000004b0  75 20 77 69 73 68 20 74  6f 20 67 65 6e 65 72 61  |u wish to genera|
000004c0  74 65 2e 0a 42 61 73 65  20 28 31 2c 32 2c 33 29  |te..Base (1,2,3)|
000004d0  3a 20 53 74 75 62 73 20  63 61 6e 20 67 65 6e 65  |: Stubs can gene|
000004e0  72 61 74 65 20 61 20 63  6c 61 73 73 20 77 68 69  |rate a class whi|
000004f0  63 68 20 63 61 6e 20 69  6e 68 65 72 61 74 65 20  |ch can inherate |
00000500  66 72 6f 6d 20 31 20 74  6f 20 33 20 62 61 73 65  |from 1 to 3 base|
00000510  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 63  |.              c|
00000520  6c 61 73 73 65 73 2e 20  46 69 6c 6c 20 69 6e 20  |lasses. Fill in |
00000530  74 68 65 20 69 63 6f 6e  73 20 77 69 74 68 20 74  |the icons with t|
00000540  68 65 20 6e 61 6d 65 73  20 6f 66 20 74 68 65 20  |he names of the |
00000550  63 6c 61 73 73 65 73 20  77 68 69 63 68 0a 20 20  |classes which.  |
00000560  20 20 20 20 20 20 20 20  20 20 20 20 79 6f 75 20  |            you |
00000570  77 69 73 68 20 79 6f 75  72 20 63 6c 61 73 73 20  |wish your class |
00000580  74 6f 20 69 6e 68 65 72  61 74 65 2e 0a 54 65 6d  |to inherate..Tem|
00000590  70 6c 61 74 65 20 20 20  20 3a 20 43 6c 69 63 6b  |plate    : Click|
000005a0  69 6e 67 20 6f 6e 20 54  65 6d 70 6c 61 74 65 20  |ing on Template |
000005b0  77 69 6c 6c 20 67 65 6e  65 72 61 74 65 20 63 6f  |will generate co|
000005c0  64 65 20 73 74 75 62 73  20 66 6f 72 20 79 6f 75  |de stubs for you|
000005d0  20 63 6c 61 73 73 20 0a  20 20 20 20 20 20 20 20  | class .        |
000005e0  20 20 20 20 20 20 61 73  20 61 20 74 65 6d 70 6c  |      as a templ|
000005f0  61 74 65 20 63 6c 61 73  73 2e 20 0a 41 75 74 68  |ate class. .Auth|
00000600  6f 72 20 20 20 20 20 20  3a 20 41 75 74 68 6f 72  |or      : Author|
00000610  20 6f 66 20 74 68 65 20  6d 6f 64 75 6c 65 20 77  | of the module w|
00000620  69 6c 6c 20 62 65 20 67  65 6e 65 72 61 74 65 64  |ill be generated|
00000630  20 69 6e 20 65 61 63 68  20 66 69 6c 65 2e 0a 44  | in each file..D|
00000640  61 74 65 20 20 20 20 20  20 20 20 3a 20 46 69 6c  |ate        : Fil|
00000650  6c 20 69 6e 20 74 68 65  20 64 61 74 65 20 6f 66  |l in the date of|
00000660  20 77 68 65 6e 20 74 68  65 20 63 6c 61 73 73 20  | when the class |
00000670  77 61 73 20 63 72 65 61  74 65 64 2e 0a 43 6f 6e  |was created..Con|
00000680  73 74 72 75 63 74 20 20  20 3a 20 43 6c 69 63 6b  |struct   : Click|
00000690  69 6e 67 20 6f 6e 20 74  68 69 73 20 77 69 6c 6c  |ing on this will|
000006a0  20 63 6f 6e 73 74 72 75  63 74 20 74 68 65 20 6e  | construct the n|
000006b0  65 77 20 63 6f 64 65 20  73 74 75 62 73 2e 0a 0a  |ew code stubs...|
000006c0  0a 54 65 72 6d 73 2c 20  44 69 73 63 6c 61 69 6d  |.Terms, Disclaim|
000006d0  65 72 2c 20 65 74 63 2e  0a 2d 2d 2d 2d 2d 2d 2d  |er, etc..-------|
000006e0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
000006f0  0a 0a 20 54 68 69 73 20  73 6f 66 74 77 61 72 65  |.. This software|
00000700  20 69 73 20 46 52 45 45  57 41 52 45 2e 20 43 6f  | is FREEWARE. Co|
00000710  70 79 20 69 74 2c 20 64  69 73 74 72 69 62 75 74  |py it, distribut|
00000720  65 20 69 74 2c 20 6b 65  65 70 20 69 74 20 63 6f  |e it, keep it co|
00000730  6d 70 6c 65 74 65 2e 0a  20 4e 6f 20 6c 69 61 62  |mplete.. No liab|
00000740  69 6c 69 74 79 20 69 73  20 61 63 63 65 70 74 65  |ility is accepte|
00000750  64 20 66 6f 72 20 6c 6f  73 73 20 6f 72 20 64 61  |d for loss or da|
00000760  6d 61 67 65 20 63 61 75  73 65 64 20 62 79 20 74  |mage caused by t|
00000770  68 69 73 20 73 6f 66 74  77 61 72 65 2e 0a 20 0a  |his software.. .|
00000780  20 28 63 29 20 50 61 75  6c 20 42 72 61 64 6c 65  | (c) Paul Bradle|
00000790  79 2c 20 41 4e 4e 20 54  65 63 68 6e 6f 6c 6f 67  |y, ANN Technolog|
000007a0  79 20 31 39 39 36 2e 0a  20 0a 20 41 6e 79 20 70  |y 1996.. . Any p|
000007b0  72 6f 62 73 20 77 72 69  74 65 20 74 6f 20 0a 20  |robs write to . |
000007c0  0a 20 50 61 75 6c 20 42  72 61 64 6c 65 79 2c 0a  |. Paul Bradley,.|
000007d0  20 32 37 20 41 77 73 77  6f 72 74 68 20 4c 61 6e  | 27 Awsworth Lan|
000007e0  65 2c 0a 20 43 6f 73 73  61 6c 6c 2c 0a 20 4e 6f  |e,. Cossall,. No|
000007f0  74 74 73 2e 0a 20 4e 47  31 36 20 32 53 41 0a 20  |tts.. NG16 2SA. |
00000800  0a 20                                             |. |
00000802