File: ccClass

package info (click to toggle)
ccbuild 1.5.7-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,208 kB
  • ctags: 441
  • sloc: cpp: 4,817; sh: 1,195; makefile: 53; ansic: 43
file content (26 lines) | stat: -rwxr-xr-x 448 bytes parent folder | download
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
#!/bin/sh
#Create a simple class template 
# It includes the srcHeader file of the first higher src directory.
CNAME=$1
CHNAME="$CNAME".hh
CINAME="$CNAME".ih
HEADER=`echo $PWD |grep -o "^.*src"`/srcHeader
echo $CHNAME
cat < "$HEADER" >> "$CINAME"
echo "#include \"$CHNAME\"" >> "$CINAME";
cat < "$HEADER" >> "$CHNAME"

cat >> "$CHNAME" <<EOF

#ifndef _${CNAME}_HH_INCLUDED_
#define	_${CNAME}_HH_INCLUDED_

class $CNAME
{
	public:
	
};

#endif

EOF