Skip to content

Commit 3f8669b

Browse files
authored
Merge pull request #70 from SPauly/feat69
Feature: Read A Book: Closes #69
2 parents 82cfec3 + 98722a3 commit 3f8669b

18 files changed

Lines changed: 4795 additions & 29 deletions

Data/Books/FifthBook.txt

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

Data/Books/FirstBook.txt

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

Data/Books/FoursBook.txt

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

Data/Books/SecondBook.txt

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

Data/Books/SixthBook.txt

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

Data/Books/ThirdBook.txt

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

Data/Inventory.csv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
BID,NAME,AUTHOR,COPIES,RENTED,LINK
2-
B123456,FirstBook,AUTHOR Name,0100,0040,LINK
3-
B222222,SecondBook,AUTHOR Name,0120,0022,LINK
4-
B333333,ThirdBook,AUTHOR Name,0120,0010,LINK
5-
B444444,FoursBook,AUTHOR Name,9999,0004,LINK
6-
B555555,FifthBook,AUTHOR Name,0025,0022,LINK
7-
B666666,SixthBook,AUTHOR Name,0025,0025,LINK
2+
B123456,FirstBook,AUTHOR Name,0100,0044,Data/Books/FirstBook.txt
3+
B222222,SecondBook,AUTHOR Name,0120,0026,Data/Books/SecondBook.txt
4+
B333333,ThirdBook,AUTHOR Name,0120,0013,Data/Books/ThirdBook.txt
5+
B444444,FoursBook,AUTHOR Name,9999,0009,Data/Books/FoursBook.txt
6+
B555555,FifthBook,AUTHOR Name,0025,0024,Data/Books/FifthBook.txt
7+
B666666,SixthBook,AUTHOR Name,0025,0025,Data/Books/SixthBook.txt

LSMS.exe

14.6 KB
Binary file not shown.

out/linecounter.json

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
{
2+
"extension": "linecounter",
3+
"version": "0.2.7",
4+
"workspace": "e:\\Simon\\Documents\\Visual Studio 2017\\Projects\\LSMS",
5+
"linecount": [
6+
{
7+
"version": "0.2.7",
8+
"counttime": "2022-01-05 12:05:11",
9+
"filesum": 26,
10+
"codesum": 2038,
11+
"commentsum": 152,
12+
"blanksum": 287,
13+
"statistics": {
14+
".csv": {
15+
"code": 9,
16+
"comment": 0,
17+
"blank": 0
18+
},
19+
".h": {
20+
"code": 334,
21+
"comment": 21,
22+
"blank": 68
23+
},
24+
".cpp": {
25+
"code": 1497,
26+
"comment": 67,
27+
"blank": 183
28+
},
29+
".txt": {
30+
"code": 50,
31+
"comment": 0,
32+
"blank": 4
33+
},
34+
"": {
35+
"code": 114,
36+
"comment": 64,
37+
"blank": 24
38+
},
39+
".json": {
40+
"code": 8,
41+
"comment": 0,
42+
"blank": 1
43+
},
44+
".md": {
45+
"code": 26,
46+
"comment": 0,
47+
"blank": 7
48+
}
49+
},
50+
"filelist": [
51+
{
52+
"blank": 24,
53+
"code": 114,
54+
"comment": 64,
55+
"filename": ".gitignore"
56+
},
57+
{
58+
"filename": ".vs\\LSMS\\v15\\.suo",
59+
"isbinaryfile": true,
60+
"blank": 0,
61+
"code": 0,
62+
"comment": 0
63+
},
64+
{
65+
"filename": ".vs\\LSMS\\v15\\Browse.VC.db",
66+
"isbinaryfile": true,
67+
"blank": 0,
68+
"code": 0,
69+
"comment": 0
70+
},
71+
{
72+
"blank": 0,
73+
"code": 3,
74+
"comment": 0,
75+
"filename": ".vs\\ProjectSettings.json"
76+
},
77+
{
78+
"filename": ".vs\\slnx.sqlite",
79+
"isbinaryfile": true,
80+
"blank": 0,
81+
"code": 0,
82+
"comment": 0
83+
},
84+
{
85+
"blank": 1,
86+
"code": 5,
87+
"comment": 0,
88+
"filename": ".vs\\VSWorkspaceState.json"
89+
},
90+
{
91+
"blank": 4,
92+
"code": 27,
93+
"comment": 0,
94+
"filename": "Data\\Books\\FirstBook.txt"
95+
},
96+
{
97+
"blank": 0,
98+
"code": 7,
99+
"comment": 0,
100+
"filename": "Data\\Inventory.csv"
101+
},
102+
{
103+
"blank": 0,
104+
"code": 2,
105+
"comment": 0,
106+
"filename": "Data\\Userfile.csv"
107+
},
108+
{
109+
"blank": 0,
110+
"code": 11,
111+
"comment": 0,
112+
"filename": "Data\\Userinfo.txt"
113+
},
114+
{
115+
"filename": "LSMS.exe",
116+
"isbinaryfile": true,
117+
"blank": 0,
118+
"code": 0,
119+
"comment": 0
120+
},
121+
{
122+
"blank": 7,
123+
"code": 26,
124+
"comment": 0,
125+
"filename": "README.md"
126+
},
127+
{
128+
"blank": 23,
129+
"code": 227,
130+
"comment": 3,
131+
"filename": "src\\Book.cpp"
132+
},
133+
{
134+
"blank": 11,
135+
"code": 51,
136+
"comment": 0,
137+
"filename": "src\\Book.h"
138+
},
139+
{
140+
"blank": 47,
141+
"code": 328,
142+
"comment": 14,
143+
"filename": "src\\CSVParser.cpp"
144+
},
145+
{
146+
"blank": 18,
147+
"code": 87,
148+
"comment": 3,
149+
"filename": "src\\CSVParser.h"
150+
},
151+
{
152+
"blank": 17,
153+
"code": 94,
154+
"comment": 8,
155+
"filename": "src\\file_management.cpp"
156+
},
157+
{
158+
"blank": 5,
159+
"code": 22,
160+
"comment": 5,
161+
"filename": "src\\file_management.h"
162+
},
163+
{
164+
"blank": 19,
165+
"code": 208,
166+
"comment": 0,
167+
"filename": "src\\Library.cpp"
168+
},
169+
{
170+
"blank": 8,
171+
"code": 31,
172+
"comment": 1,
173+
"filename": "src\\Library.h"
174+
},
175+
{
176+
"blank": 10,
177+
"code": 36,
178+
"comment": 0,
179+
"filename": "src\\main.cpp"
180+
},
181+
{
182+
"blank": 1,
183+
"code": 7,
184+
"comment": 0,
185+
"filename": "src\\Time.cpp"
186+
},
187+
{
188+
"blank": 3,
189+
"code": 7,
190+
"comment": 0,
191+
"filename": "src\\Time.h"
192+
},
193+
{
194+
"blank": 66,
195+
"code": 597,
196+
"comment": 42,
197+
"filename": "src\\User.cpp"
198+
},
199+
{
200+
"blank": 23,
201+
"code": 136,
202+
"comment": 12,
203+
"filename": "src\\User.h"
204+
},
205+
{
206+
"blank": 0,
207+
"code": 12,
208+
"comment": 0,
209+
"filename": "Welcome.txt"
210+
}
211+
]
212+
}
213+
]
214+
}

out/linecounter.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
===============================================================================
2+
EXTENSION NAME : linecounter
3+
EXTENSION VERSION : 0.2.7
4+
-------------------------------------------------------------------------------
5+
count time : 2022-01-05 12:05:11
6+
count workspace : e:\Simon\Documents\Visual Studio 2017\Projects\LSMS
7+
total files : 26
8+
total code lines : 2038
9+
total comment lines : 152
10+
total blank lines : 287
11+
12+
statistics
13+
| extension| total code| total comment| total blank|percent|
14+
-------------------------------------------------------------------------
15+
| .csv| 9| 0| 0| 0.44|
16+
| .h| 334| 21| 68| 16|
17+
| .cpp| 1497| 67| 183| 73|
18+
| .txt| 50| 0| 4| 2.5|
19+
| | 114| 64| 24| 5.6|
20+
| .json| 8| 0| 1| 0.39|
21+
| .md| 26| 0| 7| 1.3|
22+
-------------------------------------------------------------------------
23+
.gitignore, code is 114, comment is 64, blank is 24.
24+
.vs\LSMS\v15\.suo, it is a binary file.
25+
.vs\LSMS\v15\Browse.VC.db, it is a binary file.
26+
.vs\ProjectSettings.json, code is 3, comment is 0, blank is 0.
27+
.vs\slnx.sqlite, it is a binary file.
28+
.vs\VSWorkspaceState.json, code is 5, comment is 0, blank is 1.
29+
Data\Books\FirstBook.txt, code is 27, comment is 0, blank is 4.
30+
Data\Inventory.csv, code is 7, comment is 0, blank is 0.
31+
Data\Userfile.csv, code is 2, comment is 0, blank is 0.
32+
Data\Userinfo.txt, code is 11, comment is 0, blank is 0.
33+
LSMS.exe, it is a binary file.
34+
README.md, code is 26, comment is 0, blank is 7.
35+
src\Book.cpp, code is 227, comment is 3, blank is 23.
36+
src\Book.h, code is 51, comment is 0, blank is 11.
37+
src\CSVParser.cpp, code is 328, comment is 14, blank is 47.
38+
src\CSVParser.h, code is 87, comment is 3, blank is 18.
39+
src\file_management.cpp, code is 94, comment is 8, blank is 17.
40+
src\file_management.h, code is 22, comment is 5, blank is 5.
41+
src\Library.cpp, code is 208, comment is 0, blank is 19.
42+
src\Library.h, code is 31, comment is 1, blank is 8.
43+
src\main.cpp, code is 36, comment is 0, blank is 10.
44+
src\Time.cpp, code is 7, comment is 0, blank is 1.
45+
src\Time.h, code is 7, comment is 0, blank is 3.
46+
src\User.cpp, code is 597, comment is 42, blank is 66.
47+
src\User.h, code is 136, comment is 12, blank is 23.
48+
Welcome.txt, code is 12, comment is 0, blank is 0.
49+
===============================================================================

0 commit comments

Comments
 (0)