From 4f19628d534e37c241989bd854506f913ababfd7 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Tue, 3 Dec 2019 01:37:58 +0100 Subject: [PATCH] Simplified the example --- doxygen/pages/engine_description.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doxygen/pages/engine_description.md b/doxygen/pages/engine_description.md index 269b9924..ab4905e9 100644 --- a/doxygen/pages/engine_description.md +++ b/doxygen/pages/engine_description.md @@ -138,12 +138,8 @@ private: The main function is then quite straightforward and we call a function from the Parser class that loads a file ```cpp -int main(int argc, char** argv) -{ - PrintingParser parser; - parser.loadSfzFile("my_sfz_file.sfz"); - return 0; -} +PrintingParser parser; +parser.loadSfzFile("my_sfz_file.sfz"); ``` If you circle back to the parser you will see that opcodes are stored in an `Opcode` class. This class does some parsing itself and separates the opcode name itself, parameters if any, and the value. Opcodes are very cheap to copy and pass