Commit Graph

51 Commits

Author SHA1 Message Date
Eduardo Almeida
3e39cb0724 Fix formatting of some files before clang-format application 2022-10-06 20:41:07 +00:00
Eduardo Almeida
fcb90b1ef6 Add clang-format guards to protect code formatting 2022-10-06 20:38:36 +00:00
Tommaso Pecorella
241867e64f core: fix original bug that slipped back in bf4c4fa9 2022-09-17 02:10:01 +02:00
Tommaso Pecorella
bf4c4fa9ef core: partially revert c35d3f5d - some chars must not be escaped 2022-09-17 02:07:07 +02:00
Tommaso Pecorella
c35d3f5d0e core: (fixes #744) Fix escape characters in introspected command line 2022-09-16 22:51:39 +02:00
Tom Henderson
b6a5ee8151 Run utils/trim-trailing-whitespace.py on codebase 2022-06-05 21:01:11 -07:00
Gabriel Ferreira
ff3b511384 build: Bugfixes and refactoring of ns3 and CMake
Including:
- add missing command for introspected doxygen
- run get_version.sh before running doxygen
- use find_package(Doxygen) to get the doxygen executable
- silence python and sqlite find_package warnings
- return cmake returncode if configuration fails
- require GTK3 3.22
- link all libraries to print-introspected-doxygen
- replace shell with use_shell for variable name
- revert wrong changes to propagation of return codes and add test
- disable pch when ccache is found
- make --enable-sudo a post-build step and a runtime option
- add docs subparser
- add enable-sudo option
- refactor positional argument values
- fix --check option and add shell option
- replace --no-task-lines with --quiet
- replace --nowaf with --no-build
- replace --run --run-no-build with run (--no-build)
- replace ns3 documentation related arguments with targets
- document test-ns3.py
- export include directories used by ns3 libraries
- refactor CMake documentation dependency checking and behavior
- add --allow-run-as-root for running MPI examples on the CI
2022-01-09 02:48:53 -03:00
Peter Barnes
4dc0ec0682 core: (fixes #141) Print parent attributes from CommandLine --PrintAttributes 2021-12-17 01:04:14 +00:00
Peter Barnes
dd1d254a9f core: html-encode in CommandLine::PrintDoxygenUsage 2021-12-16 23:32:15 +00:00
Gabriel Ferreira
3c604d5b2e Update docs with CMake and ns3 wrapper 2021-12-01 12:29:56 -08:00
Peter D. Barnes, Jr
c631ccbac5 core: (fixes #277) make Time::As() print with autoscaled unit 2020-12-22 07:08:14 -08:00
Mathew Bielejeski
cbf04e69e1 build: (fix #259, merge !411) Minimize rebuilds due to git repository update
* Add --enable-build-version option to control build version feature
 * Disable build version when --enable-build-version is not specified
 * Update getting started tutorial to reflect the new build option
2020-09-27 16:20:50 -07:00
Mathew Bielejeski
32e95f8228 Make build information accessible by programs by extracting data from the local git repository (or a standalone file if a git repository is not present).
Changes

* Adds a new class named Version to the core module
* Adds a template file to the core module named version-defines.h.in
* Adds --PrintVersion and --version arguments to the CommandLine class.
* Creates a new waf tool which queries the local git repository and extracts build information from itCreate a waf task to extract version information from git repository
2020-08-11 20:20:05 +00:00
Steven Smith
3a15ad78b8 core: Add test suite support for running examples as tests with comparison of output for regression testing 2020-05-26 21:42:16 +00:00
Peter D. Barnes, Jr
a0ab57db12 doc: fix doxy warnings on introspected-command-line.h 2020-05-20 13:08:27 -07:00
Peter D. Barnes, Jr
32d820e8c7 (minor) various bits of fix-ups 2020-05-11 18:19:19 -07:00
Peter Barnes
4df94a8377 core: (fixes 2916): Specialize CommandLine parsing of uint8_t 2020-05-05 15:57:26 +00:00
Peter D. Barnes, Jr
b23be18b3b Use CommandLine cmd (__FILE__) instead of COMMANDLINE macro.
This in effect replaces commit 5e624d550
2020-05-01 14:42:53 -07:00
Peter D. Barnes, Jr
20f5e442ed doc: Add CommandLine::Usage to the doxygen for every example 2020-04-27 16:20:09 -07:00
Peter D. Barnes, Jr
063d86c096 core: clear check-style -l3 errors 2020-03-25 15:18:01 -07:00
Peter D. Barnes, Jr
f9b25ac56a core: CommandLine Callback typedef 2020-03-12 17:50:40 -07:00
Alexander Krotov
00bb6fe7f6 Spellcheck 2018-06-27 10:50:27 +03:00
Peter D. Barnes, Jr.
94e011240e core: Use std::size_t for buffer size/len arguments 2018-05-22 15:10:10 -07:00
Peter D. Barnes, Jr.
8c84b8be73 core: bug 2461: CommandLine should handle non-option arguments 2018-04-05 17:32:03 -07:00
Peter D. Barnes, Jr.
5b57d9286e core: refactor DesMetrics to accept new argument vector from CommandLine 2018-04-05 17:26:49 -07:00
Peter D. Barnes, Jr.
042d2e38e5 core: bug 2901: Add CommandLine::Parse (const std::vector<std::string>> args); 2018-04-03 14:49:27 -07:00
Peter D. Barnes, Jr.
43ef986a4d core: Visual Studio compiler warnings (based on Robert Ammon's patch) 2018-03-27 19:19:12 -07:00
Peter D. Barnes, Jr.
bc2ab59d4c [doxy] core/model 2017-09-18 00:51:28 -07:00
Alexander Krotov
1a87bdd630 core: Fix order of command line argument parsing
It was accidentally reversed in b969c544fae1, so first arguments had
higher precedence than last.
2017-03-22 11:26:46 +03:00
Peter D. Barnes, Jr.
8d7160380e DES Metrics implementation. 2016-09-02 22:40:07 -04:00
Peter D. Barnes, Jr.
cc9ea12573 core: refix problem with temporary variable
This amends r12238 (271042c52437)
2016-08-26 09:46:16 -07:00
Peter D. Barnes, Jr.
275d52f141 core: fix problem with temporary variable
With the upcoming des-metrics feature, the temporary string created
from argv[0] for the argument to Split triggers a bizarre overwrite.
Making the temporary explicit, with block scope as arg0, fixes this.
2016-08-04 13:17:00 -07:00
Peter D. Barnes, Jr.
08ff4e78cf [core] Use standard arguments args, argv. 2016-06-16 16:11:31 -07:00
Peter D. Barnes, Jr.
7e2079057b [Doxygen] Various in src/core 2014-12-18 15:12:35 -08:00
Peter D. Barnes, Jr.
a5c748e8ab [Doxygen] CommandLine 2014-12-07 18:27:56 -08:00
Peter D. Barnes, Jr.
bfdb6ef10a [Bug 1551] Redux: NS_LOG_COMPONENT_DEFINE inside or outside of ns3 namespace? 2014-09-26 15:51:00 -07:00
Peter D. Barnes, Jr.
06fe039cd9 Fix misspelled argument name; refactor to use LookupAttributeByName 2014-08-18 12:35:33 -07:00
Peter D. Barnes, Jr.
b8b676a8d7 CommandLine Attribute shorthand 2014-08-14 12:46:11 -07:00
Peter D. Barnes, Jr.
60505541ec Sort output of the CommandLine::Print functions 2014-08-14 11:31:12 -07:00
Peter D. Barnes, Jr.
28ac4c7f40 [Bug 1653] Extension of CommandLine interface
Restore operator << (std::ostream, CommandLine) erroneously removed
in rev 10155.
2014-02-20 22:00:09 -08:00
Peter D. Barnes, Jr.
4a6adc5e51 Make CommandLine print boolean defaults as text.
And
- clarify the documentation
- make example arguments more explicit
- make "--boolArg" toggle the value, not set to true (this enables
    toggle on default true values)
2013-08-07 10:36:45 -07:00
Alexander Afanasyev
47a985c9ca [PATCH] core: Extending public interface of CommandLine class 2013-08-13 23:19:31 -07:00
Peter D. Barnes, Jr.
4b09ce3268 CommandLine callback example, show user defaults, code cleanup 2013-07-09 13:14:19 -07:00
Peter D. Barnes, Jr.
744b0617a5 CommandLine: add Usage message, simplify bool args
Accept obvious bool arguments:  --arg --arg=t --arg=true
Get program name from argv[0]
Example program
Doxygenate
2013-06-14 13:54:39 -07:00
Mitch Watrous
51b1212de9 Remove more log messages from operators and copy constructors 2012-12-14 14:07:33 -08:00
Maja Grubišić
5e6ad05194 Clean up function logging of core module. 2012-11-10 19:16:38 +01:00
Vedran Miletić
71e380b55e Bug 1237 - code cleanups related to includes 2012-09-01 20:57:21 +02:00
Mathieu Lacage
aef38c492b use new API. kill old one. 2011-08-03 10:04:56 -04:00
Josh Pelkey
86379fa5b5 core coding style changes 2011-05-13 14:52:27 -04:00
Mitch Watrous
a0ab62ad90 Move tests from core module to its test library and update CHANGES.html 2011-04-06 15:32:12 -07:00