g2o
Loading...
Searching...
No Matches
Namespaces | Macros | Functions | Variables
g2o_common.cpp File Reference
#include "g2o_common.h"
#include <cstdlib>
#include <iostream>
#include <vector>
#include "dl_wrapper.h"
#include "g2o/stuff/filesys_tools.h"
#include "g2o/stuff/string_tools.h"
Include dependency graph for g2o_common.cpp:

Go to the source code of this file.

Namespaces

namespace  g2o
 

Macros

#define SO_EXT   "so"
 
#define PATH_SEPARATOR   ";"
 
#define G2O_LIBRARY_POSTFIX   ""
 

Functions

static void fakeFunctionForWindows ()
 
HMODULE getMyInstance ()
 
void g2o::findArguments (const std::string &option, vector< string > &args, int argc, char **argv)
 
void g2o::loadStandardTypes (DlWrapper &dlTypesWrapper, int argc, char **argv)
 
void g2o::loadStandardSolver (DlWrapper &dlSolverWrapper, int argc, char **argv)
 

Variables

static const string TYPES_PATTERN
 
static const string SOLVERS_PATTERN
 

Macro Definition Documentation

◆ G2O_LIBRARY_POSTFIX

#define G2O_LIBRARY_POSTFIX   ""

Definition at line 77 of file g2o_common.cpp.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   ";"

Definition at line 61 of file g2o_common.cpp.

◆ SO_EXT

#define SO_EXT   "so"

Definition at line 46 of file g2o_common.cpp.

Function Documentation

◆ fakeFunctionForWindows()

static void fakeFunctionForWindows ( )
static

Definition at line 63 of file g2o_common.cpp.

63{}

Referenced by getMyInstance().

◆ getMyInstance()

HMODULE getMyInstance ( )

Definition at line 65 of file g2o_common.cpp.

65 {
66 MEMORY_BASIC_INFORMATION mbi;
67 if (VirtualQuery((const void*)&fakeFunctionForWindows, &mbi, sizeof(mbi))) {
68 return (HMODULE)mbi.AllocationBase;
69 }
70 return NULL;
71}
static void fakeFunctionForWindows()

References fakeFunctionForWindows().

Referenced by g2o::loadStandardSolver(), and g2o::loadStandardTypes().

Variable Documentation

◆ SOLVERS_PATTERN

const string SOLVERS_PATTERN
static
Initial value:
= string("*_solver_*") +
string(".") + string(SO_EXT)
#define SO_EXT
#define G2O_LIBRARY_POSTFIX

Definition at line 83 of file g2o_common.cpp.

Referenced by g2o::loadStandardSolver().

◆ TYPES_PATTERN

const string TYPES_PATTERN
static
Initial value:
= string("*_types_*") +
string(G2O_LIBRARY_POSTFIX) + string(".") +
string(SO_EXT)

Definition at line 80 of file g2o_common.cpp.

Referenced by g2o::loadStandardTypes().