1// demo_3.cpp
 2
 3/**
 4 * @file varied_example.cpp
 5 * @brief Test file with varied rst formatting.
 6 */
 7
 8 #include <iostream>
 9
10 // GLOBAL REQUIRE: Feature G - Configuration management
11 // Description: Manage application configuration.
12
13 /**
14  * @brief Function with varied rst spacing.
15  *
16  *
17  */
18 void logErrors() {
19   // ... implementation ...
20 }
21
22 /**
23  * @brief Function with rst on same line. (NOT valid)
24  *
25  */
[docs]26// [[ IMPL_displayUI, displayUI() func\, so that it displays UI]]
27 void displayUI(){
28     //...
29 }
30
31 /**
32  * @brief function with rst with extra space.
33  *
34  * \rst
35  * .. impl:: Feature J - Data backup
36  *   :id: IMPL_6
37  *
38  *   Backup user data.
39  * \endrst
40  *
41  * // TODO: Improve backup performance.
[docs]42  * // [[ IMPL_backupData, back up data]]
43  */
44 void backupData(){
45     //...
46 }
47
[docs]48 // [[IMPL_main_demo_3, main func in demo_3.cpp]]
49 int main() {
50   std::cout << "Starting demo_3..." << std::endl;
51   logErrors();
52   displayUI();
53   backupData();
54   std::cout << "Demo_3 finished." << std::endl;
55   return 0;
56 }