File: HACKING

package info (click to toggle)
cdcover 0.9.1-12
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 400 kB
  • sloc: cpp: 3,257; makefile: 91
file content (56 lines) | stat: -rw-r--r-- 1,681 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
HACKING
-------

This file is for every hacker who wants to reuse
some code of the ccc-program or who wants to
make improvements or bugfixes. Read this text first.



STRINGLIB

The ccc program makes heavy use of the c++-classes
"Bytevector" and "Stringlist", which are defined
in bytevector.cc and stringlist.cc.  I don't like
the stirng-class of the c++ standard library, so I
have written my own. 
You can use these classes as black boxes. 
They are well tested and should work properly.
Take a look to the header files "bytevector.h" 
and "stringlist.h" to get information about available
functions. Only very few functions are needed in ccc.


TEXT2H

text2h is a little program which converts textfiles
into c++ header files with "char* argv[]" vector
constants. See text2h.cc for the source code.
This tool is used to create the string-ressource
files, which are used to include the tex-templates
and the ccc-ressources.

CCC

The ccc program consists of the following files:

ccc.cc        - main program, parameter, error messages
cccpara.h     - ccc parameters
cccpara2.h    - ccc parameters WITHOUT value
                These two files are needed by ccc.cc
				for parameter-parsing

texmaker.h    - cover class interface is defined here
texmaker.cc   - implementation of the cover class                
res*.h        - c++ headers with latex template constants  
                created from the texfiles by the text2h utility


Check especially the "texmaker.*" files, if you want 
to reuse the cover-generator in other applications.

If you have special questions or if you have made
improvements feel free to contact me:

ccc-author:
Ulli Meybohm : ulli@meybohm.de