Nemiver  0.3
Namespaces | Classes | Typedefs | Enumerations | Functions
nemiver::common Namespace Reference

Namespaces

 dateutils
 
 env
 
 libxmlutils
 
 parsing_utils
 
 tools
 

Classes

class  Address
 
class  AddressLoc
 
class  Asm
 
class  AsmInstr
 
class  Buffer
 
struct  CharsRef
 
class  Column
 
class  Config
 
class  ConfManager
 
class  Connection
 
class  ConnectionManager
 declaration of the entry point of the db abstraction layer. this class has the capacity to set the type of the db driver we want to use, connect to a database and return a #Connection object. More...
 
class  DBDesc
 
struct  DefaultRef
 
struct  DelCharsUnref
 
struct  DeleteFunctor
 
class  DeleteStatement
 
struct  DelUnicharsUnref
 
class  DisassembleInfo
 
class  DynamicModule
 The base class for loadable modules. More...
 
class  DynamicModuleManager
 
class  DynModIface
 
class  Exception
 
struct  FreeUnref
 
class  FunctionLoc
 
struct  GCharRef
 
struct  GCharUnref
 
struct  GErrorRef
 
struct  GErrorUnref
 
class  IConnectionDriver
 
class  IConnectionManagerDriver
 
class  IInputStream
 
class  Initializer
 
class  InsertStatement
 
class  IProcMgr
 
class  Loc
 The base type presenting a location. More...
 
class  LogStream
 the log stream class it features logs on cout, cerr, and files. it also features log domains and log levels. More...
 
class  MixedAsmInstr
 
class  ModuleRegistry
 
class  Object
 
struct  ObjectRef
 
struct  ObjectUnref
 
class  Plugin
 
class  PluginManager
 
class  Range
 This abstracts a range of integer values. More...
 
class  ReadLine
 
struct  RefGObjectNative
 
class  SafePtr
 
class  ScopeLogger
 
class  Sequence
 
class  SourceLoc
 
class  SQLStatement
 
class  Transaction
 the application level persistence transaction class. abstracts a transaction several persistent objects can be part of. This class is used to model the fact that there the persistence of several instances can be part of the same transaction. Either they all succeed in persisting their data, or they all fail. Read docs/nmv-persistence.txt to learn more. More...
 
struct  TransactionAutoHelper
 
struct  UnicharsRef
 
struct  UnrefGObjectNative
 
class  UString
 
class  WString
 

Typedefs

typedef bool(* FindFileAndReadLine) (Gtk::Window &a_parent_window, const UString &a_file_path, const std::list< UString > &a_where_to_look, list< UString > &a_sess_dirs, map< UString, bool > &a_ignore_paths, int a_line_number, std::string &a_line)
 A pointer to ui_utils::find_file_and_read_line() function. More...
 
typedef SafePtr< Config, ObjectRef, ObjectUnrefConfigSafePtr
 
typedef common::SafePtr< Connection, common::ObjectRef, common::ObjectUnrefConnectionSafePtr
 
typedef SafePtr< DynamicModule, ObjectRef, ObjectUnrefDynamicModuleSafePtr
 
typedef SafePtr< DynModIface, ObjectRef, ObjectUnrefDynModIfaceSafePtr
 
typedef SafePtr< DynamicModuleManager, ObjectRef, ObjectUnrefDynamicModuleManagerSafePtr
 
typedef common::SafePtr< IConnectionDriver, common::ObjectRef, common::ObjectUnrefIConnectionDriverSafePtr
 
typedef common::SafePtr< IConnectionManagerDriver, common::ObjectRef, common::ObjectUnrefIConnectionManagerDriverSafePtr
 
typedef SafePtr< PluginManager, ObjectRef, ObjectUnrefPluginManagerSafePtr
 
typedef SafePtr< Plugin, ObjectRef, ObjectUnrefPluginSafePtr
 
typedef SafePtr< IProcMgr, ObjectRef, ObjectUnrefIProcMgrSafePtr
 
typedef SafePtr< gchar, CharsRef, GCharUnrefGCharSafePtr
 
typedef SafePtr< Object, ObjectRef, ObjectUnrefObjectSafePtr
 
typedef SafePtr< gchar, CharsRef, DelCharsUnrefCharSafePtr
 
typedef SafePtr< gunichar, UnicharsRef, DelUnicharsUnrefUnicharSafePtr
 
typedef SafePtr< GError, GErrorRef, GErrorUnrefGErrorSafePtr
 
typedef SafePtr< void *, RefGObjectNative, UnrefGObjectNativeNativeGObjectSafePtr
 
typedef vector< ColumnColumnList
 
typedef common::SafePtr< Transaction, common::ObjectRef, common::ObjectUnrefTransactionSafePtr
 

Enumerations

enum  ColumnType {
  COLUMN_TYPE_INT =1, COLUMN_TYPE_BIG_INT =1<<1, COLUMN_TYPE_DECIMAL =1<<2, COLUMN_TYPE_DOUBLE =1<<3,
  COLUMN_TYPE_DATETIME =1<<3, COLUMN_TYPE_STRING =1<<4, COLUMN_TYPE_BLOB =1<<5, COLUMN_TYPE_UNKNOWN =1<<30
}
 

Functions

template<class Stream >
Stream & operator<< (Stream &a_os, const Address &a)
 
template<class Stream >
Stream & operator<< (Stream &a_out, const AsmInstr &a_instr)
 
template<class Stream >
Stream & operator<< (Stream &a_out, const MixedAsmInstr &a_instr)
 
template<class Stream >
Stream & operator<< (Stream &a_out, const Asm &a_asm)
 
void log_asm_insns (const std::list< common::Asm > &a_asm)
 
bool write_asm_instr (const common::Asm &a_asm, ReadLine &a_read, std::ostringstream &a_os)
 
template<class T >
SafePtr< T, ObjectRef, ObjectUnrefload_iface_using_context (DynModIface &a_iface, const UString &a_iface_name)
 
template<class T >
SafePtr< T, ObjectRef, ObjectUnrefload_iface_using_context (DynamicModule &a_dynmod, const UString &a_iface_name)
 
LogStreamtimestamp (LogStream &)
 logs a timestamp. Basically the the current date. You use it like: nemiver::LogStream out; out << nemiver::timestamp ; More...
 
LogStreamflush (LogStream &)
 flushes the stream Use it like: nemiver::LogStream out; out << "Hello" << nemiver::flush; More...
 
LogStreamendl (LogStream &)
 log a '\n' and flushes the stream Use it like: nemiver::LogStream out; out << "hello"<< nemiver::endl; More...
 
LogStreamlevel_normal (LogStream &)
 sets the log level to normal Use it like nemiver::LogStream out; out << nemiver::level_normal << "blabla"; More...
 
LogStreamlevel_verbose (LogStream &)
 sets the log level to verbose Use it lik: nemiver::LogStream out; out << nemiver::level_verbose << "bla bla bla"; More...
 
bool launch_program (const std::vector< UString > &a_args, int &a_pid, int &a_master_pty_fd, int &a_stdout_fd, int &a_stderr_fd)
 
void attach_channel_to_loop_context_as_source (Glib::IOCondition a_cond, const sigc::slot< bool, Glib::IOCondition > &a_slot, const Glib::RefPtr< Glib::IOChannel > &a_chan, const Glib::RefPtr< Glib::MainContext > &a_ctxt)
 
bool is_libtool_executable_wrapper (const UString &a_path)
 
common::LogStreamoperator<< (common::LogStream &, const SQLStatement &)
 
bool wstring_to_ustring (const WString &a_wstr, UString &a_ustr)
 
bool ustring_to_wstring (const UString &a_ustr, WString &a_wstr)
 

Typedef Documentation

◆ CharSafePtr

◆ ColumnList

◆ ConfigSafePtr

◆ ConnectionSafePtr

◆ DynamicModuleManagerSafePtr

◆ DynamicModuleSafePtr

◆ DynModIfaceSafePtr

◆ FindFileAndReadLine

typedef bool(* nemiver::common::FindFileAndReadLine) (Gtk::Window &a_parent_window, const UString &a_file_path, const std::list< UString > &a_where_to_look, list< UString > &a_sess_dirs, map< UString, bool > &a_ignore_paths, int a_line_number, std::string &a_line)

A pointer to ui_utils::find_file_and_read_line() function.

◆ GCharSafePtr

◆ GErrorSafePtr

◆ IConnectionDriverSafePtr

◆ IConnectionManagerDriverSafePtr

◆ IProcMgrSafePtr

◆ NativeGObjectSafePtr

◆ ObjectSafePtr

◆ PluginManagerSafePtr

◆ PluginSafePtr

◆ TransactionSafePtr

◆ UnicharSafePtr

Enumeration Type Documentation

◆ ColumnType

Enumerator
COLUMN_TYPE_INT 
COLUMN_TYPE_BIG_INT 
COLUMN_TYPE_DECIMAL 
COLUMN_TYPE_DOUBLE 
COLUMN_TYPE_DATETIME 
COLUMN_TYPE_STRING 
COLUMN_TYPE_BLOB 
COLUMN_TYPE_UNKNOWN 

Function Documentation

◆ attach_channel_to_loop_context_as_source()

void nemiver::common::attach_channel_to_loop_context_as_source ( Glib::IOCondition  a_cond,
const sigc::slot< bool, Glib::IOCondition > &  a_slot,
const Glib::RefPtr< Glib::IOChannel > &  a_chan,
const Glib::RefPtr< Glib::MainContext > &  a_ctxt 
)

◆ endl()

LogStream& nemiver::common::endl ( LogStream )

log a '\n' and flushes the stream Use it like: nemiver::LogStream out; out << "hello"<< nemiver::endl;

◆ flush()

LogStream& nemiver::common::flush ( LogStream )

flushes the stream Use it like: nemiver::LogStream out; out << "Hello" << nemiver::flush;

◆ is_libtool_executable_wrapper()

bool nemiver::common::is_libtool_executable_wrapper ( const UString a_path)

◆ launch_program()

bool nemiver::common::launch_program ( const std::vector< UString > &  a_args,
int &  a_pid,
int &  a_master_pty_fd,
int &  a_stdout_fd,
int &  a_stderr_fd 
)

◆ level_normal()

LogStream& nemiver::common::level_normal ( LogStream )

sets the log level to normal Use it like nemiver::LogStream out; out << nemiver::level_normal << "blabla";

◆ level_verbose()

LogStream& nemiver::common::level_verbose ( LogStream )

sets the log level to verbose Use it lik: nemiver::LogStream out; out << nemiver::level_verbose << "bla bla bla";

◆ load_iface_using_context() [1/2]

template<class T >
SafePtr<T, ObjectRef, ObjectUnref> nemiver::common::load_iface_using_context ( DynamicModule a_dynmod,
const UString a_iface_name 
)

◆ load_iface_using_context() [2/2]

template<class T >
SafePtr<T, ObjectRef, ObjectUnref> nemiver::common::load_iface_using_context ( DynModIface a_iface,
const UString a_iface_name 
)

◆ log_asm_insns()

void nemiver::common::log_asm_insns ( const std::list< common::Asm > &  a_asm)

◆ operator<<() [1/5]

common::LogStream& nemiver::common::operator<< ( common::LogStream ,
const SQLStatement  
)

◆ operator<<() [2/5]

template<class Stream >
Stream& nemiver::common::operator<< ( Stream &  a_os,
const Address a 
)

◆ operator<<() [3/5]

template<class Stream >
Stream& nemiver::common::operator<< ( Stream &  a_out,
const Asm a_asm 
)

◆ operator<<() [4/5]

template<class Stream >
Stream& nemiver::common::operator<< ( Stream &  a_out,
const AsmInstr a_instr 
)

◆ operator<<() [5/5]

template<class Stream >
Stream& nemiver::common::operator<< ( Stream &  a_out,
const MixedAsmInstr a_instr 
)

◆ timestamp()

LogStream& nemiver::common::timestamp ( LogStream )

logs a timestamp. Basically the the current date. You use it like: nemiver::LogStream out; out << nemiver::timestamp ;

◆ ustring_to_wstring()

bool nemiver::common::ustring_to_wstring ( const UString a_ustr,
WString a_wstr 
)

◆ write_asm_instr()

bool nemiver::common::write_asm_instr ( const common::Asm a_asm,
ReadLine a_read,
std::ostringstream &  a_os 
)

◆ wstring_to_ustring()

bool nemiver::common::wstring_to_ustring ( const WString a_wstr,
UString a_ustr 
)