gatelib  2.1
Enumerations | Functions
g_common_functions.h File Reference
#include "g_common_def.h"
#include <string>

Go to the source code of this file.

Enumerations

enum  g::MsgBox_t {
  g::message_box_type_ok = 0, g::message_box_type_ok_cancel, g::message_box_type_retry_cancel, g::message_box_type_cancel_retry_continue,
  g::message_box_type_yes_no, g::message_box_type_help, g::message_box_type_yes_no_cancel, g::message_box_type_abort_retry_ignore
}
 Types of message box. More...
 
enum  g::MsgBoxResult_t {
  g::message_box_result_abort = 0, g::message_box_result_cancel, g::message_box_result_continue, g::message_box_result_ignore,
  g::message_box_result_no, g::message_box_result_ok, g::message_box_result_retry, g::message_box_result_try_again,
  g::message_box_result_yes, g::message_box_result_help
}
 Possible result of a message box call. More...
 

Functions

MsgBoxResult_t G_LIB_ITEM g::msg_box (const char *msg, const char *caption="g::lib", MsgBox_t type=message_box_type_ok)
 Launches a ( default simple ) message box.
 
MsgBoxResult_t G_LIB_ITEM g::msg_box (const GWchar_t *msg, const GWchar_t *caption=L"g::lib", MsgBox_t type=message_box_type_ok)
 Launches a ( default simple ) message box ( wide char version )
 
std::string G_LIB_ITEM g::get_jar_path ()
 
MsgBoxResult_t G_LIB_ITEM g::java_msg_box (const char *aMessage, const char *aCaption="g::lib", MsgBox_t aMsgBoxType=message_box_type_ok)
 Launches a message box "from a jar file".
 
MsgBoxResult_t G_LIB_ITEM g::win_msg_box (const char *aMessage, const char *aCaption="g::lib", MsgBox_t aMsgBoxType=message_box_type_ok)
 Launches a windows message box.
 
MsgBoxResult_t G_LIB_ITEM g::win_msg_box (const GWchar_t *aMessage, const GWchar_t *aCaption=L"g::lib", MsgBox_t aMsgBoxType=message_box_type_ok)
 Launches a windows message box.
 
std::wstring G_LIB_ITEM g::get_exe_name ()
 Returns the exe name of THIS application.
 
std::string g::to_StdString (const std::wstring &aString)
 std::wstring to std::string
 
std::wstring g::to_Wstring (const std::string &aString)
 Converts a string to a wide strings.
 
template<class T >
g::get_rounded_by_power_of_2 (T value, T delta)
 f(v,d) is the next multiple of d(MUST be a power of 2), which is k*d>=v && (k-1)*d<v More...