File: hello_world.cc

package info (click to toggle)
colmap 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 15,408 kB
  • sloc: cpp: 142,920; ansic: 17,774; python: 3,613; sh: 428; makefile: 160
file content (20 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <cstdlib>
#include <iostream>

#include <colmap/controllers/option_manager.h>
#include <colmap/util/string.h>

int main(int argc, char** argv) {
  colmap::InitializeGlog(argv);

  std::string message;
  colmap::OptionManager options;
  options.AddRequiredOption("message", &message);
  if (!options.Parse(argc, argv)) {
    return EXIT_FAILURE;
  }

  std::cout << colmap::StringPrintf("Hello %s!\n", message.c_str());

  return EXIT_SUCCESS;
}