Debian Codegraph @

sys/Notebook.cpp

raw symbols SCIP
1 /* Notebook.cpp
2 *
3 * Copyright (C) 2023,2026 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "Notebook.h"cxx . . $ `<file>/sys/Notebook.h`/
20
21 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (Notebook, SimpleString, 0);
22 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (NotebookSet, SortedSetOfString, 0);
23
24 static autoNotebookSetcxx . . $ autoNotebookSet# theKnownNotebookscxx . . $ theKnownNotebooks.;
25
26 autoNotebookcxx . . $ autoNotebook# Notebook_createFromFilecxx . . $ Notebook_createFromFile(64697f3e1bb41e11). (MelderFilecxx . . $ MelderFile# file) {
27 autoNotebookcxx . . $ autoNotebook# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (Notebook);
28 mycxx . . $ `melder/melder.h:44:9`! stringcxx . . $ structSimpleString#string. =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_dupcxx . . $ Melder_dup(87bf156b1f548402). (MelderFile_peekPathcxx . . $ MelderFile_peekPath(d9f043369fa9b55b). (file));
29 return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
30 }
31
32 void Notebook_rememberDuringThisAppSession_movecxx . . $ Notebook_rememberDuringThisAppSession_move(c9c21ebc9b8f53bb). (autoNotebookcxx . . $ autoNotebook# me) {
33 if (! theKnownNotebookscxx . . $ theKnownNotebooks.)
34 theKnownNotebookscxx . . $ theKnownNotebooks. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). NotebookSet_createcxx . . $ NotebookSet_create(7f3204beba5e5c25). ();
35 TRACEcxx . . $ `melder/melder_debug.h:54:9`!
36 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"Adding notebook: \"", mycxx . . $ `melder/melder.h:44:9`! string.get(), U"\"");
37 theKnownNotebookscxx . . $ theKnownNotebooks. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). addItem_movecxx . . $ CollectionOf#addItem_move(bcc0cff787be24fe). (mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f)..movecxx . . $ autoSomeThing#move(25acc3554b7d1642).());
38 }
39
40 Notebookcxx . . $ Notebook# Notebook_findcxx . . $ Notebook_find(e3de9a51e4137ebd). (conststring32cxx . . $ conststring32# filePath) {
41 const integercxx . . $ integer# position = theKnownNotebookscxx . . $ theKnownNotebooks. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). lookUpcxx . . $ SortedSetOfStringOf#lookUp(c94c67ff4219bf83). (filePath);
42 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (position != 0);
43 return theKnownNotebookscxx . . $ theKnownNotebooks. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).position];
44 }
45
46 /* End of file Notebook.cpp */