answer
stringlengths
15
1.25M
#ifndef <API key> #define <API key> #include <Berlin/config.hh> #include <Berlin/Console.hh> #include <string> extern "C" { #include <ggi/ggi-unix.h> } namespace Berlin { namespace Console_Extension { class GGIDrawable : public virtual Berlin::Console::Drawable { public: virtual const std::string &name() const = 0; virtual ggi_mode mode() const = 0; virtual ggi_visual_t visual() const = 0; }; class GGIDrawableFactory : virtual public Berlin::Console::Extension { public: //. Creates a new Drawable of the given size (x, y) and depth. //. It is accessable under the given shm-id. virtual GGIDrawable *create_drawable(int shmid, Fresco::PixelCoord, Fresco::PixelCoord, Fresco::PixelCoord) = 0; }; } // namespace } // namespace #endif
#ifndef QRGB_H #define QRGB_H #include <QtCore/qglobal.h> QT_BEGIN_HEADER QT_BEGIN_NAMESPACE QT_MODULE(Gui) typedef unsigned int QRgb; // RGB triplet const QRgb RGB_MASK = 0x00ffffff; // masks RGB values Q_GUI_EXPORT_INLINE int qRed(QRgb rgb) // get red part of RGB { return ((rgb >> 16) & 0xff); } Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb) // get green part of RGB { return ((rgb >> 8) & 0xff); } Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb) // get blue part of RGB { return (rgb & 0xff); } Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb) // get alpha part of RGBA { return ((rgb >> 24) & 0xff); } Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)// set RGB value { return (0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); } Q_GUI_EXPORT_INLINE QRgb qRgba(int r, int g, int b, int a)// set RGBA value { return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); } Q_GUI_EXPORT_INLINE int qGray(int r, int g, int b)// convert R,G,B to gray 0..255 { return (r*11+g*16+b*5)/32; } Q_GUI_EXPORT_INLINE int qGray(QRgb rgb) // convert RGB to gray 0..255 { return qGray(qRed(rgb), qGreen(rgb), qBlue(rgb)); } Q_GUI_EXPORT_INLINE bool qIsGray(QRgb rgb) { return qRed(rgb) == qGreen(rgb) && qRed(rgb) == qBlue(rgb); } QT_END_NAMESPACE QT_END_HEADER #endif // QRGB_H
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_25) on Mon Sep 29 10:45:19 PDT 2014 --> <title>Uses of Class org.minueto.<API key> (MinuetoAPI API)</title> <meta name="date" content="2014-09-29"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.minueto.<API key> (MinuetoAPI API)"; } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar_top"> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../org/minueto/<API key>.html" title="class in org.minueto">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../overview-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/minueto/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_top"> </a></div> <div class="header"> <h2 title="Uses of Class org.minueto.<API key>" class="title">Uses of Class<br>org.minueto.<API key></h2> </div> <div class="classUseContainer">No usage of org.minueto.<API key></div> <div class="bottomNav"><a name="navbar_bottom"> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../org/minueto/<API key>.html" title="class in org.minueto">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../overview-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../index.html?org/minueto/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip-navbar_bottom"> </a></div> </body> </html>
/** * @defgroup Win Win * @ingroup Elementary * * @image html <API key>.png * @image latex <API key>.eps * * @image html img/widget/win/preview-00.png * @image latex img/widget/win/preview-00.eps * * The window class of Elementary. Contains functions to manipulate * windows. The Evas engine used to render the window contents is specified * in the system or user elementary config files (whichever is found last), * and can be overridden with the ELM_ENGINE environment variable for * testing. Engines that may be supported (depending on Evas and Ecore-Evas * compilation setup and modules actually installed at runtime) are (listed * in order of best supported and most likely to be complete and work to * lowest quality). Note that ELM_ENGINE is really only needed for special * cases and debugging. you should normally use ELM_DISPLAY and ELM_ACCEL * environment variables, or core elementary config. ELM_DISPLAY can be set to * "x11" or "wl" to indicate the target display system (as on Linux systems * you may have both display systems available, so this selects which to use). * ELM_ACCEL may also be set to indicate if you want accelerations and which * kind to use. see <API key>(0 for details on this * environment variable values. * * @li "x11", "x", "software-x11", "software_x11" (Software rendering in X11) * @li "gl", "opengl", "opengl-x11", "opengl_x11" (OpenGL or OpenGL-ES2 * rendering in X11) * @li "shot:..." (Virtual screenshot renderer - renders to output file and * exits) * @li "fb", "software-fb", "software_fb" (Linux framebuffer direct software * rendering) * @li "fb", "software-fb", "software_fb" (Linux framebuffer accelerated * rendering) * @li "sdl", "software-sdl", "software_sdl" (SDL software rendering to SDL * buffer) * @li "gl-sdl", "gl_sdl", "opengl-sdl", "opengl_sdl" (OpenGL or OpenGL-ES2 * rendering using SDL as the buffer) * @li "gdi", "software-gdi", "software_gdi" (Windows WIN32 rendering via * GDI with software) * @li "ews" (rendering to EWS - Ecore + Evas Single Process Windowing System) * @li "gl-cocoa", "gl_cocoa", "opengl-cocoa", "opengl_cocoa" (OpenGL rendering in Cocoa) * @li "wayland_shm" (Wayland client SHM rendering) * @li "wayland_egl" (Wayland client OpenGL/EGL rendering) * @li "drm" (Linux drm/kms etc. direct display) * * All engines use a simple string to select the engine to render, EXCEPT * the "shot" engine. This actually encodes the output of the virtual * screenshot and how long to delay in the engine string. The engine string * is encoded in the following way: * * "shot:[delay=XX][:][repeat=DDD][:][file=XX]" * * Where options are separated by a ":" char if more than one option is * given, with delay, if provided being the first option and file the last * (order is important). The delay specifies how long to wait after the * window is shown before doing the virtual "in memory" rendering and then * save the output to the file specified by the file option (and then exit). * If no delay is given, the default is 0.5 seconds. If no file is given the * default output file is "out.png". Repeat option is for continuous * capturing screenshots. Repeat range is from 1 to 999 and filename is * fixed to "out001.png" Some examples of using the shot engine: * * ELM_ENGINE="shot:delay=1.0:repeat=5:file=elm_test.png" elementary_test * ELM_ENGINE="shot:delay=1.0:file=elm_test.png" elementary_test * ELM_ENGINE="shot:file=elm_test2.png" elementary_test * ELM_ENGINE="shot:delay=2.0" elementary_test * ELM_ENGINE="shot:" elementary_test * * Signals that you can add callbacks for are: * * @li "delete,request": the user requested to close the window. See * elm_win_autodel_set() and <API key>(). * @li "focus,in": window got focus (deprecated. use "focused" instead.) * @li "focus,out": window lost focus (deprecated. use "unfocused" instead.) * @li "moved": window that holds the canvas was moved * @li "withdrawn": window is still managed normally but removed from view * @li "iconified": window is minimized (perhaps into an icon or taskbar) * @li "normal": window is in a normal state (not withdrawn or iconified) * @li "stick": window has become sticky (shows on all desktops) * @li "unstick": window has stopped being sticky * @li "fullscreen": window has become fullscreen * @li "unfullscreen": window has stopped being fullscreen * @li "maximized": window has been maximized * @li "unmaximized": window has stopped being maximized * @li "ioerr": there has been a low-level I/O error with the display system * @li "indicator,prop,changed": an indicator's property has been changed * @li "rotation,changed": window rotation has been changed * @li "profile,changed": profile of the window has been changed * @li "focused" : When the win has received focus. (since 1.8) * @li "unfocused" : When the win has lost focus. (since 1.8) * @li "theme,changed" - The theme was changed. (since 1.13) * * Note that calling evas_object_show() after window contents creation is * recommended. It will trigger <API key>() and some backend * calls directly. For example, XMapWindow is called directly during * evas_object_show() in X11 engine. * * Examples: * @li @ref win_example_01 * * @{ */ #include <elm_win_common.h> #ifdef EFL_EO_API_SUPPORT #include <elm_win_eo.h> #endif #ifndef <API key> #include <elm_win_legacy.h> #endif
<?php /** * @package tikiwiki */ $section = 'surveys'; require_once('tiki-setup.php'); include_once('lib/surveys/surveylib.php'); $auto_query_args = ['sort_mode', 'offset', 'find']; $access->check_feature('feature_surveys'); $access->check_permission('<API key>'); if (! isset($_REQUEST["sort_mode"])) { $sort_mode = 'created_desc'; } else { $sort_mode = $_REQUEST["sort_mode"]; } if (! isset($_REQUEST["offset"])) { $offset = 0; } else { $offset = $_REQUEST["offset"]; } $smarty->assign_by_ref('offset', $offset); if (isset($_REQUEST["find"])) { $find = $_REQUEST["find"]; } else { $find = ''; } $smarty->assign('find', $find); $smarty->assign_by_ref('sort_mode', $sort_mode); $channels = $srvlib->list_surveys($offset, $maxRecords, $sort_mode, $find); $temp_max = count($channels["data"]); for ($i = 0; $i < $temp_max; $i++) { if ($userlib-><API key>($channels["data"][$i]["surveyId"], 'survey')) { $channels["data"][$i]["individual"] = 'y'; if ($userlib-><API key>($user, $channels["data"][$i]["surveyId"], 'survey', 'tiki_p_take_survey')) { $channels["data"][$i]["<API key>"] = 'y'; } else { $channels["data"][$i]["<API key>"] = 'n'; } if ($userlib-><API key>($user, $channels["data"][$i]["surveyId"], 'survey', '<API key>')) { $channels["data"][$i]["<API key>"] = 'y'; } else { $channels["data"][$i]["<API key>"] = 'n'; } if ($tiki_p_admin == 'y' || $userlib-><API key>($user, $channels["data"][$i]["surveyId"], 'survey', '<API key>')) { $channels["data"][$i]["<API key>"] = 'y'; $channels["data"][$i]["<API key>"] = 'y'; $channels["data"][$i]["<API key>"] = 'y'; } } else { $channels["data"][$i]["individual"] = 'n'; } } $smarty->assign_by_ref('cant_pages', $channels["cant"]); $smarty->assign_by_ref('channels', $channels["data"]); $smarty->assign('section', $section); include_once('<API key>.php'); ask_ticket('survey-stats'); // Display the template $smarty->assign('mid', 'tiki-survey_stats.tpl'); $smarty->display("tiki.tpl");
/* * Interfaces MIB group interface - interfaces.h * */ #ifndef <API key> #define <API key> /*********************************************************************** * configure macros */ config_require(util_funcs) /* * conflicts with the new MFD rewrite */ config_exclude(if-mib/ifTable/ifTable) #if !defined(WIN32) && !defined(cygwin) config_require(if-mib/data_access/interface) #endif config_arch_require(solaris2, kernel_sunos5) /* * need get_address in var_route for some platforms (USE_SYSCTL_IFLIST). * Not sure if that can be translated into a config_arch_require, so be * indiscriminate for now. */ config_require(mibII/var_route) #ifndef <API key> #ifdef hpux11 #include <sys/mib.h> #else struct in_ifaddr; struct ifnet; #endif int <API key>(void); int <API key>(char *, int); void Interface_Scan_Init(void); #if defined(linux) || defined(sunV3) struct in_ifaddr { int dummy; }; #endif #if defined(hpux11) int Interface_Scan_Next(short *, char *, nmapi_phystat *); #else int Interface_Scan_Next(short *, char *, struct ifnet *, struct in_ifaddr *); #endif void init_interfaces(void); extern FindVarMethod var_interfaces; extern FindVarMethod var_ifEntry; #endif /* <API key> */ #define IFNUMBER 0 #define IFINDEX 1 #define IFDESCR 2 #define NETSNMP_IFTYPE 3 #define IFMTU 4 #define IFSPEED 5 #define IFPHYSADDRESS 6 #define IFADMINSTATUS 7 #define IFOPERSTATUS 8 #define IFLASTCHANGE 9 #define IFINOCTETS 10 #define IFINUCASTPKTS 11 #define IFINNUCASTPKTS 12 #define IFINDISCARDS 13 #define IFINERRORS 14 #define IFINUNKNOWNPROTOS 15 #define IFOUTOCTETS 16 #define IFOUTUCASTPKTS 17 #define IFOUTNUCASTPKTS 18 #define IFOUTDISCARDS 19 #define IFOUTERRORS 20 #define IFOUTQLEN 21 #define IFSPECIFIC 22 #ifdef linux /* * this struct ifnet is cloned from the generic type and somewhat modified. * it will not work for other un*x'es... */ struct ifnet { char *if_name; /* name, e.g. ``en'' or ``lo'' */ char *if_unit; /* sub-unit for lower level driver */ short if_mtu; /* maximum transmission unit */ short if_flags; /* up/down, broadcast, etc. */ int if_metric; /* routing metric (external only) */ char if_hwaddr[6]; /* ethernet address */ int if_type; /* interface type: 1=generic, * 28=slip, ether=6, loopback=24 */ u_long if_speed; /* interface speed: in bits/sec */ struct sockaddr if_addr; /* interface's address */ struct sockaddr ifu_broadaddr; /* broadcast address */ struct sockaddr ia_subnetmask; /* interface's mask */ struct ifqueue { int ifq_len; int ifq_drops; } if_snd; /* output queue */ u_long if_ibytes; /* octets received on interface */ u_long if_ipackets; /* packets received on interface */ u_long if_ierrors; /* input errors on interface */ u_long if_iqdrops; /* input queue overruns */ u_long if_obytes; /* octets sent on interface */ u_long if_opackets; /* packets sent on interface */ u_long if_oerrors; /* output errors on interface */ u_long if_collisions; /* collisions on csma interfaces */ /* * end statistics */ struct ifnet *if_next; }; #endif /* linux */ #endif /* <API key> */
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_60) on Sun Mar 20 22:06:58 PDT 2016 --> <title>Uses of Package com.JasonILTG.ScienceMod.item.armor</title> <meta name="date" content="2016-03-20"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Package com.JasonILTG.ScienceMod.item.armor"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/JasonILTG/ScienceMod/item/armor/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h1 title="Uses of Package com.JasonILTG.ScienceMod.item.armor" class="title">Uses of Package<br>com.JasonILTG.ScienceMod.item.armor</h1> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../com/JasonILTG/ScienceMod/item/armor/package-summary.html">com.JasonILTG.ScienceMod.item.armor</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#com.JasonILTG.ScienceMod.init">com.JasonILTG.ScienceMod.init</a></td> <td class="colLast">&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#com.JasonILTG.ScienceMod.item.armor">com.JasonILTG.ScienceMod.item.armor</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.JasonILTG.ScienceMod.init"> </a> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../../com/JasonILTG/ScienceMod/item/armor/package-summary.html">com.JasonILTG.ScienceMod.item.armor</a> used by <a href="../../../../../com/JasonILTG/ScienceMod/init/package-summary.html">com.JasonILTG.ScienceMod.init</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../../com/JasonILTG/ScienceMod/item/armor/class-use/ArmorScience.html#com.JasonILTG.ScienceMod.init">ArmorScience</a> <div class="block">Wrapper class for all armor items in the mod.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="com.JasonILTG.ScienceMod.item.armor"> </a> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> <caption><span>Classes in <a href="../../../../../com/JasonILTG/ScienceMod/item/armor/package-summary.html">com.JasonILTG.ScienceMod.item.armor</a> used by <a href="../../../../../com/JasonILTG/ScienceMod/item/armor/package-summary.html">com.JasonILTG.ScienceMod.item.armor</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colOne"><a href="../../../../../com/JasonILTG/ScienceMod/item/armor/class-use/ArmorScience.html#com.JasonILTG.ScienceMod.item.armor">ArmorScience</a> <div class="block">Wrapper class for all armor items in the mod.</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../../com/JasonILTG/ScienceMod/item/armor/class-use/ArmorScienceSpecial.html#com.JasonILTG.ScienceMod.item.armor">ArmorScienceSpecial</a> <div class="block">Wrapper class for all armor items with special properties in the mod.</div> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../../com/JasonILTG/ScienceMod/item/armor/class-use/Exoskeleton.html#com.JasonILTG.ScienceMod.item.armor">Exoskeleton</a>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><a href="../../../../../com/JasonILTG/ScienceMod/item/armor/class-use/IShieldProvider.html#com.JasonILTG.ScienceMod.item.armor">IShieldProvider</a>&nbsp;</td> </tr> <tr class="altColor"> <td class="colOne"><a href="../../../../../com/JasonILTG/ScienceMod/item/armor/class-use/ScienceShield.html#com.JasonILTG.ScienceMod.item.armor">ScienceShield</a>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li>Class</li> <li class="navBarCell1Rev">Use</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/JasonILTG/ScienceMod/item/armor/package-use.html" target="_top">Frames</a></li> <li><a href="package-use.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> </body> </html>
#ifndef OGR_CORE_H_INCLUDED #define OGR_CORE_H_INCLUDED #include "cpl_port.h" #include "gdal_version.h" /** * \file * * Core portability services for cross-platform OGR code. */ /** * Simple container for a bounding region. */ #if defined(__cplusplus) && !defined(<API key>) class CPL_DLL OGREnvelope { public: OGREnvelope() : MinX(0.0), MaxX(0.0), MinY(0.0), MaxY(0.0) {} OGREnvelope(const OGREnvelope &oOther) : MinX(oOther.MinX), MaxX(oOther.MaxX), MinY(oOther.MinY), MaxY(oOther.MaxY) {} double MinX; double MaxX; double MinY; double MaxY; int IsInit() const { return MinX != 0 || MinY != 0 || MaxX != 0 || MaxY != 0; } void Merge(OGREnvelope const &sOther) { if (IsInit()) { MinX = MIN(MinX, sOther.MinX); MaxX = MAX(MaxX, sOther.MaxX); MinY = MIN(MinY, sOther.MinY); MaxY = MAX(MaxY, sOther.MaxY); } else { MinX = sOther.MinX; MaxX = sOther.MaxX; MinY = sOther.MinY; MaxY = sOther.MaxY; } } void Merge(double dfX, double dfY) { if (IsInit()) { MinX = MIN(MinX, dfX); MaxX = MAX(MaxX, dfX); MinY = MIN(MinY, dfY); MaxY = MAX(MaxY, dfY); } else { MinX = MaxX = dfX; MinY = MaxY = dfY; } } void Intersect(OGREnvelope const &sOther) { if (Intersects(sOther)) { if (IsInit()) { MinX = MAX(MinX, sOther.MinX); MaxX = MIN(MaxX, sOther.MaxX); MinY = MAX(MinY, sOther.MinY); MaxY = MIN(MaxY, sOther.MaxY); } else { MinX = sOther.MinX; MaxX = sOther.MaxX; MinY = sOther.MinY; MaxY = sOther.MaxY; } } else { MinX = 0; MaxX = 0; MinY = 0; MaxY = 0; } } int Intersects(OGREnvelope const &other) const { return MinX <= other.MaxX && MaxX >= other.MinX && MinY <= other.MaxY && MaxY >= other.MinY; } int Contains(OGREnvelope const &other) const { return MinX <= other.MinX && MinY <= other.MinY && MaxX >= other.MaxX && MaxY >= other.MaxY; } }; #else typedef struct { double MinX; double MaxX; double MinY; double MaxY; } OGREnvelope; #endif /** * Simple container for a bounding region in 3D. */ #if defined(__cplusplus) && !defined(<API key>) class CPL_DLL OGREnvelope3D : public OGREnvelope { public: OGREnvelope3D() : OGREnvelope(), MinZ(0.0), MaxZ(0.0) {} OGREnvelope3D(const OGREnvelope3D &oOther) : OGREnvelope(oOther), MinZ(oOther.MinZ), MaxZ(oOther.MaxZ) {} double MinZ; double MaxZ; int IsInit() const { return MinX != 0 || MinY != 0 || MaxX != 0 || MaxY != 0 || MinZ != 0 || MaxZ != 0; } void Merge(OGREnvelope3D const &sOther) { if (IsInit()) { MinX = MIN(MinX, sOther.MinX); MaxX = MAX(MaxX, sOther.MaxX); MinY = MIN(MinY, sOther.MinY); MaxY = MAX(MaxY, sOther.MaxY); MinZ = MIN(MinZ, sOther.MinZ); MaxZ = MAX(MaxZ, sOther.MaxZ); } else { MinX = sOther.MinX; MaxX = sOther.MaxX; MinY = sOther.MinY; MaxY = sOther.MaxY; MinZ = sOther.MinZ; MaxZ = sOther.MaxZ; } } void Merge(double dfX, double dfY, double dfZ) { if (IsInit()) { MinX = MIN(MinX, dfX); MaxX = MAX(MaxX, dfX); MinY = MIN(MinY, dfY); MaxY = MAX(MaxY, dfY); MinZ = MIN(MinZ, dfZ); MaxZ = MAX(MaxZ, dfZ); } else { MinX = MaxX = dfX; MinY = MaxY = dfY; MinZ = MaxZ = dfZ; } } void Intersect(OGREnvelope3D const &sOther) { if (Intersects(sOther)) { if (IsInit()) { MinX = MAX(MinX, sOther.MinX); MaxX = MIN(MaxX, sOther.MaxX); MinY = MAX(MinY, sOther.MinY); MaxY = MIN(MaxY, sOther.MaxY); MinZ = MAX(MinZ, sOther.MinZ); MaxZ = MIN(MaxZ, sOther.MaxZ); } else { MinX = sOther.MinX; MaxX = sOther.MaxX; MinY = sOther.MinY; MaxY = sOther.MaxY; MinZ = sOther.MinZ; MaxZ = sOther.MaxZ; } } else { MinX = 0; MaxX = 0; MinY = 0; MaxY = 0; MinZ = 0; MaxZ = 0; } } int Intersects(OGREnvelope3D const &other) const { return MinX <= other.MaxX && MaxX >= other.MinX && MinY <= other.MaxY && MaxY >= other.MinY && MinZ <= other.MaxZ && MaxZ >= other.MinZ; } int Contains(OGREnvelope3D const &other) const { return MinX <= other.MinX && MinY <= other.MinY && MaxX >= other.MaxX && MaxY >= other.MaxY && MaxZ >= other.MaxZ && MaxZ >= other.MaxZ; } }; #else typedef struct { double MinX; double MaxX; double MinY; double MaxY; double MinZ; double MaxZ; } OGREnvelope3D; #endif CPL_C_START void CPL_DLL*OGRMalloc(size_t); void CPL_DLL*OGRCalloc(size_t, size_t); void CPL_DLL*OGRRealloc(void*, size_t); char CPL_DLL* OGRStrdup(const char*); void CPL_DLL OGRFree(void*); typedef int OGRErr; #define OGRERR_NONE 0 #define <API key> 1 /* not enough data to deserialize */ #define <API key> 2 #define <API key> 3 #define <API key> 4 #define OGRERR_CORRUPT_DATA 5 #define OGRERR_FAILURE 6 #define <API key> 7 #define <API key> 8 typedef int OGRBoolean; /* ogr_geometry.h related definitions. */ /** * List of well known binary geometry types. These are used within the BLOBs * but are also returned from OGRGeometry::getGeometryType() to identify the * type of a geometry object. */ typedef enum { wkbUnknown = 0, /**< unknown type, non-standard */ wkbPoint = 1, /**< 0-dimensional geometric object, standard WKB */ wkbLineString = 2, /**< 1-dimensional geometric object with linear * interpolation between Points, standard WKB */ wkbPolygon = 3, /**< planar 2-dimensional geometric object defined * by 1 exterior boundary and 0 or more interior * boundaries, standard WKB */ wkbMultiPoint = 4, /**< GeometryCollection of Points, standard WKB */ wkbMultiLineString = 5, /**< GeometryCollection of LineStrings, standard WKB */ wkbMultiPolygon = 6, /**< GeometryCollection of Polygons, standard WKB */ <API key> = 7, /**< geometric object that is a collection of 1 or more geometric objects, standard WKB */ wkbNone = 100, /**< non-standard, for pure attribute records */ wkbLinearRing = 101, /**< non-standard, just for createGeometry() */ wkbPoint25D = 0x80000001, /**< 2.5D extension as per 99-402 */ wkbLineString25D = 0x80000002, /**< 2.5D extension as per 99-402 */ wkbPolygon25D = 0x80000003, /**< 2.5D extension as per 99-402 */ wkbMultiPoint25D = 0x80000004, /**< 2.5D extension as per 99-402 */ <API key> = 0x80000005, /**< 2.5D extension as per 99-402 */ wkbMultiPolygon25D = 0x80000006, /**< 2.5D extension as per 99-402 */ <API key> = 0x80000007 /**< 2.5D extension as per 99-402 */ } OGRwkbGeometryType; #define wkb25DBit 0x80000000 #define wkbFlatten(x) ((OGRwkbGeometryType) ((x)& (~wkb25DBit))) #define ogrZMarker 0x21125711 const char CPL_DLL* <API key>(OGRwkbGeometryType eType); OGRwkbGeometryType CPL_DLL <API key>(OGRwkbGeometryType eMain, OGRwkbGeometryType eExtra); typedef enum { wkbXDR = 0, /* MSB/Sun/Motoroloa: Most Significant Byte First */ wkbNDR = 1 /* LSB/Intel/Vax: Least Significant Byte First */ } OGRwkbByteOrder; #ifndef <API key> # define <API key> #endif #ifdef <API key> # define <API key>(x) ((((x) & 0x31) == (x)) ? (OGRwkbByteOrder) ((x) & 0x1) : (x)) # define <API key>(x) ((unsigned char) (OGRGeometry::<API key> ? ((x) | 0x30) : (x))) #else # define <API key>(x) (x) # define <API key>(x) (x) #endif #define ALTER_NAME_FLAG 0x1 #define ALTER_TYPE_FLAG 0x2 #define <API key> 0x4 #define ALTER_ALL_FLAG (ALTER_NAME_FLAG | ALTER_TYPE_FLAG | <API key>) /* ogr_feature.h related definitions. */ /** * List of feature field types. This list is likely to be extended in the * future ... avoid coding applications based on the assumption that all * field types can be known. */ typedef enum { /** Simple 32bit integer */ OFTInteger = 0, /** List of 32bit integers */ OFTIntegerList = 1, /** Double Precision floating point */ OFTReal = 2, /** List of doubles */ OFTRealList = 3, /** String of ASCII chars */ OFTString = 4, /** Array of strings */ OFTStringList = 5, /** deprecated */ OFTWideString = 6, /** deprecated */ OFTWideStringList = 7, /** Raw Binary data */ OFTBinary = 8, /** Date */ OFTDate = 9, /** Time */ OFTTime = 10, /** Date and Time */ OFTDateTime = 11, OFTMaxType = 11 } OGRFieldType; /** * Display justification for field values. */ typedef enum { OJUndefined = 0, OJLeft = 1, OJRight = 2 } OGRJustification; #define OGRNullFID -1 #define OGRUnsetMarker -21121 /* OGRField */ /** * OGRFeature field attribute value union. */ typedef union { int Integer; double Real; char *String; struct { int nCount; int *paList; } IntegerList; struct { int nCount; double *paList; } RealList; struct { int nCount; char **paList; } StringList; struct { int nCount; GByte *paData; } Binary; struct { int nMarker1; int nMarker2; } Set; struct { GInt16 Year; GByte Month; GByte Day; GByte Hour; GByte Minute; GByte Second; GByte TZFlag; /* 0=unknown, 1=localtime(ambiguous), 100=GMT, 104=GMT+1, 80=GMT-5, etc */ } Date; } OGRField; int CPL_DLL OGRParseDate(const char *pszInput, OGRField *psOutput, int nOptions); /* Constants from ogrsf_frmts.h for capabilities. */ #define OLCRandomRead "RandomRead" #define OLCSequentialWrite "SequentialWrite" #define OLCRandomWrite "RandomWrite" #define <API key> "FastSpatialFilter" #define OLCFastFeatureCount "FastFeatureCount" #define OLCFastGetExtent "FastGetExtent" #define OLCCreateField "CreateField" #define OLCDeleteField "DeleteField" #define OLCReorderFields "ReorderFields" #define OLCAlterFieldDefn "AlterFieldDefn" #define OLCTransactions "Transactions" #define OLCDeleteFeature "DeleteFeature" #define <API key> "FastSetNextByIndex" #define OLCStringsAsUTF8 "StringsAsUTF8" #define OLCIgnoreFields "IgnoreFields" #define ODsCCreateLayer "CreateLayer" #define ODsCDeleteLayer "DeleteLayer" #define <API key> "CreateDataSource" #define <API key> "DeleteDataSource" /* ogr_featurestyle.h related definitions. */ /** * OGRStyleTool derived class types (returned by GetType()). */ typedef enum <API key> { OGRSTCNone = 0, OGRSTCPen = 1, OGRSTCBrush = 2, OGRSTCSymbol = 3, OGRSTCLabel = 4, OGRSTCVector = 5 } OGRSTClassId; /** * List of units supported by OGRStyleTools. */ typedef enum <API key> { OGRSTUGround = 0, OGRSTUPixel = 1, OGRSTUPoints = 2, OGRSTUMM = 3, OGRSTUCM = 4, OGRSTUInches = 5 } OGRSTUnitId; /** * List of parameters for use with OGRStylePen. */ typedef enum <API key> { OGRSTPenColor = 0, OGRSTPenWidth = 1, OGRSTPenPattern = 2, OGRSTPenId = 3, OGRSTPenPerOffset = 4, OGRSTPenCap = 5, OGRSTPenJoin = 6, OGRSTPenPriority = 7, OGRSTPenLast = 8 } OGRSTPenParam; /** * List of parameters for use with OGRStyleBrush. */ typedef enum <API key> { OGRSTBrushFColor = 0, OGRSTBrushBColor = 1, OGRSTBrushId = 2, OGRSTBrushAngle = 3, OGRSTBrushSize = 4, OGRSTBrushDx = 5, OGRSTBrushDy = 6, OGRSTBrushPriority = 7, OGRSTBrushLast = 8 } OGRSTBrushParam; /** * List of parameters for use with OGRStyleSymbol. */ typedef enum <API key> { OGRSTSymbolId = 0, OGRSTSymbolAngle = 1, OGRSTSymbolColor = 2, OGRSTSymbolSize = 3, OGRSTSymbolDx = 4, OGRSTSymbolDy = 5, OGRSTSymbolStep = 6, OGRSTSymbolPerp = 7, OGRSTSymbolOffset = 8, OGRSTSymbolPriority = 9, OGRSTSymbolFontName = 10, OGRSTSymbolOColor = 11, OGRSTSymbolLast = 12 } OGRSTSymbolParam; /** * List of parameters for use with OGRStyleLabel. */ typedef enum <API key> { OGRSTLabelFontName = 0, OGRSTLabelSize = 1, <API key> = 2, OGRSTLabelAngle = 3, OGRSTLabelFColor = 4, OGRSTLabelBColor = 5, OGRSTLabelPlacement = 6, OGRSTLabelAnchor = 7, OGRSTLabelDx = 8, OGRSTLabelDy = 9, OGRSTLabelPerp = 10, OGRSTLabelBold = 11, OGRSTLabelItalic = 12, OGRSTLabelUnderline = 13, OGRSTLabelPriority = 14, OGRSTLabelStrikeout = 15, OGRSTLabelStretch = 16, OGRSTLabelAdjHor = 17, OGRSTLabelAdjVert = 18, OGRSTLabelHColor = 19, OGRSTLabelOColor = 20, OGRSTLabelLast = 21 } OGRSTLabelParam; /* Version checking */ /* Note to developers : please keep this section in sync with gdal.h */ #ifndef <API key> #define <API key> const char CPL_DLL * CPL_STDCALL GDALVersionInfo(const char*); #endif #ifndef GDAL_CHECK_VERSION /** Return TRUE if GDAL library version at runtime matches nVersionMajor.nVersionMinor. The purpose of this method is to ensure that calling code will run with the GDAL version it is compiled for. It is primarly intented for external plugins. @param nVersionMajor Major version to be tested against @param nVersionMinor Minor version to be tested against @param <API key> If not NULL, in case of version mismatch, the method will issue a failure mentionning the name of the calling component. */ int CPL_DLL CPL_STDCALL GDALCheckVersion(int nVersionMajor, int nVersionMinor, const char *<API key>); /** Helper macro for GDALCheckVersion */ #define GDAL_CHECK_VERSION(<API key>) \ GDALCheckVersion(GDAL_VERSION_MAJOR, GDAL_VERSION_MINOR, <API key>) #endif CPL_C_END #endif /* ndef OGR_CORE_H_INCLUDED */
#ifndef <API key> #define <API key> #include "FemusConfig.hpp" #ifdef HAVE_PETSC #ifdef HAVE_MPI #include <mpi.h> #endif // includes : #include "<API key>.hpp" namespace femus { /** * This class inherits the abstract class <API key>. In this class the solver is implemented using the PETSc package */ class <API key> : public <API key> { public: /** Constructor. Initializes Petsc data structures */ <API key>(const unsigned &igrid, Solution *other_solution); Destructor. ~<API key>(); protected: Release all memory and clear data structures. void Clear(); void SetTolerances(const double &rtol, const double &atol, const double &divtol, const unsigned &maxits, const unsigned &restart); void Init(Mat& Amat, Mat &Pmat); void Solve(const vector <unsigned>& <API key>, const bool &ksp_clean); void MGInit(const MgSmootherType & mg_smoother_type, const unsigned &levelMax, const char* outer_ksp_solver = KSPGMRES); void MGSetLevel(<API key> *LinSolver, const unsigned &maxlevel, const vector <unsigned> &<API key>, SparseMatrix* PP, SparseMatrix* RR, const unsigned &npre, const unsigned &npost); void RemoveNullSpace(); void GetNullSpaceBase( std::vector < Vec > &nullspBase); void <API key>(); void SetPenalty(); void <API key>(const double & <API key>){ <API key> = <API key>; } virtual void BuildBdcIndex(const vector <unsigned> &<API key>); virtual void SetPreconditioner(KSP& subksp, PC& subpc); void MGSolve(const bool ksp_clean); inline void MGClear() { KSPDestroy(&_ksp); } inline KSP* GetKSP() { return &_ksp; }; Set the user-specified solver stored in \p _solver_type void SetPetscSolverType(KSP &ksp); /** @deprecated, remove soon */ std::pair<unsigned int, double> solve(SparseMatrix& matrix_in, SparseMatrix& precond_in, NumericVector& solution_in, NumericVector& rhs_in, const double tol, const unsigned int m_its); /** @deprecated, remove soon */ void init(SparseMatrix* matrix); protected: // member data KSP _ksp; ///< Krylov subspace context PC _pc; ///< Preconditioner context PetscReal _rtol; PetscReal _abstol; PetscReal _dtol; PetscInt _maxits; PetscInt _restart; vector <PetscInt> _bdcIndex; bool <API key>; double <API key>; }; inline <API key>::<API key>(const unsigned &igrid, Solution *other_solution) : <API key>(igrid, other_solution) { if(igrid == 0) { this-><API key> = MLU_PRECOND; this->_solver_type = PREONLY; } else { this-><API key> = ILU_PRECOND; this->_solver_type = GMRES; } _rtol = 1.e-5; _abstol = 1.e-50; _dtol = 1.e+5; _maxits = 1000; _restart = 30; <API key> = 0.5; <API key> = 0; _printSolverInfo = false; } inline <API key>::~<API key>() { this->Clear(); } inline void <API key>::Clear() { if(this->initialized()) { this->_is_initialized = false; KSPDestroy(&_ksp); } } } //end namespace femus #endif #endif
#include <math.h> #include <stdlib.h> #include <stdio.h> #include <rpnmacros.h> #include <unistd.h> #include <zfstlib.h> #include <malloc.h> #include <string.h> int c_armn_compress32(unsigned char *, float *, int, int, int, int); int c_armn_uncompress32(float *fld, unsigned char *zstream, int ni, int nj, int nk, int nchiffres_sign); int c_fstzip32(unsigned int *zfld, unsigned int *fld, int ni, int nj, int nk, int step, int nbits, int remaining_space); int <API key>(unsigned int *zfld, int *zlng, unsigned int *fld, int ni, int nj, int step, int nbits, word *header); int f77name(armn_compress32)(unsigned char *, float *, int *, int *, int *, int *); int f77name(armn_uncompress32)(float *fld, unsigned char *zstream, int *ni, int *nj, int *nk, int *nchiffres_sign); void c_fstunzip(unsigned int *fld, unsigned int *zfld, int ni, int nj, int nbits); void pack1bitRLE(unsigned int z[], unsigned int *zlng, unsigned char ufld[], int npts); void <API key>(unsigned int z[], unsigned int *zlng, unsigned short ufld[], int ni, int nj, int nbits, int istep, word *header); void pack<API key>(unsigned int z[], int *zlng, unsigned int ufld[], int ni, int nj, int nbits, int istep, int remaining_space); void pack<API key>(unsigned int z[], unsigned int *zlng, unsigned char ufld[], int ni, int nj, int nbits, int istep); void <API key>(unsigned int z[], unsigned int *zlng, unsigned int ufld[], int npts, int nbits); void <API key>(unsigned short ufld[], unsigned int z[], int ni, int nj, int nbits, int istep, word *header); void unpack<API key>(unsigned int ufld[], unsigned int z[], int ni, int nj, int nbits, int istep); void unpack<API key>(unsigned char ufld[], unsigned int z[], int ni, int nj, int nbits, int istep); int compact_mask_char(unsigned int *dest, unsigned char *src, int npts); int uncompact_mask_char(int *dest, unsigned int *src, int npts); void pack1bitRLE(unsigned int z[], unsigned int *zlng, unsigned char ufld[], int npts); void <API key>(unsigned int z[], unsigned int *zlng, unsigned short ufld[], int npts, int nbits); void <API key>(unsigned int z[], unsigned int *zlng, unsigned int ufld[], int npts, int nbits); void pack_stream_nbits_8(unsigned int z[], unsigned int *zlng, unsigned char ufld[], int npts, int nbits); void unpack1bitRLE(unsigned char ufld[], unsigned int z[], unsigned int *zlng, int npts); void <API key>(unsigned short ufld[], unsigned int z[], int npts, int nbits); void <API key>(unsigned int ufld[], unsigned int z[], int npts, int nbits); void <API key>(unsigned char ufld[], unsigned int z[], int npts, int nbits); #define MEME_SIGNE_POSITIF 0x00 #define MEME_SIGNE_NEGATIF 0x10 #define DIFF_SIGNE_PACKED 0x20 #define DIFF_SIGNE_STREAM 0x30 #define MEME_EXPOSANT 0x00 #define <API key> 0x08 #define <API key> 0x0C #define MANTISSE_PACKED 0x00 #define MANTISSE_STREAM 0x01 #define SEQUENCE 0 #define COUNT 1 #define ZERO 0 #define UN 1 static unsigned char fastlog[256]; static int once = 0; extern int zfst_msglevel; int f77name(armn_compress32)(unsigned char *zstream, float *fld, int *ni, int *nj, int *nk, int *nbits) { return c_armn_compress32(zstream, fld, *ni, *nj, *nk, *nbits); } int c_armn_compress32(unsigned char *zstream, float *fld, int ni, int nj, int nk, int znbits) { float *p_fld; int i, meme_signe, remaining_space; int nbits; unsigned char *exposant, *exposant2; unsigned char *le_pointeur, *pos_lng_signe, *pos_lng_exposant, *pos_lng_mantisse; unsigned char *signe, *zsigne, code_signe, code_exposant, code_mantisse; unsigned char codes; unsigned int *mantisse, *mantisse_stream, *la_mantisse,*zmantisse, exp_base; unsigned int *temp; unsigned int exp_min, exp_max, *zexposant; unsigned int le_signe_or, le_signe_and; unsigned int npts, zlng, lng_signe, lng_exposant,lng_mantisse,nbits_needed; unsigned int zieee_info; _fstzip zfstzip; _floatint r_exp_max; if (ni < 16 || nj < 16) { zlng = -1; fprintf(stderr, "*** <armn_compress32> : The dimensions of NI and NJ have to be > 16\n"); return zlng; } nbits = znbits - 9; memset(&zfstzip, (int)NULL, sizeof(_fstzip)); zfstzip.predictor_type = PARALLELOGRAM32; zfstzip.step = 3; zfstzip.degree = 1; zfstzip.nbits = nbits; zfstzip.levels = 1; zfstzip.version = 2; mantisse_stream = NULL; pos_lng_signe = NULL; npts = ni * nj; signe = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); zsigne = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); exposant = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); exposant2 = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); zexposant = (unsigned int *) malloc(npts*sizeof(unsigned int)); mantisse = (unsigned int *) malloc(2*npts * sizeof(unsigned int)); zmantisse = (unsigned int *) malloc(2*npts * sizeof(unsigned int)); le_signe_or = 0; le_signe_and = 0xFFFFFFFF; p_fld = fld; for (i=0; i < npts; i++) { temp = (unsigned int *) p_fld; signe[i] = *temp >> 31; le_signe_or |= *temp; le_signe_and &= *temp; exposant[i] = (*temp >> 23) & 0xff; exposant2[i] = exposant[i]; mantisse[i] = (*temp & 0x07fffff); p_fld++; } if (nbits < 23) { for (i=0; i < npts; i++) { mantisse[i] = (mantisse[i] >> (23-nbits)); } } meme_signe=0; if ((le_signe_or>>31) == (le_signe_and>>31)) { meme_signe=1; } exp_min = exposant2[0]; exp_max = exp_min; for (i=0; i < npts; i++) { if (exposant2[i] < exp_min) exp_min = exposant2[i]; if (exposant2[i] > exp_max) exp_max = exposant2[i]; } exp_base = exp_min; exp_max = exp_max - exp_min; exp_min = 0; for (i=0; i < npts; i++) { exposant2[i] = exposant2[i]- exp_base; } if (exp_max == exp_min) { nbits_needed =0; } else { nbits_needed =(int)(1+log(exp_max+0.5)/log(2.0)); r_exp_max.f = (float)(exp_max); nbits_needed = (r_exp_max.i >> 23) - 126; } le_pointeur = &(zstream[8]); if (meme_signe == 1) { lng_signe = 0; if ((le_signe_or >> 31) == 1) { code_signe = MEME_SIGNE_NEGATIF; } else { code_signe = MEME_SIGNE_POSITIF; } } else { pos_lng_signe = le_pointeur; le_pointeur += sizeof(unsigned int); pack1bitRLE((unsigned int *)le_pointeur, &lng_signe, signe, npts); code_signe = DIFF_SIGNE_PACKED; } if (lng_signe > (npts/4)) { compact_mask_char((unsigned int *) le_pointeur, signe, npts); lng_signe = 1 + (npts >> 5); code_signe = DIFF_SIGNE_STREAM; } if (0 != (lng_signe%4)) { lng_signe += (4 - (lng_signe%4)); } le_pointeur+= lng_signe; if (code_signe == DIFF_SIGNE_PACKED || code_signe == DIFF_SIGNE_STREAM ) { memcpy(pos_lng_signe, &lng_signe, sizeof(unsigned int)); } pos_lng_exposant = le_pointeur; if (nbits_needed == 0) { lng_exposant = 0; code_exposant = MEME_EXPOSANT; } else { code_exposant = <API key>; le_pointeur += sizeof(unsigned int); pack<API key>((unsigned int *)le_pointeur, &lng_exposant, exposant2, ni, nj, nbits_needed, 3); if (lng_exposant > ni*nj) { zlng = -1; fprintf(stderr, "*** <armn_compress32> : Exponent range too large\n"); fprintf(stderr, "*** <armn_compress32> : Original field left uncompressed\n"); return zlng; /*pack_stream_nbits_8((unsigned int *)le_pointeur, &lng_exposant, exposant2, npts, nbits_needed); code_exposant = <API key>;*/ } if (0 != (lng_exposant%4)) { lng_exposant += 4 - (lng_exposant%4); } memcpy(pos_lng_exposant, &lng_exposant, sizeof(unsigned int)); le_pointeur += lng_exposant; } pos_lng_mantisse = le_pointeur; le_pointeur += sizeof(unsigned int); code_mantisse = MANTISSE_PACKED; remaining_space = (ni*nj*znbits)/32; remaining_space = remaining_space - (le_pointeur - zstream)/sizeof(unsigned int); lng_mantisse = c_fstzip32((unsigned int *)le_pointeur, mantisse, ni, nj, nk, zfstzip.step, nbits, remaining_space); la_mantisse = zmantisse; if (lng_mantisse == 0) { free(signe); free(zsigne); free(exposant); free(exposant2); free(zexposant); if (la_mantisse != mantisse) { free(mantisse_stream); } free(mantisse); free(zmantisse); return -1; } if (0 != (lng_mantisse%4)) { lng_mantisse += 4 - (lng_mantisse%4); } memcpy(pos_lng_mantisse, &lng_signe, sizeof(unsigned int)); zstream[0] = (unsigned char)'\0'; i = 0; memcpy(&zstream[0], &zfstzip, sizeof(unsigned int)); zieee_info = 0; i+= sizeof(unsigned int); codes = (unsigned char)(code_signe | code_exposant | code_mantisse); zieee_info = ((unsigned char) exp_base) << 16; zieee_info = zieee_info | ((unsigned char)nbits_needed) << 8; zieee_info = zieee_info | (unsigned char) codes; memcpy(&zstream[i], &zieee_info, sizeof(unsigned int)); i+=sizeof(unsigned int); le_pointeur += lng_mantisse; zlng = le_pointeur - zstream; free(signe); free(zsigne); free(exposant); free(exposant2); free(zexposant); if (la_mantisse != mantisse) { free(mantisse_stream); } free(mantisse); free(zmantisse); return zlng; } int f77name(armn_uncompress32)(float *fld, unsigned char *zstream, int *ni, int *nj, int *nk, int *nbits) { return c_armn_uncompress32(fld, zstream, *ni, *nj, *nk, *nbits); } int c_armn_uncompress32(float *fld, unsigned char *zstream, int ni, int nj, int nk, int znbits) { _fstzip zfstzip; int bitPackInWord, saut, zlng; int i, nbits_mantisse, nbits; unsigned char *exposant, *exposant2; unsigned char *signe, *zsigne, code_signe, code_exposant, code_mantisse; unsigned char codes; unsigned int *cur, curword, <API key>; unsigned int *mantisse; unsigned int *temp; unsigned int exp_min; unsigned int npts, lng_signe, lng_exposant,lng_mantisse, zieee_info; npts = ni * nj; signe = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); zsigne = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); exposant = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); exposant2 = (unsigned char *) malloc(2*npts * sizeof(unsigned char)); mantisse = (unsigned int *) malloc(2*npts * sizeof(unsigned int)); bitPackInWord = 32; cur = (unsigned int *)zstream; curword = *cur; memcpy(&zfstzip, cur, sizeof(unsigned int)); cur++; memcpy(&zieee_info, cur, sizeof(unsigned int)); cur++; exp_min = zieee_info >> 16; <API key> = (zieee_info >> 8) & 0xFF; nbits_mantisse = zfstzip.nbits; nbits = nbits_mantisse; codes = zieee_info& 0xFF; code_signe = (codes & 0x30); code_exposant = (codes & 0xC); code_mantisse = (codes & 0x3); if (code_signe == DIFF_SIGNE_PACKED || code_signe == DIFF_SIGNE_STREAM) { memcpy(&lng_signe, cur, sizeof(unsigned int)); cur++; unpack1bitRLE(signe, cur, (unsigned int *)&zlng,npts); saut = (lng_signe >> 2); cur += saut; } else { if (code_signe == MEME_SIGNE_POSITIF) { for (i=0; i < npts; i++) { signe[i] = 0; } } else { for (i=0; i < npts; i++) { signe[i] = 1; } } } if (code_exposant == <API key> || code_exposant == <API key>) { memcpy(&lng_exposant, cur, sizeof(unsigned int)); cur++; unpack<API key>(exposant2, cur, ni, nj, <API key>, 3); /* lng_exposant = armn_compress(exposant2, *ni, *nj, *nk, <API key>, 2);*/ saut = (lng_exposant >> 2); cur += saut; for (i=0; i < npts; i++) { exposant2[i] = exposant2[i] + exp_min; } } else { for (i=0; i < npts; i++) { exposant2[i] = exp_min; } } memcpy(&lng_mantisse, cur, sizeof(unsigned int)); cur++; if (code_mantisse == MANTISSE_PACKED) { unpack<API key>(mantisse, cur, ni, nj, nbits_mantisse, 3); } else { <API key>(mantisse, cur, npts, nbits_mantisse); } switch(code_signe) { case MEME_SIGNE_POSITIF: for (i=0; i < npts; i++) { temp = (unsigned int *)&fld[i]; *temp = 0; *temp |= (exposant2[i] << 23); *temp |= (mantisse[i] << (23-nbits)); } break; case MEME_SIGNE_NEGATIF: for (i=0; i < npts; i++) { temp = (unsigned int *)&fld[i]; *temp = 0x80000000; *temp = *temp | (exposant2[i] << 23); *temp = *temp | (mantisse[i] << (23-nbits)); } break; default: for (i=0; i < npts; i++) { temp = (unsigned int *)&fld[i]; *temp = signe[i] << 31; *temp |= (exposant2[i] << 23); *temp |= (mantisse[i] << (23-nbits)); } break; } free(signe); free(zsigne); free(exposant); free(exposant2); free(mantisse); return ni*nj; } int c_fstzip32(unsigned int *zfld, unsigned int *fld, int ni, int nj, int nk, int step, int nbits, int remaining_space) { int zlng, lng_origin; lng_origin = (1+(ni*nj*nk*1.0*nbits)/8); if (ni == 1 || nj == 1) { return lng_origin; } pack<API key>(zfld, &zlng, fld, ni, nj, step, nbits, remaining_space); if (zlng == 0 && zfst_msglevel <= 2) { fprintf(stdout, "IEEE compressed field is larger than original... Returning original\n\n"); return 0; } return zlng; } void pack<API key>(unsigned int z[], int *zlng, unsigned int ufld[], int ni, int nj, int istep, int nbits, int remaining_space) { _floatint r_lmax; int *ufld_dst; int k22, nbits2; int lcl_m, lcl_n; int local_max; unsigned int *cur; unsigned int i, j, k, m, n; unsigned int lastWordShifted, spaceInLastWord, lastSlot; unsigned int lcl, nbits_needed; unsigned int nbits_req_container, token; lastSlot = 0; cur = z; ufld_dst=(int *) malloc(ni*nj*sizeof(int)); for (j=1; j <= nj; j++) { k = FTN2C(1,j,ni); ufld_dst[k] = 0; } for (i=1; i <= ni; i++) { k = FTN2C(i,1,ni); ufld_dst[k] = 0; } for (j=2; j<=nj; j++) { for (i=2; i <=ni; i++) { k22 = FTN2C(i, j, ni); ufld_dst[k22] = ufld[k22] - (ufld[k22-ni]+ufld[k22-1]-ufld[k22-1-ni]); } } nbits_req_container = 5; lastWordShifted = 0; spaceInLastWord = 32; *cur = 0; stuff(nbits_req_container, cur, 32, istep, lastWordShifted, spaceInLastWord); for (i=1; i <= ni; i++) { k = FTN2C(i,1,ni); stuff(ufld[k], cur, 32, nbits, lastWordShifted, spaceInLastWord); } for (j=2; j <= nj; j++) { k = FTN2C(1,j,ni); stuff(ufld[k], cur, 32, nbits, lastWordShifted, spaceInLastWord); } for (j=2; j <= nj; j+=istep) { lcl_n = ((j + istep - 1) >= nj ? nj - j : istep - 1); for (i=2; i <= ni; i+=istep) { k = FTN2C(i,j,ni); local_max = ufld_dst[k]; lcl_m = ((i + istep - 1) >= ni ? ni - i : istep - 1); for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); if (local_max < abs(ufld_dst[k])) local_max = abs(ufld_dst[k]); } } if (local_max == 0) { nbits_needed = 0; } else { r_lmax.f = (float)local_max; nbits_needed = (r_lmax.i >> 23) - 126; } stuff(nbits_needed, cur, 32, nbits_req_container, lastWordShifted, spaceInLastWord); switch (nbits_needed) { case 0: break; default: nbits2 = nbits_needed + 1; for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); token = (unsigned int) (ufld_dst[k] & ~((-1)<<nbits2)); stuff(token, cur, 32, nbits2, lastWordShifted, spaceInLastWord); } } if (remaining_space < ((cur - z)+(1+((nbits_needed+9*nbits)>>5)))) { *zlng = 0; return; } break; } } } lcl = 0; stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); *zlng = 1 + (int) (cur-z) * 4; free(ufld_dst); } void unpack<API key>(unsigned int ufld[], unsigned int z[], int ni, int nj, int nbits, int istep) { int *ufld_tmp; int bitPackInWord; int i, j, k, m, n; int k11, k12, k21, k22; int lcl_m, lcl_n; unsigned int nbits_needed, curword; unsigned int *cur; unsigned int nbits_req_container, token, nbits2; bitPackInWord = 32; cur = z; curword = *cur; ufld_tmp = (int *) malloc(ni*nj*sizeof(int)); extract(nbits_req_container, cur, 32, istep, curword, bitPackInWord); for (i=1; i <= ni; i++) { k = FTN2C(i,1,ni); extract(token, cur, 32, nbits, curword, bitPackInWord); ufld[k] = token; } for (j=2; j <= nj; j++) { k = FTN2C(1,j,ni); extract(token, cur, 32, nbits, curword, bitPackInWord); ufld[k] = token; } for (j=2; j <= nj; j+=istep) { lcl_n = ((j + istep - 1) >= nj ? nj - j : istep - 1); for (i=2; i <= ni; i+=istep) { lcl_m = ((i + istep - 1) >= ni ? ni - i : istep - 1); extract(nbits_needed, cur, 32, nbits_req_container, curword, bitPackInWord); switch (nbits_needed) { case 0: for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); ufld_tmp[k] = 0; } } break; default: nbits2 = nbits_needed + 1; for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); extract(token, cur, 32, nbits2, curword, bitPackInWord); ufld_tmp[k] = token; ufld_tmp[k] = (ufld_tmp[k] << (32-nbits2)) >> (32-nbits2); } } } } } for (j=2; j<=nj; j++) { for (i=2; i <=ni; i++) { k11 = FTN2C(i-1,j-1,ni); k12 = FTN2C(i-1,j ,ni); k21 = FTN2C(i, j-1,ni); k22 = FTN2C(i, j, ni); ufld[k22] = ufld_tmp[k22] + (ufld[k21]+ufld[k12]-ufld[k11]); } } free(ufld_tmp); } void pack<API key>(unsigned int z[], unsigned int *zlng, unsigned char ufld[], int ni, int nj, int nbits, int istep) { float rlog2; int *ufld_dst; int k22, nbits2; int lcl_m, lcl_n; int local_max; unsigned int *cur; unsigned int i, j, k, m, n; unsigned int lastWordShifted, spaceInLastWord, lastSlot; unsigned int lcl, nbits_needed; unsigned int nbits_req_container, token; lastSlot = 0; cur = z; if (once == 0) { rlog2 = 1.0/log(2.0); for (i=0; i < 256; i++) { fastlog[i] = (int)(1+log(i+0.5)*rlog2); } once = 1; } ufld_dst=(int *) malloc(ni*nj*sizeof(int)); for (j=1; j <= nj; j++) { k = FTN2C(1,j,ni); ufld_dst[k] = 0; } for (i=1; i <= ni; i++) { k = FTN2C(i,1,ni); ufld_dst[k] = 0; } for (j=2; j<=nj; j++) { for (i=2; i <=ni; i++) { k22 = FTN2C(i, j, ni); ufld_dst[k22] = ufld[k22] - (ufld[k22-ni]+ufld[k22-1]-ufld[k22-1-ni]); } } nbits_req_container = 4; lastWordShifted = 0; spaceInLastWord = 32; *cur = 0; stuff(nbits_req_container, cur, 32, istep, lastWordShifted, spaceInLastWord); for (i=1; i <= ni; i++) { k = FTN2C(i,1,ni); stuff(ufld[k], cur, 32, nbits, lastWordShifted, spaceInLastWord); } for (j=2; j <= nj; j++) { k = FTN2C(1,j,ni); stuff(ufld[k], cur, 32, nbits, lastWordShifted, spaceInLastWord); } for (j=2; j <= nj; j+=istep) { lcl_n = ((j + istep - 1) >= nj ? nj - j : istep - 1); for (i=2; i <= ni; i+=istep) { k = FTN2C(i,j,ni); local_max = ufld_dst[k]; lcl_m = ((i + istep - 1) >= ni ? ni - i : istep - 1); for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); if (local_max < abs(ufld_dst[k])) local_max = abs(ufld_dst[k]); } } if (local_max == 0) { nbits_needed = 0; } else { if (local_max < 256) { nbits_needed = fastlog[local_max]; } else { nbits_needed = 8 + fastlog[local_max>>8]; } } stuff(nbits_needed, cur, 32, nbits_req_container, lastWordShifted, spaceInLastWord); switch (nbits_needed) { case 0: break; default: nbits2 = nbits_needed + 1; for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); token = (unsigned int) (ufld_dst[k] & ~((-1)<<nbits2)); stuff(token, cur, 32, nbits2, lastWordShifted, spaceInLastWord); } } break; } } } lcl = 0; stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); *zlng = 1 + (int) (cur-z) * 4; free(ufld_dst); } void unpack<API key>(unsigned char ufld[], unsigned int z[], int ni, int nj, int nbits, int istep) { int *ufld_tmp; int bitPackInWord; int i, j, k, m, n; int k11, k12, k21, k22; int lcl_m, lcl_n; unsigned int nbits_needed, curword; unsigned int *cur; unsigned int nbits_req_container, token, nbits2; bitPackInWord = 32; cur = z; curword = *cur; ufld_tmp = (int *) malloc(ni*nj*sizeof(int)); extract(nbits_req_container, cur, 32, istep, curword, bitPackInWord); for (i=1; i <= ni; i++) { k = FTN2C(i,1,ni); extract(token, cur, 32, nbits, curword, bitPackInWord); ufld[k] = token; } for (j=2; j <= nj; j++) { k = FTN2C(1,j,ni); extract(token, cur, 32, nbits, curword, bitPackInWord); ufld[k] = token; } for (j=2; j <= nj; j+=istep) { lcl_n = ((j + istep - 1) >= nj ? nj - j : istep - 1); for (i=2; i <= ni; i+=istep) { lcl_m = ((i + istep - 1) >= ni ? ni - i : istep - 1); extract(nbits_needed, cur, 32, nbits_req_container, curword, bitPackInWord); switch (nbits_needed) { case 0: for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); ufld_tmp[k] = 0; } } break; default: nbits2 = nbits_needed + 1; for (n=0; n <= lcl_n; n++) { for (m=0; m <= lcl_m; m++) { k = FTN2C(i+m,j+n,ni); extract(token, cur, 32, nbits2, curword, bitPackInWord); ufld_tmp[k] = token; ufld_tmp[k] = (ufld_tmp[k] << (32-nbits2)) >> (32-nbits2); } } } } } for (j=2; j<=nj; j++) { for (i=2; i <=ni; i++) { k11 = FTN2C(i-1,j-1,ni); k12 = FTN2C(i-1,j ,ni); k21 = FTN2C(i, j-1,ni); k22 = FTN2C(i, j, ni); ufld[k22] = ufld_tmp[k22] + (ufld[k21]+ufld[k12]-ufld[k11]); } } free(ufld_tmp); } void pack1bitRLE(unsigned int z[], unsigned int *zlng, unsigned char ufld[], int npts) { unsigned int i, j; unsigned int lastWordShifted, spaceInLastWord, lastSlot; unsigned int *cur; unsigned int lcl, indx, last_indx; unsigned char lcl_count; int count, limite, repeat; lastSlot = 0; cur = z; lastWordShifted = 0; spaceInLastWord = 32; *cur = 0; last_indx=0; indx=1; while (indx <= npts) { while (ufld[indx] == ufld[last_indx] && indx < npts) { indx++; } count = indx - last_indx; if (count < 8) { stuff(SEQUENCE, cur, 32, 1, lastWordShifted, spaceInLastWord); limite = (last_indx + 7) > npts ? (npts - last_indx) : 7; for (i=0; i < limite; i++) { stuff(ufld[last_indx+i], cur, 32, 1, lastWordShifted, spaceInLastWord); } last_indx +=7; indx = last_indx + 1; } else { i = 0; repeat = 0; while (i < count) { lcl_count = (count-i) >= 63 ? 62 : (count - i); if (lcl_count < 8) { stuff(SEQUENCE, cur, 32, 1, lastWordShifted, spaceInLastWord); limite = (last_indx + 7) > npts ? (npts - last_indx) : 7; for (j=0; j < limite; j++) { stuff(ufld[last_indx+j], cur, 32, 1, lastWordShifted, spaceInLastWord); } last_indx +=7; indx = last_indx + 1; } else { if (lcl_count == 62) { if ((count - i) > 256 && (repeat == 1)) { lcl_count = 0xFF; stuff(lcl_count, cur, 32, 8,lastWordShifted, spaceInLastWord); last_indx+=lcl_count; indx = last_indx + 1; } else { stuff(COUNT, cur, 32, 1, lastWordShifted, spaceInLastWord); stuff(ufld[last_indx], cur, 32, 1,lastWordShifted, spaceInLastWord); stuff(lcl_count, cur, 32, 6,lastWordShifted, spaceInLastWord); last_indx+=lcl_count; indx = last_indx + 1; repeat = 1; } } else { stuff(COUNT, cur, 32, 1, lastWordShifted, spaceInLastWord); stuff(ufld[last_indx], cur, 32, 1,lastWordShifted, spaceInLastWord); stuff(lcl_count, cur, 32, 6,lastWordShifted, spaceInLastWord); last_indx+=lcl_count; indx = last_indx + 1; } } i += lcl_count; } } } lcl = 0; stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); *zlng = 1 + (int) (cur-z) * 4; } void unpack1bitRLE(unsigned char ufld[], unsigned int z[], unsigned int *zlng, int npts) { unsigned int i, j; unsigned int *cur, seq_type, val, last_val; int count, limite; int bitPackInWord; unsigned int curword; unsigned int token; bitPackInWord = 32; cur = z; curword = *cur; last_val = 0xFFFFFFFF; i = 0; while (i < npts) { extract(seq_type, cur, 32, 1, curword, bitPackInWord); switch(seq_type) { case SEQUENCE: limite = (i + 7) > npts ? (npts - i) : 7; for (j=0; j < limite; j++) { extract(token, cur, 32, 1, curword, bitPackInWord); ufld[i+j] = (unsigned char) token; } i+=limite; break; case COUNT: extract(val, cur, 32, 1, curword, bitPackInWord); extract(count, cur, 32, 6, curword, bitPackInWord); switch (count) { case 63: for (j=0; j < 255; j++) { ufld[i+j] = (unsigned char) last_val; } i+=255; break; default: for (j=0; j < count; j++) { ufld[i+j] = (unsigned char) val; } i+=count; last_val = val; break; } break; } } } int compact_mask_char(unsigned int *dest, unsigned char *src, int npts) { int i,entier, fraction,npts32; npts32 = 1 + (npts >> 5); for (i=0; i < npts32; i++) { dest[i] = 0; } for (i=0; i < npts; i++) { entier = i >> 5; fraction = i - (entier << 5); dest[entier] |= (src[i] << fraction); } return 0; } int uncompact_mask_char(int *dest, unsigned int *src, int npts) { int i,entier, fraction; for (i=0; i < npts; i++) { entier = i >> 5; fraction = i - (entier << 5); dest[i] = (src[entier] & (1 << fraction)) >> fraction; } return 0; } void <API key>(unsigned int z[], unsigned int *zlng, unsigned int ufld[], int npts, int nbits) { unsigned int i; unsigned int lastWordShifted, spaceInLastWord, lastSlot; unsigned int *cur; unsigned int lcl; lastSlot = 0; cur = z; lastWordShifted = 0; spaceInLastWord = 32; *cur = 0; for (i=0; i < npts; i++) { stuff(ufld[i], cur, 32, nbits, lastWordShifted, spaceInLastWord); } lcl = 0; stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); *zlng = 1 + (int) (cur-z) * 4; } void <API key>(unsigned int ufld[], unsigned int z[], int npts, int nbits) { unsigned int i; unsigned int lastSlot; unsigned int *cur; int bitPackInWord; unsigned int curword; lastSlot = 0; cur = z; bitPackInWord = 32; curword = *cur; for (i=0; i < npts; i++) { extract(ufld[i], cur, 32, nbits, curword, bitPackInWord); } } void <API key>(unsigned int z[], unsigned int *zlng, unsigned short ufld[], int npts, int nbits) { unsigned int i; unsigned int lastWordShifted, spaceInLastWord, lastSlot; unsigned int *cur; unsigned int lcl; lastSlot = 0; cur = z; lastWordShifted = 0; spaceInLastWord = 32; *cur = 0; for (i=0; i < npts; i++) { stuff(ufld[i], cur, 32, nbits, lastWordShifted, spaceInLastWord); } lcl = 0; stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); *zlng = 1 + (int) (cur-z) * 4; } void <API key>(unsigned short ufld[], unsigned int z[], int npts, int nbits) { unsigned int i; unsigned int lastSlot; unsigned int *cur; int bitPackInWord; unsigned int curword; lastSlot = 0; cur = z; bitPackInWord = 32; curword = *cur; for (i=0; i < npts; i++) { extract(ufld[i], cur, 32, nbits, curword, bitPackInWord); } } void pack_stream_nbits_8(unsigned int z[], unsigned int *zlng, unsigned char ufld[], int npts, int nbits) { unsigned int i; unsigned int lastWordShifted, spaceInLastWord, lastSlot; unsigned int *cur; unsigned int lcl; lastSlot = 0; cur = z; lastWordShifted = 0; spaceInLastWord = 32; *cur = 0; for (i=0; i < npts; i++) { stuff(ufld[i], cur, 32, nbits, lastWordShifted, spaceInLastWord); } lcl = 0; stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); stuff(lcl, cur, 32, 16, lastWordShifted, spaceInLastWord); *zlng = 1 + (int) (cur-z) * 4; } void <API key>(unsigned char ufld[], unsigned int z[], int npts, int nbits) { unsigned int i; unsigned int lastSlot; unsigned int *cur; int bitPackInWord; unsigned int curword; lastSlot = 0; cur = z; bitPackInWord = 32; curword = *cur; for (i=0; i < npts; i++) { extract(ufld[i], cur, 32, nbits, curword, bitPackInWord); } }
package com.quickserverlab.quickcached; import java.io.IOException; import java.net.<API key>; import java.util.logging.Level; import java.util.logging.Logger; import com.quickserverlab.quickcached.cache.CacheException; import com.quickserverlab.quickcached.cache.CacheInterface; import org.quickserver.net.server.ClientHandler; import java.util.Iterator; import java.util.Map; import java.util.Set; /** * * @author Akshathkumar Shetty */ public class <API key> { private static final Logger logger = Logger.getLogger(<API key>.class.getName()); private static String versionOutput = null; static { versionOutput = "VERSION " + QuickCached.version + "\r\n"; } private CacheInterface cache; public void setCache(CacheInterface cache) { this.cache = cache; } public void handleTextCommand(ClientHandler handler, String command) throws <API key>, IOException, CacheException { if (QuickCached.DEBUG) { logger.log(Level.FINE, "command: {0}", command); } if (command.startsWith("get ") || command.startsWith("gets ")) { handleGetCommands(handler, command); } else if (command.equals("version")) { sendResponse(handler, versionOutput); } else if (command.startsWith("set ") || command.startsWith("add ") || command.startsWith("replace ") || command.startsWith("append ") || command.startsWith("prepend ") || command.startsWith("cas ")) { <API key>(handler, command); Data data = (Data) handler.getClientData(); if (data.isAllDataIn()) { <API key>(handler); return; } else { return; } } else if (command.startsWith("delete ")) { <API key>(handler, command); } else if (command.startsWith("flush_all")) { handleFlushAll(handler, command); } else if (command.equals("stats")) { Map stats = CommandHandler.getStats(handler.getServer()); Set keySet = stats.keySet(); Iterator iterator = keySet.iterator(); String key = null; String value = null; while (iterator.hasNext()) { key = (String) iterator.next(); value = (String) stats.get(key); sendResponse(handler, "STAT " + key + " " + value + "\r\n"); } sendResponse(handler, "END\r\n"); } else if (command.startsWith("stats ")) { //TODO sendResponse(handler, "ERROR\r\n"); } else if (command.equals("quit")) { handler.closeConnection(); } else if (command.startsWith("incr ") || command.startsWith("decr ")) { <API key>(handler, command); } else if (command.startsWith("touch ")) { handleTouchCommands(handler, command); } else { logger.log(Level.WARNING, "unknown command! {0}", command); sendResponse(handler, "ERROR\r\n"); } } private void handleFlushAll(ClientHandler handler, String command) throws <API key>, IOException, CacheException { /* flush_all [exptime] [noreply]\r\n */ String cmdData[] = command.split(" "); String cmd = cmdData[0]; String exptime = null; if(QuickCached.DEBUG==false) { logger.log(Level.FINE, "cmd: {0}", new Object[]{cmd}); } boolean noreplay = false; if(cmdData[cmdData.length-1].equals("noreply")) { noreplay = true; } if (noreplay==false && cmdData.length >= 2) { exptime = cmdData[1]; } else if (noreplay==true && cmdData.length >= 3) { exptime = cmdData[1]; } if (exptime == null) { cache.flush(); } else { final int sleeptime = Integer.parseInt(exptime); Thread t = new Thread() { public void run() { try { sleep(1000 * sleeptime); } catch (<API key> ex) { logger.log(Level.WARNING, "Error: "+ex, ex); } try { cache.flush(); } catch (CacheException ex) { logger.log(Level.SEVERE, "Error: "+ex, ex); } } }; t.start(); } if (noreplay) { return; } sendResponse(handler, "OK\r\n"); } private void <API key>(ClientHandler handler, String command) throws <API key>, IOException, CacheException { /* delete <key> [noreply]\r\n */ String cmdData[] = command.split(" "); String cmd = cmdData[0]; String key = cmdData[1]; if(QuickCached.DEBUG==false) { logger.log(Level.FINE, "cmd: {0}, key: {1}", new Object[]{cmd, key}); } boolean noreplay = false; if (cmdData.length == 3) { if ("noreply".equals(cmdData[2])) { noreplay = true; } } boolean flag = cache.delete(key); if (noreplay) { return; } if (flag == true) { sendResponse(handler, "DELETED\r\n"); } else { sendResponse(handler, "NOT_FOUND\r\n"); } } private void handleTouchCommands(ClientHandler handler, String command) throws <API key>, IOException, CacheException { /* touch <key> <exptime> [noreply]\r\n */ String cmdData[] = command.split(" "); String cmd = cmdData[0]; String key = cmdData[1]; int exptime = Integer.parseInt(cmdData[2]); boolean noreplay = false; if (cmdData.length >= 4) { if ("noreply".equals(cmdData[3])) { noreplay = true; } } if(QuickCached.DEBUG==false) { logger.log(Level.FINE, "cmd: {0}, key: {1}", new Object[]{cmd, key}); } boolean flag = cache.touch(key, exptime); if(noreplay) return; if(flag==false) { sendResponse(handler, "NOT_FOUND\r\n"); } else { sendResponse(handler, "TOUCHED\r\n"); } } private void handleGetCommands(ClientHandler handler, String command) throws <API key>, IOException, CacheException { /* get <key>*\r\n gets <key>*\r\n */ String cmdData[] = command.split(" "); String cmd = cmdData[0]; String key = null; for (int i = 1; i < cmdData.length; i++) { key = cmdData[i]; if(QuickCached.DEBUG==false) { logger.log(Level.FINE, "cmd: {0}, key: {1}", new Object[]{cmd, key}); } DataCarrier dc = (DataCarrier) cache.get(key); if (dc != null) { StringBuilder sb = new StringBuilder(); sb.append("VALUE "); sb.append(key); sb.append(" "); sb.append(dc.getFlags()); sb.append(" "); sb.append(dc.getData().length); sb.append(" "); sb.append(dc.getCas()); sb.append("\r\n"); sendResponse(handler, sb.toString()); sendResponse(handler, dc.getData()); sendResponse(handler, "\r\n"); } } sendResponse(handler, "END\r\n"); /* VALUE <key> <flags> <bytes> [<cas unique>]\r\n <data block>\r\n */ } private void <API key>(ClientHandler handler, String command) throws <API key>, IOException, CacheException { /* incr <key> <value> [noreply]\r\n decr <key> <value> [noreply]\r\n */ String cmdData[] = command.split(" "); if (cmdData.length < 3) { sendResponse(handler, "CLIENT_ERROR Bad number of args passed\r\n"); if (cmdData[0].equals("incr")) { CommandHandler.incrMisses++; } else if (cmdData[0].equals("decr")) { CommandHandler.decrMisses++; } return; } String cmd = cmdData[0]; String key = cmdData[1]; String _value = cmdData[2]; long value = 0; try { value = Long.parseLong(_value); } catch (Exception e) { sendResponse(handler, "CLIENT_ERROR parse of client value failed\r\n"); if (cmd.equals("incr")) { CommandHandler.incrMisses++; } else if (cmd.equals("decr")) { CommandHandler.decrMisses++; } return; } if(QuickCached.DEBUG==false) { logger.log(Level.FINE, "cmd: {0}, key: {1}", new Object[]{cmd, key}); } boolean noreplay = false; if (cmdData.length >= 4) { if ("noreply".equals(cmdData[3])) { noreplay = true; } } DataCarrier dc = (DataCarrier) cache.get(key, false); if (dc == null) { if (noreplay == false) { sendResponse(handler, "NOT_FOUND\r\n"); } if (cmd.equals("incr")) { CommandHandler.incrMisses++; } else if (cmd.equals("decr")) { CommandHandler.decrMisses++; } return; } StringBuilder sb = new StringBuilder(); dc.writeLock.lock(); try { long oldvalue = Long.parseLong(new String(dc.getData(), HexUtil.getCharset())); if (cmd.equals("incr")) { value = oldvalue + value; } else if (cmd.equals("decr")) { value = oldvalue - value; if (value < 0) { value = 0; } } else { throw new <API key>("Unknown command "+cmd); } sb.append(value); dc.setData(sb.toString().getBytes(HexUtil.getCharset())); cache.update(key, dc, dc.getSize()); } catch(Exception e) { if(noreplay == false) { sendResponse(handler, "CLIENT_ERROR parse of server value failed\r\n"); } if (cmd.equals("incr")) { CommandHandler.incrMisses++; } else if (cmd.equals("decr")) { CommandHandler.decrMisses++; } return; } finally { dc.writeLock.unlock(); } if (cmd.equals("incr")) { CommandHandler.incrHits++; } else if (cmd.equals("decr")) { CommandHandler.decrHits++; } if (noreplay) { return; } sb.append("\r\n"); sendResponse(handler, sb.toString()); } private void <API key>(ClientHandler handler, String command) throws <API key>, IOException { Data data = (Data) handler.getClientData(); /* <command name> <key> <flags> <exptime> <bytes> [noreply]\r\n cas <key> <flags> <exptime> <bytes> <cas unique> [noreply]\r\n */ String cmdData[] = command.split(" "); String cmd = cmdData[0]; String key = cmdData[1]; String flags = cmdData[2]; int exptime = Integer.parseInt(cmdData[3]); long bytes = Integer.parseInt(cmdData[4]); String casunique = null; boolean noreplay = false; if (cmdData.length >= 6) { if ("noreply".equals(cmdData[5])) { noreplay = true; } else { casunique = cmdData[5]; } if (cmdData.length >= 7) { if ("noreply".equals(cmdData[6])) { noreplay = true; } } } if(key.length()>Data.<API key>()) { throw new <API key>( "key passed to big to store "+key); } if(Data.<API key>()>0) { if(bytes > Data.<API key>()) { throw new <API key>( "value passed to big to store "+bytes+" for key "+key); } } data.setCmd(cmd); data.setKey(key); data.setFlags(flags); data.setExptime(exptime); data.<API key>(bytes); data.setCasUnique(casunique); data.setNoreplay(noreplay); } public void <API key>(ClientHandler handler) throws <API key>, IOException, CacheException { Data data = (Data) handler.getClientData(); if(QuickCached.DEBUG==false) { logger.log(Level.FINE, "cmd: {0}, key: {1}", new Object[]{data.getCmd(), data.getKey()}); } byte dataToStore[] = data.getDataByte(); DataCarrier dc = new DataCarrier(dataToStore); dc.setFlags(data.getFlags()); if (data.getCmd().equals("set")) { DataCarrier olddata = (DataCarrier) cache.get(data.getKey(), false); if(olddata==null) { cache.set(data.getKey(), dc, dc.getSize(), data.getExptime()); } else { olddata.writeLock.lock(); try { olddata.setData(dc.getData()); olddata.setFlags(dc.getFlags()); cache.update(data.getKey(), olddata, olddata.getSize(), data.getExptime()); } finally { olddata.writeLock.unlock(); } } if (data.isNoreplay() == false) { sendResponse(handler, "STORED\r\n"); } } else if (data.getCmd().equals("add")) { Object olddata = cache.get(data.getKey(), false); if (olddata == null) { cache.set(data.getKey(), dc, dc.getSize(), data.getExptime()); if (data.isNoreplay() == false) { sendResponse(handler, "STORED\r\n"); } } else { if (data.isNoreplay() == false) { sendResponse(handler, "NOT_STORED\r\n"); } } } else if (data.getCmd().equals("replace")) { DataCarrier olddata = (DataCarrier) cache.get(data.getKey(), false); if (olddata != null) { olddata.writeLock.lock(); try { olddata.setData(dc.getData()); cache.update(data.getKey(), olddata, olddata.getSize()); } finally { olddata.writeLock.unlock(); } dc.setData(null); dc = null; if (data.isNoreplay() == false) { if (data.isNoreplay() == false) { sendResponse(handler, "STORED\r\n"); } } } else { if (data.isNoreplay() == false) { sendResponse(handler, "NOT_STORED\r\n"); } } } else if (data.getCmd().equals("append")) { DataCarrier olddata = (DataCarrier) cache.get(data.getKey(), false); if (olddata != null) { olddata.writeLock.lock(); try { olddata.append(dc.getData()); cache.update(data.getKey(), olddata, olddata.getSize()); } finally { olddata.writeLock.unlock(); } dc.setData(null); dc = null; if (data.isNoreplay() == false) { if (data.isNoreplay() == false) { sendResponse(handler, "STORED\r\n"); } } } else { if (data.isNoreplay() == false) { sendResponse(handler, "NOT_STORED\r\n"); } } } else if (data.getCmd().equals("prepend")) { DataCarrier olddata = (DataCarrier) cache.get(data.getKey(), false); if (olddata != null) { olddata.writeLock.lock(); try { olddata.prepend(dc.getData()); cache.update(data.getKey(), olddata, olddata.getSize()); } finally { olddata.writeLock.unlock(); } dc.setData(null); dc = null; if (data.isNoreplay() == false) { if (data.isNoreplay() == false) { sendResponse(handler, "STORED\r\n"); } } } else { if (data.isNoreplay() == false) { sendResponse(handler, "NOT_STORED\r\n"); } } } else if (data.getCmd().equals("cas")) { String reply = null; DataCarrier olddata = (DataCarrier) cache.get(data.getKey(), false); if(olddata != null) { olddata.writeLock.lock(); try { int oldcas = olddata.getCas(); int passedcas = Integer.parseInt(data.getCasUnique()); if (oldcas == passedcas) { olddata.setData(dc.getData()); cache.update(data.getKey(), olddata, olddata.getSize()); dc.setData(null); dc = null; CommandHandler.casHits++; if (data.isNoreplay() == false) { reply = "STORED\r\n"; } } else { CommandHandler.casBadval++; if (data.isNoreplay() == false) { reply = "EXISTS\r\n"; } } } finally { olddata.writeLock.unlock(); } } else { CommandHandler.casMisses++; if (data.isNoreplay() == false) { reply = "NOT_FOUND\r\n"; } } if(reply!=null) { sendResponse(handler, reply); } } data.clear(); } public void sendResponse(ClientHandler handler, String data) throws <API key>, IOException { sendResponse(handler, data.getBytes(HexUtil.getCharset())); } public void sendResponse(ClientHandler handler, byte data[]) throws <API key>, IOException { if(handler.<API key>() || QuickCached.DEBUG) { logger.log(Level.FINE, "S: {0}", new String(data, HexUtil.getCharset())); } else { logger.log(Level.FINE, "S: {0} bytes", data.length); } handler.sendClientBinary(data); } }
#ifndef _X11_OUT_H #define _X11_OUT_H #ifdef __cplusplus extern "C" { #endif #include <gpac/modules/video_out.h> #include <gpac/thread.h> #include <gpac/list.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/keysym.h> #if !defined(GPAC_DISABLE_3D) && !defined(GPAC_USE_OGL_ES) && !defined(GPAC_USE_TINYGL) #define GPAC_HAS_OPENGL #endif #ifdef GPAC_HAS_OPENGL #include <GL/glx.h> #endif #ifdef GPAC_HAS_X11_SHM #include <X11/extensions/XShm.h> #include <sys/ipc.h> #include <sys/shm.h> #endif #ifdef GPAC_HAS_X11_XV #include <X11/extensions/Xv.h> #include <X11/extensions/Xvlib.h> #endif #if defined(ENABLE_JOYSTICK) || defined(<API key>) #include <linux/joystick.h> #include <unistd.h> #include <fcntl.h> #endif #define X11VID() XWindow *xWindow = (XWindow *)vout->opaque; #define RGB555(r,g,b) (((r&248)<<7) + ((g&248)<<2) + (b>>3)) #define RGB565(r,g,b) (((r&248)<<8) + ((g&252)<<3) + (b>>3)) typedef struct { Window par_wnd; //main window handler passed to module, NULL otherwise Bool setup_done, no_select_input; //setup is done Display *display; //required by all X11 method, provide by XOpenDisplay, Mozilla wnd ... Window wnd; Window full_wnd; //full screen Screen *screenptr; //X11 stuff int screennum; Visual *visual; GC the_gc; //graphics context XImage *surface; //main drawing image: software mode Pixmap pixmap; u32 pwidth, pheight; u32 init_flags; Atom WM_DELETE_WINDOW; //window deletion Bool use_shared_memory; /*screensaver state*/ int ss_t, ss_b, ss_i, ss_e; #ifdef GPAC_HAS_X11_SHM XShmSegmentInfo *shmseginfo; #endif /*YUV overlay*/ #ifdef GPAC_HAS_X11_XV int xvport; u32 xv_pf_format; XvImage *overlay; #endif Bool is_init, fullscreen, has_focus; /*backbuffer size before entering fullscreen mode (used for restore) */ u32 store_width, store_height; u32 w_width, w_height; u32 depth, bpp, pixel_format; u32 output_3d_mode; #ifdef GPAC_HAS_OPENGL XVisualInfo *glx_visualinfo; GLXContext glx_context; Pixmap gl_pixmap; GLXPixmap gl_offscreen; Window gl_wnd; u32 offscreen_type; #endif #if defined(ENABLE_JOYSTICK) || defined(<API key>) /*joystick device file descriptor*/ s32 prev_x, prev_y, fd; #endif } XWindow; void StretchBits (void *dst, u32 dst_bpp, u32 dst_w, u32 dst_h, u32 dst_pitch, void *src, u32 src_bpp, u32 src_w, u32 src_h, u32 src_pitch, Bool FlipIt); #endif /* _X11_OUT_H */
#include "Models/Mixtures/<API key>.hpp" #include "Models/Mixtures/PosteriorSamplers/SplitMerge.hpp" #include "cpputil/report_error.hpp" #include "cpputil/shift_element.hpp" #include "distributions.hpp" namespace BOOM { namespace { typedef <API key> DPMM; typedef <API key> CDPMM; typedef <API key> DpMixtureComponent; typedef <API key> <API key>; } // namespace DPMM::<API key>( const Ptr<<API key>> &<API key>, const Ptr<<API key>> &base_distribution, const Ptr<UnivParams> &<API key>) : <API key>(<API key>), base_distribution_(base_distribution), <API key>(<API key>), mixing_weights_(1, 1.0), <API key>(10) { <API key>(); } void DPMM::set_stick_fractions(const Vector &stick_fractions) { if (stick_fractions.size() != <API key>()) { report_error("Stick fractions have the wrong dimension."); } stick_fractions_ = stick_fractions; <API key>(); } int DPMM::cluster_indicator(int observation) const { const Ptr<Data> &data_point(dat()[observation]); auto it = cluster_indicators_.find(data_point); if (it != cluster_indicators_.end()) { // If the observation is currently unassigned then its cluster indicator // is the nullptr. Return -1 in that case. return !!it->second ? it->second-><API key>() : -1; } else { report_error("Cluster indicator could not be found"); return -2; // Will never get here } } void DPMM::cluster_indicators(std::vector<int> &indicators) const { int sample_size = <API key>(); indicators.resize(sample_size); for (int i = 0; i < sample_size; ++i) { indicators[i] = cluster_indicator(i); } } void DPMM::add_data(const Ptr<Data> &dp) { data_.push_back(dp); cluster_indicators_[dp] = nullptr; } void DPMM::clear_data() { data_.clear(); for (int i = 0; i < mixture_components_.size(); ++i) { mixture_components_[i]->clear_data(); } cluster_indicators_.clear(); } void DPMM::combine_data(const Model &other_model, bool just_suf) { const DPMM &other(dynamic_cast<const DPMM &>(other_model)); const std::vector<Ptr<Data>> &other_data(other.dat()); for (int i = 0; i < other_data.size(); ++i) { add_data(other_data[i]); } } void DPMM::<API key>(const SplitMerge::Proposal &proposal) { if (proposal.is_merge()) { replace_cluster( mixture_components_[proposal.split1()-><API key>()], proposal.merged()); int component_index_2 = proposal.split2()-><API key>(); mixture_components_[component_index_2]->clear_data(); <API key>(mixture_components_[component_index_2], false); // The last element of proposal.<API key>() is the mixing // weight for an empty cluster. Get rid of that and put in the collective // weight for all unpopulated components. mixing_weights_ = proposal.<API key>(); mixing_weights_.back() = 0; mixing_weights_.back() = 1.0 - mixing_weights_.sum(); } else { // Accept a split move. replace_cluster( mixture_components_[proposal.merged()-><API key>()], proposal.split1()); insert_cluster(proposal.split2(), proposal.split2()-><API key>()); mixing_weights_ = proposal.<API key>(); mixing_weights_.push_back(1.0 - mixing_weights_.sum()); } <API key>(); } void DPMM::<API key>(const Ptr<Data> &dp, int cluster, RNG &rng) { if (cluster == <API key>()) { add_empty_cluster(rng); } if (cluster < <API key>()) { mixture_components_[cluster]->add_data(dp); cluster_indicators_[dp] = mixture_components_[cluster]; } else { report_error("Invalid cluster index."); } } void DPMM::<API key>(const Ptr<Data> &dp, bool <API key>) { Ptr<<API key>> component = cluster_indicators_[dp]; if (!!component) { component->remove_data(dp); if (component-><API key>() == 0 && <API key>) { this-><API key>(component, true); } } cluster_indicators_[dp] = nullptr; } void DPMM::add_empty_cluster(RNG &rng) { <API key>(); Ptr<<API key>> component = <API key>.back(); <API key>(component, rng); <API key>(); } void DPMM::<API key>(const Ptr<DpMixtureComponent> &component, bool <API key>) { if (component-><API key>() != 0) { report_error("Cluster to be removed is not empty."); } int which_cluster = component-><API key>(); if (which_cluster < 0) { // The component is not currently assigned. return; } else if (which_cluster > <API key>()) { report_error("Mixture component index too large."); } if (mixture_components_[which_cluster] != component) { report_error("Mixture components have become misaligned."); } component-><API key>(-1); <API key>.push_back(component); for (int i = which_cluster; i < mixture_components_.size(); ++i) { mixture_components_[i]-><API key>(); } mixture_components_.erase(mixture_components_.begin() + which_cluster); if (<API key>) { stick_fractions_.erase(stick_fractions_.begin() + which_cluster); mixing_weights_.pop_back(); <API key>(); } } void DPMM::<API key>() { for (int i = 0; i < mixture_components_.size(); ++i) { if (cluster_count(i) == 0) { <API key>(mixture_components_[i], true); --i; } } } void DPMM::shift_cluster(int from, int to) { shift_element(mixture_components_, from, to); for (int i = 0; i < <API key>(); ++i) { mixture_components_[i]-><API key>(i); } mixing_weights_.shift_element(from, to); <API key>(); } void DPMM::<API key>() { mixing_weights_.resize(stick_fractions_.size() + 1); double fraction_remaining = 1.0; for (int i = 0; i < stick_fractions_.size(); ++i) { mixing_weights_[i] = stick_fractions_[i] * fraction_remaining; fraction_remaining *= (1 - stick_fractions_[i]); } mixing_weights_.back() = fraction_remaining; } void DPMM::<API key>() { stick_fractions_.resize(mixing_weights_.size() - 1); stick_fractions_[0] = mixing_weights_[0]; double <API key> = 1.0 - stick_fractions_[0]; for (int i = 1; i < stick_fractions_.size(); ++i) { stick_fractions_[i] = mixing_weights_[i] / <API key>; <API key> -= mixing_weights_[i]; } } // Here is the math for the stick breaking distribution. Let w = w1, w2, ..., // wn. The density factors as p(w) = p(w1) p(w2 | w1) ... p(wn | w1..wn). // Each wi is defined as vi * (1 - sum of previous weights), where vi ~ // Beta(1, alpha). // That means p(wi | w1, ..., wi-1) = Beta(wi / previous) / previous, where // the extra factor is a Jacobian. // There is some nice cancellation that falls out of the beta distribution. // Beta(v, 1, alpha) = Gamma(1 + alpha) // Gamma(1) Gamma(alpha) // Now, Gamma(1 + alpha) = alpha * Gamma(alpha), so the normalizing constant // here is just alpha, and the density is just (1-v)^(alpha-1). // The Jacobian term is 1/previous, where we can write previous_i = // (1-v1)...(1-vi-1). Thus 1-v1 appears in the denominator of n-1 terms, 1-v2 // in n-2 terms etc. // Putting all this together gives // p(w) = alpha^n \prod_{i=1}^n (1-v_i)^{\alpha + i - 1 - n)} // In C's zero-based counting scheme we just replace i-1 with i. double DPMM::dstick(const Vector &weights, double alpha, bool logscale) { // The amount of probability remaining after subtracting off all previous // mixing weights. double log_alpha = log(alpha); int dim = weights.size(); double ans = dim * log_alpha; double <API key> = 1.0; for (int i = 0; i < dim; ++i) { if (<API key> > 0) { double stick_fraction = weights[i] / <API key>; <API key> -= weights[i]; ans += (alpha + i - dim) * log(1 - stick_fraction); } else { // Do some error checking to make sure <API key> isn't so // more negative than can plausibly be attributed to numerical issues. if (fabs(<API key>) > 1e-10) { report_error("Vector of weights sums to more than 1."); } else { // Assume all future weights (and thus all future stick fractions) are // zero. Each zero stick fraction increments ans by zero, so we're // done. break; } } } return logscale ? ans : exp(ans); } void DPMM::<API key>() { if (<API key>.empty()) { for (int i = 0; i < <API key>(); ++i) { Ptr<<API key>> component = <API key>->clone(); component->clear_data(); <API key>(component); } } } void DPMM::<API key>() { <API key>.pop_back(); } void DPMM::<API key>( const Ptr<<API key>> &component) { <API key>.push_back(component); <API key>.back()-><API key>(-1); } void DPMM::<API key>( const Ptr<DpMixtureComponent> &component, RNG &rng) { mixture_components_.push_back(component); base_distribution_-><API key>(*mixture_components_.back()); mixture_components_.back()-><API key>( mixture_components_.size() - 1); stick_fractions_.push_back(rbeta_mt(rng, 1, <API key>())); double remainder = mixing_weights_.back(); mixing_weights_.back() = remainder * stick_fractions_.back(); mixing_weights_.push_back(remainder * (1 - stick_fractions_.back())); } void DPMM::replace_cluster( const Ptr<DpMixtureComponent> &<API key>, const Ptr<DpMixtureComponent> &new_component) { int index = <API key>-><API key>(); <API key>-><API key>(-1); <API key>->clear_data(); <API key>.push_back(<API key>); int buffer_size = <API key>; if (<API key>.size() > 2 * buffer_size) { <API key>.erase( <API key>.begin() + buffer_size, <API key>.end()); } new_component-><API key>(index); mixture_components_[index] = new_component; std::set<Ptr<Data>> data_set = new_component->abstract_data_set(); for (const auto &el : data_set) { cluster_indicators_[el] = new_component; } } void DPMM::insert_cluster(const Ptr<DpMixtureComponent> &component, int index) { mixture_components_.insert(mixture_components_.begin() + index, component); std::set<Ptr<Data>> data_set = component->abstract_data_set(); for (const auto &data_point : data_set) { cluster_indicators_[data_point] = component; } for (int i = index; i < mixture_components_.size(); ++i) { mixture_components_[i]-><API key>(i); } } void DPMM::<API key>() { <API key>->add_observer([this]() { this-><API key> = log(this-><API key>()); }); <API key>->set(<API key>()); } CDPMM::<API key>( const Ptr<<API key>> &<API key>, const Ptr<<API key>> &base_distribution, const Ptr<UnivParams> &<API key>) : DPMM(<API key>, base_distribution, <API key>), <API key>(<API key>), <API key>(base_distribution) {} double <API key>::<API key>( const Ptr<Data> &data_point, int which_component) const { if (which_component > 0) { return <API key>-><API key>( data_point, component(which_component)); } else { return <API key>-><API key>( data_point, <API key>.get()); } } void CDPMM::add_empty_cluster(RNG &rng) { <API key>(); Ptr<<API key>> component = <API key>.back(); <API key>.push_back(component); DPMM::<API key>(component, rng); <API key>(); } void CDPMM::<API key>(const Ptr<DpMixtureComponent> &component, bool <API key>) { int which_cluster = component-><API key>(); if (<API key>[which_cluster] != component) { report_error("Conjugate mixture components have become misaligned"); } <API key>.push_back( <API key>[which_cluster]); <API key>.erase(<API key>.begin() + which_cluster); DPMM::<API key>(component, <API key>); } void CDPMM::replace_cluster( const Ptr<DpMixtureComponent> &<API key>, const Ptr<DpMixtureComponent> &new_component) { int index = <API key>-><API key>(); <API key>[index] = new_component.dcast<<API key>>(); DPMM::replace_cluster(<API key>, new_component); } void CDPMM::insert_cluster(const Ptr<DpMixtureComponent> &component, int index) { <API key>.insert( <API key>.begin() + index, component.dcast<<API key>>()); DPMM::insert_cluster(component, index); } void CDPMM::shift_cluster(int from, int to) { shift_element(<API key>, from, to); DPMM::shift_cluster(from, to); } void CDPMM::<API key>() { if (<API key>.empty()) { for (int i = 0; i < <API key>(); ++i) { Ptr<<API key>> component = <API key>->clone(); component->clear_data(); <API key>(component); <API key>.push_back(component); } } } void CDPMM::<API key>() { <API key>.pop_back(); DPMM::<API key>(); } } // namespace BOOM
#include "wMotion.h" #include "Matrix.h" #include <nan.h> v8::Persistent<FunctionTemplate> wMotion::constructor; int buffersSize; unsigned char *cur; float *recent; float *bg; int motionThreshold, presenceThreshold; float motionWeight, presenceWeight; void wMotion::Init(Handle<Object> target) { NanScope(); //Class Local<FunctionTemplate> ctor = NanNew<FunctionTemplate>(wMotion::New); NanAssignPersistent(constructor, ctor); ctor->InstanceTemplate()-><API key>(1); ctor->SetClassName(NanNew("wMotion")); // Prototype <API key>(ctor, "process", Process); target->Set(NanNew("wMotion"), ctor->GetFunction()); } NAN_METHOD(wMotion::New) { NanScope(); NanReturnValue(args.Holder()); } wMotion::wMotion(): ObjectWrap() { if( cur ) delete[] cur; if( bg ) delete[] bg; if( recent ) delete[] recent; buffersSize = 0; cur = NULL; bg = recent = NULL; motionThreshold = 8; // min 0 max 255 presenceThreshold = 8; // min 0 max 255 motionWeight = 0.1; // min 0 max 2 presenceWeight = 0.0001; // min 0 max 2 } void quarterScale( unsigned char *to, unsigned char *from, int w, int h ) { for( int y=0; y<h-1; y+=2 ) { int yw = (y*w); for( int x=0; x<w-1; x+=2 ) { to[ (yw/4) + (x/2) ] = ( from[ yw + x ] +from[ yw + x + 1 ] +from[ yw + w + x ] +from[ yw + w + x + 1 ] ) / 4; } } } NAN_METHOD(wMotion::Reset) { NanScope(); buffersSize = -1; NanReturnNull(); } NAN_METHOD(wMotion::Process) { NanScope(); Matrix *src = ObjectWrap::Unwrap<Matrix>(args[0]->ToObject()); cv::Mat yuv; cv::cvtColor(src->mat, yuv, CV_RGB2YCrCb); motionThreshold = args[1]->IntegerValue(); presenceThreshold = args[2]->IntegerValue(); motionWeight = (float)args[3]->NumberValue(); presenceWeight = (float)args[4]->NumberValue(); int sz = yuv.cols*yuv.rows; int sz4 = ( (yuv.cols/2)*(yuv.rows/2)); unsigned char *Y = yuv.data; unsigned char *U = Y + sz; unsigned char *V = U + sz4; if( buffersSize != sz4 ) { if( cur ) delete[] cur; if( recent ) delete[] recent; if( bg ) delete[] bg; buffersSize = sz4; cur = new unsigned char[sz4]; recent = new float[sz4]; bg = new float[sz4]; quarterScale( cur, Y, yuv.cols, yuv.rows ); for( int i=0; i<sz4; i++ ) recent[i]=bg[i]=cur[i]; } else { quarterScale( cur, Y, yuv.cols, yuv.rows ); } unsigned char mthresh = motionThreshold; unsigned char pthresh = presenceThreshold; unsigned char *P = U; unsigned char *M = V; float pw = presenceWeight; float pwn = 1.-pw; float mw = motionWeight; float mwn = 1.-mw; for( int i=0; i<sz4; i++ ) { // 0-255, threshold //M[i] = abs( late[i]-cur[i] )>mthresh?255:0; //P[i] = abs( bg[i]-cur[i] )>pthresh?255:0; // good looking M[i] = abs( recent[i]-cur[i] )>mthresh?64:128; P[i] = abs( bg[i]-cur[i] )>pthresh?64:128; // "real" //M[i] = 128+(late[i]-cur[i]); //P[i] = 128+(bg[i]-cur[i]); bg[i] *= pwn; bg[i] += cur[i]*pw; recent[i] *= mwn; recent[i] += cur[i]*mw; } v8::Local<v8::Array> arr = NanNew<Array>(2); v8::Handle<v8::Object> currentArray = NanNew<v8::Object>(); currentArray-><API key>(&cur, v8::<API key>, sz4); v8::Handle<v8::Object> recentArray = NanNew<v8::Object>(); recentArray-><API key>(&cur, v8::<API key>, sz4); arr->Set(0, currentArray); arr->Set(1, recentArray); NanReturnValue(arr); }
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_02-ea) on Thu Dec 24 00:39:33 CET 2009 --> <TITLE> org.neuroph.nnet.comp </TITLE> <META NAME="date" CONTENT="2009-12-24"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="org.neuroph.nnet.comp"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <A NAME="navbar_top"></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../org/neuroph/nnet/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp; &nbsp;<A HREF="../../../../org/neuroph/nnet/learning/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/neuroph/nnet/comp/package-summary.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <HR> <H2> Package org.neuroph.nnet.comp </H2> Provides components for the specific neural network models. <P> <B>See:</B> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="#package_description"><B>Description</B></A> <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Class Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../org/neuroph/nnet/comp/CompetitiveLayer.html" title="class in org.neuroph.nnet.comp">CompetitiveLayer</A></B></TD> <TD>Represents layer of competitive neurons, and provides methods for competition.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../org/neuroph/nnet/comp/CompetitiveNeuron.html" title="class in org.neuroph.nnet.comp">CompetitiveNeuron</A></B></TD> <TD>Provides neuron behaviour specific for competitive neurons which are used in competitive layers, and networks with competitive learning.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../org/neuroph/nnet/comp/DelayedConnection.html" title="class in org.neuroph.nnet.comp">DelayedConnection</A></B></TD> <TD>Represents the connection between neurons which can delay signal.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../org/neuroph/nnet/comp/DelayedNeuron.html" title="class in org.neuroph.nnet.comp">DelayedNeuron</A></B></TD> <TD>Provides behaviour for neurons with delayed output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../org/neuroph/nnet/comp/InputOutputNeuron.html" title="class in org.neuroph.nnet.comp">InputOutputNeuron</A></B></TD> <TD>Provides behaviour specific for neurons which act as input and the output neurons within the same layer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD WIDTH="15%"><B><A HREF="../../../../org/neuroph/nnet/comp/ThresholdNeuron.html" title="class in org.neuroph.nnet.comp">ThresholdNeuron</A></B></TD> <TD>Provides behaviour for neurons with threshold.</TD> </TR> </TABLE> &nbsp; <P> <A NAME="package_description"></A><H2> Package org.neuroph.nnet.comp Description </H2> <P> Provides components for the specific neural network models. <P> <P> <DL> </DL> <HR> <A NAME="navbar_bottom"></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="<API key>"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../../../org/neuroph/nnet/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp; &nbsp;<A HREF="../../../../org/neuroph/nnet/learning/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/neuroph/nnet/comp/package-summary.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <HR> </BODY> </HTML>
// PThreadMutex.c++ - C++ Mutex class built on top of posix threads. #include <unistd.h> #include <pthread.h> #include <OpenThreads/Mutex> #include "<API key>.h" using namespace OpenThreads; // Decription: Constructor // Use: public. Mutex::Mutex(MutexType type) : _mutexType(type) { pthread_mutexattr_t mutex_attr; <API key>(&mutex_attr); <API key> *pd = new <API key>(); if (type == MUTEX_RECURSIVE) { <API key>(&mutex_attr, <API key>); } else { #ifndef __linux__ // (not available until NPTL) [ <API key>(&mutex_attr, <API key>); #endif // ] __linux__ } #ifdef <API key> #ifdef __sun <API key>(&mutex_attr, PTHREAD_PRIO_NONE); #endif // ] __sun // Initialization is a bit tricky, since we have to be able to be aware // that on many-to-many execution vehicle systems, we may run into // priority inversion deadlocks if a mutex is shared between threads // of differing priorities. Systems that do this should provide the // following protocol attributes to prevent deadlocks. Check at runtime. // PRIO_INHERIT causes any thread locking the mutex to temporarily become // the same priority as the highest thread also blocked on the mutex. // Although more expensive, this is the preferred method. // PRIO_PROTECT causes any thread locking the mutex to assume the priority // specified by setprioceiling. pthread_mutex_lock will fail if // the priority ceiling is lower than the thread's priority. Therefore, // the priority ceiling must be set to the max priority in order to // guarantee no deadlocks will occur. #if defined (<API key>) || defined (<API key>) if (sysconf(<API key>)) { <API key>(&mutex_attr, <API key>); } else if (sysconf(<API key>)) { int th_policy; struct sched_param th_param; <API key>(pthread_self(), &th_policy, &th_param); <API key>(&mutex_attr, <API key>); <API key>(&mutex_attr, <API key>(th_policy)); } #endif // ] Priority Scheduling. #endif // ] <API key> pthread_mutex_init(&pd->mutex, &mutex_attr); _prvData = static_cast<void*>(pd); } // Decription: Destructor // Use: public. Mutex::~Mutex() { <API key> *pd = static_cast<<API key>*>(_prvData); <API key>(&pd->mutex); delete pd; } // Decription: lock the mutex // Use: public. int Mutex::lock() { <API key> *pd = static_cast<<API key>*>(_prvData); return pthread_mutex_lock(&pd->mutex); } // Decription: unlock the mutex // Use: public. int Mutex::unlock() { <API key> *pd = static_cast<<API key>*>(_prvData); return <API key>(&pd->mutex); } // Decription: test if the mutex may be locked // Use: public. int Mutex::trylock() { <API key> *pd = static_cast<<API key>*>(_prvData); return <API key>(&pd->mutex); }
#include "buildprogress.h" #include "<API key>.h" #include <coreplugin/coreconstants.h> #include <utils/stylehelper.h> #include <QVBoxLayout> #include <QHBoxLayout> #include <QLabel> #include <QFont> #include <QPixmap> #include <QDebug> using namespace ProjectExplorer; using namespace ProjectExplorer::Internal; BuildProgress::BuildProgress(TaskWindow *taskWindow, Qt::Orientation orientation) : m_contentWidget(new QWidget), m_errorIcon(new QLabel), m_warningIcon(new QLabel), m_errorLabel(new QLabel), m_warningLabel(new QLabel), m_taskWindow(taskWindow) { QHBoxLayout *contentLayout = new QHBoxLayout; contentLayout->setContentsMargins(0, 0, 0, 0); contentLayout->setSpacing(0); setLayout(contentLayout); contentLayout->addWidget(m_contentWidget); QBoxLayout *layout; if (orientation == Qt::Horizontal) layout = new QHBoxLayout; else layout = new QVBoxLayout; layout->setContentsMargins(8, 2, 0, 2); layout->setSpacing(2); m_contentWidget->setLayout(layout); QHBoxLayout *errorLayout = new QHBoxLayout; errorLayout->setSpacing(2); layout->addLayout(errorLayout); errorLayout->addWidget(m_errorIcon); errorLayout->addWidget(m_errorLabel); QHBoxLayout *warningLayout = new QHBoxLayout; warningLayout->setSpacing(2); layout->addLayout(warningLayout); warningLayout->addWidget(m_warningIcon); warningLayout->addWidget(m_warningLabel); // ### TODO this setup should be done by style QFont f = this->font(); f.setPointSizeF(Utils::StyleHelper::sidebarFontSize()); f.setBold(true); m_errorLabel->setFont(f); m_warningLabel->setFont(f); m_errorLabel->setPalette(Utils::StyleHelper::sidebarFontPalette(m_errorLabel->palette())); m_warningLabel->setPalette(Utils::StyleHelper::sidebarFontPalette(m_warningLabel->palette())); m_errorIcon->setAlignment(Qt::AlignRight); m_warningIcon->setAlignment(Qt::AlignRight); m_errorIcon->setPixmap(QPixmap(QLatin1String(Core::Constants::ICON_ERROR))); m_warningIcon->setPixmap(QPixmap(QLatin1String(Core::Constants::ICON_WARNING))); m_contentWidget->hide(); connect(m_taskWindow, SIGNAL(tasksChanged()), this, SLOT(updateState())); } void BuildProgress::updateState() { if (!m_taskWindow) return; int errors = m_taskWindow->errorTaskCount(Constants::<API key>) + m_taskWindow->errorTaskCount(Constants::<API key>) + m_taskWindow->errorTaskCount(Constants::<API key>); bool haveErrors = (errors > 0); m_errorIcon->setEnabled(haveErrors); m_errorLabel->setEnabled(haveErrors); m_errorLabel->setText(QString::number(errors)); int warnings = m_taskWindow->warningTaskCount(Constants::<API key>) + m_taskWindow->warningTaskCount(Constants::<API key>) + m_taskWindow->warningTaskCount(Constants::<API key>); bool haveWarnings = (warnings > 0); m_warningIcon->setEnabled(haveWarnings); m_warningLabel->setEnabled(haveWarnings); m_warningLabel->setText(QString::number(warnings)); // Hide warnings and errors unless you need them m_warningIcon->setVisible(haveWarnings); m_warningLabel->setVisible(haveWarnings); m_errorIcon->setVisible(haveErrors); m_errorLabel->setVisible(haveErrors); m_contentWidget->setVisible(haveWarnings || haveErrors); }
#include "gstav_h264enc.h" #include "gstav_venc.h" #include "plugin.h" #include <libavcodec/avcodec.h> #include <libavutil/opt.h> #include <gst/tag/tag.h> #include <stdlib.h> #include <string.h> /* for memcpy */ #include <stdbool.h> #include "util.h" #define GST_CAT_DEFAULT gstav_debug struct obj { struct gst_av_venc parent; }; struct obj_class { GstElementClass parent_class; }; #if <API key> < 52 && !(<API key> == 51 && <API key> >= 12) static int av_opt_set(void *obj, const char *name, const char *val, int search_flags) { return av_set_string3(obj, name, val, 0, NULL); } #endif static void init_ctx(struct gst_av_venc *base, AVCodecContext *ctx) { av_opt_set(ctx->priv_data, "preset", "medium", 0); av_opt_set(ctx->priv_data, "profile", "baseline", 0); av_opt_set(ctx->priv_data, "x264opts", "annexb=1", 0); av_opt_set_int(ctx->priv_data, "aud", 1, 0); } static GstCaps * <API key>(void) { GstCaps *caps; GstStructure *struc; caps = gst_caps_new_empty(); struc = gst_structure_new("video/x-h264", "stream-format", G_TYPE_STRING, "byte-stream", "alignment", G_TYPE_STRING, "au", NULL); <API key>(caps, struc); return caps; } static GstCaps * <API key>(void) { GstCaps *caps; caps = gst_caps_new_simple("video/x-raw-yuv", "format", GST_TYPE_FOURCC, GST_MAKE_FOURCC('I', '4', '2', '0'), NULL); return caps; } static void instance_init(GTypeInstance *instance, void *g_class) { struct gst_av_venc *venc = (struct gst_av_venc *)instance; venc->codec_id = CODEC_ID_H264; venc->init_ctx = init_ctx; } static void base_init(void *g_class) { GstElementClass *element_class = g_class; GstPadTemplate *template; <API key>(element_class, "av h264 video encoder", "Coder/Encoder/Video", "H.264 encoder wrapper for libavcodec", "Felipe Contreras"); template = <API key>("src", GST_PAD_SRC, GST_PAD_ALWAYS, <API key>()); <API key>(element_class, template); template = <API key>("sink", GST_PAD_SINK, GST_PAD_ALWAYS, <API key>()); <API key>(element_class, template); } GType <API key>(void) { static GType type; if (G_UNLIKELY(type == 0)) { GTypeInfo type_info = { .class_size = sizeof(struct obj_class), .base_init = base_init, .instance_size = sizeof(struct obj), .instance_init = instance_init, }; type = <API key>(GST_AV_VENC_TYPE, "GstAVH264Enc", &type_info, 0); } return type; }
#include "qvideowidget_p.h" #include <qmediaobject.h> #include <qmediaservice.h> #include <qvideowindowcontrol.h> #include <qvideowidgetcontrol.h> #include <<API key>.h> #include <<API key>.h> #include <qvideosurfaceformat.h> #include <qpainter.h> #include <qapplication.h> #include <qevent.h> #include <qdialog.h> #include <qboxlayout.h> #include <qnamespace.h> using namespace Qt; QT_BEGIN_NAMESPACE <API key>::<API key>( QMediaService *service, QVideoWidgetControl *control, QWidget *widget) : m_service(service) , m_widgetControl(control) { connect(control, SIGNAL(brightnessChanged(int)), widget, SLOT(<API key>(int))); connect(control, SIGNAL(contrastChanged(int)), widget, SLOT(_q_contrastChanged(int))); connect(control, SIGNAL(hueChanged(int)), widget, SLOT(_q_hueChanged(int))); connect(control, SIGNAL(saturationChanged(int)), widget, SLOT(<API key>(int))); connect(control, SIGNAL(fullScreenChanged(bool)), widget, SLOT(<API key>(bool))); QBoxLayout *layout = new QVBoxLayout; layout->setMargin(0); layout->setSpacing(0); #ifdef Q_OS_SYMBIAN // On some cases the flag is not reset automatically // This would lead to viewfinder not being visible on Symbian control->videoWidget()->setAttribute(Qt::<API key>, false); #endif // Q_OS_SYMBIAN layout->addWidget(control->videoWidget()); widget->setLayout(layout); } void <API key>::releaseControl() { m_service->releaseControl(m_widgetControl); } void <API key>::setBrightness(int brightness) { m_widgetControl->setBrightness(brightness); } void <API key>::setContrast(int contrast) { m_widgetControl->setContrast(contrast); } void <API key>::setHue(int hue) { m_widgetControl->setHue(hue); } void <API key>::setSaturation(int saturation) { m_widgetControl->setSaturation(saturation); } void <API key>::setFullScreen(bool fullScreen) { m_widgetControl->setFullScreen(fullScreen); } Qt::AspectRatioMode <API key>::aspectRatioMode() const { return m_widgetControl->aspectRatioMode(); } void <API key>::setAspectRatioMode(Qt::AspectRatioMode mode) { m_widgetControl->setAspectRatioMode(mode); } <API key>::<API key>( QMediaService *service, <API key> *control, QWidget *widget) : m_service(service) , m_rendererControl(control) , m_widget(widget) , m_surface(new <API key>) , m_aspectRatioMode(Qt::KeepAspectRatio) , m_updatePaintDevice(true) { connect(this, SIGNAL(brightnessChanged(int)), m_widget, SLOT(<API key>(int))); connect(this, SIGNAL(contrastChanged(int)), m_widget, SLOT(_q_contrastChanged(int))); connect(this, SIGNAL(hueChanged(int)), m_widget, SLOT(_q_hueChanged(int))); connect(this, SIGNAL(saturationChanged(int)), m_widget, SLOT(<API key>(int))); connect(m_surface, SIGNAL(frameChanged()), this, SLOT(frameChanged())); connect(m_surface, SIGNAL(<API key>(QVideoSurfaceFormat)), this, SLOT(formatChanged(QVideoSurfaceFormat))); m_rendererControl->setSurface(m_surface); } <API key>::~<API key>() { delete m_surface; } void <API key>::releaseControl() { m_service->releaseControl(m_rendererControl); } void <API key>::clearSurface() { m_rendererControl->setSurface(0); } void <API key>::setBrightness(int brightness) { m_surface->setBrightness(brightness); emit brightnessChanged(brightness); } void <API key>::setContrast(int contrast) { m_surface->setContrast(contrast); emit contrastChanged(contrast); } void <API key>::setHue(int hue) { m_surface->setHue(hue); emit hueChanged(hue); } void <API key>::setSaturation(int saturation) { m_surface->setSaturation(saturation); emit saturationChanged(saturation); } Qt::AspectRatioMode <API key>::aspectRatioMode() const { return m_aspectRatioMode; } void <API key>::setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; m_widget->updateGeometry(); } void <API key>::setFullScreen(bool) { } QSize <API key>::sizeHint() const { return m_surface->surfaceFormat().sizeHint(); } void <API key>::showEvent() { } void <API key>::hideEvent(QHideEvent *) { #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1) m_updatePaintDevice = true; m_surface->setGLContext(0); #endif } void <API key>::resizeEvent(QResizeEvent *) { updateRects(); } void <API key>::moveEvent(QMoveEvent *) { } void <API key>::paintEvent(QPaintEvent *event) { QPainter painter(m_widget); if (m_widget->testAttribute(Qt::WA_OpaquePaintEvent)) { QRegion borderRegion = event->region(); borderRegion = borderRegion.subtracted(m_boundingRect); QBrush brush = m_widget->palette().window(); QVector<QRect> rects = borderRegion.rects(); for (QVector<QRect>::iterator it = rects.begin(), end = rects.end(); it != end; ++it) { painter.fillRect(*it, brush); } } if (m_surface->isActive() && m_boundingRect.intersects(event->rect())) { m_surface->paint(&painter, m_boundingRect, m_sourceRect); m_surface->setReady(true); } else { #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1) if (m_updatePaintDevice && (painter.paintEngine()->type() == QPaintEngine::OpenGL || painter.paintEngine()->type() == QPaintEngine::OpenGL2)) { m_updatePaintDevice = false; m_surface->setGLContext(const_cast<QGLContext *>(QGLContext::currentContext())); if (m_surface-><API key>() & <API key>::GlslShader) { m_surface->setShaderType(<API key>::GlslShader); } else { m_surface->setShaderType(<API key>::<API key>); } } #endif } } void <API key>::formatChanged(const QVideoSurfaceFormat &format) { m_nativeSize = format.sizeHint(); updateRects(); m_widget->updateGeometry(); m_widget->update(); } void <API key>::frameChanged() { m_widget->update(m_boundingRect); } void <API key>::updateRects() { QRect rect = m_widget->rect(); if (m_nativeSize.isEmpty()) { m_boundingRect = QRect(); } else if (m_aspectRatioMode == Qt::IgnoreAspectRatio) { m_boundingRect = rect; m_sourceRect = QRectF(0, 0, 1, 1); } else if (m_aspectRatioMode == Qt::KeepAspectRatio) { QSize size = m_nativeSize; size.scale(rect.size(), Qt::KeepAspectRatio); m_boundingRect = QRect(0, 0, size.width(), size.height()); m_boundingRect.moveCenter(rect.center()); m_sourceRect = QRectF(0, 0, 1, 1); } else if (m_aspectRatioMode == Qt::<API key>) { m_boundingRect = rect; QSizeF size = rect.size(); size.scale(m_nativeSize, Qt::KeepAspectRatio); m_sourceRect = QRectF( 0, 0, size.width() / m_nativeSize.width(), size.height() / m_nativeSize.height()); m_sourceRect.moveCenter(QPointF(0.5, 0.5)); } } <API key>::<API key>( QMediaService *service, QVideoWindowControl *control, QWidget *widget) : m_service(service) , m_windowControl(control) , m_widget(widget) , m_aspectRatioMode(Qt::KeepAspectRatio) { connect(control, SIGNAL(brightnessChanged(int)), m_widget, SLOT(<API key>(int))); connect(control, SIGNAL(contrastChanged(int)), m_widget, SLOT(_q_contrastChanged(int))); connect(control, SIGNAL(hueChanged(int)), m_widget, SLOT(_q_hueChanged(int))); connect(control, SIGNAL(saturationChanged(int)), m_widget, SLOT(<API key>(int))); connect(control, SIGNAL(fullScreenChanged(bool)), m_widget, SLOT(<API key>(bool))); connect(control, SIGNAL(nativeSizeChanged()), m_widget, SLOT(<API key>())); control->setWinId(widget->winId()); } <API key>::~<API key>() { } void <API key>::releaseControl() { m_service->releaseControl(m_windowControl); } void <API key>::setBrightness(int brightness) { m_windowControl->setBrightness(brightness); } void <API key>::setContrast(int contrast) { m_windowControl->setContrast(contrast); } void <API key>::setHue(int hue) { m_windowControl->setHue(hue); } void <API key>::setSaturation(int saturation) { m_windowControl->setSaturation(saturation); } void <API key>::setFullScreen(bool fullScreen) { m_windowControl->setFullScreen(fullScreen); } Qt::AspectRatioMode <API key>::aspectRatioMode() const { return m_windowControl->aspectRatioMode(); } void <API key>::setAspectRatioMode(Qt::AspectRatioMode mode) { m_windowControl->setAspectRatioMode(mode); } QSize <API key>::sizeHint() const { return m_windowControl->nativeSize(); } void <API key>::showEvent() { m_windowControl->setWinId(m_widget->winId()); m_windowControl->setDisplayRect(m_widget->rect()); #if defined(Q_WS_WIN) m_widget->setUpdatesEnabled(false); #endif } void <API key>::hideEvent(QHideEvent *) { #if defined(Q_WS_WIN) m_widget->setUpdatesEnabled(true); #endif } void <API key>::moveEvent(QMoveEvent *) { m_windowControl->setDisplayRect(m_widget->rect()); } void <API key>::resizeEvent(QResizeEvent *) { m_windowControl->setDisplayRect(m_widget->rect()); } void <API key>::paintEvent(QPaintEvent *event) { if (m_widget->testAttribute(Qt::WA_OpaquePaintEvent)) { QPainter painter(m_widget); painter.fillRect(event->rect(), m_widget->palette().window()); } m_windowControl->repaint(); event->accept(); } #if defined(Q_WS_WIN) bool <API key>::winEvent(MSG *message, long *) { if (message->message == WM_PAINT) m_windowControl->repaint(); return false; } #endif void QVideoWidgetPrivate::setCurrentControl(<API key> *control) { if (currentControl != control) { currentControl = control; currentControl->setBrightness(brightness); currentControl->setContrast(contrast); currentControl->setHue(hue); currentControl->setSaturation(saturation); currentControl->setAspectRatioMode(aspectRatioMode); } } void QVideoWidgetPrivate::clearService() { if (service) { QObject::disconnect(service, SIGNAL(destroyed()), q_func(), SLOT(_q_serviceDestroyed())); if (widgetBackend) { QLayout *layout = q_func()->layout(); for (QLayoutItem *item = layout->takeAt(0); item; item = layout->takeAt(0)) { item->widget()->setParent(0); delete item; } delete layout; widgetBackend->releaseControl(); delete widgetBackend; widgetBackend = 0; } else if (rendererBackend) { rendererBackend->clearSurface(); rendererBackend->releaseControl(); delete rendererBackend; rendererBackend = 0; } else { windowBackend->releaseControl(); delete windowBackend; windowBackend = 0; } currentBackend = 0; currentControl = 0; service = 0; } } bool QVideoWidgetPrivate::createWidgetBackend() { if (QMediaControl *control = service->requestControl(<API key>)) { if (QVideoWidgetControl *widgetControl = qobject_cast<QVideoWidgetControl *>(control)) { widgetBackend = new <API key>(service, widgetControl, q_func()); setCurrentControl(widgetBackend); return true; } service->releaseControl(control); } return false; } bool QVideoWidgetPrivate::createWindowBackend() { if (QMediaControl *control = service->requestControl(<API key>)) { if (QVideoWindowControl *windowControl = qobject_cast<QVideoWindowControl *>(control)) { windowBackend = new <API key>(service, windowControl, q_func()); currentBackend = windowBackend; setCurrentControl(windowBackend); return true; } service->releaseControl(control); } return false; } bool QVideoWidgetPrivate::<API key>() { if (QMediaControl *control = service->requestControl(<API key>)) { if (<API key> *rendererControl = qobject_cast<<API key> *>(control)) { rendererBackend = new <API key>(service, rendererControl, q_func()); currentBackend = rendererBackend; setCurrentControl(rendererBackend); return true; } service->releaseControl(control); } return false; } void QVideoWidgetPrivate::_q_serviceDestroyed() { if (widgetBackend) delete q_func()->layout(); delete widgetBackend; delete windowBackend; delete rendererBackend; widgetBackend = 0; windowBackend = 0; rendererBackend = 0; currentControl = 0; currentBackend = 0; service = 0; } void QVideoWidgetPrivate::<API key>(int b) { if (b != brightness) emit q_func()->brightnessChanged(brightness = b); } void QVideoWidgetPrivate::_q_contrastChanged(int c) { if (c != contrast) emit q_func()->contrastChanged(contrast = c); } void QVideoWidgetPrivate::_q_hueChanged(int h) { if (h != hue) emit q_func()->hueChanged(hue = h); } void QVideoWidgetPrivate::<API key>(int s) { if (s != saturation) emit q_func()->saturationChanged(saturation = s); } void QVideoWidgetPrivate::<API key>(bool fullScreen) { if (!fullScreen && q_func()->isFullScreen()) q_func()->showNormal(); } void QVideoWidgetPrivate::<API key>() { q_func()->updateGeometry(); q_func()->update(); } /*! \class QVideoWidget \brief The QVideoWidget class provides a widget which presents video produced by a media object. \ingroup multimedia \inmodule QtMultimediaKit \since 1.0 \inmodule QtMultimediaKit Attaching a QVideoWidget to a QMediaObject allows it to display the video or image output of that media object. A QVideoWidget is attached to media object by passing a pointer to the QMediaObject in its constructor, and detached by destroying the QVideoWidget. \snippet doc/src/snippets/multimedia-snippets/video.cpp Video widget \bold {Note}: Only a single display output can be attached to a media object at one time. \sa QMediaObject, QMediaPlayer, QGraphicsVideoItem */ /*! Constructs a new video widget. The \a parent is passed to QWidget. */ QVideoWidget::QVideoWidget(QWidget *parent) : QWidget(parent, 0) , d_ptr(new QVideoWidgetPrivate) { d_ptr->q_ptr = this; } /*! \internal */ QVideoWidget::QVideoWidget(QVideoWidgetPrivate &dd, QWidget *parent) : QWidget(parent, 0) , d_ptr(&dd) { d_ptr->q_ptr = this; QPalette palette = QWidget::palette(); palette.setColor(QPalette::Background, Qt::black); setPalette(palette); } /*! Destroys a video widget. */ QVideoWidget::~QVideoWidget() { d_ptr->clearService(); delete d_ptr; } /*! \property QVideoWidget::mediaObject \brief the media object which provides the video displayed by a widget. */ QMediaObject *QVideoWidget::mediaObject() const { return d_func()->mediaObject; } /*! \internal */ bool QVideoWidget::setMediaObject(QMediaObject *object) { Q_D(QVideoWidget); if (object == d->mediaObject) return true; d->clearService(); d->mediaObject = object; if (d->mediaObject) d->service = d->mediaObject->service(); if (d->service) { if (d->createWidgetBackend()) { // Nothing to do here. } else if ((!window() || !window()->testAttribute(Qt::WA_DontShowOnScreen)) && d->createWindowBackend()) { if (isVisible()) d->windowBackend->showEvent(); } else if (d-><API key>()) { if (isVisible()) d->rendererBackend->showEvent(); } else { d->service = 0; d->mediaObject = 0; return false; } connect(d->service, SIGNAL(destroyed()), SLOT(_q_serviceDestroyed())); } else { d->mediaObject = 0; return false; } return true; } /*! \property QVideoWidget::aspectRatioMode \brief how video is scaled with respect to its aspect ratio. */ Qt::AspectRatioMode QVideoWidget::aspectRatioMode() const { return d_func()->aspectRatioMode; } void QVideoWidget::setAspectRatioMode(Qt::AspectRatioMode mode) { Q_D(QVideoWidget); if (d->currentControl) { d->currentControl->setAspectRatioMode(mode); d->aspectRatioMode = d->currentControl->aspectRatioMode(); } else { d->aspectRatioMode = mode; } } /*! \property QVideoWidget::fullScreen \brief whether video display is confined to a window or is fullScreen. */ void QVideoWidget::setFullScreen(bool fullScreen) { Q_D(QVideoWidget); if (fullScreen) { Qt::WindowFlags flags = windowFlags(); d->nonFullScreenFlags = flags & (Qt::Window | Qt::SubWindow); flags |= Qt::Window; flags &= ~Qt::SubWindow; setWindowFlags(flags); showFullScreen(); } else { showNormal(); } } /*! \fn QVideoWidget::fullScreenChanged(bool fullScreen) Signals that the \a fullScreen mode of a video widget has changed. \sa fullScreen */ /*! \property QVideoWidget::brightness \brief an adjustment to the brightness of displayed video. Valid brightness values range between -100 and 100, the default is 0. */ int QVideoWidget::brightness() const { return d_func()->brightness; } void QVideoWidget::setBrightness(int brightness) { Q_D(QVideoWidget); int boundedBrightness = qBound(-100, brightness, 100); if (d->currentControl) d->currentControl->setBrightness(boundedBrightness); else if (d->brightness != boundedBrightness) emit brightnessChanged(d->brightness = boundedBrightness); } /*! \fn QVideoWidget::brightnessChanged(int brightness) Signals that a video widgets's \a brightness adjustment has changed. \sa brightness */ /*! \property QVideoWidget::contrast \brief an adjustment to the contrast of displayed video. Valid contrast values range between -100 and 100, the default is 0. */ int QVideoWidget::contrast() const { return d_func()->contrast; } void QVideoWidget::setContrast(int contrast) { Q_D(QVideoWidget); int boundedContrast = qBound(-100, contrast, 100); if (d->currentControl) d->currentControl->setContrast(boundedContrast); else if (d->contrast != boundedContrast) emit contrastChanged(d->contrast = boundedContrast); } /*! \fn QVideoWidget::contrastChanged(int contrast) Signals that a video widgets's \a contrast adjustment has changed. \sa contrast */ /*! \property QVideoWidget::hue \brief an adjustment to the hue of displayed video. Valid hue values range between -100 and 100, the default is 0. */ int QVideoWidget::hue() const { return d_func()->hue; } void QVideoWidget::setHue(int hue) { Q_D(QVideoWidget); int boundedHue = qBound(-100, hue, 100); if (d->currentControl) d->currentControl->setHue(boundedHue); else if (d->hue != boundedHue) emit hueChanged(d->hue = boundedHue); } /*! \fn QVideoWidget::hueChanged(int hue) Signals that a video widgets's \a hue has changed. \sa hue */ /*! \property QVideoWidget::saturation \brief an adjustment to the saturation of displayed video. Valid saturation values range between -100 and 100, the default is 0. */ int QVideoWidget::saturation() const { return d_func()->saturation; } void QVideoWidget::setSaturation(int saturation) { Q_D(QVideoWidget); int boundedSaturation = qBound(-100, saturation, 100); if (d->currentControl) d->currentControl->setSaturation(boundedSaturation); else if (d->saturation != boundedSaturation) emit saturationChanged(d->saturation = boundedSaturation); } /*! \fn QVideoWidget::saturationChanged(int saturation) Signals that a video widgets's \a saturation has changed. \sa saturation */ /*! Returns the size hint for the current back end, if there is one, or else the size hint from QWidget. */ QSize QVideoWidget::sizeHint() const { Q_D(const QVideoWidget); if (d->currentBackend) return d->currentBackend->sizeHint(); else return QWidget::sizeHint(); } /*! Current event \a event. Returns the value of the baseclass QWidget::event(QEvent *event) function. */ bool QVideoWidget::event(QEvent *event) { Q_D(QVideoWidget); if (event->type() == QEvent::WindowStateChange) { Qt::WindowFlags flags = windowFlags(); if (windowState() & Qt::WindowFullScreen) { if (d->currentControl) d->currentControl->setFullScreen(true); if (!d->wasFullScreen) emit fullScreenChanged(d->wasFullScreen = true); } else { if (d->currentControl) d->currentControl->setFullScreen(false); if (d->wasFullScreen) { flags &= ~(Qt::Window | Qt::SubWindow); //clear the flags... flags |= d->nonFullScreenFlags; //then we reset the flags (window and subwindow) setWindowFlags(flags); emit fullScreenChanged(d->wasFullScreen = false); } } } return QWidget::event(event); } /*! Handles the show \a event. */ void QVideoWidget::showEvent(QShowEvent *event) { Q_D(QVideoWidget); QWidget::showEvent(event); // The window backend won't work for re-directed windows so use the renderer backend instead. if (d->windowBackend && window()->testAttribute(Qt::WA_DontShowOnScreen)) { d->windowBackend->releaseControl(); delete d->windowBackend; d->windowBackend = 0; d-><API key>(); } if (d->currentBackend) d->currentBackend->showEvent(); } /*! Handles the hide \a event. */ void QVideoWidget::hideEvent(QHideEvent *event) { Q_D(QVideoWidget); if (d->currentBackend) d->currentBackend->hideEvent(event); QWidget::hideEvent(event); } /*! Handles the resize \a event. */ void QVideoWidget::resizeEvent(QResizeEvent *event) { Q_D(QVideoWidget); QWidget::resizeEvent(event); if (d->currentBackend) d->currentBackend->resizeEvent(event); } /*! Handles the move \a event. */ void QVideoWidget::moveEvent(QMoveEvent *event) { Q_D(QVideoWidget); if (d->currentBackend) d->currentBackend->moveEvent(event); } /*! Handles the paint \a event. */ void QVideoWidget::paintEvent(QPaintEvent *event) { Q_D(QVideoWidget); if (d->currentBackend) { d->currentBackend->paintEvent(event); } else if (testAttribute(Qt::WA_OpaquePaintEvent)) { QPainter painter(this); painter.fillRect(event->rect(), palette().window()); } } #if defined(Q_WS_WIN) /*! \reimp \internal */ bool QVideoWidget::winEvent(MSG *message, long *result) { return d_func()->windowBackend && d_func()->windowBackend->winEvent(message, result) ? true : QWidget::winEvent(message, result); } #endif #include "moc_qvideowidget.cpp" #include "moc_qvideowidget_p.cpp" QT_END_NAMESPACE
#ifndef <API key> #define <API key> #include <libgdav/gdav-property.h> /* Standard GObject macros */ #define <API key> \ (<API key> ()) #define <API key>(obj) \ (<API key> \ ((obj), <API key>, <API key>)) #define <API key>(obj) \ (<API key> \ ((obj), <API key>)) G_BEGIN_DECLS typedef struct <API key> <API key>; typedef struct <API key> <API key>; typedef struct <API key> <API key>; struct <API key> { GDavProperty parent; <API key> *priv; }; struct <API key> { GDavPropertyClass parent_class; }; GType <API key> (void) G_GNUC_CONST; G_END_DECLS #endif /* <API key> */
/* * This file was (probably) generated from gstvideobalance.c, * gstvideobalance.c,v 1.7 2003/11/08 02:48:59 dschleef Exp */ /** * SECTION:<API key> * * Adjusts brightness, contrast, hue, saturation on a video stream. * * <refsect2> * <title>Example launch line</title> * |[ * gst-launch videotestsrc ! videobalance saturation=0.0 ! ffmpegcolorspace ! ximagesink * ]| This pipeline converts the image to black and white by setting the * saturation to 0.0. * </refsect2> * * Last reviewed on 2010-04-18 (0.10.22) */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gstvideobalance.h" #include <string.h> #include <math.h> #include <gst/controller/gstcontroller.h> #include <gst/interfaces/colorbalance.h> #ifndef M_PI #define M_PI 3.<API key> #endif #ifdef WIN32 #define rint(x) (floor((x)+0.5)) #endif <API key> (videobalance_debug); #define GST_CAT_DEFAULT videobalance_debug /* GstVideoBalance properties */ #define <API key> 1.0 #define <API key> 0.0 #define DEFAULT_PROP_HUE 0.0 #define <API key> 1.0 enum { PROP_0, PROP_CONTRAST, PROP_BRIGHTNESS, PROP_HUE, PROP_SATURATION }; static <API key> <API key> = <API key> ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("AYUV") ";" GST_VIDEO_CAPS_ARGB ";" GST_VIDEO_CAPS_BGRA ";" GST_VIDEO_CAPS_ABGR ";" GST_VIDEO_CAPS_RGBA ";" GST_VIDEO_CAPS_YUV ("Y444") ";" GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_xBGR ";" GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGB ";" GST_VIDEO_CAPS_BGR ";" GST_VIDEO_CAPS_YUV ("Y42B") ";" GST_VIDEO_CAPS_YUV ("YUY2") ";" GST_VIDEO_CAPS_YUV ("UYVY") ";" GST_VIDEO_CAPS_YUV ("YVYU") ";" GST_VIDEO_CAPS_YUV ("I420") ";" GST_VIDEO_CAPS_YUV ("YV12") ";" GST_VIDEO_CAPS_YUV ("IYUV") ";" GST_VIDEO_CAPS_YUV ("Y41B") ) ); static <API key> <API key> = <API key> ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("AYUV") ";" GST_VIDEO_CAPS_ARGB ";" GST_VIDEO_CAPS_BGRA ";" GST_VIDEO_CAPS_ABGR ";" GST_VIDEO_CAPS_RGBA ";" GST_VIDEO_CAPS_YUV ("Y444") ";" GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_xBGR ";" GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGB ";" GST_VIDEO_CAPS_BGR ";" GST_VIDEO_CAPS_YUV ("Y42B") ";" GST_VIDEO_CAPS_YUV ("YUY2") ";" GST_VIDEO_CAPS_YUV ("UYVY") ";" GST_VIDEO_CAPS_YUV ("YVYU") ";" GST_VIDEO_CAPS_YUV ("I420") ";" GST_VIDEO_CAPS_YUV ("YV12") ";" GST_VIDEO_CAPS_YUV ("IYUV") ";" GST_VIDEO_CAPS_YUV ("Y41B") ) ); static void <API key> (<API key> * iface); static void <API key> (<API key> * klass); static void <API key> (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void <API key> (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static void _do_init (GType video_balance_type) { static const GInterfaceInfo iface_info = { (GInterfaceInitFunc) <API key>, NULL, NULL, }; static const GInterfaceInfo colorbalance_info = { (GInterfaceInitFunc) <API key>, NULL, NULL, }; <API key> (video_balance_type, <API key>, &iface_info); <API key> (video_balance_type, <API key>, &colorbalance_info); } <API key> (GstVideoBalance, gst_video_balance, GstVideoFilter, <API key>, _do_init); /* * look-up tables (LUT). */ static void <API key> (GstVideoBalance * vb) { gint i, j; gdouble y, u, v, hue_cos, hue_sin; for (i = 0; i < 256; i++) { y = 16 + ((i - 16) * vb->contrast + vb->brightness * 255); if (y < 0) y = 0; else if (y > 255) y = 255; vb->tabley[i] = rint (y); } hue_cos = cos (M_PI * vb->hue); hue_sin = sin (M_PI * vb->hue); /* U/V lookup tables are 2D, since we need both U/V for each table * separately. */ for (i = -128; i < 128; i++) { for (j = -128; j < 128; j++) { u = 128 + ((i * hue_cos + j * hue_sin) * vb->saturation); v = 128 + ((-i * hue_sin + j * hue_cos) * vb->saturation); if (u < 0) u = 0; else if (u > 255) u = 255; if (v < 0) v = 0; else if (v > 255) v = 255; vb->tableu[i + 128][j + 128] = rint (u); vb->tablev[i + 128][j + 128] = rint (v); } } } static gboolean <API key> (GstVideoBalance * videobalance) { return videobalance->contrast == 1.0 && videobalance->brightness == 0.0 && videobalance->hue == 0.0 && videobalance->saturation == 1.0; } static void <API key> (GstVideoBalance * videobalance) { gboolean passthrough = <API key> (videobalance); GstBaseTransform *base = GST_BASE_TRANSFORM (videobalance); base->passthrough = passthrough; if (!passthrough) <API key> (videobalance); } static void <API key> (GstVideoBalance * videobalance, guint8 * data) { gint x, y; guint8 *ydata; guint8 *udata, *vdata; gint ystride, ustride, vstride; GstVideoFormat format; gint width, height; gint width2, height2; guint8 *tabley = videobalance->tabley; guint8 **tableu = videobalance->tableu; guint8 **tablev = videobalance->tablev; format = videobalance->format; width = videobalance->width; height = videobalance->height; ydata = data + <API key> (format, 0, width, height); ystride = <API key> (format, 0, width); for (y = 0; y < height; y++) { guint8 *yptr; yptr = ydata + y * ystride; for (x = 0; x < width; x++) { *ydata = tabley[*ydata]; ydata++; } } width2 = <API key> (format, 1, width); height2 = <API key> (format, 1, height); udata = data + <API key> (format, 1, width, height); vdata = data + <API key> (format, 2, width, height); ustride = <API key> (format, 1, width); vstride = <API key> (format, 1, width); for (y = 0; y < height2; y++) { guint8 *uptr, *vptr; guint8 u1, v1; uptr = udata + y * ustride; vptr = vdata + y * vstride; for (x = 0; x < width2; x++) { u1 = *uptr; v1 = *vptr; *uptr++ = tableu[u1][v1]; *vptr++ = tablev[u1][v1]; } } } static void <API key> (GstVideoBalance * videobalance, guint8 * data) { gint x, y; guint8 *ydata; guint8 *udata, *vdata; gint ystride, ustride, vstride; gint yoff, uoff, voff; GstVideoFormat format; gint width, height; gint width2, height2; guint8 *tabley = videobalance->tabley; guint8 **tableu = videobalance->tableu; guint8 **tablev = videobalance->tablev; format = videobalance->format; width = videobalance->width; height = videobalance->height; ydata = data + <API key> (format, 0, width, height); ystride = <API key> (format, 0, width); yoff = <API key> (format, 0); for (y = 0; y < height; y++) { guint8 *yptr; yptr = ydata + y * ystride; for (x = 0; x < width; x++) { *ydata = tabley[*ydata]; ydata += yoff; } } width2 = <API key> (format, 1, width); height2 = <API key> (format, 1, height); udata = data + <API key> (format, 1, width, height); vdata = data + <API key> (format, 2, width, height); ustride = <API key> (format, 1, width); vstride = <API key> (format, 1, width); uoff = <API key> (format, 1); voff = <API key> (format, 2); for (y = 0; y < height2; y++) { guint8 *uptr, *vptr; guint8 u1, v1; uptr = udata + y * ustride; vptr = vdata + y * vstride; for (x = 0; x < width2; x++) { u1 = *uptr; v1 = *vptr; *uptr = tableu[u1][v1]; *vptr = tablev[u1][v1]; uptr += uoff; vptr += voff; } } } static const int <API key>[] = { 298, 0, 409, -57068, 298, -100, -208, 34707, 298, 516, 0, -70870, }; static const gint <API key>[] = { 66, 129, 25, 4096, -38, -74, 112, 32768, 112, -94, -18, 32768, }; #define APPLY_MATRIX(m,o,v1,v2,v3) ((m[o*4] * v1 + m[o*4+1] * v2 + m[o*4+2] * v3 + m[o*4+3]) >> 8) static void <API key> (GstVideoBalance * videobalance, guint8 * data) { gint i, j, height; gint width, row_stride, row_wrap; gint pixel_stride; gint offsets[3]; gint r, g, b; gint y, u, v; gint u_tmp, v_tmp; guint8 *tabley = videobalance->tabley; guint8 **tableu = videobalance->tableu; guint8 **tablev = videobalance->tablev; offsets[0] = <API key> (videobalance->format, 0, videobalance->width, videobalance->height); offsets[1] = <API key> (videobalance->format, 1, videobalance->width, videobalance->height); offsets[2] = <API key> (videobalance->format, 2, videobalance->width, videobalance->height); width = <API key> (videobalance->format, 0, videobalance->width); height = <API key> (videobalance->format, 0, videobalance->height); row_stride = <API key> (videobalance->format, 0, videobalance->width); pixel_stride = <API key> (videobalance->format, 0); row_wrap = row_stride - pixel_stride * width; for (i = 0; i < height; i++) { for (j = 0; j < width; j++) { r = data[offsets[0]]; g = data[offsets[1]]; b = data[offsets[2]]; y = APPLY_MATRIX (<API key>, 0, r, g, b); u_tmp = APPLY_MATRIX (<API key>, 1, r, g, b); v_tmp = APPLY_MATRIX (<API key>, 2, r, g, b); y = CLAMP (y, 0, 255); u_tmp = CLAMP (u_tmp, 0, 255); v_tmp = CLAMP (v_tmp, 0, 255); y = tabley[y]; u = tableu[u_tmp][v_tmp]; v = tablev[u_tmp][v_tmp]; r = APPLY_MATRIX (<API key>, 0, y, u, v); g = APPLY_MATRIX (<API key>, 1, y, u, v); b = APPLY_MATRIX (<API key>, 2, y, u, v); data[offsets[0]] = CLAMP (r, 0, 255); data[offsets[1]] = CLAMP (g, 0, 255); data[offsets[2]] = CLAMP (b, 0, 255); data += pixel_stride; } data += row_wrap; } } /* get notified of caps and plug in the correct process function */ static gboolean <API key> (GstBaseTransform * base, GstCaps * incaps, GstCaps * outcaps) { GstVideoBalance *videobalance = GST_VIDEO_BALANCE (base); GST_DEBUG_OBJECT (videobalance, "in %" GST_PTR_FORMAT " out %" GST_PTR_FORMAT, incaps, outcaps); videobalance->process = NULL; if (!<API key> (incaps, &videobalance->format, &videobalance->width, &videobalance->height)) goto invalid_caps; videobalance->size = <API key> (videobalance->format, videobalance->width, videobalance->height); switch (videobalance->format) { case <API key>: case <API key>: case <API key>: case <API key>: case <API key>: videobalance->process = <API key>; break; case <API key>: case <API key>: case <API key>: case <API key>: videobalance->process = <API key>; break; case <API key>: case <API key>: case <API key>: case <API key>: case <API key>: case <API key>: case <API key>: case <API key>: case <API key>: case <API key>: videobalance->process = <API key>; break; default: break; } return videobalance->process != NULL; invalid_caps: GST_ERROR_OBJECT (videobalance, "Invalid caps: %" GST_PTR_FORMAT, incaps); return FALSE; } static void <API key> (GstBaseTransform * base, GstBuffer * buf) { GstVideoBalance *balance = GST_VIDEO_BALANCE (base); GstClockTime timestamp, stream_time; timestamp = <API key> (buf); stream_time = <API key> (&base->segment, GST_FORMAT_TIME, timestamp); GST_DEBUG_OBJECT (balance, "sync to %" GST_TIME_FORMAT, GST_TIME_ARGS (timestamp)); if (<API key> (stream_time)) <API key> (G_OBJECT (balance), stream_time); } static GstFlowReturn <API key> (GstBaseTransform * base, GstBuffer * outbuf) { GstVideoBalance *videobalance = GST_VIDEO_BALANCE (base); guint8 *data; guint size; if (!videobalance->process) goto not_negotiated; /* if no change is needed, we are done */ if (base->passthrough) goto done; data = GST_BUFFER_DATA (outbuf); size = GST_BUFFER_SIZE (outbuf); if (size != videobalance->size) goto wrong_size; GST_OBJECT_LOCK (videobalance); videobalance->process (videobalance, data); GST_OBJECT_UNLOCK (videobalance); done: return GST_FLOW_OK; /* ERRORS */ wrong_size: { GST_ELEMENT_ERROR (videobalance, STREAM, FORMAT, (NULL), ("Invalid buffer size %d, expected %d", size, videobalance->size)); return GST_FLOW_ERROR; } not_negotiated: GST_ERROR_OBJECT (videobalance, "Not negotiated yet"); return <API key>; } static void <API key> (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); <API key> (element_class, "Video balance", "Filter/Effect/Video", "Adjusts brightness, contrast, hue, saturation on a video stream", "David Schleef <ds@schleef.org>"); <API key> (element_class, <API key> (&<API key>)); <API key> (element_class, <API key> (&<API key>)); } static void <API key> (GObject * object) { GList *channels = NULL; GstVideoBalance *balance = GST_VIDEO_BALANCE (object); g_free (balance->tableu[0]); channels = balance->channels; while (channels) { <API key> *channel = channels->data; g_object_unref (channel); channels->data = NULL; channels = g_list_next (channels); } if (balance->channels) g_list_free (balance->channels); G_OBJECT_CLASS (parent_class)->finalize (object); } static void <API key> (<API key> * klass) { GObjectClass *gobject_class = (GObjectClass *) klass; <API key> *trans_class = (<API key> *) klass; <API key> (videobalance_debug, "videobalance", 0, "videobalance"); gobject_class->finalize = <API key>; gobject_class->set_property = <API key>; gobject_class->get_property = <API key>; <API key> (gobject_class, PROP_CONTRAST, g_param_spec_double ("contrast", "Contrast", "contrast", 0.0, 2.0, <API key>, <API key> | G_PARAM_READWRITE | <API key>)); <API key> (gobject_class, PROP_BRIGHTNESS, g_param_spec_double ("brightness", "Brightness", "brightness", -1.0, 1.0, <API key>, <API key> | G_PARAM_READWRITE | <API key>)); <API key> (gobject_class, PROP_HUE, g_param_spec_double ("hue", "Hue", "hue", -1.0, 1.0, DEFAULT_PROP_HUE, <API key> | G_PARAM_READWRITE | <API key>)); <API key> (gobject_class, PROP_SATURATION, g_param_spec_double ("saturation", "Saturation", "saturation", 0.0, 2.0, <API key>, <API key> | G_PARAM_READWRITE | <API key>)); trans_class->set_caps = GST_DEBUG_FUNCPTR (<API key>); trans_class->transform_ip = GST_DEBUG_FUNCPTR (<API key>); trans_class->before_transform = GST_DEBUG_FUNCPTR (<API key>); } static void <API key> (GstVideoBalance * videobalance, <API key> * klass) { const gchar *channels[4] = { "HUE", "SATURATION", "BRIGHTNESS", "CONTRAST" }; gint i; /* Initialize propertiews */ videobalance->contrast = <API key>; videobalance->brightness = <API key>; videobalance->hue = DEFAULT_PROP_HUE; videobalance->saturation = <API key>; videobalance->tableu[0] = g_new (guint8, 256 * 256 * 2); for (i = 0; i < 256; i++) { videobalance->tableu[i] = videobalance->tableu[0] + i * 256 * sizeof (guint8); videobalance->tablev[i] = videobalance->tableu[0] + 256 * 256 * sizeof (guint8) + i * 256 * sizeof (guint8); } <API key> (videobalance); /* Generate the channels list */ for (i = 0; i < G_N_ELEMENTS (channels); i++) { <API key> *channel; channel = g_object_new (<API key>, NULL); channel->label = g_strdup (channels[i]); channel->min_value = -1000; channel->max_value = 1000; videobalance->channels = g_list_append (videobalance->channels, channel); } } static gboolean <API key> (<API key> * iface, GType type) { g_assert (type == <API key>); return TRUE; } static void <API key> (<API key> * klass) { klass->supported = <API key>; } static const GList * <API key> (GstColorBalance * balance) { GstVideoBalance *videobalance = GST_VIDEO_BALANCE (balance); <API key> (videobalance != NULL, NULL); <API key> (<API key> (videobalance), NULL); return videobalance->channels; } static void <API key> (GstColorBalance * balance, <API key> * channel, gint value) { GstVideoBalance *vb = GST_VIDEO_BALANCE (balance); gdouble new_val; gboolean changed; g_return_if_fail (vb != NULL); g_return_if_fail (<API key> (vb)); g_return_if_fail (GST_IS_VIDEO_FILTER (vb)); g_return_if_fail (channel->label != NULL); <API key> (vb); GST_OBJECT_LOCK (vb); if (!g_ascii_strcasecmp (channel->label, "HUE")) { new_val = (value + 1000.0) * 2.0 / 2000.0 - 1.0; changed = new_val != vb->hue; vb->hue = new_val; } else if (!g_ascii_strcasecmp (channel->label, "SATURATION")) { new_val = (value + 1000.0) * 2.0 / 2000.0; changed = new_val != vb->saturation; vb->saturation = new_val; } else if (!g_ascii_strcasecmp (channel->label, "BRIGHTNESS")) { new_val = (value + 1000.0) * 2.0 / 2000.0 - 1.0; changed = new_val != vb->brightness; vb->brightness = new_val; } else if (!g_ascii_strcasecmp (channel->label, "CONTRAST")) { new_val = (value + 1000.0) * 2.0 / 2000.0; changed = new_val != vb->contrast; vb->contrast = new_val; } <API key> (vb); GST_OBJECT_UNLOCK (vb); <API key> (vb); <API key> (balance, channel, <API key> (balance, channel)); } static gint <API key> (GstColorBalance * balance, <API key> * channel) { GstVideoBalance *vb = GST_VIDEO_BALANCE (balance); gint value = 0; <API key> (vb != NULL, 0); <API key> (<API key> (vb), 0); <API key> (channel->label != NULL, 0); if (!g_ascii_strcasecmp (channel->label, "HUE")) { value = (vb->hue + 1) * 2000.0 / 2.0 - 1000.0; } else if (!g_ascii_strcasecmp (channel->label, "SATURATION")) { value = vb->saturation * 2000.0 / 2.0 - 1000.0; } else if (!g_ascii_strcasecmp (channel->label, "BRIGHTNESS")) { value = (vb->brightness + 1) * 2000.0 / 2.0 - 1000.0; } else if (!g_ascii_strcasecmp (channel->label, "CONTRAST")) { value = vb->contrast * 2000.0 / 2.0 - 1000.0; } return value; } static void <API key> (<API key> * iface) { <API key> (iface) = <API key>; iface->list_channels = <API key>; iface->set_value = <API key>; iface->get_value = <API key>; } static <API key> * <API key> (GstVideoBalance * balance, const gchar * label) { GList *l; for (l = balance->channels; l; l = l->next) { <API key> *channel = l->data; if (g_ascii_strcasecmp (channel->label, label) == 0) return channel; } return NULL; } static void <API key> (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec) { GstVideoBalance *balance = GST_VIDEO_BALANCE (object); gdouble d; const gchar *label = NULL; <API key> (balance); GST_OBJECT_LOCK (balance); switch (prop_id) { case PROP_CONTRAST: d = g_value_get_double (value); GST_DEBUG_OBJECT (balance, "Changing contrast from %lf to %lf", balance->contrast, d); if (d != balance->contrast) label = "CONTRAST"; balance->contrast = d; break; case PROP_BRIGHTNESS: d = g_value_get_double (value); GST_DEBUG_OBJECT (balance, "Changing brightness from %lf to %lf", balance->brightness, d); if (d != balance->brightness) label = "BRIGHTNESS"; balance->brightness = d; break; case PROP_HUE: d = g_value_get_double (value); GST_DEBUG_OBJECT (balance, "Changing hue from %lf to %lf", balance->hue, d); if (d != balance->hue) label = "HUE"; balance->hue = d; break; case PROP_SATURATION: d = g_value_get_double (value); GST_DEBUG_OBJECT (balance, "Changing saturation from %lf to %lf", balance->saturation, d); if (d != balance->saturation) label = "SATURATION"; balance->saturation = d; break; default: <API key> (object, prop_id, pspec); break; } <API key> (balance); GST_OBJECT_UNLOCK (balance); <API key> (balance); if (label) { <API key> *channel = <API key> (balance, label); <API key> (GST_COLOR_BALANCE (balance), channel, <API key> (GST_COLOR_BALANCE (balance), channel)); } } static void <API key> (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) { GstVideoBalance *balance = GST_VIDEO_BALANCE (object); switch (prop_id) { case PROP_CONTRAST: g_value_set_double (value, balance->contrast); break; case PROP_BRIGHTNESS: g_value_set_double (value, balance->brightness); break; case PROP_HUE: g_value_set_double (value, balance->hue); break; case PROP_SATURATION: g_value_set_double (value, balance->saturation); break; default: <API key> (object, prop_id, pspec); break; } }
#include "rendertarget.h" #include <system/engine.h> #include <renderer/renderer.h> #include <renderer/forms.h> using namespace CGE; RenderTarget* RenderTarget::mCurrTarget = NULL; void RenderTarget::drawFullscreen(bool transform){ Renderer* rend = Engine::instance()->getRenderer(); if (transform){ rend->ortho(1, 1); rend->resetModelView(); } rend->enableDepthTest(false); CGE::Forms& forms = *CGE::Engine::instance()->getForms(); forms.activateQuad(); rend->enableTexturing(true); rend->setColor(1, 1, 1, 1); if (transform){ if (rend->getRenderType() != DirectX){ rend->switchMatrixStack(CGE::MatTexture); rend->resetModelView(); rend->scale(1, -1, 1); } } for (unsigned i = 0; i < getNumTextures(); ++i){ getTexture(i)->activate(i); } forms.drawQuad(Vec2f(), Vec2f(1, 1)); if (transform){ if (rend->getRenderType() != DirectX){ rend->resetModelView(); rend->switchMatrixStack(CGE::Modelview); } } }
/* Static5 is engaged with type BIGINT and ggd(vec) */ #include "lie.h" #ifdef __STDC__ static entry gcd(entry x,entry y); static entry abs_minimum(vector* v_vec); static boolean equal_elements(vector* v_vec); #endif static bigint* bin_from_int(i) intcel* i; { entry k = i->intval; freemem(i); return entry2bigint(k); } static intcel* int_from_bin(b) bigint* b; { entry k = bigint2entry(b); freemem(b); return mkintcel(k); } static object vid_factor_bin(b) object b; { return (object) Factor((bigint *) b); } /* Transform a vector into a matrix with the same components as the vector, when read by rows */ static object mat_matvec_vec_int(object v,object nrows_object) { index size=v->v.ncomp, nrows, ncols=nrows_object->i.intval; if (ncols<=0) error("Number of columns should be positive.\n"); if (size%ncols!=0) error ("Number of columns should divide size of vector.\n"); { matrix* m=mkmatrix(nrows=size/ncols,ncols); index i,j,k=0; for (i=0; i<nrows; ++i) for (j=0; j<ncols; ++j) m->elm[i][j]=v->v.compon[k++]; /* |k==ncols*i+j| before increment */ return (object) m; } } static entry gcd(x,y) entry x,y; { /* Requirement 0<x <= y */ entry r = x; if (y==0) return 0; while (r) { x = y % r; y = r; r = x; /* x <= y */ } return y; } static entry abs_minimum(vector* v_vec) /* return minimal absoulte value of nonzero array elements, or 0 when all elements are 0. */ { index i; boolean is_zero=true; index n = v_vec->ncomp; entry* v = v_vec->compon; index minimum=0; for (i=0; i<n; ++i) if (v[i]!=0) if (is_zero) { is_zero=false; minimum=labs(v[i]); } else { entry c = labs(v[i]); if (c<minimum) minimum = c; } return minimum; } static boolean equal_elements(v_vec) vector* v_vec; /* Do all nonzero elements have the same absolute value? */ { index i, first = 0; index n = v_vec->ncomp; entry* v = v_vec->compon; /* Omit prefixed 0 */ while (first < n && v[first]==0) first++; if (first == n) return true; /* All zero */ i = first + 1; while (i < n && (v[i]== 0 || labs(v[first]) == labs(v[i]))) i++; if (i == n) return true; return false; } object int_gcd_vec(v_vec) vector *v_vec; { entry r = abs_minimum(v_vec); entry *v; index i; index n = v_vec->ncomp; if (isshared(v_vec)) v_vec = copyvector(v_vec); v = v_vec->compon; while (!equal_elements(v_vec)) { for (i=0;i<n;i++) v[i] = gcd(r, v[i]); r = abs_minimum(v_vec); } return (object) mkintcel(r); } Symbrec static5[] = { C1("$bigint", (fobject)bin_from_int, BIGINT, INTEGER) C1("$intbig", (fobject)int_from_bin, INTEGER, BIGINT) C1("factor", vid_factor_bin, VOID, BIGINT) C2("mat_vec", mat_matvec_vec_int,MATRIX,VECTOR,INTEGER) C1("gcd",int_gcd_vec, INTEGER, VECTOR) }; int nstatic5 = array_size(static5); #ifdef __STDC__ # define P(s) s #else # define P(s) () #endif bigint* (*int2bin) P((intcel*)) = bin_from_int; intcel* (*bin2int) P((bigint*)) = int_from_bin;
#ifndef <API key> #define <API key> #include <vrj/vrjConfig.h> #include <iostream> #include <jccl/RTRC/<API key>.h> #include <vrj/Display/DisplayPtr.h> namespace vrj { class DisplayManager; class App; /** \class DrawManager DrawManager.h vrj/Draw/DrawManager.h * * Abstract base class for API-specific Draw Manager. * * Concrete classes are resonsible for all rendering. * * @date 9-7-97 */ class VJ_CLASS_API DrawManager : public jccl::<API key> { public: DrawManager() : mDisplayManager(NULL) { /* Do nothing. */ ; } virtual ~DrawManager() { /* Do nothing. */ ; } /** * Function to initialy config API-specific stuff. * Takes a jccl::Configuration and extracts API-specific stuff. */ //virtual void configInitial(jccl::Configuration* cfg) = 0; Enable a frame to be drawn virtual void draw() = 0; /** * Blocks until the end of the frame. * @post The frame has been drawn. */ virtual void sync() = 0; /** * Sets the application with which the Draw Manager will interact. * * @note The member variable is not in the base class because its "real" * type is only known in the derived classes. */ virtual void setApp(App* app) = 0; /** * Initializes the drawing API (if not already running). * * @note If the draw manager should be an active object, start the process * here. */ virtual void initAPI() = 0; /** Callback when display is added to Display Manager. */ virtual void addDisplay(DisplayPtr disp) = 0; /** Callback when display is removed to Display Manager. */ virtual void removeDisplay(DisplayPtr disp) = 0; /** * Shuts down the drawing API. * * @note If it was an active object, kill process here. */ virtual void closeAPI() = 0; /** Setter for Display Manager variable. */ void setDisplayManager(DisplayManager* dispMgr); DisplayManager* getDisplayManager(); friend VJ_API(std::ostream&) operator<<(std::ostream& out, DrawManager& drawMgr); virtual void outStream(std::ostream& out) { out << "vrj::DrawManager: outstream\n"; // Set a default } protected: DisplayManager* mDisplayManager; /**< The display manager dealing with */ }; } // End of vrj namespace #endif
--TEST Test node order of EncryptedData children. --DESCRIPTION Makes sure that the child elements of EncryptedData appear in the correct order. --FILE <?php require($_SERVER['DOCUMENT_ROOT'] . '/../xmlseclibs.php'); $dom = new DOMDocument(); $dom->load($_SERVER['DOCUMENT_ROOT'] . '/basic-doc.xml'); $objKey = new XMLSecurityKey(XMLSecurityKey::AES256_CBC); $objKey->generateSessionKey(); $siteKey = new XMLSecurityKey(XMLSecurityKey::RSA_OAEP_MGF1P, array('type'=>'public')); $siteKey->loadKey($_SERVER['DOCUMENT_ROOT'] . '/mycert.pem', TRUE, TRUE); $enc = new XMLSecEnc(); $enc->setNode($dom->documentElement); $enc->encryptKey($siteKey, $objKey); $enc->type = XMLSecEnc::Content; $encNode = $enc->encryptNode($objKey); $nodeOrder = array( 'EncryptionMethod', 'KeyInfo', 'CipherData', '<API key>', ); $prevNode = 0; for ($node = $encNode->firstChild; $node !== NULL; $node = $node->nextSibling) { if (! ($node instanceof DOMElement)) { /* Skip comment and text nodes. */ continue; } $name = $node->localName; $cIndex = array_search($name, $nodeOrder, TRUE); if ($cIndex === FALSE) { die("Unknown node: $name"); } if ($cIndex >= $prevNode) { /* In correct order. */ $prevNode = $cIndex; continue; } $prevName = $nodeOrder[$prevNode]; die("Incorrect order: $name must appear before $prevName"); } echo("OK\n"); ?> --EXPECTF OK
#ifndef _relStrExpr_h #define _relStrExpr_h #include "relString.h" #include "relNumExpr.h" #include <string> #include <sstream> Global variables for interpreter. extern map<string, relDataType*> gVariables; Cmd line arg handling for the interpreter. extern char** gArgv; extern int gArgc; Global function. extern string double2string(double pNum); class relStrExpr : public relObject { public: virtual relString interpret(bddSymTab* pSymTab) = 0; }; class relStrExprVar : public relStrExpr { private: string* mVar; public: relStrExprVar(string* pVar) : mVar(pVar) {} ~relStrExprVar() { delete mVar; } virtual relString interpret(bddSymTab* pSymTab) { // Fetch result. map<string, relDataType*>::const_iterator lVarIt = gVariables.find(*mVar); assert(lVarIt != gVariables.end()); // Must be declared. assert(lVarIt->second != NULL); relString* lResult = dynamic_cast<relString*>(lVarIt->second); assert(lResult != NULL); // Must be a STRING variable. return *lResult; } }; class relStrExprConst : public relStrExpr { private: string* mVal; public: relStrExprConst(string* pVal) : mVal(pVal) {} ~relStrExprConst() { delete mVal; } virtual relString interpret(bddSymTab* pSymTab) { return relString(*mVal); } }; class relStrExprBinOp : public relStrExpr { public: typedef enum {CONCAT} relStrOP; private: relStrExpr* mExpr1; relStrOP mOp; relStrExpr* mExpr2; public: relStrExprBinOp( relStrExpr* pExpr1, relStrOP pOp, relStrExpr* pExpr2) : mExpr1(pExpr1), mOp(pOp), mExpr2(pExpr2) {} ~relStrExprBinOp() { delete mExpr1; delete mExpr2; } virtual relString interpret(bddSymTab* pSymTab) { relString lExpr1 = mExpr1->interpret(pSymTab); relString lExpr2 = mExpr2->interpret(pSymTab); relString result(""); if (mOp == CONCAT) result.setValue(lExpr1.getValue() + lExpr2.getValue()); else { cerr << "Internal error: Unknown operator in relStrExprBinOp::interpret." << endl; abort(); } return result; } }; class relStrExprElem : public relStrExpr { private: relExpression* mExpr; public: relStrExprElem(relExpression* pExpr) : mExpr(pExpr) {} ~relStrExprElem(); virtual relString interpret(bddSymTab* pSymTab); }; class relStrExprNum : public relStrExpr { private: relNumExpr* mExpr; public: relStrExprNum(relNumExpr* pExpr) : mExpr(pExpr) {} ~relStrExprNum() { delete mExpr; } virtual relString interpret(bddSymTab* pSymTab) { return relString(double2string(mExpr->interpret(pSymTab).getValue())); } }; class relStrCmdArg : public relStrExpr { private: relNumExpr* mExpr; public: relStrCmdArg(relNumExpr* pExpr) : mExpr(pExpr) {} ~relStrCmdArg() { delete mExpr; } virtual relString interpret(bddSymTab* pSymTab) { int lPos = (int) mExpr->interpret(pSymTab).getValue(); if (lPos >= 0 && lPos < gArgc) { return relString(string(gArgv[lPos])); } else { cerr << "Error: Missing command line argument '$" << lPos << "'." << endl; exit(EXIT_FAILURE); } } }; #endif
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <title>tinymce.util.Dispatcher tests</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-git.css" type="text/css" /> <script src="http://code.jquery.com/qunit/qunit-git.js"></script> <script src="qunit/connector.js"></script> <script type="text/javascript" src="qunit/runner.js"></script> <script type="text/javascript" src="js/utils.js"></script> <script type="text/javascript" src="js/tiny_mce_loader.js"></script> <script> module("tinymce.util.Dispatcher"); (function() { var Dispatcher = tinymce.util.Dispatcher; test('dispatcher', 5, function() { var ev, v, f; ev = new Dispatcher(); ev.add(function(a, b, c) { v = a + b + c; }); ev.dispatch(1, 2, 3); equal(v, 6); ev = new Dispatcher(); v = 0; f = ev.add(function(a, b, c) { v = a + b + c; }); ev.remove(f); ev.dispatch(1, 2, 3); equal(v, 0); ev = new Dispatcher({test : 1}); v = 0; f = ev.add(function(a, b, c) { v = a + b + c + this.test; }); ev.dispatch(1, 2, 3); equal(v, 7); ev = new Dispatcher(); v = 0; f = ev.add(function(a, b, c) { v = a + b + c + this.test; }, {test : 1}); ev.dispatch(1, 2, 3); equal(v, 7); ev = new Dispatcher(); v = ''; f = ev.add(function(a, b, c) { v += 'b'; }, {test : 1}); f = ev.addToTop(function(a, b, c) { v += 'a'; }, {test : 1}); ev.dispatch(); equal(v, 'ab'); }); })(); </script> </head> <body> <h1 id="qunit-header">tinymce.util.Dispatcher tests</h1> <h2 id="qunit-banner"></h2> <div id="<API key>"></div> <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests"></ol> <div id="content"></div> </body> </html>
// This program is free software; you can redistribute it and/or modify // published by the Free Software Foundation. // This program is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // along with this program;if not, write to the // Free Software Foundation, Inc., // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include "birdseed-dev/IntensitiesParser.h" #include "broadutil/BroadException.h" #include "broadutil/BroadUtil.h" #include "broadutil/FileUtil.h" #include <cerrno> #include <cstdio> using namespace std; using namespace birdseed::dev; IntensitiesParser::~IntensitiesParser() { if (fp != NULL) { fclose(fp); } } IntensitiesParser::IntensitiesParser(const std::string& path, bool <API key>): dataPath(path), fp(fopen(path.c_str(), "r")), correctionFactor(0.0), header(), snpName(), intensities() { if (fp == NULL) { throw BroadException("Could not open file", __FILE__, __LINE__, path.c_str(), errno); } header = readHeader(fp, "probeset_id\t"); if (<API key>) { long dataStartOffset = ftell(fp); if (dataStartOffset == -1) { throw BroadException("ftell error", __FILE__, __LINE__, path.c_str(), errno); } double total = 0.0; size_t numIntensities = 0; while (true) { // Skip over SNP name snpName = readWord(fp); if (snpName.empty()) { break; } double val; while (readDouble(fp, &val)) { total += val; ++numIntensities; } } correctionFactor = total/numIntensities; if (fseek(fp, dataStartOffset, SEEK_SET) == -1) { throw BroadException("fseek error", __FILE__, __LINE__, path.c_str(), errno); } } } bool IntensitiesParser::advanceSNP() { // Skip over first SNP name string snpNameA = readWord(fp); if (snpNameA.empty()) { snpName = ""; intensities.reset(NULL); return false; } if (!endswith(snpNameA.c_str(), "-A")) { std::stringstream strm; strm << "Did not find -A suffix for SNP name: " << snpNameA << "."; throw BroadException(strm.str().c_str(), __FILE__, __LINE__, dataPath.c_str()); } snpName = snpNameA.substr(0, snpNameA.size() - 2); vector<double> aValues; double val; while (readDouble(fp, &val)) { aValues.push_back(val); } // Skip over next SNP name string snpNameB = readWord(fp); if (!endswith(snpNameB.c_str(), "-B")) { std::stringstream strm; strm << "Did not find -B suffix for SNP name: " << snpNameB << "."; throw BroadException(strm.str().c_str(), __FILE__, __LINE__, dataPath.c_str()); } if (snpName != snpNameB.substr(0, snpNameB.size() - 2)) { std::stringstream strm; strm << "B intensities do not have same SNP name as A. SNP-A: " << snpNameA << "; SNP-B: " << snpNameB << " ."; throw BroadException(strm.str().c_str(), __FILE__, __LINE__, dataPath.c_str()); } intensities.reset(new IntensityMatrix(aValues.size())); // Syntactic sugar IntensityMatrix &intensitiesRef = *(intensities.get()); for (size_t i = 0; i < aValues.size(); ++i) { intensitiesRef[i][0] = aValues[i]; if (!readDouble(fp, &val)) { throw BroadException("Number of B values is less than number of A values", __FILE__, __LINE__, dataPath.c_str()); } intensitiesRef[i][1] = val; } return true; } /* Emacs configuration * Local Variables: * mode: C++ * tab-width:4 * End: */
class TmsFakeIn < ActiveRecord::Base set_table_name "tms_fake_in" end # == Schema Information # Table name: tms_fake_in # id :integer(10) not null, primary key # message :text not null # created_at :datetime # priority :integer(10) default(0), not null
/* $Id: model_in.h,v 1.27 2004/10/25 11:37:40 aspert Exp $ */ #ifndef _MODEL_IN_PROTO #define _MODEL_IN_PROTO #include <3dmodel.h> /* * 'zlib' is not part of the Window$ platforms. Comment out this to use zlib * under Windows (It *does* work ! I saw it on my PC !). */ #ifdef WIN32 # define DONT_USE_ZLIB #endif #ifndef DONT_USE_ZLIB # include <zlib.h> #endif #ifdef __cplusplus # define BEGIN_DECL extern "C" { # define END_DECL } #else # define BEGIN_DECL # define END_DECL #endif BEGIN_DECL #undef BEGIN_DECL struct file_data { #ifdef DONT_USE_ZLIB FILE *f; #else gzFile f; #endif unsigned char *block; /* data block */ int size; /* size of the block */ int nbytes; /* actual number of valid bytes in block */ int pos; /* current position in block */ int is_binary; /* flag for binary data */ int eof_reached; }; #define MESH_FF_AUTO 0 /* Autodetect file format */ #define MESH_FF_RAW 1 /* Raw (ascii and binary) */ #define MESH_FF_VRML 2 /* VRML 2 utf8 (a.k.a. VRML97) */ #define MESH_FF_IV 3 /* Inventor 2 ascii */ #define MESH_FF_PLY 4 /* Ply ascii */ #define MESH_FF_SMF 5 /* SMF format (from QSlim) */ #define MESH_FF_OFF 6 /* OFF format (from geomview) */ #define MESH_NO_MEM -1 /* not enough memory */ #define MESH_CORRUPTED -2 /* corrupted file or I/O error */ #define MESH_MODEL_ERR -3 /* error in model */ #define MESH_NOT_TRIAG -4 /* not a triangular mesh */ #define MESH_BAD_FF -5 /* not a recognized file format */ #define MESH_BAD_FNAME -6 /* Could not open file name */ /* Maximum allowed word length */ #define MAX_WORD_LEN 60 /* Default initial number of elements for an array */ #define SZ_INIT_DEF 16384 /* Maximum number of elements by which an array is grown */ #define SZ_MAX_INCR 16384 /* Characters that are considered whitespace in VRML */ #define VRML_WS_CHARS " \t,\n\r" /* Characters that start a comment in VRML */ #define VRML_COMM_ST_CHARS " /* Characters that start a quoted string in VRML */ #define VRML_STR_ST_CHARS "\"" /* Characters that are whitespace, or that start a comment in VRML */ #define VRML_WSCOMM_CHARS VRML_WS_CHARS VRML_COMM_ST_CHARS /* Characters that are whitespace, or that start a comment or string in VRML */ #define <API key> VRML_WS_CHARS VRML_COMM_ST_CHARS VRML_STR_ST_CHARS /* * common part - make the [un]getc function point to the custom * versions that read from a buffer */ # undef getc # define getc buf_getc # undef ungetc # define ungetc buf_ungetc /* These two macros aliased to 'getc' and 'ungetc' in * 'model_in.h'. They behave (or at least should behave) identically * to glibc's 'getc' and 'ungetc', except that they read from a buffer * in memory instead of reading from a file. 'buf_getc' is able to * refill the buffer if there is no data left to be read in the block */ #ifndef buf_getc #define buf_getc(stream) \ (((stream)->nbytes > 0 && (stream)->pos < (stream)->nbytes)? \ ((int)(stream)->block[((stream)->pos)++]):buf_getc_func(stream)) #endif #ifndef buf_ungetc #define buf_ungetc(c, stream) \ (((c) != EOF && (stream)->pos > 0) ? \ ((stream)->block[--((stream)->pos)]):EOF) #endif /* * Adapt all calls to the situation. If we use zlib, use the gz* functions. * If not, use the f* ones. */ #ifdef DONT_USE_ZLIB # undef loc_fopen # define loc_fopen fopen # undef loc_fclose # define loc_fclose fclose # undef loc_fread # define loc_fread fread # undef loc_feof # define loc_feof feof # undef loc_getc # define loc_getc fgetc # undef loc_ferror # define loc_ferror ferror #else # undef loc_fopen # define loc_fopen gzopen # undef loc_fclose # define loc_fclose gzclose # undef loc_fread /* why the $%^ are they using different args ??? */ # define loc_fread(ptr, size, nemb, stream) gzread(stream, ptr, (nemb)*(size)) # undef loc_feof # define loc_feof gzeof # undef loc_getc # define loc_getc gzgetc # undef loc_ferror #define loc_ferror gz_ferror #endif /* Low-level functions used by model readers - see model_in.c for * details. Although they are exported, they should only be used in * the model_in*.c files */ int buf_getc_func(struct file_data*); int int_scanf(struct file_data*, int*); int float_scanf(struct file_data*, float*); int string_scanf(struct file_data*, char*); int buf_fscanf_1arg(struct file_data*, const char*, void*); void* grow_array(void*, size_t, int*, int); int skip_ws_comm(struct file_data*); int skip_ws_comm_str(struct file_data*); int find_chars(struct file_data*, const char*); int find_string(struct file_data*, const char*); size_t bin_read(void *, size_t, size_t, struct file_data*); /* File format reader functions - should be accessed only through * read_[f]model. See the model_in*.c files for more details about * their behaviour (esp. wrt. error handling and/or [un]implemented * features of each file format) */ int read_raw_tmesh(struct model**, struct file_data*); int read_smf_tmesh(struct model**, struct file_data*); int read_ply_tmesh(struct model**, struct file_data*); int read_vrml_tmesh(struct model**, struct file_data*, int); int read_iv_tmesh(struct model**, struct file_data*); int read_off_tmesh(struct model**, struct file_data*); /* Reads the 3D triangular mesh models from the input '*data' stream, in the * file format specified by 'fformat'. The model meshes are returned in the * new '*models_ref' array (allocate via malloc). If succesful it returns the * number of meshes read or the negative error code (MESH_CORRUPTED, * MESH_NOT_TRIAG, etc.). If an error occurs '*models_ref' is not modified. If * 'fformat' is MESH_FF_AUTO the file format is autodetected. If 'concat' is * non-zero only one mesh is returned, which is the concatenation of the the * ones read. */ int read_model(struct model **models_ref, struct file_data *data, int fformat, int concat); /* Reads the 3D triangular mesh models from the input file '*fname' file, in * the file format specified by 'fformat'. The model meshes are returned in * the new '*models_ref' array (allocated via malloc). It returns the number * of meshes read, if succesful, or the negative error code (MESH_CORRUPTED, * MESH_NOT_TRIAG, etc.) otherwise. If an error occurs opening the file * MESH_BAD_FNAME is returned (the detailed error is given in errno). If an * error occurs '*models_ref' is not modified. If 'fformat' is MESH_FF_AUTO * the file format is autodetected. If 'concat' is non-zero only one mesh is * returned, which is the concatenation of the the ones read. */ int read_fmodel(struct model **models_ref, const char *fname, int fformat, int concat); END_DECL #undef END_DECL #endif /* _MODEL_IN_PROTO */
// of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // all copies or substantial portions of the Software. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // W A R N I N G // This file is automatically generated. // Changes will be lost. #include "AST.h" #include "ASTMatcher.h" using namespace CPlusPlus; bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool ObjCSelectorAST::match0(AST *pattern, ASTMatcher *matcher) { if (ObjCSelectorAST *_other = pattern->asObjCSelector()) return matcher->match(this, _other); return false; } bool SimpleSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) { if (SimpleSpecifierAST *_other = pattern->asSimpleSpecifier()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool AttributeAST::match0(AST *pattern, ASTMatcher *matcher) { if (AttributeAST *_other = pattern->asAttribute()) return matcher->match(this, _other); return false; } bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) { if (TypeofSpecifierAST *_other = pattern->asTypeofSpecifier()) return matcher->match(this, _other); return false; } bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher) { if (DeclaratorAST *_other = pattern->asDeclarator()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asSimpleDeclaration()) return matcher->match(this, _other); return false; } bool EmptyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) { if (EmptyDeclarationAST *_other = pattern->asEmptyDeclaration()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asAccessDeclaration()) return matcher->match(this, _other); return false; } bool QtObjectTagAST::match0(AST *pattern, ASTMatcher *matcher) { if (QtObjectTagAST *_other = pattern->asQtObjectTag()) return matcher->match(this, _other); return false; } bool QtPrivateSlotAST::match0(AST *pattern, ASTMatcher *matcher) { if (QtPrivateSlotAST *_other = pattern->asQtPrivateSlot()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asQtEnumDeclaration()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool QtInterfaceNameAST::match0(AST *pattern, ASTMatcher *matcher) { if (QtInterfaceNameAST *_other = pattern->asQtInterfaceName()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool AsmDefinitionAST::match0(AST *pattern, ASTMatcher *matcher) { if (AsmDefinitionAST *_other = pattern->asAsmDefinition()) return matcher->match(this, _other); return false; } bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) { if (BaseSpecifierAST *_other = pattern->asBaseSpecifier()) return matcher->match(this, _other); return false; } bool IdExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (IdExpressionAST *_other = pattern->asIdExpression()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool CompoundLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (CompoundLiteralAST *_other = pattern->asCompoundLiteral()) return matcher->match(this, _other); return false; } bool QtMethodAST::match0(AST *pattern, ASTMatcher *matcher) { if (QtMethodAST *_other = pattern->asQtMethod()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool BinaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (BinaryExpressionAST *_other = pattern->asBinaryExpression()) return matcher->match(this, _other); return false; } bool CastExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (CastExpressionAST *_other = pattern->asCastExpression()) return matcher->match(this, _other); return false; } bool ClassSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) { if (ClassSpecifierAST *_other = pattern->asClassSpecifier()) return matcher->match(this, _other); return false; } bool CaseStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (CaseStatementAST *_other = pattern->asCaseStatement()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asCompoundStatement()) return matcher->match(this, _other); return false; } bool ConditionAST::match0(AST *pattern, ASTMatcher *matcher) { if (ConditionAST *_other = pattern->asCondition()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asCppCastExpression()) return matcher->match(this, _other); return false; } bool CtorInitializerAST::match0(AST *pattern, ASTMatcher *matcher) { if (CtorInitializerAST *_other = pattern->asCtorInitializer()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool DeclaratorIdAST::match0(AST *pattern, ASTMatcher *matcher) { if (DeclaratorIdAST *_other = pattern->asDeclaratorId()) return matcher->match(this, _other); return false; } bool NestedDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher) { if (NestedDeclaratorAST *_other = pattern->asNestedDeclarator()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool ArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher) { if (ArrayDeclaratorAST *_other = pattern->asArrayDeclarator()) return matcher->match(this, _other); return false; } bool DeleteExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (DeleteExpressionAST *_other = pattern->asDeleteExpression()) return matcher->match(this, _other); return false; } bool DoStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (DoStatementAST *_other = pattern->asDoStatement()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool EnumSpecifierAST::match0(AST *pattern, ASTMatcher *matcher) { if (EnumSpecifierAST *_other = pattern->asEnumSpecifier()) return matcher->match(this, _other); return false; } bool EnumeratorAST::match0(AST *pattern, ASTMatcher *matcher) { if (EnumeratorAST *_other = pattern->asEnumerator()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool ForeachStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (ForeachStatementAST *_other = pattern->asForeachStatement()) return matcher->match(this, _other); return false; } bool ForStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (ForStatementAST *_other = pattern->asForStatement()) return matcher->match(this, _other); return false; } bool IfStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (IfStatementAST *_other = pattern->asIfStatement()) return matcher->match(this, _other); return false; } bool ArrayInitializerAST::match0(AST *pattern, ASTMatcher *matcher) { if (ArrayInitializerAST *_other = pattern->asArrayInitializer()) return matcher->match(this, _other); return false; } bool LabeledStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (LabeledStatementAST *_other = pattern->asLabeledStatement()) return matcher->match(this, _other); return false; } bool LinkageBodyAST::match0(AST *pattern, ASTMatcher *matcher) { if (LinkageBodyAST *_other = pattern->asLinkageBody()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool MemInitializerAST::match0(AST *pattern, ASTMatcher *matcher) { if (MemInitializerAST *_other = pattern->asMemInitializer()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool QualifiedNameAST::match0(AST *pattern, ASTMatcher *matcher) { if (QualifiedNameAST *_other = pattern->asQualifiedName()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool SimpleNameAST::match0(AST *pattern, ASTMatcher *matcher) { if (SimpleNameAST *_other = pattern->asSimpleName()) return matcher->match(this, _other); return false; } bool DestructorNameAST::match0(AST *pattern, ASTMatcher *matcher) { if (DestructorNameAST *_other = pattern->asDestructorName()) return matcher->match(this, _other); return false; } bool TemplateIdAST::match0(AST *pattern, ASTMatcher *matcher) { if (TemplateIdAST *_other = pattern->asTemplateId()) return matcher->match(this, _other); return false; } bool NamespaceAST::match0(AST *pattern, ASTMatcher *matcher) { if (NamespaceAST *_other = pattern->asNamespace()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool NewPlacementAST::match0(AST *pattern, ASTMatcher *matcher) { if (NewPlacementAST *_other = pattern->asNewPlacement()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool NewExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (NewExpressionAST *_other = pattern->asNewExpression()) return matcher->match(this, _other); return false; } bool NewInitializerAST::match0(AST *pattern, ASTMatcher *matcher) { if (NewInitializerAST *_other = pattern->asNewInitializer()) return matcher->match(this, _other); return false; } bool NewTypeIdAST::match0(AST *pattern, ASTMatcher *matcher) { if (NewTypeIdAST *_other = pattern->asNewTypeId()) return matcher->match(this, _other); return false; } bool OperatorAST::match0(AST *pattern, ASTMatcher *matcher) { if (OperatorAST *_other = pattern->asOperator()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool CallAST::match0(AST *pattern, ASTMatcher *matcher) { if (CallAST *_other = pattern->asCall()) return matcher->match(this, _other); return false; } bool ArrayAccessAST::match0(AST *pattern, ASTMatcher *matcher) { if (ArrayAccessAST *_other = pattern->asArrayAccess()) return matcher->match(this, _other); return false; } bool PostIncrDecrAST::match0(AST *pattern, ASTMatcher *matcher) { if (PostIncrDecrAST *_other = pattern->asPostIncrDecr()) return matcher->match(this, _other); return false; } bool MemberAccessAST::match0(AST *pattern, ASTMatcher *matcher) { if (MemberAccessAST *_other = pattern->asMemberAccess()) return matcher->match(this, _other); return false; } bool TypeidExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (TypeidExpressionAST *_other = pattern->asTypeidExpression()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool PointerToMemberAST::match0(AST *pattern, ASTMatcher *matcher) { if (PointerToMemberAST *_other = pattern->asPointerToMember()) return matcher->match(this, _other); return false; } bool PointerAST::match0(AST *pattern, ASTMatcher *matcher) { if (PointerAST *_other = pattern->asPointer()) return matcher->match(this, _other); return false; } bool ReferenceAST::match0(AST *pattern, ASTMatcher *matcher) { if (ReferenceAST *_other = pattern->asReference()) return matcher->match(this, _other); return false; } bool BreakStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (BreakStatementAST *_other = pattern->asBreakStatement()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asContinueStatement()) return matcher->match(this, _other); return false; } bool GotoStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (GotoStatementAST *_other = pattern->asGotoStatement()) return matcher->match(this, _other); return false; } bool ReturnStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (ReturnStatementAST *_other = pattern->asReturnStatement()) return matcher->match(this, _other); return false; } bool SizeofExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (SizeofExpressionAST *_other = pattern->asSizeofExpression()) return matcher->match(this, _other); return false; } bool PointerLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (PointerLiteralAST *_other = pattern->asPointerLiteral()) return matcher->match(this, _other); return false; } bool NumericLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (NumericLiteralAST *_other = pattern->asNumericLiteral()) return matcher->match(this, _other); return false; } bool BoolLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (BoolLiteralAST *_other = pattern->asBoolLiteral()) return matcher->match(this, _other); return false; } bool ThisExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (ThisExpressionAST *_other = pattern->asThisExpression()) return matcher->match(this, _other); return false; } bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (NestedExpressionAST *_other = pattern->asNestedExpression()) return matcher->match(this, _other); return false; } bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (StringLiteralAST *_other = pattern->asStringLiteral()) return matcher->match(this, _other); return false; } bool SwitchStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (SwitchStatementAST *_other = pattern->asSwitchStatement()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool ThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (ThrowExpressionAST *_other = pattern->asThrowExpression()) return matcher->match(this, _other); return false; } bool TranslationUnitAST::match0(AST *pattern, ASTMatcher *matcher) { if (TranslationUnitAST *_other = pattern->asTranslationUnit()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asTryBlockStatement()) return matcher->match(this, _other); return false; } bool CatchClauseAST::match0(AST *pattern, ASTMatcher *matcher) { if (CatchClauseAST *_other = pattern->asCatchClause()) return matcher->match(this, _other); return false; } bool TypeIdAST::match0(AST *pattern, ASTMatcher *matcher) { if (TypeIdAST *_other = pattern->asTypeId()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool UnaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (UnaryExpressionAST *_other = pattern->asUnaryExpression()) return matcher->match(this, _other); return false; } bool UsingAST::match0(AST *pattern, ASTMatcher *matcher) { if (UsingAST *_other = pattern->asUsing()) return matcher->match(this, _other); return false; } bool UsingDirectiveAST::match0(AST *pattern, ASTMatcher *matcher) { if (UsingDirectiveAST *_other = pattern->asUsingDirective()) return matcher->match(this, _other); return false; } bool WhileStatementAST::match0(AST *pattern, ASTMatcher *matcher) { if (WhileStatementAST *_other = pattern->asWhileStatement()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool ObjCProtocolRefsAST::match0(AST *pattern, ASTMatcher *matcher) { if (ObjCProtocolRefsAST *_other = pattern->asObjCProtocolRefs()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool ObjCTypeNameAST::match0(AST *pattern, ASTMatcher *matcher) { if (ObjCTypeNameAST *_other = pattern->asObjCTypeName()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool LambdaExpressionAST::match0(AST *pattern, ASTMatcher *matcher) { if (LambdaExpressionAST *_other = pattern->asLambdaExpression()) return matcher->match(this, _other); return false; } bool LambdaIntroducerAST::match0(AST *pattern, ASTMatcher *matcher) { if (LambdaIntroducerAST *_other = pattern->asLambdaIntroducer()) return matcher->match(this, _other); return false; } bool LambdaCaptureAST::match0(AST *pattern, ASTMatcher *matcher) { if (LambdaCaptureAST *_other = pattern->asLambdaCapture()) return matcher->match(this, _other); return false; } bool CaptureAST::match0(AST *pattern, ASTMatcher *matcher) { if (CaptureAST *_other = pattern->asCapture()) return matcher->match(this, _other); return false; } bool LambdaDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher) { if (LambdaDeclaratorAST *_other = pattern->asLambdaDeclarator()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern-><API key>()) return matcher->match(this, _other); return false; } bool <API key>::match0(AST *pattern, ASTMatcher *matcher) { if (<API key> *_other = pattern->asBracedInitializer()) return matcher->match(this, _other); return false; }
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http: <head> <title>Qt 4.6: textprogressbar.cpp Example File (network/downloadmanager/textprogressbar.cpp)</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">textprogressbar.cpp Example File<br /><span class="small-subtitle">network/downloadmanager/textprogressbar.cpp</span> </h1> #include &quot;textprogressbar.h&quot; #include &lt;QByteArray&gt; #include &lt;stdio.h&gt; TextProgressBar::TextProgressBar() : value(0), maximum(-1), iteration(0) { } void TextProgressBar::clear() { printf(&quot;\n&quot;); fflush(stdout); iteration = 0; value = 0; maximum = -1; } void TextProgressBar::update() { ++iteration; if (maximum &gt; 0) { <span class="comment">// we know the maximum</span> <span class="comment">// draw a progress bar</span> int percent = value * 100 / maximum; int hashes = percent / 2; QByteArray progressbar(hashes, ' if (percent % 2) progressbar += '&gt;'; printf(&quot;\r[%-50s] %3d%% %s &quot;, progressbar.constData(), percent, qPrintable(message)); } else { <span class="comment">// we don't know the maximum, so we can't draw a progress bar</span> int center = (iteration % 48) + 1; <span class="comment">// 50 spaces, minus 2</span> QByteArray before(qMax(center - 2, 0), ' '); QByteArray after(qMin(center + 2, 50), ' '); printf(&quot;\r[%s###%s] %s &quot;, before.constData(), after.constData(), qPrintable(message)); } } void TextProgressBar::setMessage(const QString &amp;m) { message = m; } void TextProgressBar::setStatus(qint64 val, qint64 max) { value = val; maximum = max; }</pre> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.2</div></td> </tr></table></div></address></body> </html>
// YTS.c // Well, this is the Yaml Testing Suite in the form of a plain C // API. Basically, this is as good as C integration gets for Syck. // You've got to have a symbol table around. From there, you can // query your data. #include "system.h" #include "syck.h" #include "CuTest.h" #include "debug.h" /* YAML test node structures */ #define T_STR 10 #define T_SEQ 20 #define T_MAP 30 #define T_END 40 #define ILEN 2 struct test_node { int type; char *tag; char *key; struct test_node *value; }; struct test_node end_node = { T_END }; /* * Assertion which compares a YAML document with an * equivalent set of test_node structs. */ SYMID syck_copy_handler(p, n) SyckParser *p; SyckNode *n; { int i = 0; struct test_node *tn = S_ALLOC_N( struct test_node, 1 ); switch ( n->kind ) { case syck_str_kind: tn->type = T_STR; tn->key = syck_strndup( n->data.str->ptr, n->data.str->len ); tn->value = 0; break; case syck_seq_kind: { struct test_node *val; struct test_node *seq = S_ALLOC_N( struct test_node, n->data.list->idx + 1 ); tn->type = T_SEQ; tn->key = 0; for ( i = 0; i < n->data.list->idx; i++ ) { SYMID oid = syck_seq_read( n, i ); syck_lookup_sym( p, oid, (char **)&val ); seq[i] = val[0]; } seq[n->data.list->idx] = end_node; tn->value = seq; } break; case syck_map_kind: { struct test_node *val; struct test_node *map = S_ALLOC_N( struct test_node, ( n->data.pairs->idx * 2 ) + 1 ); tn->type = T_MAP; tn->key = 0; for ( i = 0; i < n->data.pairs->idx; i++ ) { SYMID oid = syck_map_read( n, map_key, i ); syck_lookup_sym( p, oid, (char **)&val ); map[i * 2] = val[0]; oid = syck_map_read( n, map_value, i ); syck_lookup_sym( p, oid, (char **)&val ); map[(i * 2) + 1] = val[0]; } map[n->data.pairs->idx * 2] = end_node; tn->value = map; } break; } tn->tag = 0; if ( n->type_id != NULL ) { tn->tag = syck_strndup( n->type_id, strlen( n->type_id ) ); } return syck_add_sym( p, (char *) tn ); } int syck_free_copies( char *key, struct test_node *tn, char *arg ) { if ( tn != NULL ) { switch ( tn->type ) { case T_STR: S_FREE( tn->key ); break; case T_SEQ: case T_MAP: S_FREE( tn->value ); break; } if ( tn->tag != NULL ) S_FREE( tn->tag ); S_FREE( tn ); } tn = NULL; return ST_CONTINUE; } void CuStreamCompareX( CuTest* tc, struct test_node *s1, struct test_node *s2 ) { int i = 0; while ( 1 ) { CuAssertIntEquals( tc, s1[i].type, s2[i].type ); if ( s1[i].type == T_END ) return; if ( s1[i].tag != 0 && s2[i].tag != 0 ) CuAssertStrEquals( tc, s1[i].tag, s2[i].tag ); switch ( s1[i].type ) { case T_STR: CuAssertStrEquals( tc, s1[i].key, s2[i].key ); break; case T_SEQ: case T_MAP: CuStreamCompareX( tc, s1[i].value, s2[i].value ); break; } i++; } } void CuStreamCompare( CuTest* tc, char *yaml, struct test_node *stream ) { int doc_ct = 0; struct test_node *ystream = S_ALLOC_N( struct test_node, doc_ct + 1 ); /* Set up parser */ SyckParser *parser = syck_new_parser(); <API key>( parser, yaml, NULL ); syck_parser_handler( parser, syck_copy_handler ); <API key>( parser, NULL ); <API key>( parser, 1 ); <API key>( parser, 1 ); /* Parse all streams */ while ( 1 ) { struct test_node *ydoc; SYMID oid = syck_parse( parser ); if ( parser->eof == 1 ) break; /* Add document to stream */ syck_lookup_sym( parser, oid, (char **)&ydoc ); ystream[doc_ct] = ydoc[0]; doc_ct++; S_REALLOC_N( ystream, struct test_node, doc_ct + 1 ); } ystream[doc_ct] = end_node; /* Traverse the struct and the symbol table side-by-side */ /* DEBUG: y( stream, 0 ); y( ystream, 0 ); */ CuStreamCompareX( tc, stream, ystream ); /* Free the node tables and the parser */ S_FREE( ystream ); if ( parser->syms != NULL ) st_foreach( parser->syms, (void *)syck_free_copies, 0 ); syck_free_parser( parser ); } /* * Setup for testing N->Y->N. */ void test_output_handler( emitter, str, len ) SyckEmitter *emitter; char *str; long len; { CuString *dest = (CuString *)emitter->bonus; CuStringAppendLen( dest, str, len ); } SYMID build_symbol_table( SyckEmitter *emitter, struct test_node *node ) { switch ( node->type ) { case T_SEQ: case T_MAP: { int i = 0; while ( node->value[i].type != T_END ) { build_symbol_table( emitter, &node->value[i] ); i++; } } return <API key>( emitter, (st_data_t)node ); default: break; } return 0; } void <API key>( SyckEmitter *emitter, st_data_t data ) { struct test_node *node = (struct test_node *)data; switch ( node->type ) { case T_STR: syck_emit_scalar( emitter, node->tag, scalar_none, 0, 0, 0, node->key, strlen( node->key ) ); break; case T_SEQ: { int i = 0; syck_emit_seq( emitter, node->tag, seq_none ); while ( node->value[i].type != T_END ) { syck_emit_item( emitter, (st_data_t)&node->value[i] ); i++; } syck_emit_end( emitter ); } break; case T_MAP: { int i = 0; syck_emit_map( emitter, node->tag, map_none ); while ( node->value[i].type != T_END ) { syck_emit_item( emitter, (st_data_t)&node->value[i] ); i++; } syck_emit_end( emitter ); } break; } } void CuRoundTrip( CuTest* tc, struct test_node *stream ) { int i = 0; CuString *cs = CuStringNew(); SyckEmitter *emitter = syck_new_emitter(); /* Calculate anchors and tags */ build_symbol_table( emitter, stream ); /* Build the stream */ syck_output_handler( emitter, test_output_handler ); <API key>( emitter, <API key> ); emitter->bonus = cs; while ( stream[i].type != T_END ) { syck_emit( emitter, (st_data_t)&stream[i] ); syck_emitter_flush( emitter, 0 ); i++; } /* Reload the stream and compare */ CuStreamCompare( tc, cs->buffer, stream ); CuStringFree( cs ); syck_free_emitter( emitter ); } /* * ACTUAL TESTS FOR THE YAML TESTING SUITE BEGIN HERE * (EVERYTHING PREVIOUS WAS SET UP FOR THE TESTS) */ /* * Example : Trailing tab in plains */ void YtsFoldedScalars_7( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "a" }, { T_STR, 0, "b" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "a: b\t \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Empty Sequence */ void <API key>( CuTest *tc ) { struct test_node seq[] = { end_node }; struct test_node map[] = { { T_STR, 0, "empty" }, { T_SEQ, 0, 0, seq }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "empty: [] \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Empty Mapping */ void <API key>( CuTest *tc ) { struct test_node map2[] = { end_node }; struct test_node map1[] = { { T_STR, 0, "empty" }, { T_MAP, 0, 0, map2 }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map1 }, end_node }; CuStreamCompare( tc, /* YAML document */ "empty: {} \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Empty Sequence as Entire Document */ void <API key>( CuTest *tc ) { struct test_node seq[] = { end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ " , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Empty Mapping as Entire Document */ void <API key>( CuTest *tc ) { struct test_node map[] = { end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ " , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Null as Document */ void <API key>( CuTest *tc ) { struct test_node stream[] = { { T_STR, 0, "~" }, end_node }; CuStreamCompare( tc, /* YAML document */ " , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Empty String */ void <API key>( CuTest *tc ) { struct test_node stream[] = { { T_STR, 0, "" }, end_node }; CuStreamCompare( tc, /* YAML document */ " , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.1: Sequence of scalars */ void <API key>( CuTest *tc ) { struct test_node seq[] = { { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "Ken Griffey" }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "- Mark McGwire \n" "- Sammy Sosa \n" "- Ken Griffey \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.2: Mapping of scalars to scalars */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "hr" }, { T_STR, 0, "65" }, { T_STR, 0, "avg" }, { T_STR, 0, "0.278" }, { T_STR, 0, "rbi" }, { T_STR, 0, "147" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "hr: 65 \n" "avg: 0.278 \n" "rbi: 147 \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.3: Mapping of scalars to sequences */ void <API key>( CuTest *tc ) { struct test_node seq1[] = { { T_STR, 0, "Boston Red Sox" }, { T_STR, 0, "Detroit Tigers" }, { T_STR, 0, "New York Yankees" }, end_node }; struct test_node seq2[] = { { T_STR, 0, "New York Mets" }, { T_STR, 0, "Chicago Cubs" }, { T_STR, 0, "Atlanta Braves" }, end_node }; struct test_node map[] = { { T_STR, 0, "american" }, { T_SEQ, 0, 0, seq1 }, { T_STR, 0, "national" }, { T_SEQ, 0, 0, seq2 }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "american: \n" " - Boston Red Sox \n" " - Detroit Tigers \n" " - New York Yankees \n" "national: \n" " - New York Mets \n" " - Chicago Cubs \n" " - Atlanta Braves \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.4: Sequence of mappings */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "name" }, { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "hr" }, { T_STR, 0, "65" }, { T_STR, 0, "avg" }, { T_STR, 0, "0.278" }, end_node }; struct test_node map2[] = { { T_STR, 0, "name" }, { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "hr" }, { T_STR, 0, "63" }, { T_STR, 0, "avg" }, { T_STR, 0, "0.288" }, end_node }; struct test_node seq[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "- \n" " name: Mark McGwire \n" " hr: 65 \n" " avg: 0.278 \n" "- \n" " name: Sammy Sosa \n" " hr: 63 \n" " avg: 0.288 \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example legacy_A5: Legacy A5 */ void <API key>( CuTest *tc ) { struct test_node seq1[] = { { T_STR, 0, "New York Yankees" }, { T_STR, 0, "Atlanta Braves" }, end_node }; struct test_node seq2[] = { { T_STR, 0, "2001-07-02" }, { T_STR, 0, "2001-08-12" }, { T_STR, 0, "2001-08-14" }, end_node }; struct test_node seq3[] = { { T_STR, 0, "Detroit Tigers" }, { T_STR, 0, "Chicago Cubs" }, end_node }; struct test_node seq4[] = { { T_STR, 0, "2001-07-23" }, end_node }; struct test_node map[] = { { T_SEQ, 0, 0, seq1 }, { T_SEQ, 0, 0, seq2 }, { T_SEQ, 0, 0, seq3 }, { T_SEQ, 0, 0, seq4 }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "? \n" " - New York Yankees \n" " - Atlanta Braves \n" ": \n" " - 2001-07-02 \n" " - 2001-08-12 \n" " - 2001-08-14 \n" "? \n" " - Detroit Tigers \n" " - Chicago Cubs \n" ": \n" " - 2001-07-23 \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.5: Sequence of sequences */ void <API key>( CuTest *tc ) { struct test_node seq1[] = { { T_STR, 0, "name" }, { T_STR, 0, "hr" }, { T_STR, 0, "avg" }, end_node }; struct test_node seq2[] = { { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "65" }, { T_STR, 0, "0.278" }, end_node }; struct test_node seq3[] = { { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "63" }, { T_STR, 0, "0.288" }, end_node }; struct test_node seq[] = { { T_SEQ, 0, 0, seq1 }, { T_SEQ, 0, 0, seq2 }, { T_SEQ, 0, 0, seq3 }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "- [ name , hr , avg ] \n" "- [ Mark McGwire , 65 , 0.278 ] \n" "- [ Sammy Sosa , 63 , 0.288 ] \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.6: Mapping of mappings */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "hr" }, { T_STR, 0, "65" }, { T_STR, 0, "avg" }, { T_STR, 0, "0.278" }, end_node }; struct test_node map2[] = { { T_STR, 0, "hr" }, { T_STR, 0, "63" }, { T_STR, 0, "avg" }, { T_STR, 0, "0.288" }, end_node }; struct test_node map[] = { { T_STR, 0, "Mark McGwire" }, { T_MAP, 0, 0, map1 }, { T_STR, 0, "Sammy Sosa" }, { T_MAP, 0, 0, map2 }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "Mark McGwire: {hr: 65, avg: 0.278}\n" "Sammy Sosa: {\n" " hr: 63,\n" " avg: 0.288\n" " }\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.7: Two documents in a stream each with a leading comment */ void <API key>( CuTest *tc ) { struct test_node seq1[] = { { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "Ken Griffey" }, end_node }; struct test_node seq2[] = { { T_STR, 0, "Chicago Cubs" }, { T_STR, 0, "St Louis Cardinals" }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq1 }, { T_SEQ, 0, 0, seq2 }, end_node }; CuStreamCompare( tc, /* YAML document */ "# Ranking of 1998 home runs\n" " "- Mark McGwire\n" "- Sammy Sosa\n" "- Ken Griffey\n" "\n" "# Team ranking\n" " "- Chicago Cubs\n" "- St Louis Cardinals\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.8: Play by play feed from a game */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "time" }, { T_STR, 0, "20:03:20" }, { T_STR, 0, "player" }, { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "action" }, { T_STR, 0, "strike (miss)" }, end_node }; struct test_node map2[] = { { T_STR, 0, "time" }, { T_STR, 0, "20:03:47" }, { T_STR, 0, "player" }, { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "action" }, { T_STR, 0, "grand slam" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, end_node }; CuStreamCompare( tc, /* YAML document */ " "time: 20:03:20\n" "player: Sammy Sosa\n" "action: strike (miss)\n" "...\n" " "time: 20:03:47\n" "player: Sammy Sosa\n" "action: grand slam\n" "...\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.9: Single document with two comments */ void <API key>( CuTest *tc ) { struct test_node seq1[] = { { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "Sammy Sosa" }, end_node }; struct test_node seq2[] = { { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "Ken Griffey" }, end_node }; struct test_node map[] = { { T_STR, 0, "hr" }, { T_SEQ, 0, 0, seq1 }, { T_STR, 0, "rbi" }, { T_SEQ, 0, 0, seq2 }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "hr: # 1998 hr ranking \n" " - Mark McGwire \n" " - Sammy Sosa \n" "rbi: \n" " # 1998 rbi ranking \n" " - Sammy Sosa \n" " - Ken Griffey \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.1: Node for Sammy Sosa appears twice in this document */ void <API key>( CuTest *tc ) { struct test_node seq1[] = { { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "Sammy Sosa" }, end_node }; struct test_node seq2[] = { { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "Ken Griffey" }, end_node }; struct test_node map[] = { { T_STR, 0, "hr" }, { T_SEQ, 0, 0, seq1 }, { T_STR, 0, "rbi" }, { T_SEQ, 0, 0, seq2 }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ " "hr: \n" " - Mark McGwire \n" " # Following node labeled SS \n" " - &SS Sammy Sosa \n" "rbi: \n" " - *SS # Subsequent occurance \n" " - Ken Griffey \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.11: Mapping between sequences */ void <API key>( CuTest *tc ) { struct test_node seq1[] = { { T_STR, 0, "New York Yankees" }, { T_STR, 0, "Atlanta Braves" }, end_node }; struct test_node seq2[] = { { T_STR, 0, "2001-07-02" }, { T_STR, 0, "2001-08-12" }, { T_STR, 0, "2001-08-14" }, end_node }; struct test_node seq3[] = { { T_STR, 0, "Detroit Tigers" }, { T_STR, 0, "Chicago Cubs" }, end_node }; struct test_node seq4[] = { { T_STR, 0, "2001-07-23" }, end_node }; struct test_node map[] = { { T_SEQ, 0, 0, seq3 }, { T_SEQ, 0, 0, seq4 }, { T_SEQ, 0, 0, seq1 }, { T_SEQ, 0, 0, seq2 }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "? # PLAY SCHEDULE \n" " - Detroit Tigers \n" " - Chicago Cubs \n" ": \n" " - 2001-07-23 \n" "\n" "? [ New York Yankees, \n" " Atlanta Braves ] \n" ": [ 2001-07-02, 2001-08-12, \n" " 2001-08-14 ] \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.12: Sequence key shortcut */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "item" }, { T_STR, 0, "Super Hoop" }, { T_STR, 0, "quantity" }, { T_STR, 0, "1" }, end_node }; struct test_node map2[] = { { T_STR, 0, "item" }, { T_STR, 0, "Basketball" }, { T_STR, 0, "quantity" }, { T_STR, 0, "4" }, end_node }; struct test_node map3[] = { { T_STR, 0, "item" }, { T_STR, 0, "Big Shoes" }, { T_STR, 0, "quantity" }, { T_STR, 0, "1" }, end_node }; struct test_node seq[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, { T_MAP, 0, 0, map3 }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ " "# products purchased\n" "- item : Super Hoop\n" " quantity: 1\n" "- item : Basketball\n" " quantity: 4\n" "- item : Big Shoes\n" " quantity: 1\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.13: Literal perserves newlines */ void <API key>( CuTest *tc ) { struct test_node stream[] = { { T_STR, 0, "\\//||\\/||\n// || ||_\n" }, end_node }; CuStreamCompare( tc, /* YAML document */ "# ASCII Art\n" " " \\ " , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.14: Folded treats newlines as a space */ void <API key>( CuTest *tc ) { struct test_node stream[] = { { T_STR, 0, "Mark McGwire's year was crippled by a knee injury." }, end_node }; CuStreamCompare( tc, /* YAML document */ " " Mark McGwire's\n" " year was crippled\n" " by a knee injury.\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.15: Newlines preserved for indented and blank lines */ void <API key>( CuTest *tc ) { struct test_node stream[] = { { T_STR, 0, "Sammy Sosa completed another fine season with great stats.\n\n 63 Home Runs\n 0.288 Batting Average\n\nWhat a year!\n" }, end_node }; CuStreamCompare( tc, /* YAML document */ " " Sammy Sosa completed another\n" " fine season with great stats.\n" "\n" " 63 Home Runs\n" " 0.288 Batting Average\n" "\n" " What a year!\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.16: Indentation determines scope */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "name" }, { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "accomplishment" }, { T_STR, 0, "Mark set a major league home run record in 1998.\n" }, { T_STR, 0, "stats" }, { T_STR, 0, "65 Home Runs\n0.278 Batting Average\n" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "name: Mark McGwire \n" "accomplishment: > \n" " Mark set a major league\n" " home run record in 1998.\n" "stats: | \n" " 65 Home Runs\n" " 0.278 Batting Average\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.18: Multiline flow scalars */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "plain" }, { T_STR, 0, "This unquoted scalar spans many lines." }, { T_STR, 0, "quoted" }, { T_STR, 0, "So does this quoted scalar.\n" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "plain:\n" " This unquoted scalar\n" " spans many lines.\n" "\n" "quoted: \"So does this\n" " quoted scalar.\\n\"\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.19: Integers */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "canonical" }, { T_STR, 0, "12345" }, { T_STR, 0, "decimal" }, { T_STR, 0, "+12,345" }, { T_STR, 0, "sexagecimal" }, { T_STR, 0, "3:25:45" }, { T_STR, 0, "octal" }, { T_STR, 0, "014" }, { T_STR, 0, "hexadecimal" }, { T_STR, 0, "0xC" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "canonical: 12345 \n" "decimal: +12,345 \n" "sexagecimal: 3:25:45\n" "octal: 014 \n" "hexadecimal: 0xC \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.2: Floating point */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "canonical" }, { T_STR, 0, "1.23015e+3" }, { T_STR, 0, "exponential" }, { T_STR, 0, "12.3015e+02" }, { T_STR, 0, "sexagecimal" }, { T_STR, 0, "20:30.15" }, { T_STR, 0, "fixed" }, { T_STR, 0, "1,230.15" }, { T_STR, 0, "negative infinity" }, { T_STR, 0, "-.inf" }, { T_STR, 0, "not a number" }, { T_STR, 0, ".NaN" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "canonical: 1.23015e+3 \n" "exponential: 12.3015e+02 \n" "sexagecimal: 20:30.15\n" "fixed: 1,230.15 \n" "negative infinity: -.inf\n" "not a number: .NaN \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.21: Miscellaneous */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "null" }, { T_STR, 0, "~" }, { T_STR, 0, "true" }, { T_STR, 0, "y" }, { T_STR, 0, "false" }, { T_STR, 0, "n" }, { T_STR, 0, "string" }, { T_STR, 0, "12345" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "null: ~ \n" "true: y\n" "false: n \n" "string: '12345' \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.22: Timestamps */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "canonical" }, { T_STR, 0, "2001-12-15T02:59:43.1Z" }, { T_STR, 0, "iso8601" }, { T_STR, 0, "2001-12-14t21:59:43.10-05:00" }, { T_STR, 0, "spaced" }, { T_STR, 0, "2001-12-14 21:59:43.10 -05:00" }, { T_STR, 0, "date" }, { T_STR, 0, "2002-12-14" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "canonical: 2001-12-15T02:59:43.1Z\n" "iso8601: 2001-12-14t21:59:43.10-05:00\n" "spaced: 2001-12-14 21:59:43.10 -05:00\n" "date: 2002-12-14 # Time is noon UTC\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example legacy D4: legacy Timestamps test */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "canonical" }, { T_STR, 0, "2001-12-15T02:59:43.00Z" }, { T_STR, 0, "iso8601" }, { T_STR, 0, "2001-02-28t21:59:43.00-05:00" }, { T_STR, 0, "spaced" }, { T_STR, 0, "2001-12-14 21:59:43.00 -05:00" }, { T_STR, 0, "date" }, { T_STR, 0, "2002-12-14" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "canonical: 2001-12-15T02:59:43.00Z\n" "iso8601: 2001-02-28t21:59:43.00-05:00\n" "spaced: 2001-12-14 21:59:43.00 -05:00\n" "date: 2002-12-14\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.23: Various explicit families */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "not-date" }, { T_STR, "tag:yaml.org,2002:str", "2002-04-28" }, { T_STR, 0, "picture" }, { T_STR, "tag:yaml.org,2002:binary", "R0lGODlhDAAMAIQAAP//9/X\<API key>\nPz7Y6OjuDg4J+fn5OTk6enp\n56enmleECcgggoBADs=\n" }, { T_STR, 0, "application specific tag" }, { T_STR, "x-private:something", "The semantics of the tag\nabove may be different for\ndifferent documents.\n" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "not-date: !str 2002-04-28\n" "picture: !binary |\n" " R0lGODlhDAAMAIQAAP//9/X\n" " <API key>\n" " Pz7Y6OjuDg4J+fn5OTk6enp\n" " 56enmleECcgggoBADs=\n" "\n" "application specific tag: !!something |\n" " The semantics of the tag\n" " above may be different for\n" " different documents.\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.24: Application specific family */ void <API key>( CuTest *tc ) { struct test_node point1[] = { { T_STR, 0, "x" }, { T_STR, 0, "73" }, { T_STR, 0, "y" }, { T_STR, 0, "129" }, end_node }; struct test_node point2[] = { { T_STR, 0, "x" }, { T_STR, 0, "89" }, { T_STR, 0, "y" }, { T_STR, 0, "102" }, end_node }; struct test_node map1[] = { { T_STR, 0, "center" }, { T_MAP, 0, 0, point1 }, { T_STR, 0, "radius" }, { T_STR, 0, "7" }, end_node }; struct test_node map2[] = { { T_STR, 0, "start" }, { T_MAP, 0, 0, point1 }, { T_STR, 0, "finish" }, { T_MAP, 0, 0, point2 }, end_node }; struct test_node map3[] = { { T_STR, 0, "start" }, { T_MAP, 0, 0, point1 }, { T_STR, 0, "color" }, { T_STR, 0, "0xFFEEBB" }, { T_STR, 0, "value" }, { T_STR, 0, "Pretty vector drawing." }, end_node }; struct test_node seq[] = { { T_MAP, "tag:clarkevans.com,2002:graph/circle", 0, map1 }, { T_MAP, "tag:clarkevans.com,2002:graph/line", 0, map2 }, { T_MAP, "tag:clarkevans.com,2002:graph/label", 0, map3 }, end_node }; struct test_node stream[] = { { T_SEQ, "tag:clarkevans.com,2002:graph/shape", 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "# Establish a tag prefix\n" "--- !clarkevans.com,2002/graph/^shape\n" " # Use the prefix: shorthand for\n" " # !clarkevans.com,2002/graph/circle\n" "- !^circle\n" " center: &ORIGIN {x: 73, 'y': 129}\n" " radius: 7\n" "- !^line # !clarkevans.com,2002/graph/line\n" " start: *ORIGIN\n" " finish: { x: 89, 'y': 102 }\n" "- !^label\n" " start: *ORIGIN\n" " color: 0xFFEEBB\n" " value: Pretty vector drawing.\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.26: Ordered mappings */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "Mark McGwire" }, { T_STR, 0, "65" }, end_node }; struct test_node map2[] = { { T_STR, 0, "Sammy Sosa" }, { T_STR, 0, "63" }, end_node }; struct test_node map3[] = { { T_STR, 0, "Ken Griffy" }, { T_STR, 0, "58" }, end_node }; struct test_node seq[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, { T_MAP, 0, 0, map3 }, end_node }; struct test_node stream[] = { { T_SEQ, "tag:yaml.org,2002:omap", 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "# ordered maps are represented as\n" "# a sequence of mappings, with\n" "# each mapping having one key\n" "--- !omap\n" "- Mark McGwire: 65\n" "- Sammy Sosa: 63\n" "- Ken Griffy: 58\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.27: Invoice */ void <API key>( CuTest *tc ) { struct test_node prod1[] = { { T_STR, 0, "sku" }, { T_STR, 0, "BL394D" }, { T_STR, 0, "quantity" }, { T_STR, 0, "4" }, { T_STR, 0, "description" }, { T_STR, 0, "Basketball" }, { T_STR, 0, "price" }, { T_STR, 0, "450.00" }, end_node }; struct test_node prod2[] = { { T_STR, 0, "sku" }, { T_STR, 0, "BL4438H" }, { T_STR, 0, "quantity" }, { T_STR, 0, "1" }, { T_STR, 0, "description" }, { T_STR, 0, "Super Hoop" }, { T_STR, 0, "price" }, { T_STR, 0, "2392.00" }, end_node }; struct test_node products[] = { { T_MAP, 0, 0, prod1 }, { T_MAP, 0, 0, prod2 }, end_node }; struct test_node address[] = { { T_STR, 0, "lines" }, { T_STR, 0, "458 Walkman Dr.\nSuite #292\n" }, { T_STR, 0, "city" }, { T_STR, 0, "Royal Oak" }, { T_STR, 0, "state" }, { T_STR, 0, "MI" }, { T_STR, 0, "postal" }, { T_STR, 0, "48046" }, end_node }; struct test_node id001[] = { { T_STR, 0, "given" }, { T_STR, 0, "Chris" }, { T_STR, 0, "family" }, { T_STR, 0, "Dumars" }, { T_STR, 0, "address" }, { T_MAP, 0, 0, address }, end_node }; struct test_node map[] = { { T_STR, 0, "invoice" }, { T_STR, 0, "34843" }, { T_STR, 0, "date" }, { T_STR, 0, "2001-01-23" }, { T_STR, 0, "bill-to" }, { T_MAP, 0, 0, id001 }, { T_STR, 0, "ship-to" }, { T_MAP, 0, 0, id001 }, { T_STR, 0, "product" }, { T_SEQ, 0, 0, products }, { T_STR, 0, "tax" }, { T_STR, 0, "251.42" }, { T_STR, 0, "total" }, { T_STR, 0, "4443.52" }, { T_STR, 0, "comments" }, { T_STR, 0, "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.\n" }, end_node }; struct test_node stream[] = { { T_MAP, "tag:clarkevans.com,2002:invoice", 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "--- !clarkevans.com,2002/^invoice\n" "invoice: 34843\n" "date : 2001-01-23\n" "bill-to: &id001\n" " given : Chris\n" " family : Dumars\n" " address:\n" " lines: |\n" " 458 Walkman Dr.\n" " Suite #292\n" " city : Royal Oak\n" " state : MI\n" " postal : 48046\n" "ship-to: *id001\n" "product:\n" " - sku : BL394D\n" " quantity : 4\n" " description : Basketball\n" " price : 450.00\n" " - sku : BL4438H\n" " quantity : 1\n" " description : Super Hoop\n" " price : 2392.00\n" "tax : 251.42\n" "total: 4443.52\n" "comments: >\n" " Late afternoon is best.\n" " Backup contact is Nancy\n" " Billsmer @ 338-4338.\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example 2.28: Log file */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "Time" }, { T_STR, 0, "2001-11-23 15:01:42 -05:00" }, { T_STR, 0, "User" }, { T_STR, 0, "ed" }, { T_STR, 0, "Warning" }, { T_STR, 0, "This is an error message for the log file\n" }, end_node }; struct test_node map2[] = { { T_STR, 0, "Time" }, { T_STR, 0, "2001-11-23 15:02:31 -05:00" }, { T_STR, 0, "User" }, { T_STR, 0, "ed" }, { T_STR, 0, "Warning" }, { T_STR, 0, "A slightly different error message.\n" }, end_node }; struct test_node file1[] = { { T_STR, 0, "file" }, { T_STR, 0, "TopClass.py" }, { T_STR, 0, "line" }, { T_STR, 0, "23" }, { T_STR, 0, "code" }, { T_STR, 0, "x = MoreObject(\"345\\n\")\n" }, end_node }; struct test_node file2[] = { { T_STR, 0, "file" }, { T_STR, 0, "MoreClass.py" }, { T_STR, 0, "line" }, { T_STR, 0, "58" }, { T_STR, 0, "code" }, { T_STR, 0, "foo = bar" }, end_node }; struct test_node stack[] = { { T_MAP, 0, 0, file1 }, { T_MAP, 0, 0, file2 }, end_node }; struct test_node map3[] = { { T_STR, 0, "Date" }, { T_STR, 0, "2001-11-23 15:03:17 -05:00" }, { T_STR, 0, "User" }, { T_STR, 0, "ed" }, { T_STR, 0, "Fatal" }, { T_STR, 0, "Unknown variable \"bar\"\n" }, { T_STR, 0, "Stack" }, { T_SEQ, 0, 0, stack }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, { T_MAP, 0, 0, map3 }, end_node }; CuStreamCompare( tc, /* YAML document */ " "Time: 2001-11-23 15:01:42 -05:00\n" "User: ed\n" "Warning: >\n" " This is an error message\n" " for the log file\n" " "Time: 2001-11-23 15:02:31 -05:00\n" "User: ed\n" "Warning: >\n" " A slightly different error\n" " message.\n" " "Date: 2001-11-23 15:03:17 -05:00\n" "User: ed\n" "Fatal: >\n" " Unknown variable \"bar\"\n" "Stack:\n" " - file: TopClass.py\n" " line: 23\n" " code: |\n" " x = MoreObject(\"345\\n\")\n" " - file: MoreClass.py\n" " line: 58\n" " code: |-\n" " foo = bar\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Throwaway comments */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "this" }, { T_STR, 0, "contains three lines of text.\nThe third one starts with a\n# character. This isn't a comment.\n" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ " "\n" " "this: | # Comments may trail lines.\n" " contains three lines of text.\n" " The third one starts with a\n" " # character. This isn't a comment.\n" "\n" "# These are three throwaway comment\n" "# lines (the first line is empty).\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Document with a single value */ void <API key>( CuTest *tc ) { struct test_node stream[] = { { T_STR, 0, "This YAML stream contains a single text value. The next stream is a log file - a sequence of log entries. Adding an entry to the log is a simple matter of appending it at the end.\n" }, end_node }; CuStreamCompare( tc, /* YAML document */ " "This YAML stream contains a single text value.\n" "The next stream is a log file - a sequence of\n" "log entries. Adding an entry to the log is a\n" "simple matter of appending it at the end.\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Document stream */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "at" }, { T_STR, 0, "2001-08-12 09:25:00.00 Z" }, { T_STR, 0, "type" }, { T_STR, 0, "GET" }, { T_STR, 0, "HTTP" }, { T_STR, 0, "1.0" }, { T_STR, 0, "url" }, { T_STR, 0, "/index.html" }, end_node }; struct test_node map2[] = { { T_STR, 0, "at" }, { T_STR, 0, "2001-08-12 09:25:10.00 Z" }, { T_STR, 0, "type" }, { T_STR, 0, "GET" }, { T_STR, 0, "HTTP" }, { T_STR, 0, "1.0" }, { T_STR, 0, "url" }, { T_STR, 0, "/toc.html" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, end_node }; CuStreamCompare( tc, /* YAML document */ " "at: 2001-08-12 09:25:00.00 Z \n" "type: GET \n" "HTTP: '1.0' \n" "url: '/index.html' \n" " "at: 2001-08-12 09:25:10.00 Z \n" "type: GET \n" "HTTP: '1.0' \n" "url: '/toc.html' \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Top level mapping */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "invoice" }, { T_STR, 0, "34843" }, { T_STR, 0, "date" }, { T_STR, 0, "2001-01-23" }, { T_STR, 0, "total" }, { T_STR, 0, "4443.52" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "# This stream is an example of a top-level mapping. \n" "invoice : 34843 \n" "date : 2001-01-23 \n" "total : 4443.52 \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Single-line documents */ void <API key>( CuTest *tc ) { struct test_node map[] = { end_node }; struct test_node seq[] = { end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, { T_SEQ, 0, 0, seq }, { T_STR, 0, "" }, end_node }; CuStreamCompare( tc, /* YAML document */ "# The following is a sequence of three documents. \n" "# The first contains an empty mapping, the second \n" "# an empty sequence, and the last an empty string. \n" " " " , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Document with pause */ void <API key>( CuTest *tc ) { struct test_node map1[] = { { T_STR, 0, "sent at" }, { T_STR, 0, "2002-06-06 11:46:25.10 Z" }, { T_STR, 0, "payload" }, { T_STR, 0, "Whatever" }, end_node }; struct test_node map2[] = { { T_STR, 0, "sent at" }, { T_STR, 0, "2002-06-06 12:05:53.47 Z" }, { T_STR, 0, "payload" }, { T_STR, 0, "Whatever" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, end_node }; CuStreamCompare( tc, /* YAML document */ "# A communication channel based on a YAML stream. \n" " "sent at: 2002-06-06 11:46:25.10 Z \n" "payload: Whatever \n" "# Receiver can process this as soon as the following is sent: \n" "... \n" "# Even if the next message is sent long after: \n" " "sent at: 2002-06-06 12:05:53.47 Z \n" "payload: Whatever \n" "... \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Explicit typing */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "integer" }, { T_STR, "tag:yaml.org,2002:int", "12" }, { T_STR, 0, "also int" }, { T_STR, "tag:yaml.org,2002:int", "12" }, { T_STR, 0, "string" }, { T_STR, "tag:yaml.org,2002:str", "12" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "integer: 12 \n" "also int: ! \"12\" \n" "string: !str 12 \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Private types */ void <API key>( CuTest *tc ) { struct test_node pool[] = { { T_STR, 0, "number" }, { T_STR, 0, "8" }, { T_STR, 0, "color" }, { T_STR, 0, "black" }, end_node }; struct test_node map1[] = { { T_STR, 0, "pool" }, { T_MAP, "x-private:ball", 0, pool }, end_node }; struct test_node bearing[] = { { T_STR, 0, "material" }, { T_STR, 0, "steel" }, end_node }; struct test_node map2[] = { { T_STR, 0, "bearing" }, { T_MAP, "x-private:ball", 0, bearing }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map1 }, { T_MAP, 0, 0, map2 }, end_node }; CuStreamCompare( tc, /* YAML document */ "# Both examples below make use of the 'x-private:ball' \n" "# type family URI, but with different semantics. \n" " "pool: !!ball \n" " number: 8 \n" " color: black \n" " "bearing: !!ball \n" " material: steel \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Type family under yaml.org */ void <API key>( CuTest *tc ) { struct test_node seq[] = { { T_STR, "tag:yaml.org,2002:str", "a Unicode string" }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "# The URI is 'tag:yaml.org,2002:str' \n" "- !str a Unicode string \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Type family under perl.yaml.org */ void <API key>( CuTest *tc ) { struct test_node map[] = { end_node }; struct test_node seq[] = { { T_MAP, "tag:perl.yaml.org,2002:Text::Tabs", 0, map }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "# The URI is 'tag:perl.yaml.org,2002:Text::Tabs' \n" "- !perl/Text::Tabs {} \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Type family under clarkevans.com */ void <API key>( CuTest *tc ) { struct test_node map[] = { end_node }; struct test_node seq[] = { { T_MAP, "tag:clarkevans.com,2003-02:timesheet", 0, map }, end_node }; struct test_node stream[] = { { T_SEQ, 0, 0, seq }, end_node }; CuStreamCompare( tc, /* YAML document */ "# The URI is 'tag:clarkevans.com,2003-02:timesheet' \n" "- !clarkevans.com,2003-02/timesheet {}\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : URI Escaping */ void <API key>( CuTest *tc ) { struct test_node same[] = { { T_STR, "tag:domain.tld,2002:type0", "value" }, { T_STR, "tag:domain.tld,2002:type0", "value" }, end_node }; struct test_node diff[] = { { T_STR, "tag:domain.tld,2002:type%30", "value" }, { T_STR, "tag:domain.tld,2002:type0", "value" }, end_node }; struct test_node map[] = { { T_STR, 0, "same" }, { T_SEQ, 0, 0, same }, { T_STR, 0, "different" }, { T_SEQ, 0, 0, diff }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "same: \n" " - !domain.tld,2002/type\\x30 value\n" " - !domain.tld,2002/type0 value\n" "different: # As far as the YAML parser is concerned \n" " - !domain.tld,2002/type%30 value\n" " - !domain.tld,2002/type0 value\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Overriding anchors */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "anchor" }, { T_STR, 0, "This scalar has an anchor." }, { T_STR, 0, "override" }, { T_STR, 0, "The alias node below is a repeated use of this value.\n" }, { T_STR, 0, "alias" }, { T_STR, 0, "The alias node below is a repeated use of this value.\n" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "anchor : &A001 This scalar has an anchor. \n" "override : &A001 >\n" " The alias node below is a\n" " repeated use of this value.\n" "alias : *A001\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Flow and block formatting */ void <API key>( CuTest *tc ) { struct test_node empty[] = { end_node }; struct test_node flow[] = { { T_STR, 0, "one" }, { T_STR, 0, "two" }, { T_STR, 0, "three" }, { T_STR, 0, "four" }, { T_STR, 0, "five" }, end_node }; struct test_node inblock[] = { { T_STR, 0, "Subordinate sequence entry" }, end_node }; struct test_node block[] = { { T_STR, 0, "First item in top sequence" }, { T_SEQ, 0, 0, inblock }, { T_STR, 0, "A folded sequence entry\n" }, { T_STR, 0, "Sixth item in top sequence" }, end_node }; struct test_node map[] = { { T_STR, 0, "empty" }, { T_SEQ, 0, 0, empty }, { T_STR, 0, "flow" }, { T_SEQ, 0, 0, flow }, { T_STR, 0, "block" }, { T_SEQ, 0, 0, block }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "empty: [] \n" "flow: [ one, two, three # May span lines, \n" " , four, # indentation is \n" " five ] # mostly ignored. \n" "block: \n" " - First item in top sequence \n" " - \n" " - Subordinate sequence entry \n" " - > \n" " A folded sequence entry\n" " - Sixth item in top sequence \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Literal combinations */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "empty" }, { T_STR, 0, "" }, { T_STR, 0, "literal" }, { T_STR, 0, "The \\ ' \" characters may be\nfreely used. Leading white\n space " "is significant.\n\nLine breaks are significant.\nThus this value contains one\n" "empty line and ends with a\nsingle line break, but does\nnot start with one.\n" }, { T_STR, 0, "is equal to" }, { T_STR, 0, "The \\ ' \" characters may be\nfreely used. Leading white\n space " "is significant.\n\nLine breaks are significant.\nThus this value contains one\n" "empty line and ends with a\nsingle line break, but does\nnot start with one.\n" }, { T_STR, 0, "indented and chomped" }, { T_STR, 0, " This has no newline." }, { T_STR, 0, "also written as" }, { T_STR, 0, " This has no newline." }, { T_STR, 0, "both are equal to" }, { T_STR, 0, " This has no newline." }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "empty: |\n" "\n" "literal: |\n" " The \\ ' \" characters may be\n" " freely used. Leading white\n" " space is significant.\n" "\n" " Line breaks are significant.\n" " Thus this value contains one\n" " empty line and ends with a\n" " single line break, but does\n" " not start with one.\n" "\n" "is equal to: \"The \\\\ ' \\\" characters may \\\n" " be\\nfreely used. Leading white\\n space \\\n" " is significant.\\n\\nLine breaks are \\\n" " significant.\\nThus this value contains \\\n" " one\\nempty line and ends with a\\nsingle \\\n" " line break, but does\\nnot start with one.\\n\"\n" "\n" "# Comments may follow a block \n" "# scalar value. They must be \n" "# less indented. \n" "\n" "# Modifiers may be combined in any order.\n" "indented and chomped: |2-\n" " This has no newline.\n" "\n" "also written as: |-2\n" " This has no newline.\n" "\n" "both are equal to: \" This has no newline.\"\n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } /* * Example : Timestamp */ void <API key>( CuTest *tc ) { struct test_node map[] = { { T_STR, 0, "canonical" }, { T_STR, 0, "2001-12-15T02:59:43.1Z" }, { T_STR, 0, "valid iso8601" }, { T_STR, 0, "2001-12-14t21:59:43.10-05:00" }, { T_STR, 0, "space separated" }, { T_STR, 0, "2001-12-14 21:59:43.10 -05:00" }, { T_STR, 0, "date (noon UTC)" }, { T_STR, 0, "2002-12-14" }, end_node }; struct test_node stream[] = { { T_MAP, 0, 0, map }, end_node }; CuStreamCompare( tc, /* YAML document */ "canonical: 2001-12-15T02:59:43.1Z \n" "valid iso8601: 2001-12-14t21:59:43.10-05:00 \n" "space separated: 2001-12-14 21:59:43.10 -05:00 \n" "date (noon UTC): 2002-12-14 \n" , /* C structure of validations */ stream ); CuRoundTrip( tc, stream ); } CuSuite * SyckGetSuite() { CuSuite *suite = CuSuiteNew(); SUITE_ADD_TEST( suite, YtsFoldedScalars_7 ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); SUITE_ADD_TEST( suite, <API key> ); return suite; } int main(void) { CuString *output = CuStringNew(); CuSuite* suite = SyckGetSuite(); int count; CuSuiteRun(suite); CuSuiteSummary(suite, output); CuSuiteDetails(suite, output); printf("%s\n", output->buffer); count = suite->failCount; CuStringFree( output ); CuSuiteFree( suite ); return count; }
# Makefile.in generated by automake 1.10.1 from Makefile.am. # gconf/GConf/Makefile. Generated from Makefile.in by configure. # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # PARTICULAR PURPOSE. pkgdatadir = $(datadir)/gnome-sharp pkglibdir = $(libdir)/gnome-sharp pkgincludedir = $(includedir)/gnome-sharp am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(<API key>) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = <API key> host_triplet = <API key> target_triplet = <API key> subdir = gconf/GConf DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/gconf-sharp-2.0.pc.in \ $(srcdir)/gconf-sharp.dll.config.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(<API key>) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = gconf-sharp.dll.config gconf-sharp-2.0.pc SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkgconfigdir)" <API key> = $(INSTALL_DATA) DATA = $(noinst_DATA) $(pkgconfig_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = ${SHELL} /usr/local/src/gnome-sharp-2.24.1/missing --run aclocal-1.10 AL = /usr/local/bin/al AMTAR = ${SHELL} /usr/local/src/gnome-sharp-2.24.1/missing --run tar API_VERSION = 2.24.0.0 AR = ar AS = as AUTOCONF = ${SHELL} /usr/local/src/gnome-sharp-2.24.1/missing --run autoconf AUTOHEADER = ${SHELL} /usr/local/src/gnome-sharp-2.24.1/missing --run autoheader AUTOMAKE = ${SHELL} /usr/local/src/gnome-sharp-2.24.1/missing --run automake-1.10 AWK = gawk BUILD_EXEEXT = BUILD_GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/harfbuzz BUILD_GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype CC = gcc CCDEPMODE = depmode=gcc3 CC_FOR_BUILD = gcc CFLAGS = -g -Wall -Wunused -Wmissing-prototypes -<API key> -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings CPP = gcc -E CPPFLAGS = CSC = /usr/local/bin/mcs CSFLAGS = -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20 -define:GNOME_SHARP_2_24 CXX = g++ CXXCPP = g++ -E CXXDEPMODE = depmode=gcc3 CXXFLAGS = -g -O2 CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps DLLTOOL = dlltool DSYMUTIL = ECHO = echo ECHO_C = ECHO_N = -n ECHO_T = EGREP = /usr/bin/grep -E EXEEXT = F77 = FFLAGS = GACUTIL = /usr/local/bin/gacutil GACUTIL_FLAGS = /package $(PACKAGE_VERSION) /gacdir $(DESTDIR)$(prefix)/lib GAPI_CFLAGS = GAPI_CODEGEN = /usr/local/bin/gapi2-codegen GAPI_FIXUP = /usr/local/bin/gapi2-fixup GAPI_LIBS = GAPI_PARSER = /usr/local/bin/gapi2-parser */*) $(MKDIR_P) `echo "$$dist_files" | \
package net.java.sip.communicator.service.protocol.event; import java.util.*; import net.java.sip.communicator.service.protocol.*; /** * Events of this class represent the fact that a server stored * subscription/contact has been moved from one server stored group to another. * Such events are only generated by implementations of * <API key> as non persistent presence operation sets do * not support the notion of server stored groups. * * @author Emil Ivov */ public class <API key> extends EventObject { /** * Serial version UID. */ private static final long serialVersionUID = 0L; private ContactGroup oldParent = null; private ContactGroup newParent = null; private <API key> sourceProvider = null; /** * Creates an event instance with the specified source contact and old and * new parent. * * @param sourceContact the <tt>Contact</tt> that has been moved. * @param sourceProvider a reference to the <tt><API key></tt> * that the source <tt>Contact</tt> belongs to. * @param oldParent the <tt>ContactGroup</tt> that has previously been * the parent * @param newParent the new <tt>ContactGroup</tt> parent of * <tt>sourceContact</tt> */ public <API key>(Contact sourceContact, <API key> sourceProvider, ContactGroup oldParent, ContactGroup newParent) { super(sourceContact); this.oldParent = oldParent; this.newParent = newParent; this.sourceProvider = sourceProvider; } /** * Returns a reference to the contact that has been moved. * @return a reference to the <tt>Contact</tt> that has been moved. */ public Contact getSourceContact() { return (Contact)getSource(); } /** * Returns a reference to the ContactGroup that contained the source contact * before it was moved. * @return a reference to the previous <tt>ContactGroup</tt> parent of * the source <tt>Contact</tt>. */ public ContactGroup getOldParentGroup() { return oldParent; } /** * Returns a reference to the ContactGroup that currently contains the * source contact. * * @return a reference to the current <tt>ContactGroup</tt> parent of * the source <tt>Contact</tt>. */ public ContactGroup getNewParentGroup() { return newParent; } /** * Returns the provider that the source contact belongs to. * @return the provider that the source contact belongs to. */ public <API key> getSourceProvider() { return sourceProvider; } /** * Returns a String representation of this <API key> * * @return A a String representation of this * <API key>. */ public String toString() { StringBuffer buff = new StringBuffer("<API key>-[ ContactID="); buff.append(getSourceContact().getAddress()); buff.append(", OldParentGroup=").append(getOldParentGroup().getGroupName()); buff.append(", NewParentGroup=").append(getNewParentGroup().getGroupName()); return buff.toString(); } }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http: <html><head> <title>Methods</title> <meta name="generator" content="HeaderDoc"> </head><body bgcolor="#ffffff"><h1><font face="Geneva,Arial,Helvtica">Methods</font></h1><hr><br> <a name="//apple_ref/occ/clm/GSNSDataExtensions.h/+<API key>:"></a> <h3><a name="+<API key>:">+<API key>:</a></h3> <blockquote><pre><tt>+ (NSData *)<B><API key>:</B>(NSString *)<I>inBase64String;</I> </tt><br> </pre></blockquote> <p>This method returns an autoreleased NSData object. The NSData object is initialized with the contents of the Base 64 encoded string. This is a convenience function for -<API key>:. </p> <h4>Parameters</h4> <blockquote> <table border="1" width="90%"> <thead><tr><th>Name</th><th>Description</th></tr></thead> <tr><td align="center"><tt>inBase64String</tt></td><td>An NSString object that contains only Base 64 encoded data.</td></tr> </table> </blockquote> <b>Result:</b> The NSData object. <hr> <a name="//apple_ref/occ/clm/GSNSDataExtensions.h/+<API key>:"></a> <h3><a name="+<API key>:">+<API key>:</a></h3> <blockquote><pre><tt>+ (BOOL)<B><API key>:</B>(char)<I>inChar;</I> </tt><br> </pre></blockquote> <p>This method returns YES or NO depending on whether the given character is a part of the Base64 encoding table. </p> <h4>Parameters</h4> <blockquote> <table border="1" width="90%"> <thead><tr><th>Name</th><th>Description</th></tr></thead> <tr><td align="center"><tt>inChar</tt></td><td>An character in ASCII encoding.</td></tr> </table> </blockquote> <b>Result:</b> YES if the character is a part of the Base64 encoding table. <hr> <a name="//apple_ref/occ/instm/GSNSDataExtensions.h/-<API key>:"></a> <h3><a name="-<API key>:">-<API key>:</a></h3> <blockquote><pre><tt>- (NSString *)<B><API key>:</B>(unsigned int)<I>inLineLength;</I> </tt><br> </pre></blockquote> <p>This method returns a Base 64 encoded string representation of the data object. </p> <h4>Parameters</h4> <blockquote> <table border="1" width="90%"> <thead><tr><th>Name</th><th>Description</th></tr></thead> <tr><td align="center"><tt>inLineLength</tt></td><td>A value of zero means no line breaks. This is crunched to a multiple of 4 (the next one greater than inLineLength).</td></tr> </table> </blockquote> <b>Result:</b> The base 64 encoded data. <hr> <a name="//apple_ref/occ/instm/GSNSDataExtensions.h/-<API key>:"></a> <h3><a name="-<API key>:">-<API key>:</a></h3> <blockquote><pre><tt>- (id)<B><API key>:</B>(NSString *)<I>inBase64String;</I> </tt><br> </pre></blockquote> <p>The NSData object is initialized with the contents of the Base 64 encoded string. This method returns self as a convenience. </p> <h4>Parameters</h4> <blockquote> <table border="1" width="90%"> <thead><tr><th>Name</th><th>Description</th></tr></thead> <tr><td align="center"><tt>inBase64String</tt></td><td>An NSString object that contains only Base 64 encoded data.</td></tr> </table> </blockquote> <b>Result:</b> This method returns self. <hr> <p><p>&#169; 2001, 2005 Kyle Hammond (Last Updated 1/12/2005) </p></body></html>
#include <ixlib_random.hpp>
package net.gigimoi.zombietc.tile; import net.gigimoi.zombietc.ZombieTC; import net.gigimoi.zombietc.util.IListenerZTC; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.NetworkManager; import net.minecraft.network.Packet; import net.minecraft.network.play.server.<API key>; import net.minecraft.tileentity.TileEntity; public abstract class TileZTC extends TileEntity implements IListenerZTC { @Override public void updateEntity() { super.updateEntity(); if(!ZombieTC.gameManager.<API key>(this)) { ZombieTC.gameManager.registerListener(this); } } @Override public Packet <API key>() { NBTTagCompound tagCompound = new NBTTagCompound(); writeToNBT(tagCompound); return new <API key>(xCoord, yCoord, zCoord, 1, tagCompound); } @Override public void onDataPacket(NetworkManager net, <API key> pkt) { super.onDataPacket(net, pkt); readFromNBT(pkt.func_148857_g()); } }
FROM registry.access.redhat.com/rhel7:latest MAINTAINER cevich@redhat.com RUN yum install -y deltarpm yum-utils &&\ yum update -y && \ yum install avahi -y && \ yum clean all ADD avahi-daemon.conf /etc/avahi/ ADD ssh.service /etc/avahi/services/ ADD avahi-daemon.service /etc/systemd/system/ LABEL RUN /usr/bin/docker run --rm --name NAME --net=host --volume /etc/localtime:/etc/localtime:r IMAGE /usr/sbin/avahi-daemon --debug LABEL INSTALL /usr/bin/docker run --privileged --rm --volume /:/host --name NAME IMAGE cp -v /etc/systemd/system/avahi-daemon.service /host/etc/systemd/system/ LABEL UNINSTALL /usr/bin/docker run --privileged --rm --volume /:/host --name NAME IMAGE rm /host/etc/systemd/system/avahi-daemon.service
package net.minecraft.server; import java.util.Iterator; import java.util.List; import net.minecraft.src.BiomeGenBase; import cpw.mods.fml.common.registry.IMinecraftRegistry; import cpw.mods.fml.server.FMLBukkitHandler; public class BukkitRegistry implements IMinecraftRegistry { @Override public void addRecipe(net.minecraft.src.ItemStack output, Object... params) { CraftingManager.getInstance().<API key>((ItemStack) output, params); } @Override public void addShapelessRecipe(net.minecraft.src.ItemStack output, Object... params) { CraftingManager.getInstance().<API key>((ItemStack) output, params); } @SuppressWarnings("unchecked") @Override public void addRecipe(net.minecraft.src.IRecipe recipe) { CraftingManager.getInstance().getRecipies().add(recipe); } @Override public void addSmelting(int input, net.minecraft.src.ItemStack output) { FurnaceRecipes.getInstance().registerRecipe(input, (ItemStack) output); } @Override public void registerBlock(net.minecraft.src.Block block) { registerBlock(block, ItemBlock.class); } @Override public void registerBlock(net.minecraft.src.Block block, Class <? extends net.minecraft.src.ItemBlock > itemclass) { try { assert block != null : "registerBlock: block cannot be null"; assert itemclass != null : "registerBlock: itemclass cannot be null"; int blockItemId = ((Block)block).id - 256; itemclass.getConstructor(int.class).newInstance(blockItemId); } catch (Exception e) { //HMMM } } @SuppressWarnings("unchecked") @Override public void registerEntityID(Class <? extends net.minecraft.src.Entity > entityClass, String entityName, int id) { EntityTypes.<API key>((Class<? extends Entity>) entityClass, entityName, id); } @SuppressWarnings("unchecked") @Override public void registerEntityID(Class <? extends net.minecraft.src.Entity > entityClass, String entityName, int id, int backgroundEggColour, int foregroundEggColour) { EntityTypes.<API key>((Class<? extends Entity>) entityClass, entityName, id, backgroundEggColour, foregroundEggColour); } @SuppressWarnings("unchecked") @Override public void registerTileEntity(Class <? extends net.minecraft.src.TileEntity > tileEntityClass, String id) { TileEntity.<API key>((Class<? extends TileEntity>) tileEntityClass, id); } @Override public void addBiome(BiomeGenBase biome) { FMLBukkitHandler.instance().<API key>((BiomeBase) biome); } @Override public void addSpawn(Class <? extends net.minecraft.src.EntityLiving > entityClass, int weightedProb, int min, int max, net.minecraft.src.EnumCreatureType typeOfCreature, BiomeGenBase... biomes) { BiomeBase[] realBiomes=(BiomeBase[]) biomes; for (BiomeBase biome : realBiomes) { @SuppressWarnings("unchecked") List<BiomeMeta> spawns = ((BiomeBase)biome).getMobs((EnumCreatureType)typeOfCreature); for (BiomeMeta entry : spawns) { //Adjusting an existing spawn entry if (entry.a == entityClass) { entry.d = weightedProb; entry.b = min; entry.c = max; break; } } spawns.add(new BiomeMeta(entityClass, weightedProb, min, max)); } } @Override @SuppressWarnings("unchecked") public void addSpawn(String entityName, int weightedProb, int min, int max, net.minecraft.src.EnumCreatureType spawnList, BiomeGenBase... biomes) { Class <? extends Entity > entityClazz = EntityTypes.<API key>().get(entityName); if (EntityLiving.class.isAssignableFrom(entityClazz)) { addSpawn((Class <? extends net.minecraft.src.EntityLiving >) entityClazz, weightedProb, min, max, spawnList, biomes); } } @Override public void removeBiome(BiomeGenBase biome) { FMLBukkitHandler.instance().<API key>((BiomeBase)biome); } @Override public void removeSpawn(Class <? extends net.minecraft.src.EntityLiving > entityClass, net.minecraft.src.EnumCreatureType typeOfCreature, BiomeGenBase... biomesO) { BiomeBase[] biomes=(BiomeBase[]) biomesO; for (BiomeBase biome : biomes) { @SuppressWarnings("unchecked") List<BiomeMeta> spawns = ((BiomeBase)biome).getMobs((EnumCreatureType) typeOfCreature); Iterator<BiomeMeta> entries = spawns.iterator(); while (entries.hasNext()) { BiomeMeta entry = entries.next(); if (entry.a == entityClass) { entries.remove(); } } } } @Override @SuppressWarnings("unchecked") public void removeSpawn(String entityName, net.minecraft.src.EnumCreatureType spawnList, BiomeGenBase... biomes) { Class <? extends Entity > entityClazz = EntityTypes.<API key>().get(entityName); if (EntityLiving.class.isAssignableFrom(entityClazz)) { removeSpawn((Class <? extends net.minecraft.src.EntityLiving >) entityClazz, spawnList, biomes); } } }
#define OMPI_SKIP_MPICXX 1 #define MPICH_SKIP_MPICXX 1 #include "comm.h" #include <stdio.h> #include "cmdLineOptions.h" #include "h5test.h" #include "parallel_io.h" #include "t3pio.h" Comm P; void outputResults(CmdLineOptions& cmd, ParallelIO& pio); int main(int argc, char* argv[]) { P.init(&argc, &argv, MPI_COMM_WORLD); CmdLineOptions cmd(argc, argv); CmdLineOptions::state_t state = cmd.state(); if (state != CmdLineOptions::iGOOD) { MPI_Finalize(); return (state == CmdLineOptions::iBAD); } ParallelIO pio; if (cmd.h5slab || cmd.h5chunk) pio.h5writer(cmd); if (cmd.romio) pio.MPIIOwriter(cmd); if (P.myProc == 0) outputResults(cmd, pio); P.fini(); return 0; } void outputResults(CmdLineOptions& cmd, ParallelIO& pio) { double fileSz = pio.totalSz()/(1024.0 * 1024.0 * 1024.0); const char* t3pioV = t3pio_version(); if (cmd.luaStyleOutput) { printf("%%%% { t3pioV = \"%s\", nprocs = %d, lSz = %ld, wrtStyle = \"%s\"," " xferStyle = \"%s\", iounits = %d, aggregators = %d, nstripes = %d, " " stripeSzMB = %d, fileSzGB = %15.7g, time = %15.7g, totalTime = %15.7g," " rate = %15.7g },\n", t3pioV, P.nProcs, cmd.localSz, cmd.wrtStyle.c_str(), cmd.xferStyle.c_str(), pio.nIOUnits(), pio.aggregators(), pio.nStripes(), pio.stripeSzMB(), fileSz, pio.time(), pio.totalTime(), pio.rate()); } if (cmd.tableStyleOutput) { printf("\nunstructTest:\n" " " Nprocs: %12d\n" " lSz: %12ld\n" " Numvar: %12d\n" " iounits: %12d\n" " aggregators: %12d\n" " nstripes: %12d\n" " stripeSz (MB): %12d\n" " fileSz (GB): %12.3f\n" " time (sec): %12.3f\n" " totalTime (sec): %12.3f\n" " rate (MB/s): %12.3f\n" " wrtStyle: %12s\n" " xferStyle: %12s\n" " S_dne: %12d\n" " S_auto_max: %12d\n" " nStripesT3: %12d\n" " t3pioV: %12s\n", P.nProcs, cmd.localSz, pio.numvar(), pio.nIOUnits(), pio.aggregators(), pio.nStripes(), pio.stripeSzMB(), fileSz, pio.time(), pio.totalTime(), pio.rate(), cmd.wrtStyle.c_str(), cmd.xferStyle.c_str(), pio.dne_stripes(), pio.auto_max_stripes(), pio.nStripesT3(), t3pioV); } }
package com.xpn.xwiki.web; /** * Enumeration of supported object policy types. A object policy type is an * implementation on how to manage parameters in the query string that wants to * modify objects in page. They are usually on the form of * 'Space.PageClass_0_prop. In the default implementation of XWiki, these * parameters will initialize values of properties of existing object (see * 'UPDATE'). * * The second implementation, called 'UDPATE_OR_CREATE' will also create objects * if they don't exist. For example, let's take a page that contains one object * Space.PageClass. Given the following parameters: * <ul> * <li>Space.PageClass_0_prop=abc</li> * <li>Space.PageClass_1_prop=def</li> * <li>Space.PageClass_2_prop=ghi</li> * <li>Space.PageClass_6_prop=jkl</li> * </ul> * * The object number 0 will have it's property initialized with 'abc'. The * objects number 1 and 2 will be created and respectively initialized with * 'def' and 'ghi'. The final parameter will be ignored since the number doesn't * refer to a following number. * * @version $Id$ * @since 7.0RC1 */ public enum ObjectPolicyType { /** Only update objects. */ UPDATE("update"), /** Update and/or create objects. */ UPDATE_OR_CREATE("updateOrCreate"); /** Name that is used in HTTP parameters to specify the object policy. */ private final String name; /** * @param name The string name corresponding to the object policy type. */ ObjectPolicyType(String name) { this.name = name; } /** * @return The string name corresponding to the object policy type. */ public String getName() { return this.name; } /** * @param name The string name corresponding to the object policy type. * @return The ObjectPolicyType corresponding to the parameter 'name'. */ public static ObjectPolicyType forName(String name) { for (ObjectPolicyType type : values()) { if (type.getName().equals(name)) { return type; } } return null; } }
#if USE_SDL_BACKEND #include "../test/SDLBackend.h" #else #include "../test/OgreBackend.h" #endif #include <GG/StyleFactory.h> #include <GG/dialogs/ThreeButtonDlg.h> #include <GG/dialogs/FileDlg.h> #include <iostream> // Tutorial 1: Minimal // This contains the minimal interesting GG application. It contains 3D as // well as GUI elements in the same scene, and demonstrates how to use the // default SDL and Ogre input drivers. void CustomRender() { const double RPM = 4; const double DEGREES_PER_MS = 360.0 * RPM / 60000.0; // DeltaT() returns the time in whole milliseconds since the last frame // was rendered (in other words, since this method was last invoked). glRotated(GG::GUI::GetGUI()->DeltaT() * DEGREES_PER_MS, 0.0, 1.0, 0.0); glBegin(GL_QUADS); glColor3d(0.0, 1.0, 0.0); glVertex3d(1.0, 1.0, -1.0); glVertex3d(-1.0, 1.0, -1.0); glVertex3d(-1.0, 1.0, 1.0); glVertex3d(1.0, 1.0, 1.0); glColor3d(1.0, 0.5, 0.0); glVertex3d(1.0, -1.0, 1.0); glVertex3d(-1.0, -1.0, 1.0); glVertex3d(-1.0, -1.0,-1.0); glVertex3d(1.0, -1.0,-1.0); glColor3d(1.0, 0.0, 0.0); glVertex3d(1.0, 1.0, 1.0); glVertex3d(-1.0, 1.0, 1.0); glVertex3d(-1.0, -1.0, 1.0); glVertex3d(1.0, -1.0, 1.0); glColor3d(1.0, 1.0, 0.0); glVertex3d(1.0, -1.0, -1.0); glVertex3d(-1.0, -1.0, -1.0); glVertex3d(-1.0, 1.0, -1.0); glVertex3d(1.0, 1.0, -1.0); glColor3d(0.0, 0.0, 1.0); glVertex3d(-1.0, 1.0, 1.0); glVertex3d(-1.0, 1.0, -1.0); glVertex3d(-1.0, -1.0, -1.0); glVertex3d(-1.0, -1.0, 1.0); glColor3d(1.0, 0.0, 1.0); glVertex3d(1.0, 1.0, -1.0); glVertex3d(1.0, 1.0, 1.0); glVertex3d(1.0, -1.0, 1.0); glVertex3d(1.0, -1.0, -1.0); glEnd(); } // This is the launch point for your GG app. This is where you should place // your main GG::Wnd(s) that should appear when the application starts, if // any. void CustomInit() { // Create a modal dialog and execute it. This will show GG operating on // top of a "real 3D" scene. Note that if you want "real" 3D objects // (i.e. drawn in a non-orthographic space) inside of GG windows, you can // add whatever OpenGL calls you like to a GG::Wnd's Render() method, // sandwiched between Exit2DMode() and Enter2DMode(). const std::string message = "Are we Готово yet?"; // That Russian word means "Done", ha. const std::set<GG::UnicodeCharset> charsets_ = GG::<API key>(message); const std::vector<GG::UnicodeCharset> charsets(charsets_.begin(), charsets_.end()); const boost::shared_ptr<GG::Font> font = GG::GUI::GetGUI()->GetStyleFactory()->DefaultFont(12, &charsets[0], &charsets[0] + charsets.size()); GG::Wnd* quit_dlg = new GG::ThreeButtonDlg(GG::X(200), GG::Y(100), message, font, GG::CLR_SHADOW, GG::CLR_SHADOW, GG::CLR_SHADOW, GG::CLR_WHITE, 1); quit_dlg->Run(); // Now that we're back from the modal dialog, we can exit normally, since // that's what closing the dialog indicates. Exit() calls all the cleanup // methods for GG::SDLGUI. GG::GUI::GetGUI()->Exit(0); } extern "C" // Note the use of C-linkage, as required by SDL. int main(int argc, char* argv[]) { // The try-catch block is not strictly necessary, but it sure helps to see // what exception crashed your app in the log file. try { #if USE_SDL_BACKEND MinimalSDLGUI::CustomInit = &CustomInit; MinimalSDLGUI::CustomRender = &CustomRender; MinimalSDLMain(); #else MinimalOgreGUI::CustomInit = &CustomInit; MinimalOgreGUI::CustomRender = &CustomRender; MinimalOgreMain(); #endif } catch (const std::invalid_argument& e) { std::cerr << "main() caught exception(std::invalid_arg): " << e.what(); } catch (const std::runtime_error& e) { std::cerr << "main() caught exception(std::runtime_error): " << e.what(); } catch (const std::exception& e) { std::cerr << "main() caught exception(std::exception): " << e.what(); } return 0; }
#include "longlong_pre.h" #include <longlong_inc.h> /* You have to define the following before including this file: UWtype -- An unsigned type, default type for operations (typically a "word") UHWtype -- An unsigned type, at least half the size of UWtype. UDWtype -- An unsigned type, at least twice as large a UWtype W_TYPE_SIZE -- size in bits of UWtype SItype, USItype -- Signed and unsigned 32 bit types. DItype, UDItype -- Signed and unsigned 64 bit types. On a 32 bit machine UWtype should typically be USItype; on a 64 bit machine, UWtype should typically be UDItype. */ /* Use mpn_umul_ppmm or mpn_udiv_qrnnd functions, if they exist. The "_r" forms have "reversed" arguments, meaning the pointer is last, which sometimes allows better parameter passing, in particular on 64-bit hppa. */ #define mpn_umul_ppmm __MPN(umul_ppmm) extern UWtype mpn_umul_ppmm _PROTO ((UWtype *, UWtype, UWtype)); #if ! defined (umul_ppmm) && <API key> \ && ! defined (LONGLONG_STANDALONE) #define umul_ppmm(wh, wl, u, v) \ do { \ UWtype __umul_ppmm__p0; \ (wh) = mpn_umul_ppmm (&__umul_ppmm__p0, (UWtype) (u), (UWtype) (v)); \ (wl) = __umul_ppmm__p0; \ } while (0) #endif #define mpn_umul_ppmm_r __MPN(umul_ppmm_r) extern UWtype mpn_umul_ppmm_r _PROTO ((UWtype, UWtype, UWtype *)); #if ! defined (umul_ppmm) && <API key> \ && ! defined (LONGLONG_STANDALONE) #define umul_ppmm(wh, wl, u, v) \ do { \ UWtype __umul_ppmm__p0; \ (wh) = mpn_umul_ppmm_r ((UWtype) (u), (UWtype) (v), &__umul_ppmm__p0); \ (wl) = __umul_ppmm__p0; \ } while (0) #endif #define mpn_udiv_qrnnd __MPN(udiv_qrnnd) extern UWtype mpn_udiv_qrnnd _PROTO ((UWtype *, UWtype, UWtype, UWtype)); #if ! defined (udiv_qrnnd) && <API key> \ && ! defined (LONGLONG_STANDALONE) #define udiv_qrnnd(q, r, n1, n0, d) \ do { \ UWtype __udiv_qrnnd__r; \ (q) = mpn_udiv_qrnnd (&__udiv_qrnnd__r, \ (UWtype) (n1), (UWtype) (n0), (UWtype) d); \ (r) = __udiv_qrnnd__r; \ } while (0) #endif #define mpn_udiv_qrnnd_r __MPN(udiv_qrnnd_r) extern UWtype mpn_udiv_qrnnd_r _PROTO ((UWtype, UWtype, UWtype, UWtype *)); #if ! defined (udiv_qrnnd) && <API key> \ && ! defined (LONGLONG_STANDALONE) #define udiv_qrnnd(q, r, n1, n0, d) \ do { \ UWtype __udiv_qrnnd__r; \ (q) = mpn_udiv_qrnnd_r ((UWtype) (n1), (UWtype) (n0), (UWtype) d, \ &__udiv_qrnnd__r); \ (r) = __udiv_qrnnd__r; \ } while (0) #endif /* If this machine has no inline assembler, use C macros. */ #if !defined (add_ssaaaa) #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ do { \ UWtype __x; \ __x = (al) + (bl); \ (sh) = (ah) + (bh) + (__x < (al)); \ (sl) = __x; \ } while (0) #endif #if !defined (sub_ddmmss) #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ do { \ UWtype __x; \ __x = (al) - (bl); \ (sh) = (ah) - (bh) - ((al) < (bl)); \ (sl) = __x; \ } while (0) #endif /* If we lack umul_ppmm but have smul_ppmm, define umul_ppmm in terms of smul_ppmm. */ #if !defined (umul_ppmm) && defined (smul_ppmm) #define umul_ppmm(w1, w0, u, v) \ do { \ UWtype __w1; \ UWtype __xm0 = (u), __xm1 = (v); \ smul_ppmm (__w1, w0, __xm0, __xm1); \ (w1) = __w1 + (-(__xm0 >> (W_TYPE_SIZE - 1)) & __xm1) \ + (-(__xm1 >> (W_TYPE_SIZE - 1)) & __xm0); \ } while (0) #endif /* If we still don't have umul_ppmm, define it using plain C. For reference, when this code is used for squaring (ie. u and v identical expressions), gcc recognises __x1 and __x2 are the same and generates 3 multiplies, not 4. The subsequent additions could be optimized a bit, but the only place GMP currently uses such a square is mpn_sqr_basecase, and chips obliged to use this generic C umul will have plenty of worse performance problems than a couple of extra instructions on the diagonal of sqr_basecase. */ #if !defined (umul_ppmm) #define umul_ppmm(w1, w0, u, v) \ do { \ UWtype __x0, __x1, __x2, __x3; \ UHWtype __ul, __vl, __uh, __vh; \ UWtype __u = (u), __v = (v); \ \ __ul = __ll_lowpart (__u); \ __uh = __ll_highpart (__u); \ __vl = __ll_lowpart (__v); \ __vh = __ll_highpart (__v); \ \ __x0 = (UWtype) __ul * __vl; \ __x1 = (UWtype) __ul * __vh; \ __x2 = (UWtype) __uh * __vl; \ __x3 = (UWtype) __uh * __vh; \ \ __x1 += __ll_highpart (__x0);/* this can't give carry */ \ __x1 += __x2; /* but this indeed can */ \ if (__x1 < __x2) /* did we get it? */ \ __x3 += __ll_B; /* yes, add it in the proper pos. */ \ \ (w1) = __x3 + __ll_highpart (__x1); \ (w0) = (__x1 << W_TYPE_SIZE/2) + __ll_lowpart (__x0); \ } while (0) #endif /* If we don't have smul_ppmm, define it using umul_ppmm (which surely will exist in one form or another. */ #if !defined (smul_ppmm) #define smul_ppmm(w1, w0, u, v) \ do { \ UWtype __w1; \ UWtype __xm0 = (u), __xm1 = (v); \ umul_ppmm (__w1, w0, __xm0, __xm1); \ (w1) = __w1 - (-(__xm0 >> (W_TYPE_SIZE - 1)) & __xm1) \ - (-(__xm1 >> (W_TYPE_SIZE - 1)) & __xm0); \ } while (0) #endif /* Define this unconditionally, so it can be used for debugging. */ #define __udiv_qrnnd_c(q, r, n1, n0, d) \ do { \ UWtype __d1, __d0, __q1, __q0, __r1, __r0, __m; \ \ ASSERT ((d) != 0); \ ASSERT ((n1) < (d)); \ \ __d1 = __ll_highpart (d); \ __d0 = __ll_lowpart (d); \ \ __q1 = (n1) / __d1; \ __r1 = (n1) - __q1 * __d1; \ __m = __q1 * __d0; \ __r1 = __r1 * __ll_B | __ll_highpart (n0); \ if (__r1 < __m) \ { \ __q1--, __r1 += (d); \ if (__r1 >= (d)) /* i.e. we didn't get carry when adding to __r1 */\ if (__r1 < __m) \ __q1--, __r1 += (d); \ } \ __r1 -= __m; \ \ __q0 = __r1 / __d1; \ __r0 = __r1 - __q0 * __d1; \ __m = __q0 * __d0; \ __r0 = __r0 * __ll_B | __ll_lowpart (n0); \ if (__r0 < __m) \ { \ __q0--, __r0 += (d); \ if (__r0 >= (d)) \ if (__r0 < __m) \ __q0--, __r0 += (d); \ } \ __r0 -= __m; \ \ (q) = __q1 * __ll_B | __q0; \ (r) = __r0; \ } while (0) /* If the processor has no udiv_qrnnd but sdiv_qrnnd, go through __udiv_w_sdiv (defined in libgcc or elsewhere). */ #if !defined (udiv_qrnnd) && defined (sdiv_qrnnd) #define udiv_qrnnd(q, r, nh, nl, d) \ do { \ UWtype __r; \ (q) = __MPN(udiv_w_sdiv) (&__r, nh, nl, d); \ (r) = __r; \ } while (0) #endif /* If udiv_qrnnd was not defined for this processor, use __udiv_qrnnd_c. */ #if !defined (udiv_qrnnd) #define <API key> 1 #define udiv_qrnnd __udiv_qrnnd_c #endif #if !defined (count_leading_zeros) #define count_leading_zeros(count, x) \ do { \ UWtype __xr = (x); \ UWtype __a; \ \ if (W_TYPE_SIZE == 32) \ { \ __a = __xr < ((UWtype) 1 << 2*__BITS4) \ ? (__xr < ((UWtype) 1 << __BITS4) ? 1 : __BITS4 + 1) \ : (__xr < ((UWtype) 1 << 3*__BITS4) ? 2*__BITS4 + 1 \ : 3*__BITS4 + 1); \ } \ else \ { \ for (__a = W_TYPE_SIZE - 8; __a > 0; __a -= 8) \ if (((__xr >> __a) & 0xff) != 0) \ break; \ ++__a; \ } \ \ (count) = W_TYPE_SIZE + 1 - __a - __clz_tab[__xr >> __a]; \ } while (0) /* This version gives a well-defined value for zero. */ #define <API key> (W_TYPE_SIZE - 1) #define <API key> #endif #ifdef <API key> extern const unsigned char __GMP_DECLSPEC __clz_tab[128]; #endif #if !defined (<API key>) /* Define <API key> using count_leading_zeros. The latter might be defined in asm, but if it is not, the C version above is good enough. */ #define <API key>(count, x) \ do { \ UWtype __ctz_x = (x); \ UWtype __ctz_c; \ ASSERT (__ctz_x != 0); \ count_leading_zeros (__ctz_c, __ctz_x & -__ctz_x); \ (count) = W_TYPE_SIZE - 1 - __ctz_c; \ } while (0) #endif #ifndef <API key> #define <API key> 0 #endif /* Whether udiv_qrnnd is actually implemented with udiv_qrnnd_preinv, and that hence the latter should always be used. */ #ifndef UDIV_PREINV_ALWAYS #define UDIV_PREINV_ALWAYS 0 #endif #ifdef _MSC_VER #define sub_333(sh, sm, sl, ah, am, al, bh, bm, bl) \ do { \ UWtype _bw; \ (sl) = (al) - (bl); \ _bw = (sl) > (al) ? 1 : 0; \ (sm) = (am) - (bm) - _bw; \ _bw = (sm) > (am) ? 1 : (sm) < (am) ? 0 : _bw; \ (sh) = (ah) - (bh) - _bw; \ } while (0) #endif
package eu.europa.esig.dss.asic.cades.signature.asics; import eu.europa.esig.dss.asic.cades.<API key>; import eu.europa.esig.dss.asic.cades.<API key>; import eu.europa.esig.dss.asic.cades.<API key>; import eu.europa.esig.dss.asic.cades.signature.<API key>; import eu.europa.esig.dss.asic.common.ASiCContent; import eu.europa.esig.dss.diagnostic.DiagnosticData; import eu.europa.esig.dss.diagnostic.SignatureWrapper; import eu.europa.esig.dss.diagnostic.jaxb.XmlDigestMatcher; import eu.europa.esig.dss.enumerations.ASiCContainerType; import eu.europa.esig.dss.enumerations.SignatureLevel; import eu.europa.esig.dss.model.DSSDocument; import eu.europa.esig.dss.model.InMemoryDocument; import eu.europa.esig.dss.signature.<API key>; import eu.europa.esig.dss.utils.Utils; import eu.europa.esig.dss.validation.<API key>; import eu.europa.esig.dss.validation.reports.Reports; import org.junit.jupiter.api.BeforeEach; import java.util.Arrays; import java.util.Date; import java.util.List; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; public class <API key> extends <API key> { private <API key><<API key>, <API key>> service; private <API key> signatureParameters; private DSSDocument documentToSign; @BeforeEach public void init() throws Exception { documentToSign = new InMemoryDocument("Hello World !".getBytes(), "test.text"); signatureParameters = new <API key>(); signatureParameters.bLevel().setSigningDate(new Date()); signatureParameters.<API key>(getSigningCert()); signatureParameters.setCertificateChain(getCertificateChain()); signatureParameters.setSignatureLevel(SignatureLevel.CAdES_BASELINE_LT); signatureParameters.aSiC().setContainerType(ASiCContainerType.ASiC_S); service = new <API key>(<API key>()); service.setTspSource(getGoodTsa()); } @Override protected void onDocumentSigned(byte[] byteArray) { super.onDocumentSigned(byteArray); <API key> containerExtractor = new <API key>(new InMemoryDocument(byteArray)); ASiCContent result = containerExtractor.extract(); List<DSSDocument> signatureDocuments = result.<API key>(); assertTrue(Utils.<API key>(signatureDocuments)); for (DSSDocument signatureDocument : signatureDocuments) { // validate with no detached content DiagnosticData diagnosticData = validateDocument(signatureDocument); SignatureWrapper signature = diagnosticData.getSignatureById(diagnosticData.getFirstSignatureId()); List<XmlDigestMatcher> digestMatchers = signature.getDigestMatchers(); assertEquals(1, digestMatchers.size()); assertFalse(digestMatchers.get(0).isDataFound()); assertFalse(digestMatchers.get(0).isDataIntact()); // with detached content diagnosticData = validateDocument(signatureDocument, Arrays.asList(getSignedData(result))); signature = diagnosticData.getSignatureById(diagnosticData.getFirstSignatureId()); digestMatchers = signature.getDigestMatchers(); assertEquals(1, digestMatchers.size()); assertTrue(digestMatchers.get(0).isDataFound()); assertTrue(digestMatchers.get(0).isDataIntact()); } } private DiagnosticData validateDocument(DSSDocument signatureDocument) { return validateDocument(signatureDocument, null); } private DiagnosticData validateDocument(DSSDocument signatureDocument, List<DSSDocument> detachedContents) { <API key> validator = <API key>.fromDocument(signatureDocument); validator.<API key>(<API key>()); if (Utils.<API key>(detachedContents)) { validator.setDetachedContents(detachedContents); } Reports reports = validator.validateDocument(); return reports.getDiagnosticData(); } @Override protected <API key><<API key>, <API key>> getService() { return service; } @Override protected <API key> <API key>() { return signatureParameters; } @Override protected DSSDocument getDocumentToSign() { return documentToSign; } @Override protected String getSigningAlias() { return GOOD_USER; } }
#!/usr/bin/env kjscmd5 function Calculator(ui) { // Setup entry functions var display = ui.findChild('display'); this.display = display; this.one = function() { display.intValue = display.intValue*10+1; } this.two = function() { display.intValue = display.intValue*10+2; } this.three = function() { display.intValue = display.intValue*10+3; } this.four = function() { display.intValue = display.intValue*10+4; } this.five = function() { display.intValue = display.intValue*10+5; } this.six = function() { display.intValue = display.intValue*10+6; } this.seven = function() { display.intValue = display.intValue*10+7; } this.eight = function() { display.intValue = display.intValue*10+8; } this.nine = function() { display.intValue = display.intValue*10+9; } this.zero = function() { display.intValue = display.intValue*10+0; } ui.connect( ui.findChild('one'), 'clicked()', this, 'one()' ); ui.connect( ui.findChild('two'), 'clicked()', this, 'two()' ); ui.connect( ui.findChild('three'), 'clicked()', this, 'three()' ); ui.connect( ui.findChild('four'), 'clicked()', this, 'four()' ); ui.connect( ui.findChild('five'), 'clicked()', this, 'five()' ); ui.connect( ui.findChild('six'), 'clicked()', this, 'six()' ); ui.connect( ui.findChild('seven'), 'clicked()', this, 'seven()' ); ui.connect( ui.findChild('eight'), 'clicked()', this, 'eight()' ); ui.connect( ui.findChild('nine'), 'clicked()', this, 'nine()' ); ui.connect( ui.findChild('zero'), 'clicked()', this, 'zero()' ); this.val = 0; this.display.intValue = 0; this.lastop = function() {} this.plus = function() { this.val = display.intValue+this.val; display.intValue = 0; this.lastop=this.plus } this.minus = function() { this.val = display.intValue-this.val; display.intValue = 0; this.lastop=this.minus; } ui.connect( ui.findChild('plus'), 'clicked()', this, 'plus()' ); ui.connect( ui.findChild('minus'), 'clicked()', this, 'minus()' ); this.equals = function() { this.lastop(); display.intValue = this.val; } this.clear = function() { this.lastop=function(){}; display.intValue = 0; this.val = 0; } ui.connect( ui.findChild('equals'), 'clicked()', this, 'equals()' ); ui.connect( ui.findChild('clear'), 'clicked()', this, 'clear()' ); } var loader = new QUiLoader(); var ui = loader.load('calc.ui', this); var calc = new Calculator(ui); ui.show(); exec();
import { Keys } from '@ephox/agar'; import { describe, it } from '@ephox/bedrock-client'; import { TinyAssertions, TinyContentActions, TinyHooks, TinySelections } from '@ephox/mcagar'; import Editor from 'tinymce/core/api/Editor'; import Theme from 'tinymce/themes/silver/Theme'; describe('browser.tinymce.core.keyboard.TypeTextAtCef', () => { const hook = TinyHooks.bddSetupLight<Editor>({ add_unload_trigger: false, base_url: '/project/tinymce/js/tinymce' }, [ Theme ], true); it('Type text before cef inline element', () => { const editor = hook.editor(); editor.setContent('<p><span contenteditable="false">a</span></p>'); TinySelections.select(editor, 'p', [ 1 ]); TinyContentActions.keystroke(editor, Keys.left()); TinyContentActions.type(editor, 'bc'); TinyAssertions.assertCursor(editor, [ 0, 0 ], 2); TinyAssertions.assertContent(editor, '<p>bc<span contenteditable="false">a</span></p>'); }); it('Type after cef inline element', () => { const editor = hook.editor(); editor.setContent('<p><span contenteditable="false">a</span></p>'); TinySelections.select(editor, 'p', [ 1 ]); TinyContentActions.keystroke(editor, Keys.right()); TinyContentActions.type(editor, 'bc'); TinyAssertions.assertCursor(editor, [ 0, 1 ], 3); TinyAssertions.assertContent(editor, '<p><span contenteditable="false">a</span>bc</p>'); }); it('Type between cef inline elements', () => { const editor = hook.editor(); editor.setContent('<p><span contenteditable="false">a</span>&nbsp;<span contenteditable="false">b</span></p>'); TinySelections.select(editor, 'p', [ 3 ]); TinyContentActions.keystroke(editor, Keys.left()); TinyContentActions.keystroke(editor, Keys.left()); TinyContentActions.type(editor, 'bc'); TinyAssertions.assertSelection(editor, [ 0, 1 ], 3, [ 0, 1 ], 3); TinyAssertions.assertContent(editor, '<p><span contenteditable="false">a</span>bc&nbsp;<span contenteditable="false">b</span></p>'); }); });
<?php namespace wcf\acp\form; use wcf\data\contact\option\ContactOption; use wcf\data\contact\option\ContactOptionAction; use wcf\data\contact\option\ContactOptionEditor; class <API key> extends <API key> { /** * @inheritDoc */ public $action = 'add'; /** * @inheritDoc */ public $activeMenuItem = 'wcf.acp.menu.link.contact.settings'; /** * @inheritDoc */ public $neededModules = ['MODULE_CONTACT_FORM']; /** * @inheritDoc */ public $neededPermissions = ['admin.contact.<API key>']; /** * action class name * @var string */ public $actionClass = ContactOptionAction::class; /** * base class name * @var string */ public $baseClass = ContactOption::class; /** * editor class name * @var string */ public $editorClass = ContactOptionEditor::class; /** * @inheritDoc */ public function readParameters() { parent::readParameters(); $this->getI18nValue('optionTitle')->setLanguageItem('wcf.contact.option', 'wcf.contact', 'com.woltlab.wcf'); $this->getI18nValue('optionDescription')->setLanguageItem('wcf.contact.optionDescription', 'wcf.contact', 'com.woltlab.wcf'); } }
package cern.c2mon.client.ext.history.common; import java.sql.Timestamp; import cern.c2mon.client.ext.history.common.id.HistoryUpdateId; /** * This interface is used to keep track of the data which is from the history. * It have a function to get the execution time of the update so the player will know * when to execute the update. And it also have an identifier. * * @author vdeila * */ public interface HistoryUpdate { /** * * @return the id of the update */ HistoryUpdateId getUpdateId(); /** * * @return the time of when this update should execute */ Timestamp <API key>(); }
from __future__ import absolute_import import json class JSONRenderer: """ Renders a mystery as JSON """ def render(self, mystery): return json.dumps(mystery.encode(), indent=4)
package org.sonar.maven.model; import javax.xml.bind.annotation.adapters.XmlAdapter; import javax.xml.stream.XMLStreamReader; /** * Adapter in charge of converting attributes from XML object, being String, to located attribute, * storing information related to the location of the attribute. */ public class <API key> extends XmlAdapter<String, LocatedAttribute> { private final XMLStreamReader reader; public <API key>(XMLStreamReader reader) { this.reader = reader; } @Override public LocatedAttribute unmarshal(String value) throws Exception { LocatedAttribute result = new LocatedAttribute(value); result.setEndLocation(XmlLocation.getLocation(reader.getLocation())); result.setStartLocation(XmlLocation.getStartLocation(value, reader.getLocation())); return result; } @Override public String marshal(LocatedAttribute attribute) throws Exception { return attribute.getValue(); } }
package com.silicolife.textmining.core.datastructures.dataaccess.database.dataaccess.implementation.model.core.entities; // Generated 23/Mar/2015 16:36:00 by Hibernate Tools 4.3.1 import javax.persistence.Column; import javax.persistence.Embeddable; /** * <API key> generated by hbm2java */ @Embeddable public class <API key> implements java.io.Serializable { private long cphClusterProcessId; private long cphClusterLabelId; public <API key>() { } public <API key>(long cphClusterProcessId, long cphClusterLabelId) { this.cphClusterProcessId = cphClusterProcessId; this.cphClusterLabelId = cphClusterLabelId; } @Column(name = "<API key>", nullable = false) public long <API key>() { return this.cphClusterProcessId; } public void <API key>(long cphClusterProcessId) { this.cphClusterProcessId = cphClusterProcessId; } @Column(name = "<API key>", nullable = false) public long <API key>() { return this.cphClusterLabelId; } public void <API key>(long cphClusterLabelId) { this.cphClusterLabelId = cphClusterLabelId; } public boolean equals(Object other) { if ((this == other)) return true; if ((other == null)) return false; if (!(other instanceof <API key>)) return false; <API key> castOther = (<API key>) other; return (this.<API key>() == castOther.<API key>()) && (this.<API key>() == castOther.<API key>()); } public int hashCode() { int result = 17; result = 37 * result + (int) this.<API key>(); result = 37 * result + (int) this.<API key>(); return result; } }
#include <common.h> #include <file_stream.h> #include <types.h> #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include <stdlib.h> #endif #include "<API key>.h" #include "<API key>.h" #include "sigscan_test_macros.h" #include "sigscan_test_memory.h" #include "sigscan_test_unused.h" #include "../libsigscan/<API key>.h" #if defined( __GNUC__ ) && !defined( <API key> ) /* Tests the <API key> function * Returns 1 if successful or 0 if not */ int <API key>( void ) { libcerror_error_t *error = NULL; <API key> *signature = NULL; int result = 0; #if defined( <API key> ) int <API key> = 1; int <API key> = 1; int test_number = 0; #endif /* Test regular cases */ result = <API key>( &signature, &error ); <API key>( "result", result, 1 ); <API key>( "signature", signature ); <API key>( "error", error ); result = <API key>( &signature, &error ); <API key>( "result", result, 1 ); <API key>( "signature", signature ); <API key>( "error", error ); /* Test error cases */ result = <API key>( NULL, &error ); <API key>( "result", result, -1 ); <API key>( "error", error ); <API key>( &error ); signature = (<API key> *) 0x12345678UL; result = <API key>( &signature, &error ); <API key>( "result", result, -1 ); <API key>( "error", error ); <API key>( &error ); signature = NULL; #if defined( <API key> ) for( test_number = 0; test_number < <API key>; test_number++ ) { /* Test <API key> with malloc failing */ <API key> = test_number; result = <API key>( &signature, &error ); if( <API key> != -1 ) { <API key> = -1; if( signature != NULL ) { <API key>( &signature, NULL ); } } else { <API key>( "result", result, -1 ); <API key>( "signature", signature ); <API key>( "error", error ); <API key>( &error ); } } for( test_number = 0; test_number < <API key>; test_number++ ) { /* Test <API key> with memset failing */ <API key> = test_number; result = <API key>( &signature, &error ); if( <API key> != -1 ) { <API key> = -1; if( signature != NULL ) { <API key>( &signature, NULL ); } } else { <API key>( "result", result, -1 ); <API key>( "signature", signature ); <API key>( "error", error ); <API key>( &error ); } } #endif /* defined( <API key> ) */ return( 1 ); on_error: if( error != NULL ) { <API key>( &error ); } if( signature != NULL ) { <API key>( &signature, NULL ); } return( 0 ); } /* Tests the <API key> function * Returns 1 if successful or 0 if not */ int <API key>( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = <API key>( NULL, &error ); <API key>( "result", result, -1 ); <API key>( "error", error ); <API key>( &error ); return( 1 ); on_error: if( error != NULL ) { <API key>( &error ); } return( 0 ); } /* Tests the <API key> function * Returns 1 if successful or 0 if not */ int <API key>( void ) { libcerror_error_t *error = NULL; <API key> *<API key> = NULL; <API key> *source_signature = NULL; int result = 0; /* Initialize test */ result = <API key>( &source_signature, &error ); <API key>( "result", result, 1 ); <API key>( "source_signature", source_signature ); <API key>( "error", error ); /* Test regular cases */ result = <API key>( &<API key>, source_signature, &error ); <API key>( "result", result, 1 ); <API key>( "<API key>", <API key> ); <API key>( "error", error ); /* TODO: move handling clones into the signature code */ result = <API key>( &<API key>, &error ); <API key>( "result", result, 1 ); <API key>( "<API key>", <API key> ); <API key>( "error", error ); result = <API key>( &<API key>, NULL, &error ); <API key>( "result", result, 1 ); <API key>( "<API key>", <API key> ); <API key>( "error", error ); /* Test error cases */ result = <API key>( NULL, source_signature, &error ); <API key>( "result", result, -1 ); <API key>( "error", error ); <API key>( &error ); /* Clean up */ result = <API key>( &source_signature, &error ); <API key>( "result", result, 1 ); <API key>( "source_signature", source_signature ); <API key>( "error", error ); return( 1 ); on_error: if( error != NULL ) { <API key>( &error ); } if( <API key> != NULL ) { /* TODO: move handling clones into the signature code */ <API key>( &<API key>, NULL ); } if( source_signature != NULL ) { <API key>( &source_signature, NULL ); } return( 0 ); } /* Tests the <API key> function * Returns 1 if successful or 0 if not */ int <API key>( void ) { libcerror_error_t *error = NULL; <API key> *signature = NULL; size_t identifier_size = 0; int <API key> = 0; int result = 0; /* Initialize test */ result = <API key>( &signature, &error ); <API key>( "result", result, 1 ); <API key>( "signature", signature ); <API key>( "error", error ); /* Test regular cases */ result = <API key>( signature, &identifier_size, &error ); <API key>( "result", result, -1 ); <API key>( "error", error ); <API key> = result; /* Test error cases */ result = <API key>( NULL, &identifier_size, &error ); <API key>( "result", result, -1 ); <API key>( "error", error ); <API key>( &error ); if( <API key> != 0 ) { result = <API key>( signature, NULL, &error ); <API key>( "result", result, -1 ); <API key>( "error", error ); <API key>( &error ); } /* Clean up */ result = <API key>( &signature, &error ); <API key>( "result", result, 1 ); <API key>( "signature", signature ); <API key>( "error", error ); return( 1 ); on_error: if( error != NULL ) { <API key>( &error ); } if( signature != NULL ) { <API key>( &signature, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( <API key> ) */ /* The main program */ #if defined( <API key> ) int wmain( int argc <API key>, wchar_t * const argv[] <API key> ) #else int main( int argc <API key>, char * const argv[] <API key> ) #endif { <API key>( argc ) <API key>( argv ) #if defined( __GNUC__ ) && !defined( <API key> ) SIGSCAN_TEST_RUN( "<API key>", <API key> ); SIGSCAN_TEST_RUN( "<API key>", <API key> ); /* TODO: add tests for <API key> */ SIGSCAN_TEST_RUN( "<API key>", <API key> ); SIGSCAN_TEST_RUN( "<API key>", <API key> ); /* TODO: add tests for <API key> */ /* TODO: add tests for <API key> */ #endif /* defined( __GNUC__ ) && !defined( <API key> ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); }
var namespaces = [ [ "shyft", "namespaceshyft.html", "namespaceshyft" ] ];
// Created file "Lib\src\Uuid\oledbdat" typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; } GUID; #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } DEFINE_GUID(DBROWCOL_ISROOT, 0x0c733ab6, 0x2a1c, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);
package com.csipsimple.ui.outgoingcall; import android.app.PendingIntent; import android.app.PendingIntent.CanceledException; import android.database.Cursor; import android.os.Bundle; import android.os.RemoteException; import android.support.v4.content.Loader; import android.view.View; import android.widget.ListView; import com.csipsimple.api.ISipService; import com.csipsimple.api.SipProfile; import com.csipsimple.ui.account.AccountsLoader; import com.csipsimple.utils.CallHandlerPlugin; import com.csipsimple.utils.Log; import com.csipsimple.widgets.CSSListFragment; public class <API key> extends CSSListFragment { private static final String THIS_FILE = "<API key>"; private <API key> mAdapter; private AccountsLoader accLoader; private long startDate; private boolean callMade = false; @Override public void onCreate(Bundle state) { super.onCreate(state); setHasOptionsMenu(true); } @Override public void onResume() { super.onResume(); callMade = false; attachAdapter(); getLoaderManager().initLoader(0, null, this); startDate = System.currentTimeMillis(); } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); } private void attachAdapter() { if(getListAdapter() == null) { if(mAdapter == null) { mAdapter = new <API key>(this, null); } setListAdapter(mAdapter); } } @Override public Loader<Cursor> onCreateLoader(int loader, Bundle args) { OutgoingCallChooser superActivity = ((OutgoingCallChooser) getActivity()); accLoader = new AccountsLoader(getActivity(), superActivity.getPhoneNumber(), superActivity.<API key>()); return accLoader; } final long <API key> = 600; /** * Place the call for a given cursor positionned at right index in list * @param c The cursor pointing the entry we'd like to call * @return true if call performed, false else */ private boolean placeCall(Cursor c) { OutgoingCallChooser superActivity = ((OutgoingCallChooser)getActivity()); ISipService service = superActivity.getConnectedService(); long accountId = c.getLong(c.getColumnIndex(SipProfile.FIELD_ID)); if(accountId > SipProfile.INVALID_ID) { // Extra check for the account id. if(service == null) { return false; } boolean canCall = c.getInt(c.getColumnIndex(AccountsLoader.<API key>)) == 1; if(!canCall) { return false; } try { String toCall = c.getString(c.getColumnIndex(AccountsLoader.FIELD_NBR_TO_CALL)); service.makeCall(toCall, (int) accountId); superActivity.<API key>(true); return true; } catch (RemoteException e) { Log.e(THIS_FILE, "Unable to make the call", e); } }else if(accountId < SipProfile.INVALID_ID) { // This is a plugin row. if(accLoader != null) { CallHandlerPlugin ch = accLoader.<API key>(accountId); if(ch == null) { Log.w(THIS_FILE, "Call handler not anymore available in loader... something gone wrong"); return false; } String nextExclude = ch.<API key>(); long delay = 0; if (nextExclude != null && service != null) { try { service.<API key>(nextExclude); } catch (RemoteException e) { Log.e(THIS_FILE, "Ignore next outgoing number failed"); } delay = <API key> - (System.currentTimeMillis() - startDate); } if(ch.getIntent() != null) { PluginCallRunnable pendingTask = new PluginCallRunnable(ch.getIntent(), delay); Log.d(THIS_FILE, "Deferring call task of " + delay); pendingTask.start(); } return true; } } return false; } private class PluginCallRunnable extends Thread { private PendingIntent pendingIntent; private long delay; public PluginCallRunnable(PendingIntent pi, long d) { pendingIntent = pi; delay = d; } @Override public void run() { if(delay > 0) { try { sleep(delay); } catch (<API key> e) { Log.e(THIS_FILE, "Thread that fires outgoing call has been interrupted"); } } OutgoingCallChooser superActivity = ((OutgoingCallChooser)getActivity()); try { pendingIntent.send(); } catch (CanceledException e) { Log.e(THIS_FILE, "Pending intent cancelled", e); } superActivity.<API key>(false); } } @Override public synchronized void changeCursor(Cursor c) { if(c != null && callMade == false) { OutgoingCallChooser superActivity = ((OutgoingCallChooser)getActivity()); Long accountToCall = superActivity.getAccountToCallTo(); // Move to first to search in this cursor c.moveToFirst(); // First of all, if only one is available... try call with it if(c.getCount() == 1) { if(placeCall(c)) { c.close(); callMade = true; return; } }else { // Now lets search for one in for call mode if service is ready do { if(c.getInt(c.getColumnIndex(AccountsLoader.FIELD_FORCE_CALL)) == 1) { if(placeCall(c)) { c.close(); callMade = true; return; } } if(accountToCall != SipProfile.INVALID_ID) { if(accountToCall == c.getLong(c.getColumnIndex(SipProfile.FIELD_ID))) { if(placeCall(c)) { c.close(); callMade = true; return; } } } } while(c.moveToNext()); } } // Set adapter content if nothing to force was found if(mAdapter != null) { mAdapter.changeCursor(c); } } @Override public synchronized void onListItemClick(ListView l, View v, int position, long id) { if(mAdapter != null) { placeCall((Cursor) mAdapter.getItem(position)); } } public AccountsLoader getAccountLoader() { return accLoader; } }
package fun.guruqu.portal.structures; public class BlockStructure { /** * @param args */ public static void main(String[] args) { } }
// a) the Lesser General Public Licence v3 (LGPL) // Allors Platform is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the namespace Allors.Adapters.Object.SqlClient.ReadCommitted { using System; using System.Collections.Generic; using Allors.Meta; using Adapters; using Allors.Adapters.Object.SqlClient.Caching.Debugging; using Allors.Adapters.Object.SqlClient.Debug; public class Profile : SqlClient.Profile { private readonly Prefetchers prefetchers = new Prefetchers(); private readonly <API key> connectionFactory; private readonly DebugCacheFactory cacheFactory; public Profile() { } public Profile(<API key> connectionFactory, DebugCacheFactory cacheFactory) { this.connectionFactory = connectionFactory; this.cacheFactory = cacheFactory; } public override Action[] Markers { get { var markers = new List<Action> { () => { }, () => this.Session.Commit(), }; if (Settings.ExtraMarkers) { markers.Add( () => { foreach (var @class in this.Session.Database.MetaPopulation.Classes) { var prefetchPolicy = this.prefetchers[@class]; this.Session.Prefetch(prefetchPolicy, this.Session.Extent(@class)); } }); } return markers.ToArray(); } } protected override string ConnectionString => System.Configuration.<API key>.ConnectionStrings["sqlclientobject"].ConnectionString; public IDatabase CreateDatabase(IMetaPopulation metaPopulation, bool init) { var configuration = new SqlClient.Configuration { ObjectFactory = this.CreateObjectFactory(metaPopulation), ConnectionString = this.ConnectionString, ConnectionFactory = this.connectionFactory, CacheFactory = this.cacheFactory }; var database = new Database(configuration); if (init) { database.Init(); } return database; } public override IDatabase CreatePopulation() { return new Memory.Database(new Memory.Configuration { ObjectFactory = this.ObjectFactory }); } public override IDatabase CreateDatabase() { var configuration = new SqlClient.Configuration { ObjectFactory = this.ObjectFactory, ConnectionString = this.ConnectionString, ConnectionFactory = this.connectionFactory, CacheFactory = this.cacheFactory }; var database = new Database(configuration); return database; } protected override bool Match(ColumnTypes columnType, string dataType) { dataType = dataType.Trim().ToLowerInvariant(); switch (columnType) { case ColumnTypes.ObjectId: return dataType.Equals("int"); case ColumnTypes.TypeId: return dataType.Equals("uniqueidentifier"); case ColumnTypes.CacheId: return dataType.Equals("int"); case ColumnTypes.Binary: return dataType.Equals("varbinary"); case ColumnTypes.Boolean: return dataType.Equals("bit"); case ColumnTypes.Decimal: return dataType.Equals("decimal"); case ColumnTypes.Float: return dataType.Equals("float"); case ColumnTypes.Integer: return dataType.Equals("int"); case ColumnTypes.String: return dataType.Equals("nvarchar"); case ColumnTypes.Unique: return dataType.Equals("uniqueidentifier"); default: throw new Exception("Unsupported columntype " + columnType); } } } }
#ifndef <API key> #define <API key> #include "chimerequest.h" namespace QtAws { namespace Chime { class <API key>; class QTAWSCHIME_EXPORT <API key> : public ChimeRequest { public: <API key>(const <API key> &other); <API key>(); virtual bool isValid() const Q_DECL_OVERRIDE; protected: virtual QtAws::Core::AwsAbstractResponse * response(QNetworkReply * const reply) const Q_DECL_OVERRIDE; private: Q_DECLARE_PRIVATE(<API key>) }; } // namespace Chime } // namespace QtAws #endif
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace <API key> { class LUDenceMatrix:MathNet.Numerics.LinearAlgebra.Double.Factorization.LU { MathNet.Numerics.LinearAlgebra.Double.DenseMatrix dm { get; set; } } }
#include <QEventLoop> #include <QtCore/QDebug> #include <QtNetwork/QTcpSocket> #include "abstracthub_p.h" #include "serverhub.h" #include "serverhub_p.h" <API key> ServerHubPrivate::ServerHubPrivate() : serverThread(nullptr), connectionEventLoop(nullptr) { } ServerHub::ServerHub(QObject *parent) : AbstractHub(parent), d(new ServerHubPrivate) { } ServerHub::ServerHub(AbstractSerializer *serializer, QObject *parent) : AbstractHub(serializer, parent), d(new ServerHubPrivate) { } ServerHub::ServerHub(QTcpSocket *socket, QObject *parent) : AbstractHub(parent), d(new ServerHubPrivate) { this->socket = socket; } ServerHub::~ServerHub() { // QList<SharedObject *> soList = sharedObjects(); // foreach (SharedObject *so, soList) { // if(so) // removeSharedObject(so); // while(sharedObjects().count()){ // removeSharedObject(sharedObjects().at(0)); auto so = sharedObjectHash(); QHashIterator<const QString, SharedObject*> i(so); while (i.hasNext()) { i.next(); // cout << i.key() << ": " << i.value() << endl; detachSharedObject(i.value()); } } ServerThread *ServerHub::serverThread() const { return d->serverThread; } qlonglong ServerHub::hi(qlonglong hubId) { initalizeMutex.lock(); setHubId(hubId); // emit connected(); K_TRACE_DEBUG; // invokeOnPeer(THIS_HUB, "hi", hubId); if (d->connectionEventLoop) { d->connectionEventLoop->quit(); d->connectionEventLoop->deleteLater(); } initalizeMutex.unlock(); setStatus(Connected); return this->hubId(); } bool ServerHub::setSocketDescriptor(qintptr socketDescriptor, bool waitForConnect) { bool ok = socket->setSocketDescriptor(socketDescriptor); if(waitForConnect) socket->waitForReadyRead(); return ok; } void ServerHub::setServerThread(ServerThread *serverThread) { if(d->serverThread != serverThread) d->serverThread = serverThread; } void ServerHub::beginConnection() { K_TRACE_DEBUG; d->connectionEventLoop = new QEventLoop; K_REG_OBJECT(d->connectionEventLoop); d->connectionEventLoop->exec(); } <API key>
package com.sirma.itt.seip.rest.handlers.readers; import static com.sirma.itt.seip.rest.utils.request.params.RequestParams.PATH_ID; import java.io.IOException; import java.io.InputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import javax.inject.Inject; import javax.ws.rs.BeanParam; import javax.ws.rs.Consumes; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.ext.MessageBodyReader; import javax.ws.rs.ext.Provider; import com.sirma.itt.seip.domain.instance.Instance; import com.sirma.itt.seip.rest.exceptions.BadRequestException; import com.sirma.itt.seip.rest.resources.instances.<API key>; import com.sirma.itt.seip.rest.utils.JSON; import com.sirma.itt.seip.rest.utils.Versions; import com.sirma.itt.seip.rest.utils.request.RequestInfo; /** * Converts a JSON object to {@link Instance}. * * @author yasko */ @Provider @Consumes(Versions.V2_JSON) public class InstanceBodyReader implements MessageBodyReader<Instance> { @Inject private <API key> <API key>; @BeanParam private RequestInfo request; @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return Instance.class.isAssignableFrom(type); } @Override public Instance readFrom(Class<Instance> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> headers, InputStream stream) throws IOException { String id = PATH_ID.get(request); Instance instance = JSON.readObject(stream, <API key>.toSingleInstance(id)); if (instance != null) { return instance; } throw new BadRequestException("There was a problem with the stream reading or instance resolving."); } }
<?php namespace Web; use BusinessLogic\Configuration\Configuration; use BusinessLogic\Configuration\ConfigurationBook; /* @var $this Settings */ ?> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <span id="page-title"> Settings </span> <div class="btn-group" role="group" id="top-toolbar"></div> <div id="content"> <div id="SubContainer"> <form method="post" class="form-horizontal"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Google</h3> </div> <div class="panel-body"> <div class="form-group"> <label class="col-sm-2 control-label">Client ID:</label> <div class="col-sm-10"> <input type="text" name="<?php echo Configuration::GOOGLE_CLIENT_ID ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::GOOGLE_CLIENT_ID ) ?>" placeholder="" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Secret ID:</label> <div class="col-sm-10"> <input type="text" name="<?php echo Configuration::<API key> ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::<API key> ) ?>" placeholder="" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Redirect URL:</label> <div class="col-sm-10"> <input type="text" name="<?php echo Configuration::GOOGLE_REDIRECT_URL ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::GOOGLE_REDIRECT_URL ) ?>" placeholder="" /> </div> </div> </div> </div> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Send notification handler</h3> </div> <div class="panel-body"> <div class="form-group"> <label class="col-sm-2 control-label">Username:</label> <div class="col-sm-10"> <input type="text" name="<?php echo Configuration::SCRIPT_USERNAME ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::SCRIPT_USERNAME ) ?>" placeholder="" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Password:</label> <div class="col-sm-10"> <input type="text" name="<?php echo Configuration::SCRIPT_PASSWORD ?>" class="form-control" value="<?php echo ConfigurationBook::getValue( Configuration::SCRIPT_PASSWORD ) ?>" placeholder="" /> </div> </div> </div> </div> <div class="pull-right"> <button type="submit" class="btn btn-primary"> <!--<span class="glyphicon glyphicon-search"></span>--> Save </button> </div> </form> </div> </div>
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Linux IRC-Bot: mybotv3.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Linux IRC-Bot </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.6.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> <li><a href="globals.html"><span>File&#160;Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#define-members">Defines</a> &#124; <a href="#func-members">Functions</a> &#124; <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">mybotv3.c File Reference</div> </div> </div><!--header <div class="contents"> <div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/> <code>#include &lt;stdarg.h&gt;</code><br/> <code>#include &lt;string.h&gt;</code><br/> <code>#include &lt;stdlib.h&gt;</code><br/> <code>#include &quot;libircclient.h&quot;</code><br/> <code>#include &quot;<a class="el" href="callbk_8h_source.html">callbk.h</a>&quot;</code><br/> <code>#include &lt;dlfcn.h&gt;</code><br/> <code>#include &lt;unistd.h&gt;</code><br/> <code>#include &lt;sys/types.h&gt;</code><br/> <code>#include &lt;sys/stat.h&gt;</code><br/> <code>#include &quot;<a class="el" href="daemon_8h_source.html">daemon.h</a>&quot;</code><br/> </div><table class="memberdecls"> <tr><td colspan="2"><h2><a name="define-members"></a> Defines</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#<API key>">DB_FILE</a>&#160;&#160;&#160;&quot;test.db&quot;</td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#<API key>">main</a> (int argc, char **argv)</td></tr> <tr><td colspan="2"><h2><a name="var-members"></a> Variables</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#<API key>">mylib_handle</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">sqlite3 *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#<API key>">dbhandle</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mybotv3_8c.html#<API key>">create_table</a> )()</td></tr> </table> <hr/><h2>Define Documentation</h2> <a class="anchor" id="<API key>"></a><!-- doxytag: member="mybotv3.c::DB_FILE" ref="<API key>" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define <a class="el" href="mybotv3_8c.html#<API key>">DB_FILE</a>&#160;&#160;&#160;&quot;test.db&quot;</td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Function Documentation</h2> <a class="anchor" id="<API key>"></a><!-- doxytag: member="mybotv3.c::main" ref="<API key>" args="(int argc, char **argv)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="mybotv3_8c.html#<API key>">main</a> </td> <td>(</td> <td class="paramtype">int&#160;</td> <td class="paramname"><em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char **&#160;</td> <td class="paramname"><em>argv</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Main Funktion</p> <p>Verweist die IRC Events auf die jeweiligen Funktionen. Nimmt die Benutzereingabe entgegen. Startet Endlossschleife.</p> <dl class="params"><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">argv[1]</td><td>irc server </td></tr> <tr><td class="paramname">argv[2]</td><td>nickname </td></tr> <tr><td class="paramname">argv[3]</td><td>channel </td></tr> <tr><td class="paramname">argv[4]</td><td>logging-Plugins </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Variable Documentation</h2> <a class="anchor" id="<API key>"></a><!-- doxytag: member="mybotv3.c::create_table" ref="<API key>" args=")()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void(* <a class="el" href="dbase_8h.html#<API key>">create_table</a>)()</td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="<API key>"></a><!-- doxytag: member="mybotv3.c::dbhandle" ref="<API key>" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">sqlite3* <a class="el" href="mybotv3_8c.html#<API key>">dbhandle</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="<API key>"></a><!-- doxytag: member="mybotv3.c::mylib_handle" ref="<API key>" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* <a class="el" href="mybotv3_8c.html#<API key>">mylib_handle</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> </div><!-- contents --> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="<API key>"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address class="footer"><small> Generated on Mon Jun 25 2012 19:38:45 for Linux IRC-Bot by & <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.7.6.1 </small></address> </body> </html>
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>Core3: <API key> Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Core3 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> &#124; <a href="<API key>.html">List of all members</a> </div> <div class="headertitle"> <div class="title"><API key> Class Reference</div> </div> </div><!--header <div class="contents"> <p><code>#include &lt;<a class="el" href="<API key>.html"><API key>.h</a>&gt;</code></p> <div class="dynheader"> Inheritance diagram for <API key>:</div> <div class="dyncontent"> <div class="center"> <img src="<API key>.png" usemap="#<API key>" alt=""/> <map id="<API key>" name="<API key>"> <area href="<API key>.html" alt="CombatQueueCommand" shape="rect" coords="178,112,524,136"/> <area href="<API key>.html" alt="server::zone::objects::creature::commands::QueueCommand" shape="rect" coords="178,56,524,80"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (const String &amp;<a class="el" href="<API key>.html#<API key>">name</a>, <a class="el" href="<API key>.html">ZoneProcessServer</a> *<a class="el" href="<API key>.html#<API key>">server</a>)</td></tr> <tr class="separator:<API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">doQueueCommand</a> (<a class="el" href="<API key>.html">CreatureObject</a> *creature, const uint64 &amp;target, const UnicodeString &amp;arguments)</td></tr> <tr class="separator:<API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="<API key>.html">CombatQueueCommand</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">CombatQueueCommand</a> (const String &amp;<a class="el" href="<API key>.html#<API key>">name</a>, <a class="el" href="<API key>.html">ZoneProcessServer</a> *<a class="el" href="<API key>.html#<API key>">server</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">doCombatAction</a> (<a class="el" href="<API key>.html">CreatureObject</a> *creature, const uint64 &amp;target, const UnicodeString &amp;arguments=&quot;&quot;, ManagedReference&lt; <a class="el" href="<API key>.html">WeaponObject</a> * &gt; weapon=NULL)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getCommandDuration</a> (<a class="el" href="<API key>.html">CreatureObject</a> *object, const UnicodeString &amp;arguments)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDotDuration</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDotType</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDotPool</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDotStrength</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDotPotency</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getRange</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getAccuracySkillMod</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getBlindChance</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDamageMultiplier</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getAccuracyBonus</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDizzyChance</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getIntimidateChance</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getKnockdownChance</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getPostureUpChance</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getSpeedMultiplier</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getSpeed</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getStunChance</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">isAreaAction</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">isConeAction</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">isDotDamageOfHit</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getConeAngle</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getAreaRange</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getForceCost</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setBlindStateChance</a> (int <a class="el" href="<API key>.html#<API key>">blindStateChance</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDamageMultiplier</a> (float <a class="el" href="<API key>.html#<API key>">damageMultiplier</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAccuracyBonus</a> (int <a class="el" href="<API key>.html#<API key>">accuracyBonus</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (float f)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (float f)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (float f)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (float f)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setForceCost</a> (float f)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDizzyStateChance</a> (int <a class="el" href="<API key>.html#<API key>">dizzyStateChance</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (int <a class="el" href="<API key>.html#<API key>"><API key></a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (int <a class="el" href="<API key>.html#<API key>"><API key></a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (int <a class="el" href="<API key>.html#<API key>"><API key></a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (int <a class="el" href="<API key>.html#<API key>"><API key></a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (int i)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (int i)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDotDuration</a> (uint32 i)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDotType</a> (uint64 l)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDotPool</a> (uint8 c)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDotStrength</a> (uint32 i)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDotPotency</a> (float f)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setConeAngle</a> (int i)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDotDamageOfHit</a> (bool b)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAreaAction</a> (bool b)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setConeAction</a> (bool b)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAreaRange</a> (int i)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setEffectString</a> (String s)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setSpeedMultiplier</a> (float <a class="el" href="<API key>.html#<API key>">speedMultiplier</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setSpeed</a> (float speedd)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setStunStateChance</a> (int <a class="el" href="<API key>.html#<API key>">stunStateChance</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getAnimationCRC</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getEffectString</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getCombatSpam</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getPoolsToDamage</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">VectorMap&lt; uint64, <a class="el" href="class_state_effect.html">StateEffect</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getStateEffects</a> ()</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">VectorMap&lt; uint64, <a class="el" href="class_dot_effect.html">DotEffect</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDotEffects</a> ()</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAnimationCRC</a> (uint32 <a class="el" href="<API key>.html#<API key>">animationCRC</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setCombatSpam</a> (String <a class="el" href="<API key>.html#<API key>">combatSpam</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setPoolsToDamage</a> (int <a class="el" href="<API key>.html#<API key>">poolsToDamage</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setStateEffects</a> (VectorMap&lt; uint64, <a class="el" href="class_state_effect.html">StateEffect</a> &gt; <a class="el" href="<API key>.html#<API key>">stateEffects</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">addStateEffect</a> (<a class="el" href="class_state_effect.html">StateEffect</a> stateEffect)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_effect.html">StateEffect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getStateEffect</a> (uint64 type)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDotEffects</a> (VectorMap&lt; uint64, <a class="el" href="class_dot_effect.html">DotEffect</a> &gt; <a class="el" href="<API key>.html#<API key>">dotEffects</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDamage</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDamage</a> (float dm)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">addDotEffect</a> (<a class="el" href="class_dot_effect.html">DotEffect</a> dotEffect)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_dot_effect.html">DotEffect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDotEffect</a> (uint64 type)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setRange</a> (int i)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAccuracySkillMod</a> (String acc)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">hasCombatSpam</a> ()</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">isCombatCommand</a> ()</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> ()</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">applyEffect</a> (<a class="el" href="<API key>.html">CreatureObject</a> *creature, uint8 effectType, uint32 mod)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getAttackType</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAttackType</a> (uint8 <a class="el" href="<API key>.html#<API key>">attackType</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getTrails</a> () const </td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setTrails</a> (uint8 <a class="el" href="<API key>.html#<API key>">trails</a>)</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="<API key>.html">server::zone::objects::creature::commands::QueueCommand</a></td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">QueueCommand</a> (const String &amp;skillname, <a class="el" href="<API key>.html">ZoneProcessServer</a> *serv)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">~QueueCommand</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (<a class="el" href="<API key>.html">CreatureObject</a> *creature)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">onStateFail</a> (<a class="el" href="<API key>.html">CreatureObject</a> *creature, uint32 actioncntr)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">onLocomotionFail</a> (<a class="el" href="<API key>.html">CreatureObject</a> *creature, uint32 actioncntr)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getSyntax</a> () const </td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">onFail</a> (uint32 actioncntr, <a class="el" href="<API key>.html">CreatureObject</a> *creature, uint32 errorNumber)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">onComplete</a> (uint32 actioncntr, <a class="el" href="<API key>.html">CreatureObject</a> *creature, float commandDuration)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (const String &amp;lStr)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> (int l)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">checkStateMask</a> (<a class="el" href="<API key>.html">CreatureObject</a> *creature)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setStateMask</a> (uint64 mask)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDefaultTime</a> (float time)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setTargetType</a> (int num)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDisabled</a> (bool state)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDisabled</a> (int state)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAddToCombatQueue</a> (bool state)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setAddToCombatQueue</a> (int state)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setCommandGroup</a> (int val)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setMaxRange</a> (float r)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setCharacterAbility</a> (const String &amp;ability)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDefaultPriority</a> (const String &amp;priority)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">setDefaultPriority</a> (const int priority)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">uint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getStateMask</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">requiresAdmin</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getTargetType</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getNameCRC</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getMaxRange</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">String &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getQueueCommandName</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">String &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getCharacterAbility</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDefaultTime</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getDefaultPriority</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">isDisabled</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">addToCombatQueue</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getSkillModSize</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getSkillMod</a> (int index, String &amp;skillMod)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">getCommandGroup</a> ()</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">addSkillMod</a> (const String &amp;skillMod, const int value)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">isWearingArmor</a> (<a class="el" href="<API key>.html">CreatureObject</a> *creo)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">handleBuff</a> (<a class="el" href="<API key>.html">SceneObject</a> *creature, ManagedObject *object, int64 param)</td></tr> <tr class="separator:<API key> inherit pub_methods_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td colspan="2" onclick="javascript:toggleInherit('pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command')"><img src="closed.png" alt="-"/>&#160;Static Public Attributes inherited from <a class="el" href="<API key>.html">server::zone::objects::creature::commands::QueueCommand</a></td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">IMMEDIATE</a> = 0</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">FRONT</a> = 1</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">NORMAL</a> = 2</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">SUCCESS</a> = 0</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">GENERALERROR</a> = 1</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">INVALIDLOCOMOTION</a> = 2</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">INVALIDSTATE</a> = 3</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">INVALIDTARGET</a> = 4</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">INVALIDWEAPON</a> = 5</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">TOOFAR</a> = 6</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">INSUFFICIENTHAM</a> = 7</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">INVALIDPARAMETERS</a> = 8</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">NOPRONE</a> = 9</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">NOKNEELING</a> = 10</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a> = 11</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">NOJEDIARMOR</a> = 12</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">INVALIDSYNTAX</a> = 13</td></tr> <tr class="separator:<API key> inherit pub_static_attribs_classserver_1_1zone_1_1objects_1_1creature_1_1commands_1_1_queue_command"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="<API key>.html">CombatQueueCommand</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">damage</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">damageMultiplier</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">accuracyBonus</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">speedMultiplier</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">speed</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">poolsToDamage</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">mindCostMultiplier</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">forceCostMultiplier</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">forceCost</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dizzyStateChance</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">blindStateChance</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">stunStateChance</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">durationStateTime</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dotDuration</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dotType</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dotPool</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dotStrength</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dotPotency</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dotDamageOfHit</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">range</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">accuracySkillMod</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">areaAction</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">coneAction</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">coneAngle</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">areaRange</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">combatSpam</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">stateSpam</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">animationCRC</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">effectString</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">VectorMap&lt; uint64, <a class="el" href="class_state_effect.html">StateEffect</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">stateEffects</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">VectorMap&lt; uint64, <a class="el" href="class_dot_effect.html">DotEffect</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">dotEffects</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">attackType</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">trails</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"> <p>Definition at line <a class="el" href="<API key>.html#l00051">51</a> of file <a class="el" href="<API key>.html"><API key>.h</a>.</p> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2> <a class="anchor" id="<API key>"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><API key>::<API key> </td> <td>(</td> <td class="paramtype">const String &amp;&#160;</td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="<API key>.html">ZoneProcessServer</a> *&#160;</td> <td class="paramname"><em>server</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Definition at line <a class="el" href="<API key>.html#l00054">54</a> of file <a class="el" href="<API key>.html"><API key>.h</a>.</p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="<API key>"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">int <API key>::doQueueCommand </td> <td>(</td> <td class="paramtype"><a class="el" href="<API key>.html">CreatureObject</a> *&#160;</td> <td class="paramname"><em>creature</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const uint64 &amp;&#160;</td> <td class="paramname"><em>target</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const UnicodeString &amp;&#160;</td> <td class="paramname"><em>arguments</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Reimplemented from <a class="el" href="<API key>.html#<API key>">server::zone::objects::creature::commands::QueueCommand</a>.</p> <p>Definition at line <a class="el" href="<API key>.html#l00058">58</a> of file <a class="el" href="<API key>.html"><API key>.h</a>.</p> <p>References <a class="el" href="<API key>.html#l00060">server::zone::objects::creature::commands::QueueCommand::<API key>()</a>, <a class="el" href="<API key>.html#l00170">server::zone::objects::creature::commands::QueueCommand::checkStateMask()</a>, <a class="el" href="<API key>.html#l00134">CombatQueueCommand::doCombatAction()</a>, <a class="el" href="<API key>.html#l03038">server::zone::objects::creature::CreatureObject::getWeapon()</a>, <a class="el" href="<API key>.html#l00105">server::zone::objects::creature::commands::QueueCommand::INVALIDLOCOMOTION</a>, <a class="el" href="<API key>.html#l00106">server::zone::objects::creature::commands::QueueCommand::INVALIDSTATE</a>, and <a class="el" href="<API key>.html#l00108">server::zone::objects::creature::commands::QueueCommand::INVALIDWEAPON</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>/Users/victor/git/Core3Mda/MMOCoreORB/src/server/zone/objects/creature/commands/<a class="el" href="<API key>.html"><API key>.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Oct 15 2013 17:29:32 for Core3 by & <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.3.1 </small></address> </body> </html>
#ifndef <API key> #define <API key> #include "pricingresponse.h" #include "<API key>.h" namespace QtAws { namespace Pricing { class <API key>; class QTAWSPRICING_EXPORT <API key> : public PricingResponse { Q_OBJECT public: <API key>(const <API key> &request, QNetworkReply * const reply, QObject * const parent = 0); virtual const <API key> * request() const Q_DECL_OVERRIDE; protected slots: virtual void parseSuccess(QIODevice &response) Q_DECL_OVERRIDE; private: Q_DECLARE_PRIVATE(<API key>) Q_DISABLE_COPY(<API key>) }; } // namespace Pricing } // namespace QtAws #endif
package com.qagwaai.starmalaccamax.client.service.action; import java.util.ArrayList; import com.google.gwt.user.client.rpc.IsSerializable; import com.qagwaai.starmalaccamax.shared.model.JobDTO; /** * @author pgirard * */ public final class GetAllJobsResponse extends AbstractResponse implements IsSerializable { private ArrayList<JobDTO> jobs; private int totalJobs; /** * @return the users */ public ArrayList<JobDTO> getJobs() { return jobs; } /** * @return the totalJobs */ public int getTotalJobs() { return totalJobs; } /** * @param jobs * the users to set */ public void setJobs(final ArrayList<JobDTO> jobs) { this.jobs = jobs; } /** * @param totalJobs * the totalJobs to set */ public void setTotalJobs(final int totalJobs) { this.totalJobs = totalJobs; } /** * {@inheritDoc} */ @Override public String toString() { return "GetAllJobsResponse [jobs=" + jobs + ", totalJobs=" + totalJobs + "]"; } }
angular.module('StatisticsApp.treeMultiSelector.controller', []) .controller('<API key>', ['$scope', '$uibModal', function($scope, $uibModal) { 'use strict'; $scope.openDialogClicked = function() { if (angular.isFunction($scope.onOpen)) { $scope.onOpen(); } var modalInstance = $uibModal.open({ animation: false, templateUrl: '/app/shared/treemultiselector/modal/modal.html', controller: '<API key>', windowTopClass: 'tree-multi-selector', size: 'lg', backdrop: 'true', resolve: { directiveScope: $scope } }); modalInstance.result.then(function() { $scope.doneClicked(); }, function() { }); }; }]);
/* lwIP includes. */ #include "lwip/debug.h" #include "lwip/def.h" #include "lwip/sys.h" #include "lwip/mem.h" #include "lwip/stats.h" #include "os_common.h" #include "os_supervise.h" #include "os_debug.h" #include "os_mailbox.h" static u16_t s_nextthread = 0; // Creates an empty mailbox. err_t sys_mbox_new(sys_mbox_t *mbox, int size) { OS_QueueConfig que_cfg = { .len = <API key>, .item_size = sizeof(OS_Message*) //sizeof(void*) }; (void)size; IF_STATUS(OS_QueueCreate(&que_cfg, OS_TaskGet(), mbox)) { return ERR_MEM; } #if SYS_STATS ++lwip_stats.sys.mbox.used; if (lwip_stats.sys.mbox.max < lwip_stats.sys.mbox.used) { lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used; } #endif /* SYS_STATS */ if (NULL == *mbox) { return ERR_MEM; } return ERR_OK; } /* Deallocates a mailbox. If there are messages still present in the mailbox when the mailbox is deallocated, it is an indication of a programming error in lwIP and the developer should be notified. */ void sys_mbox_free(sys_mbox_t *mbox) { if (<API key>(*mbox)) { /* Line for breakpoint. Should never break here! */ portNOP(); #if SYS_STATS lwip_stats.sys.mbox.err++; #endif /* SYS_STATS */ // TODO notify the user of failure. OS_ASSERT(OS_FALSE); } OS_QueueDelete(*mbox); #if SYS_STATS --lwip_stats.sys.mbox.used; #endif /* SYS_STATS */ } // Posts the "msg" to the mailbox. void sys_mbox_post(sys_mbox_t *mbox, void *data) { OS_MessageSend(*mbox, (const OS_Message*)data, OS_BLOCK, OS_MSG_PRIO_NORMAL); } // Try to post the "msg" to the mailbox. err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg) { err_t result; IF_OK(OS_MessageSend(*mbox, (const OS_Message*)msg, OS_NO_BLOCK, OS_MSG_PRIO_NORMAL)) { result = ERR_OK; } else { // could not post, queue must be full result = ERR_MEM; #if SYS_STATS lwip_stats.sys.mbox.err++; #endif /* SYS_STATS */ } return result; } /* Blocks the thread until a message arrives in the mailbox, but does not block the thread longer than "timeout" milliseconds (similar to the sys_arch_sem_wait() function). The "msg" argument is a result parameter that is set by the function (i.e., by doing "*msg = ptr"). The "msg" parameter maybe NULL to indicate that the message should be dropped. The return values are the same as for the sys_arch_sem_wait() function: Number of milliseconds spent waiting or SYS_ARCH_TIMEOUT if there was a timeout. Note that a function with a similar name, sys_mbox_fetch(), is implemented by lwIP. */ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) { void *dummyptr; OS_Tick StartTime, EndTime, Elapsed; StartTime = OS_TickCountGet(); if (NULL == msg) { msg = &dummyptr; } if (0 != timeout) { IF_OK(OS_MessageReceive(*mbox, (OS_Message**)&(*msg), timeout)) { EndTime = OS_TickCountGet(); Elapsed = OS_TICKS_TO_MS(EndTime - StartTime); return (Elapsed); } else { // timed out blocking for message *msg = NULL; return SYS_ARCH_TIMEOUT; } } else { // block forever for a message. OS_MessageReceive(*mbox, (OS_Message**)&(*msg), OS_BLOCK); // time is arbitrary EndTime = OS_TickCountGet(); Elapsed = OS_TICKS_TO_MS(EndTime - StartTime); return (Elapsed); // return time blocked TODO test } } /* Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll return with SYS_MBOX_EMPTY. On success, 0 is returned. */ u32_t <API key>(sys_mbox_t *mbox, void **msg) { void *dummyptr; if (NULL == msg) { msg = &dummyptr; } IF_OK(OS_MessageReceive(*mbox, (OS_Message**)&(*msg), OS_NO_BLOCK)) { return ERR_OK; } else { return SYS_MBOX_EMPTY; } } int sys_mbox_valid(sys_mbox_t *mbox) { if (OS_NULL == *mbox) { return 0; } return 1; } void <API key>(sys_mbox_t *mbox) { *mbox = SYS_MBOX_NULL; } * / Creates a new semaphore. The "count" argument specifies / the initial state of the semaphore. //err_t sys_sem_new(sys_sem_t *sem, u8_t count) // *sem = <API key>(count, 0); // if(!*sem) { //#if SYS_STATS // ++lwip_stats.sys.sem.err; //#endif /* SYS_STATS */ // return ERR_MEM; // if (!count) { // Means it can't be taken // OS_SemaphoreLock(*sem, OS_NO_BLOCK); //#if SYS_STATS // ++lwip_stats.sys.sem.used; // if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) { // lwip_stats.sys.sem.max = lwip_stats.sys.sem.used; //#endif /* SYS_STATS */ // return ERR_OK; * * // Blocks the thread while waiting for the semaphore to be // signaled. If the "timeout" argument is non-zero, the thread should // only be blocked for the specified time (measured in // milliseconds). // If the timeout argument is non-zero, the return value is the number of // milliseconds spent waiting for the semaphore to be signaled. If the // semaphore wasn't signaled within the specified time, the return value is // SYS_ARCH_TIMEOUT. If the thread didn't have to wait for the semaphore // (i.e., it was already signaled), the function may return zero. // Notice that lwIP implements a function with a similar name, // sys_sem_wait(), that uses the sys_arch_sem_wait() function. //*/ //u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) //OS_Tick StartTime, EndTime, Elapsed; // StartTime = OS_TickCountGet(); // if (timeout) { // IF_OK(OS_SemaphoreLock(*sem, timeout)) { // EndTime = OS_TickCountGet(); // Elapsed = OS_TICKS_TO_MS(EndTime - StartTime); // return (Elapsed); // return time blocked TODO test // } else { // return SYS_ARCH_TIMEOUT; // } else { // must block without a timeout // OS_SemaphoreLock(*sem, OS_BLOCK); // EndTime = OS_TickCountGet(); // Elapsed = OS_TICKS_TO_MS(EndTime - StartTime); // return (Elapsed); // return time blocked * / Signals a semaphore //void sys_sem_signal(sys_sem_t *sem) // OS_SemaphoreUnlock(*sem); * / Deallocates a semaphore //void sys_sem_free(sys_sem_t *sem) //#if SYS_STATS // --lwip_stats.sys.sem.used; //#endif /* SYS_STATS */ // OS_SemaphoreDelete(*sem); * //int sys_sem_valid(sys_sem_t *sem) // if (SYS_SEM_NULL == *sem) { // return 0; // return 1; * //void sys_sem_set_invalid(sys_sem_t *sem) // *sem = SYS_SEM_NULL; // Initialize sys arch void sys_init(void) { // keep track of how many threads have been created s_nextthread = 0; } /* Mutexes*/ #if LWIP_COMPAT_MUTEX == 0 /* Create a new mutex*/ err_t sys_mutex_new(sys_mutex_t *mutex) { *mutex = OS_MutexCreate(); if (*mutex == NULL) { #if SYS_STATS ++lwip_stats.sys.mutex.err; #endif /* SYS_STATS */ return ERR_MEM; } #if SYS_STATS ++lwip_stats.sys.mutex.used; if (lwip_stats.sys.mutex.max < lwip_stats.sys.mutex.used) { lwip_stats.sys.mutex.max = lwip_stats.sys.mutex.used; } #endif /* SYS_STATS */ return ERR_OK; } /* Deallocate a mutex*/ void sys_mutex_free(sys_mutex_t *mutex) { #if SYS_STATS --lwip_stats.sys.mutex.used; #endif /* SYS_STATS */ OS_MutexDelete(*mutex); } /* Lock a mutex*/ void sys_mutex_lock(sys_mutex_t *mutex) { OS_MutexLock(*mutex, OS_BLOCK); } /* Unlock a mutex*/ void sys_mutex_unlock(sys_mutex_t *mutex) { OS_MutexUnlock(*mutex); } #endif /*LWIP_COMPAT_MUTEX*/ // TODO /* Starts a new thread with priority "prio" that will begin its execution in the function "thread()". The "arg" argument will be passed as an argument to the thread() function. The id of the new thread is returned. Both the id and the priority are system dependent. */ sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread , void *arg, int stacksize, int prio) { OS_TaskHd CreatedTask = OS_NULL; if (s_nextthread < <API key>) { OS_TaskConfig* task_lwip_cfg_p = (OS_TaskConfig*)OS_Malloc(sizeof(OS_TaskConfig)); //no free for this allocation! if (task_lwip_cfg_p) { task_lwip_cfg_p->func_main = (void(*)(OS_TaskArgs*))thread; task_lwip_cfg_p->func_power = OS_NULL; task_lwip_cfg_p->args_p = OS_NULL; task_lwip_cfg_p->attrs = 0; task_lwip_cfg_p->timeout = 0; task_lwip_cfg_p->prio_init = (DEFAULT_THREAD_PRIO + prio); task_lwip_cfg_p->prio_power = OS_PWR_PRIO_MAX; task_lwip_cfg_p->storage_size = 0; task_lwip_cfg_p->stack_size = stacksize; task_lwip_cfg_p->stdin_len = 0; OS_StrNCpy((StrP)task_lwip_cfg_p->name, name, (OS_TASK_NAME_LEN - 1)); IF_OK(OS_TaskCreate(arg, task_lwip_cfg_p, &CreatedTask)) { ++s_nextthread; } } } return CreatedTask; } /* This optional function does a "fast" critical region protection and returns the previous protection level. This function is only called during very short critical regions. An embedded system which supports ISR-based drivers might want to implement this function by disabling interrupts. Task-based systems might want to implement this by using a mutex or disabling tasking. This function should support recursive calls from the same task or interrupt. In other words, sys_arch_protect() could be called while already protected. In that case the return value indicates that it is already protected. sys_arch_protect() is only required if your port is supporting an operating system. */ sys_prot_t sys_arch_protect(void) { <API key>(); return 1; } /* This optional function does a "fast" set of critical region protection to the value specified by pval. See the documentation for sys_arch_protect() for more information. This function is only required if your port is supporting an operating system. */ void sys_arch_unprotect(sys_prot_t pval) { (void)pval; <API key>(); } /* * Prints an assertion messages and aborts execution. */ void sys_assert( const char *msg ) { OS_TRACE(D_CRITICAL, msg, OS_NULL); OS_ASSERT(OS_FALSE); } u32_t sys_jiffies(void) { return HAL_GetTick(); } u32_t sys_now(void) { return OS_TICKS_TO_MS(sys_jiffies()); }
// node/this-3.js var object = { id: "xyz", printId: function() { console.log('The id is '+ this.id + ' ' + this.toString()); } }; // setTimeout(object.printId, 100); var callback = object.printId; callback();
package Genome::Sys; use strict; use warnings; use Genome; use Genome::Carp qw(croakf); use Genome::Utility::File::Mode qw(mode); use autodie qw(chown); use Carp; use Cwd; use Digest::MD5; use Errno qw(); use File::Basename; use File::Copy qw(); use File::Path; use File::Spec; use File::stat qw(stat lstat); use IO::File; use JSON; use List::MoreUtils "each_array"; use LWP::Simple qw(getstore RC_OK); use Params::Validate qw(:types validate_pos); use POSIX qw(EEXIST); use Set::Scalar; use Scalar::Util qw(blessed reftype); use feature qw(state); our @CARP_NOT = qw(Genome::Model::Build::Command::DetermineError); # these are optional but should load immediately when present # until we can make the Genome::Utility::Instrumentation optional (Net::Statsd deps) for my $opt (qw/Genome::Sys::Lock Genome::Sys::Log/) { eval "use $opt"; } our $VERSION = $Genome::VERSION; class Genome::Sys {}; sub concatenate_files { my ($self,$inputs,$output) = @_; unless (ref($inputs) and $output) { die 'expected \\@input_files $output_file as parameters'; } my ($quoted_output_file, @quoted_input_files) = $self->quote_for_shell($output,@$inputs); Genome::Sys->shellcmd(cmd => "cat @quoted_input_files >$quoted_output_file"); } sub quote_for_shell { require String::ShellQuote; # this is needed until shellcmd supports an array form, # which is difficult because we go to a bash sub-shell by default my $class = shift; my @quoted = map String::ShellQuote::shell_quote($_), @_; if (wantarray) { return @quoted } else { return $quoted[0]; } } sub disk_usage_for_path { my $self = shift; my $path = shift; my %params = @_; # Normally disk_usage_for_path returns nothing if it encounters an error; # this allows the caller to override the default behavior, returning a # number even if du emits errors (for instance, because the user does not my $allow_errors = delete $params{allow_errors}; if (keys %params) { die $self->error_message("Unknown parameters for disk_usage_for_path(): " . join(', ', keys %params)); } unless (-d $path) { $self->error_message("Path $path does not exist!"); return; } return unless -d $path; my $cmd = "du -sk $path 2>&1"; my @du_output = split( /\n/, qx{$cmd} ); my $last_line = pop @du_output; my $kb_used = ( split( ' ', $last_line, 2 ) )[0]; # if we couldn't parse the size count, print all output and return nothing unless (Scalar::Util::looks_like_number($kb_used)) { push @du_output, $last_line; $self->error_message("du output is not a number:\n" . join("\n", @du_output)); return; } # if there were lines besides the size count, emit warnings and (potentially) return nothing if (@du_output) { $self->warning_message($_) for (@du_output); unless ($allow_errors) { $self->error_message("du encountered errors"); return; } } return $kb_used; } # directory manipulation sub <API key> { my ($self, $directory) = @_; unless ( defined $directory ) { Carp::croak("Can't <API key>: No directory given"); } unless ( -e $directory ) { Carp::croak("Can't <API key>: $directory: Path does not exist"); } unless ( -d $directory ) { Carp::croak("Can't <API key>: $directory: path exists but is not a directory"); } return 1; } sub <API key> { my ($self, $directory) = @_; # Both underlying methods throw their own exceptions $self-><API key>($directory) or return; return $self-><API key>($directory); } sub <API key> { my ($self, $directory) = @_; # Both underlying methods throw their own exceptions $self-><API key>($directory) or return; return $self-><API key>($directory); } sub <API key> { my ($self, $directory) = @_; # All three underlying methods throw their own exceptions $self-><API key>($directory) or return; $self-><API key>($directory) or return; return $self-><API key>($directory); } sub <API key> { my ($self, $directory) = @_; my $wanted = sub { my $full_path = $File::Find::name; if (-f $full_path) { eval { Genome::Sys-><API key>($full_path); Genome::Sys-><API key>($full_path); }; if ($@) { Carp::croak "Cannot read or write $full_path in $directory!"; } } }; find($wanted, $directory); return 1; } sub <API key> { my ($self, $directory) = @_; unless ( -r $directory ) { Carp::croak("Directory ($directory) is not readable"); } return 1; } sub <API key> { my ($self, $directory) = @_; unless ( -w $directory ) { Carp::croak("Directory ($directory) is not writable"); } return 1; } sub abs_path { my ($self, $path) = @_; return Cwd::abs_path($path); } # MD5 sub md5sum { my ($self, $file) = @_; my $digest; my $fh = IO::File->new($file); unless ($fh) { Carp::croak("Can't open file ($file) to md5sum: $!"); } my $d = Digest::MD5->new; $d->addfile($fh); $digest = $d->hexdigest; $fh->close; return $digest; } sub md5sum_data { my ($self, $data) = @_; unless (defined $data) { Carp::croak('No data passed to md5sum_data'); } my $digest = Digest::MD5->new; $digest->add($data); return $digest->hexdigest; } # API for accessing software and data by version sub snapshot_revision { my $class = shift; # Previously we just used UR::Util::<API key> but this did not # "detect" a software revision when using code from PERL5LIB or compile-time # lib paths. Since it is common for developers to run just Genome from a Git # checkout we really want to record what versions of UR, Genome, etc. # were used. my @orig_inc = @INC; my @libs = ($INC{'UR.pm'}, $INC{'Genome.pm'}); die $class->error_message('Did not find both modules loaded (UR and Genome).') unless @libs == 2; # assemble list of "important" libs @libs = map { File::Basename::dirname($class->abs_path($_)) } @libs; push @libs, UR::Util->used_libs; # remove trailing slashes map { $_ =~ s/\/+$// } (@libs, @orig_inc); @libs = $class->_uniq(@libs); # preserve the list order as appeared @INC my @inc; for my $inc (@orig_inc) { push @inc, grep { $inc eq $_ } @libs; } @inc = $class->_uniq(@inc); @inc = $class->_simplify_inc(@inc) if $class->can('_simplify_inc'); return join(':', @inc); } sub _uniq { my $self = shift; my @list = @_; my %seen = (); my @unique = grep { ! $seen{$_} ++ } @list; return @unique; } # access to paths to code and data sub dbpath { my ($class, $name, $version) = @_; my $dbpath = $class->lookup_dbpath($name); if ($dbpath) { print STDERR "Using '$dbpath' from config.\n"; } else { unless ($version) { die "Genome::Sys dbpath must be called with a database name and a version. " . "Use 'latest' for the latest installed version."; } $dbpath = $class-><API key>($name, $version); } return $dbpath; } sub lookup_dbpath { my ($class, $name) = @_; my %config_key = ( '<API key>' => 'db_music_testdata', 'cosmic' => 'db_cosmic', 'omim' => 'db_omim', 'pfam' => 'db_pfam', ); my $key = $config_key{$name}; return unless ($key); return Genome::Config::get($key); } sub <API key> { my ($class, $name, $version) = @_; my $base_dirs = Genome::Config::get('db'); my $subdir = "$name/$version"; my @base_dirs = split(':',$base_dirs); my @dirs = map { -l $_ ? $class->abs_path($_) : ($_) } map { my $path = join("/",$_,$subdir); (-e $path ? ($path) : ()) } @base_dirs; return $dirs[0]; } # renamed for consistency with a variety of sw_ methods. *swpath = \&sw_path; sub sw_path { my ($class, $pkg_name, $version, $app_name) = @_; $app_name ||= $pkg_name; unless ($version) { die "Genome::Sys swpath must be called with a pkg name and a version. The optional executable name defaults to the pkg_name. " . "Use the version 'latest' for the latest installed version."; } # check the default path for the app my %map = $class->sw_version_path_map($pkg_name, $app_name); my $path = $map{$version}; if ($path) { return $path; } # older legacy software has an unversioned executable # this is only supported if the version passed in is "latest" $path = `which $app_name`; if ($path = `which $app_name`) { # unversioned install # see if it's a symlink to something in a versioned tree chomp $path; $path = readlink($path) while -l $path; if ($version eq 'latest') { return $path; } else { die $class->error_message("Failed to find $pkg_name at version $version. " . "The default version is at $path."); } } die $class->error_message("Failed to find app $app_name (package $pkg_name) at version $version!"); } sub <API key> { my ($class, $version, $bin) = @_; my $java_path = $class->java_path($version); $bin ||= 'java'; my $exe_path = File::Spec->join($java_path, 'bin', $bin); unless(-x $exe_path) { die $class->error_message('No java executable found in bin of <%s> for version: %s', $java_path, $version); } return $exe_path; } sub java_path { my ($class, $version) = @_; unless(version->parse($version)) { die $class->error_message('Version does not appear to be valid: %s', $version); } my @available_versions = glob(File::Spec->join(Genome::Config::get('java_path'), "jre$version*")); if (@available_versions == 0) { die $class->error_message('No java path found for version: %s', $version); } elsif (@available_versions == 1) { return $available_versions[0]; } else { my $most_recent_path; my $most_recent_version = 0; for my $next_path (@available_versions) { my ($next_version) = $next_path =~ /jre(.+)$/; if(version->parse($next_version) > version->parse($most_recent_version)) { $most_recent_path = $next_path; $most_recent_version = $next_version; } } return $most_recent_path; } } sub jar_path { my ($class, $jar_name, $version) = @_; # check the default path my %map = $class-><API key>($jar_name); my $path = $map{$version}; if ($path) { return $path; } die $class->error_message("Failed to find jar $jar_name at version $version"); } sub <API key> { my ($class, $pkg_name) = @_; my %versions; my @dirs = split(':', Genome::Config::get('jar_path')); for my $dir (@dirs) { my $prefix = "$dir/$pkg_name-"; my @version_paths = grep { -e $_ } glob("$prefix*"); next unless @version_paths; my $prefix_len = length($prefix); for my $version_path (@version_paths) { my $version = substr($version_path,$prefix_len); $version =~ s/.jar$ if (substr($version,0,1) eq '-') { $version = substr($version,1); } next unless $version =~ /[0-9\.]/; next if -l $version_path; $versions{$version} = $version_path; } } return %versions; } sub sw_version_path_map { my ($class, $pkg_name, $app_name) = @_; $app_name ||= $pkg_name; # find software installed as .debs with versioned packages # packaged software should have a versioned executable like /usr/bin/myapp1.2.3 or /usr/bin/mypackage-myapp1.2.3 in the bin. my %versions1; my @dirs1 = (split(':',$ENV{PATH}), "~/gsc-pkg-bio/"); my @sw_ignore = split(':', Genome::Config::get('sw_ignore') || ''); for my $dir1 (@dirs1) { if (grep { index($dir1,$_) == 0 } @sw_ignore) { # skip directories starting with something in @sw_ignore next; } for my $prefix ("$dir1/$pkg_name-$app_name-", "$dir1/$app_name-", "$dir1/$pkg_name-$app_name", "$dir1/$app_name") { my @version_paths = grep { -e $_ } glob("$prefix*"); next unless @version_paths; my $prefix_len = length($prefix); for my $version_path (@version_paths) { my $version = substr($version_path,$prefix_len); if (substr($version,0,1) eq '-') { $version = substr($version,1); } next unless $version =~ /[0-9\.]/; if (grep { index($version_path,$_) == 0 } @sw_ignore) { next; } $versions1{$version} = $version_path; } } } sub <API key> { my ($first,@rest) = @_; my $len; for ($len = 1; $len <= length($first); $len++) { for my $other (@rest) { if (substr($first,0,$len) ne substr($other,0,$len)) { return $len-1; } } } return $len-1; } my %pkgdirs; my @dirs2 = split(':',Genome::Config::get('sw')); #most of the system expects this to be one value not-colon separated currently for my $dir2 (@dirs2) { # one subdir will exist per application my @app_subdirs = glob("$dir2/$pkg_name"); for my $app_subdir (@app_subdirs) { # one subdir under that will exist per version
var complexExample = { "edges" : [ { "id" : 0, "sbo" : 15, "source" : "Reactome:109796", "target" : "Reactome:177938" }, { "id" : 1, "sbo" : 15, "source" : "MAP:Cb15996_CY_Reactome:177938", "target" : "Reactome:177938" }, { "id" : 2, "sbo" : 11, "source" : "Reactome:177938", "target" : "MAP:Cb17552_CY_Reactome:177938" }, { "id" : 3, "sbo" : 11, "source" : "Reactome:177938", "target" : "Reactome:109783" }, { "id" : 4, "sbo" : 13, "source" : "Reactome:179820", "target" : "Reactome:177938" }, { "id" : 5, "sbo" : 15, "source" : "Reactome:179845", "target" : "Reactome:177934" }, { "id" : 6, "sbo" : 15, "source" : "MAP:<API key>:177934", "target" : "Reactome:177934" }, { "id" : 7, "sbo" : 11, "source" : "Reactome:177934", "target" : "MAP:Cb16761_CY_Reactome:177934" }, { "id" : 8, "sbo" : 11, "source" : "Reactome:177934", "target" : "Reactome:179882" }, { "id" : 9, "sbo" : 13, "source" : "Reactome:179845", "target" : "Reactome:177934" }, { "id" : 10, "sbo" : 15, "source" : "Reactome:109844", "target" : "Reactome:109867" }, { "id" : 11, "sbo" : 11, "source" : "Reactome:109867", "target" : "Reactome:109845" }, { "id" : 12, "sbo" : 15, "source" : "Reactome:29358_MAN:R12", "target" : "MAN:R12" }, { "id" : 13, "sbo" : 15, "source" : "Reactome:198710", "target" : "MAN:R12" }, { "id" : 14, "sbo" : 11, "source" : "MAN:R12", "target" : "Reactome:113582_MAN:R12" }, { "id" : 15, "sbo" : 11, "source" : "MAN:R12", "target" : "Reactome:198666" }, { "id" : 16, "sbo" : 13, "source" : "Reactome:109845", "target" : "MAN:R12" }, { "id" : 17, "sbo" : 15, "source" : "MAP:<API key>:109841", "target" : "Reactome:109841" }, { "id" : 18, "sbo" : 15, "source" : "Reactome:109794", "target" : "Reactome:109841" }, { "id" : 19, "sbo" : 11, "source" : "Reactome:109841", "target" : "MAP:Cb16761_CY_Reactome:109841" }, { "id" : 20, "sbo" : 11, "source" : "Reactome:109841", "target" : "Reactome:109793" }, { "id" : 21, "sbo" : 11, "source" : "Reactome:109841", "target" : "MAP:<API key>" }, { "id" : 22, "sbo" : 13, "source" : "Reactome:112406", "target" : "Reactome:109841" }, { "id" : 23, "sbo" : 15, "source" : "Reactome:179882", "target" : "Reactome:177940" }, { "id" : 24, "sbo" : 15, "source" : "Reactome:179849", "target" : "Reactome:177940" }, { "id" : 25, "sbo" : 11, "source" : "Reactome:177940", "target" : "Reactome:180348" }, { "id" : 26, "sbo" : 15, "source" : "Reactome:109788", "target" : "Reactome:109802" }, { "id" : 27, "sbo" : 15, "source" : "MAP:UP31946_CY", "target" : "Reactome:109802" }, { "id" : 28, "sbo" : 11, "source" : "Reactome:109802", "target" : "Reactome:109789" }, { "id" : 29, "sbo" : 15, "source" : "Reactome:109787", "target" : "Reactome:109803" }, { "id" : 30, "sbo" : 15, "source" : "Reactome:109783", "target" : "Reactome:109803" }, { "id" : 31, "sbo" : 11, "source" : "Reactome:109803", "target" : "Reactome:109788" }, { "id" : 32, "sbo" : 11, "source" : "Reactome:109803", "target" : "MAP:UP31946_CY" }, { "id" : 33, "sbo" : 15, "source" : "MAP:<API key>:177930", "target" : "Reactome:177930" }, { "id" : 34, "sbo" : 15, "source" : "Reactome:180348", "target" : "Reactome:177930" }, { "id" : 35, "sbo" : 11, "source" : "Reactome:177930", "target" : "Reactome:180286" }, { "id" : 36, "sbo" : 11, "source" : "Reactome:177930", "target" : "MAP:Cb16761_CY_Reactome:177930" }, { "id" : 37, "sbo" : 13, "source" : "Reactome:180348", "target" : "Reactome:177930" }, { "id" : 38, "sbo" : 15, "source" : "Reactome:109796", "target" : "Reactome:177945" }, { "id" : 39, "sbo" : 15, "source" : "MAP:Cb15996_CY_Reactome:177945", "target" : "Reactome:177945" }, { "id" : 40, "sbo" : 11, "source" : "Reactome:177945", "target" : "MAP:Cb17552_CY_Reactome:177945" }, { "id" : 41, "sbo" : 11, "source" : "Reactome:177945", "target" : "Reactome:109783" }, { "id" : 42, "sbo" : 13, "source" : "Reactome:180331", "target" : "Reactome:177945" }, { "id" : 43, "sbo" : 15, "source" : "Reactome:109793", "target" : "MAN:R1" }, { "id" : 44, "sbo" : 15, "source" : "MAP:UP36507_CY", "target" : "MAN:R1" }, { "id" : 45, "sbo" : 11, "source" : "MAN:R1", "target" : "Reactome:109795" }, { "id" : 46, "sbo" : 15, "source" : "Reactome:109843", "target" : "Reactome:109863" }, { "id" : 47, "sbo" : 11, "source" : "Reactome:109863", "target" : "MAP:<API key>" }, { "id" : 48, "sbo" : 11, "source" : "Reactome:109863", "target" : "MAP:<API key>" }, { "id" : 49, "sbo" : 15, "source" : "MAP:<API key>:177933", "target" : "Reactome:177933" }, { "id" : 50, "sbo" : 15, "source" : "Reactome:180301", "target" : "Reactome:177933" }, { "id" : 51, "sbo" : 11, "source" : "Reactome:177933", "target" : "MAP:Cb16761_CY_Reactome:177933" }, { "id" : 52, "sbo" : 11, "source" : "Reactome:177933", "target" : "Reactome:180337" }, { "id" : 53, "sbo" : 13, "source" : "Reactome:180301", "target" : "Reactome:177933" }, { "id" : 54, "sbo" : 15, "source" : "MAP:UQ02750_CY", "target" : "MAN:R2" }, { "id" : 55, "sbo" : 15, "source" : "Reactome:109793", "target" : "MAN:R2" }, { "id" : 56, "sbo" : 11, "source" : "MAN:R2", "target" : "Reactome:109794" }, { "id" : 57, "sbo" : 15, "source" : "MAP:<API key>", "target" : "Reactome:109804" }, { "id" : 58, "sbo" : 15, "source" : "MAP:UP31946_CY", "target" : "Reactome:109804" }, { "id" : 59, "sbo" : 11, "source" : "Reactome:109804", "target" : "Reactome:109787" }, { "id" : 60, "sbo" : 15, "source" : "MAP:<API key>:109852", "target" : "Reactome:109852" }, { "id" : 61, "sbo" : 15, "source" : "Reactome:109795", "target" : "Reactome:109852" }, { "id" : 62, "sbo" : 11, "source" : "Reactome:109852", "target" : "MAP:Cb16761_CY_Reactome:109852" }, { "id" : 63, "sbo" : 11, "source" : "Reactome:109852", "target" : "Reactome:109793" }, { "id" : 64, "sbo" : 11, "source" : "Reactome:109852", "target" : "Reactome:109848" }, { "id" : 65, "sbo" : 13, "source" : "Reactome:112406", "target" : "Reactome:109852" }, { "id" : 66, "sbo" : 15, "source" : "MAP:<API key>:177939", "target" : "Reactome:177939" }, { "id" : 67, "sbo" : 15, "source" : "Reactome:179856", "target" : "Reactome:177939" }, { "id" : 68, "sbo" : 11, "source" : "Reactome:177939", "target" : "MAP:Cb16761_CY_Reactome:177939" }, { "id" : 69, "sbo" : 11, "source" : "Reactome:177939", "target" : "Reactome:179838" }, { "id" : 70, "sbo" : 13, "source" : "Reactome:179791", "target" : "Reactome:177939" }, { "id" : 71, "sbo" : 15, "source" : "Reactome:180286", "target" : "MAN:R25" }, { "id" : 72, "sbo" : 15, "source" : "MAP:C3", "target" : "MAN:R25" }, { "id" : 73, "sbo" : 15, "source" : "MAP:C2", "target" : "MAN:R25" }, { "id" : 74, "sbo" : 11, "source" : "MAN:R25", "target" : "Reactome:179791" }, { "id" : 75, "sbo" : 15, "source" : "MAP:Cx114", "target" : "Reactome:177936" }, { "id" : 76, "sbo" : 15, "source" : "Reactome:180337", "target" : "Reactome:177936" }, { "id" : 77, "sbo" : 11, "source" : "Reactome:177936", "target" : "Reactome:180331" }, { "id" : 78, "sbo" : 15, "source" : "MAP:C3", "target" : "MAN:R28" }, { "id" : 79, "sbo" : 15, "source" : "MAP:C2", "target" : "MAN:R28" }, { "id" : 80, "sbo" : 15, "source" : "Reactome:109783", "target" : "MAN:R28" }, { "id" : 81, "sbo" : 11, "source" : "MAN:R28", "target" : "MAN:C10" }, { "id" : 82, "sbo" : 15, "source" : "Reactome:179847", "target" : "Reactome:177922" }, { "id" : 83, "sbo" : 11, "source" : "Reactome:177922", "target" : "Reactome:179845" }, { "id" : 84, "sbo" : 15, "source" : "Reactome:109838", "target" : "Reactome:109860" }, { "id" : 85, "sbo" : 15, "source" : "MAP:<API key>:109860", "target" : "Reactome:109860" }, { "id" : 86, "sbo" : 11, "source" : "Reactome:109860", "target" : "MAP:Cb16761_CY_Reactome:109860" }, { "id" : 87, "sbo" : 11, "source" : "Reactome:109860", "target" : "Reactome:109843" }, { "id" : 88, "sbo" : 13, "source" : "Reactome:109838", "target" : "Reactome:109860" }, { "id" : 89, "sbo" : 20, "source" : "Reactome:112340", "target" : "Reactome:109860" }, { "id" : 90, "sbo" : 15, "source" : "MAP:Cx114", "target" : "Reactome:177943" }, { "id" : 91, "sbo" : 15, "source" : "Reactome:179882", "target" : "Reactome:177943" }, { "id" : 92, "sbo" : 11, "source" : "Reactome:177943", "target" : "Reactome:179820" }, { "id" : 93, "sbo" : 15, "source" : "MAP:<API key>", "target" : "Reactome:109865" }, { "id" : 94, "sbo" : 11, "source" : "Reactome:109865", "target" : "Reactome:109844" }, { "id" : 95, "sbo" : 15, "source" : "Reactome:179882", "target" : "Reactome:177925" }, { "id" : 96, "sbo" : 15, "source" : "MAP:UP29353_CY", "target" : "Reactome:177925" }, { "id" : 97, "sbo" : 11, "source" : "Reactome:177925", "target" : "Reactome:180301" }, { "id" : 98, "sbo" : 15, "source" : "Reactome:109789", "target" : "Reactome:109829" }, { "id" : 99, "sbo" : 15, "source" : "MAP:<API key>:109829", "target" : "Reactome:109829" }, { "id" : 100, "sbo" : 11, "source" : "Reactome:109829", "target" : "MAP:Cb16761_CY_Reactome:109829" }, { "id" : 101, "sbo" : 11, "source" : "Reactome:109829", "target" : "Reactome:109793" }, { "id" : 102, "sbo" : 13, "source" : "Reactome:163338", "target" : "Reactome:109829" }, { "id" : 103, "sbo" : 15, "source" : "MAP:UP27361_CY", "target" : "Reactome:109857" }, { "id" : 104, "sbo" : 15, "source" : "MAP:<API key>", "target" : "Reactome:109857" }, { "id" : 105, "sbo" : 11, "source" : "Reactome:109857", "target" : "Reactome:109838" }, { "id" : 106, "sbo" : 15, "source" : "Reactome:179863", "target" : "Reactome:177942" }, { "id" : 107, "sbo" : 15, "source" : "Reactome:179837", "target" : "Reactome:177942" }, { "id" : 108, "sbo" : 11, "source" : "Reactome:177942", "target" : "Reactome:179847" }, { "id" : 109, "sbo" : 20, "source" : "Reactome:197745", "target" : "Reactome:177942" } ], "nodes" : [ { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GDP", "modification" : [], "ref" : "Reactome:109796", "subnodes" : [ "MAP:Cb17552_CY_Reactome:109796_1", "Reactome:109782_Reactome:109796_1" ], "x" : 1889, "y" : 2293 }, "id" : "Reactome:109796", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "RAS:RAF:14-3-3", "modification" : [], "ref" : "Reactome:109789", "subnodes" : [ "Reactome:109788_Reactome:109789_1", "MAP:UP31946_CY_Reactome:109789_1" ], "x" : 1757, "y" : 1680 }, "id" : "Reactome:109789", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "PI3K alpha", "modification" : [], "ref" : "MAP:Cx156" }, "id" : "MAP:Cx156", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "Activated RAF1 complex", "modification" : [], "ref" : "Reactome:109793", "subnodes" : [ "MAP:UP31946_CY_Reactome:109793_1", "Reactome:109783_Reactome:109793_1", "Reactome:109792_Reactome:109793_1" ], "x" : 2402, "y" : 1480 }, "id" : "Reactome:109793", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR-SHC", "modification" : [], "ref" : "Reactome:180301", "subnodes" : [ "Reactome:179882_Reactome:180301_1", "MAP:UP29353_CY_Reactome:180301_1" ], "x" : 1478, "y" : 2706 }, "id" : "Reactome:180301", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "phospho-ERK-1 dimer", "modification" : [], "ref" : "Reactome:109845", "subnodes" : [ "Reactome:112359_Reactome:109845_1", "Reactome:112359_Reactome:109845_2" ], "x" : 3261, "y" : 202 }, "id" : "Reactome:109845", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "GRB2:Phospho-GAB1", "modification" : [], "ref" : "Reactome:180304" }, "id" : "Reactome:180304", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860" }, "id" : "Reactome:179860", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "GAB1:<API key> dimer", "modification" : [], "ref" : "Reactome:180348", "subnodes" : [ "Reactome:179882_Reactome:180348_1", "Reactome:179849_Reactome:180348_1" ], "x" : 477, "y" : 2293 }, "id" : "Reactome:180348", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "phospho-ERK-1:MEK1", "modification" : [], "ref" : "Reactome:109843", "subnodes" : [ "MAP:<API key>:109843_1", "MAP:<API key>:109843_1" ], "x" : 3519, "y" : 722 }, "id" : "Reactome:109843", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "RAS:RAF", "modification" : [], "ref" : "Reactome:109788", "subnodes" : [ "MAP:<API key>:109788_1", "Reactome:109783_Reactome:109788_1" ], "x" : 1569, "y" : 1880 }, "id" : "Reactome:109788", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "GRB2:GAB1", "modification" : [], "ref" : "Reactome:179849", "subnodes" : [ "MAP:UP62993_CY_Reactome:179849_1", "MAP:UQ13480_CY_Reactome:179849_1" ], "x" : 686, "y" : 2506 }, "id" : "Reactome:179849", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "GRB2:Phospho <API key> dimer", "modification" : [], "ref" : "Reactome:180286", "subnodes" : [ "Reactome:180304_Reactome:180286_1", "Reactome:179882_Reactome:180286_1" ], "x" : 770, "y" : 2080 }, "id" : "Reactome:180286", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "EGF:EGFR dimer", "modification" : [], "ref" : "Reactome:179845", "subnodes" : [ "Reactome:179847_Reactome:179845_1", "Reactome:179847_Reactome:179845_2" ], "x" : 1331, "y" : 3106 }, "id" : "Reactome:179845", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "phospho-ERK-1 dimer", "modification" : [], "ref" : "Reactome:109844", "subnodes" : [ "MAP:<API key>:109844_1", "MAP:<API key>:109844_2" ], "x" : 3261, "y" : 378 }, "id" : "Reactome:109844", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "EGF:EGFR", "modification" : [], "ref" : "Reactome:179847", "subnodes" : [ "Reactome:179863_Reactome:179847_1", "Reactome:179837_Reactome:179847_1" ], "x" : 1331, "y" : 3294 }, "id" : "Reactome:179847", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "GRB2:SOS1", "modification" : [], "ref" : "MAP:Cx114", "subnodes" : [ "MAP:UQ07889_CY_MAP:Cx114_1", "MAP:UP62993_CY_MAP:Cx114_1" ], "x" : 1555, "y" : 2506 }, "id" : "MAP:Cx114", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_1", "Reactome:179860_Reactome:179882_2" ], "x" : 967, "y" : 2906 }, "id" : "Reactome:179882", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "MEK1:ERK-1", "modification" : [], "ref" : "Reactome:109838", "subnodes" : [ "MAP:UP27361_CY_Reactome:109838_1", "MAP:<API key>:109838_1" ], "x" : 3806, "y" : 898 }, "id" : "Reactome:109838", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "RAS:GTP:PI3Ka", "modification" : [], "ref" : "MAN:C10", "subnodes" : [ "MAP:Cx156_MAN:C10_1", "Reactome:109783_MAN:C10_1" ], "x" : 1292, "y" : 1880 }, "id" : "MAN:C10", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "p-Raf1(S259,S621):14-3-3 protein beta/alpha", "modification" : [], "ref" : "Reactome:109787", "subnodes" : [ "MAP:<API key>:109787_1", "MAP:UP31946_CY_Reactome:109787_1" ], "x" : 2423, "y" : 1680 }, "id" : "Reactome:109787", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "GRB2:SOS-Phospho-SHC:EGF:Phospho-EGFR dimer", "modification" : [], "ref" : "Reactome:180331", "subnodes" : [ "MAP:Cx114_Reactome:180331_1", "Reactome:180337_Reactome:180331_1" ], "x" : 2310, "y" : 2293 }, "id" : "Reactome:180331", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "Activated RAF1 complex:MEK2", "modification" : [], "ref" : "Reactome:109795", "subnodes" : [ "Reactome:109793_Reactome:109795_1", "MAP:UP36507_CY_Reactome:109795_1" ], "x" : 2070, "y" : 1267 }, "id" : "Reactome:109795", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "EGF:Phospho-EGFR-GRB2:GAB1:PI3Kreg:PI3Kcat", "modification" : [], "ref" : "Reactome:179791", "subnodes" : [ "MAP:C3_Reactome:179791_1", "Reactome:179882_Reactome:179791_1", "MAP:C2_Reactome:179791_1", "Reactome:179849_Reactome:179791_1" ], "x" : 963, "y" : 1880 }, "id" : "Reactome:179791", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "Activated RAF1 complex:MEK1", "modification" : [], "ref" : "Reactome:109794", "subnodes" : [ "MAP:UQ02750_CY_Reactome:109794_1", "Reactome:109793_Reactome:109794_1" ], "x" : 2762, "y" : 1267 }, "id" : "Reactome:109794", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "Activated RAF1 complex:MEK", "modification" : [], "ref" : "Reactome:112406", "subnodes" : [ "Reactome:109793_Reactome:112406_1", "Reactome:112398_Reactome:112406_1" ], "x" : 2416, "y" : 1267 }, "id" : "Reactome:112406", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR:Phospho-SHC", "modification" : [], "ref" : "Reactome:180337", "subnodes" : [ "Reactome:180276_Reactome:180337_1", "Reactome:179882_Reactome:180337_1" ], "x" : 1945, "y" : 2506 }, "id" : "Reactome:180337", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "GRB2:<API key> dimer", "modification" : [], "ref" : "Reactome:179820", "subnodes" : [ "MAP:Cx114_Reactome:179820_1", "Reactome:179882_Reactome:179820_1" ], "x" : 1514, "y" : 2293 }, "id" : "Reactome:179820", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_1", "MAP:Cb15996_CY_Reactome:109783_1" ], "x" : 1886, "y" : 2080 }, "id" : "Reactome:109783", "is_abstract" : 0, "sbo" : 253, "type" : "Complex" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "GDP", "modification" : [], "ref" : "MAP:Cb17552_CY" }, "id" : "MAP:Cb17552_CY", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "ATP", "modification" : [], "ref" : "Reactome:29358" }, "id" : "Reactome:29358", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY" }, "id" : "MAP:Cs56-65-5_CY", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "<API key>,5-bisphosphate", "modification" : [], "ref" : "Reactome:179856", "x" : 543, "y" : 1880 }, "id" : "Reactome:179856", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY" }, "id" : "MAP:Cb16761_CY", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "ADP", "modification" : [], "ref" : "Reactome:113582" }, "id" : "Reactome:113582", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "<API key>,4,5-trisphosphate", "modification" : [], "ref" : "Reactome:179838", "x" : 733, "y" : 1680 }, "id" : "Reactome:179838", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "Phospho-ELK1", "modification" : [], "ref" : "Reactome:198666", "x" : 3722, "y" : 30 }, "id" : "Reactome:198666", "is_abstract" : 0, "sbo" : 240, "type" : "Compound" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "ELK1", "modification" : [], "ref" : "Reactome:198710", "x" : 3556, "y" : 202 }, "id" : "Reactome:198710", "is_abstract" : 0, "sbo" : 240, "type" : "Compound" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "MEK", "modification" : [], "ref" : "Reactome:112398" }, "id" : "Reactome:112398", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "phospho_MEK1", "modification" : [], "ref" : "Reactome:112340", "x" : 3186, "y" : 898 }, "id" : "Reactome:112340", "is_abstract" : 0, "sbo" : 240, "type" : "Compound" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "phospho-MEK2", "modification" : [ [ 216, null ], [ 216, null ] ], "ref" : "Reactome:109848", "x" : 2325, "y" : 1070 }, "id" : "Reactome:109848", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "Transforming protein N-Ras", "modification" : [], "ref" : "MAP:C79" }, "id" : "MAP:C79", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "phospho-ERK-1", "modification" : [ [ 216, "202" ], [ 216, "204" ] ], "ref" : "Reactome:112359" }, "id" : "Reactome:112359", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "YWHAB()", "modification" : [], "ref" : "MAP:UP31946_CY", "x" : 1887, "y" : 1880 }, "id" : "MAP:UP31946_CY", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "Phospho-SHC transforming protein", "modification" : [ [ 216, "349" ], [ 216, "350" ] ], "ref" : "Reactome:180276" }, "id" : "Reactome:180276", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "K-RAS isoform 2A", "modification" : [], "ref" : "MAP:UP01116_" }, "id" : "MAP:UP01116_", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "phospho-MEK1", "modification" : [ [ 216, "286" ], [ 216, "292" ] ], "ref" : "Reactome:112374" }, "id" : "Reactome:112374", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "Son of sevenless protein homolog 1", "modification" : [], "ref" : "MAP:UQ07889_CY" }, "id" : "MAP:UQ07889_CY", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "ETS-domain protein Elk-1-1", "modification" : [], "ref" : "MAP:UP19419_NU(1-428)" }, "id" : "MAP:UP19419_NU(1-428)", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "SHC", "modification" : [], "ref" : "MAP:UP29353_CY", "x" : 1370, "y" : 2906 }, "id" : "MAP:UP29353_CY", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "MEK1", "modification" : [], "ref" : "MAP:UQ02750_CY", "x" : 2748, "y" : 1480 }, "id" : "MAP:UQ02750_CY", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "cRaf", "modification" : [ [ 216, "340" ], [ 216, "621" ], [ 216, "259" ], [ 216, "341" ] ], "ref" : "Reactome:109792" }, "id" : "Reactome:109792", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "Phospho-GAB1", "modification" : [ [ 216, "627" ], [ 216, "659" ], [ 216, "447" ], [ 216, "472" ], [ 216, "589" ] ], "ref" : "Reactome:180344" }, "id" : "Reactome:180344", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "c-H-ras", "modification" : [], "ref" : "MAP:UP01112_PM" }, "id" : "MAP:UP01112_PM", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "unidentified protein tyrosine kinase", "modification" : [], "ref" : "Reactome:163338", "x" : 2811, "y" : 1680 }, "id" : "Reactome:163338", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "PI3K-p85", "modification" : [], "ref" : "MAP:C3", "x" : 1292, "y" : 2080 }, "id" : "MAP:C3", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "RAF1(ph259,ph621)", "modification" : [ [ 216, "259" ], [ 216, "621" ] ], "ref" : "MAP:<API key>", "x" : 2294, "y" : 1880 }, "id" : "MAP:<API key>", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "MEK2()", "modification" : [], "ref" : "MAP:UP36507_CY", "x" : 2084, "y" : 1480 }, "id" : "MAP:UP36507_CY", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "Activated ERK1", "modification" : [ [ 216, "202" ], [ 216, "204" ] ], "ref" : "MAP:<API key>", "x" : 3261, "y" : 550 }, "id" : "MAP:<API key>", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863", "x" : 1331, "y" : 3466 }, "id" : "Reactome:179863", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "phospho-MEK1", "modification" : [ [ 216, "218" ], [ 216, "222" ] ], "ref" : "MAP:<API key>", "x" : 3102, "y" : 1070 }, "id" : "MAP:<API key>", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "EGFR", "modification" : [], "ref" : "Reactome:179837", "x" : 928, "y" : 3466 }, "id" : "Reactome:179837", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "GAB1", "modification" : [], "ref" : "MAP:UQ13480_CY" }, "id" : "MAP:UQ13480_CY", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "phospho-MEK1", "modification" : [ [ 216, "218" ], [ 216, "222" ], [ 216, "286" ], [ 216, "292" ] ], "ref" : "Reactome:112339" }, "id" : "Reactome:112339", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "label" : "SOS1", "modification" : [], "ref" : "PID:C200496" }, "id" : "PID:C200496", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "Leucine-rich repeats and immunoglobulin-like domains protein 1 precursor", "modification" : [], "ref" : "Reactome:197745", "x" : 1902, "y" : 3466 }, "id" : "Reactome:197745", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Nucleus", "label" : "Phospho-ETS-domain protein Elk-1-2", "modification" : [ [ 216, "324" ], [ 216, "383" ], [ 216, "389" ], [ 216, "336" ], [ 216, "422" ] ], "ref" : "MAP:UP19419_NU(1-428)<API key>" }, "id" : "MAP:UP19419_NU(1-428)<API key>", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "PI3K-p110", "modification" : [], "ref" : "MAP:C2", "x" : 1066, "y" : 2080 }, "id" : "MAP:C2", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Cytosol", "label" : "ERK1", "modification" : [], "ref" : "MAP:UP27361_CY", "x" : 3707, "y" : 1070 }, "id" : "MAP:UP27361_CY", "is_abstract" : 0, "sbo" : 252, "type" : "Protein" }, { "data" : { "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "label" : "GRB2", "modification" : [], "ref" : "PID:C200490" }, "id" : "PID:C200490", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "label" : null, "ref" : "Reactome:177938", "x" : 1569, "y" : 2180 }, "id" : "Reactome:177938", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY", "x" : 1131, "y" : 2293 }, "id" : "MAP:Cb15996_CY_Reactome:177938", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb17552_CY", "compartment" : "MAP:Cytosol", "label" : "GDP", "modification" : [], "ref" : "MAP:Cb17552_CY", "x" : 1569, "y" : 2080 }, "id" : "MAP:Cb17552_CY_Reactome:177938", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:177934", "x" : 1331, "y" : 3006 }, "id" : "Reactome:177934", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 1008, "y" : 3106 }, "id" : "MAP:<API key>:177934", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 1696, "y" : 2906 }, "id" : "MAP:Cb16761_CY_Reactome:177934", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:109867", "x" : 3261, "y" : 290 }, "id" : "Reactome:109867", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "MAN:R12", "x" : 3556, "y" : 114 }, "id" : "MAN:R12", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "Reactome:29358", "compartment" : "MAP:Nucleus", "label" : "ATP", "modification" : [], "ref" : "Reactome:29358", "x" : 3881, "y" : 202 }, "id" : "Reactome:29358_MAN:R12", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "Reactome:113582", "compartment" : "MAP:Nucleus", "label" : "ADP", "modification" : [], "ref" : "Reactome:113582", "x" : 3390, "y" : 30 }, "id" : "Reactome:113582_MAN:R12", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:109841", "x" : 2716, "y" : 1154 }, "id" : "Reactome:109841", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 3085, "y" : 1267 }, "id" : "MAP:<API key>:109841", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 2696, "y" : 1070 }, "id" : "MAP:Cb16761_CY_Reactome:109841", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:177940", "x" : 549, "y" : 2406 }, "id" : "Reactome:177940", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109802", "x" : 1757, "y" : 1780 }, "id" : "Reactome:109802", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109803", "x" : 1886, "y" : 1980 }, "id" : "Reactome:109803", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:177930", "x" : 477, "y" : 2180 }, "id" : "Reactome:177930", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 800, "y" : 2293 }, "id" : "MAP:<API key>:177930", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 425, "y" : 2080 }, "id" : "MAP:Cb16761_CY_Reactome:177930", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:177945", "x" : 2256, "y" : 2180 }, "id" : "Reactome:177945", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY", "x" : 2739, "y" : 2293 }, "id" : "MAP:Cb15996_CY_Reactome:177945", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb17552_CY", "compartment" : "MAP:Cytosol", "label" : "GDP", "modification" : [], "ref" : "MAP:Cb17552_CY", "x" : 2256, "y" : 2080 }, "id" : "MAP:Cb17552_CY_Reactome:177945", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "MAN:R1", "x" : 2084, "y" : 1380 }, "id" : "MAN:R1", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109863", "x" : 3261, "y" : 634 }, "id" : "Reactome:109863", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:177933", "x" : 1478, "y" : 2606 }, "id" : "Reactome:177933", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 1155, "y" : 2706 }, "id" : "MAP:<API key>:177933", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 1221, "y" : 2506 }, "id" : "MAP:Cb16761_CY_Reactome:177933", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "MAN:R2", "x" : 2748, "y" : 1380 }, "id" : "MAN:R2", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109804", "x" : 2294, "y" : 1780 }, "id" : "Reactome:109804", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109852", "x" : 2080, "y" : 1154 }, "id" : "Reactome:109852", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 1747, "y" : 1267 }, "id" : "MAP:<API key>:109852", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 1999, "y" : 1070 }, "id" : "MAP:Cb16761_CY_Reactome:109852", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:177939", "x" : 543, "y" : 1780 }, "id" : "Reactome:177939", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 160, "y" : 1880 }, "id" : "MAP:<API key>:177939", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 354, "y" : 1680 }, "id" : "MAP:Cb16761_CY_Reactome:177939", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "MAN:R25", "x" : 1014, "y" : 1980 }, "id" : "MAN:R25", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:177936", "x" : 1945, "y" : 2406 }, "id" : "Reactome:177936", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "MAN:R28", "x" : 1292, "y" : 1980 }, "id" : "MAN:R28", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:177922", "x" : 1331, "y" : 3206 }, "id" : "Reactome:177922", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109860", "x" : 3519, "y" : 810 }, "id" : "Reactome:109860", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 3519, "y" : 898 }, "id" : "MAP:<API key>:109860", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 3228, "y" : 722 }, "id" : "MAP:Cb16761_CY_Reactome:109860", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:177943", "x" : 1514, "y" : 2406 }, "id" : "Reactome:177943", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109865", "x" : 3261, "y" : 466 }, "id" : "Reactome:109865", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:177925", "x" : 1370, "y" : 2806 }, "id" : "Reactome:177925", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:109829", "x" : 2080, "y" : 1580 }, "id" : "Reactome:109829", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "MAP:Cs56-65-5_CY", "compartment" : "MAP:Cytosol", "label" : "ATP", "modification" : [], "ref" : "MAP:Cs56-65-5_CY", "x" : 2080, "y" : 1680 }, "id" : "MAP:<API key>:109829", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:Cb16761_CY", "compartment" : "MAP:Cytosol", "label" : "ADP", "modification" : [], "ref" : "MAP:Cb16761_CY", "x" : 1758, "y" : 1480 }, "id" : "MAP:Cb16761_CY_Reactome:109829", "is_abstract" : 0, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "label" : null, "ref" : "Reactome:109857", "x" : 3707, "y" : 986 }, "id" : "Reactome:109857", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "label" : null, "ref" : "Reactome:177942", "x" : 1331, "y" : 3382 }, "id" : "Reactome:177942", "is_abstract" : 0, "sbo" : 167, "type" : "Reaction" }, { "data" : { "clone_marker" : "Reactome:109788", "compartment" : "MAP:Plasmamembrane", "label" : "RAS:RAF", "modification" : [], "ref" : "Reactome:109788", "subnodes" : [ "MAP:<API key>:109788_Reactome:109789_1_1", "Reactome:109783_Reactome:109788_Reactome:109789_1_1" ] }, "id" : "Reactome:109788_Reactome:109789_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:UP31946_CY", "compartment" : "MAP:Cytosol", "label" : "YWHAB()", "modification" : [], "ref" : "MAP:UP31946_CY" }, "id" : "MAP:UP31946_CY_Reactome:109789_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:Cb17552_CY", "compartment" : "MAP:Cytosol", "label" : "GDP", "modification" : [], "ref" : "MAP:Cb17552_CY" }, "id" : "MAP:Cb17552_CY_Reactome:109796_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109796_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:UP31946_CY", "compartment" : "MAP:Cytosol", "label" : "YWHAB()", "modification" : [], "ref" : "MAP:UP31946_CY" }, "id" : "MAP:UP31946_CY_Reactome:109793_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109783", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_Reactome:109793_1_1", "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_1_1" ] }, "id" : "Reactome:109783_Reactome:109793_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109792", "compartment" : "MAP:Plasmamembrane", "label" : "cRaf", "modification" : [ [ 216, "340" ], [ 216, "621" ], [ 216, "259" ], [ 216, "341" ] ], "ref" : "Reactome:109792" }, "id" : "Reactome:109792_Reactome:109793_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179882", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_Reactome:180301_1_1", "Reactome:179860_Reactome:179882_Reactome:180301_1_2" ] }, "id" : "Reactome:179882_Reactome:180301_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:UP29353_CY", "compartment" : "MAP:Cytosol", "label" : "SHC", "modification" : [], "ref" : "MAP:UP29353_CY" }, "id" : "MAP:UP29353_CY_Reactome:180301_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:112359", "compartment" : "MAP:Nucleus", "label" : "phospho-ERK-1", "modification" : [ [ 216, "202" ], [ 216, "204" ] ], "ref" : "Reactome:112359" }, "id" : "Reactome:112359_Reactome:109845_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:112359", "compartment" : "MAP:Nucleus", "label" : "phospho-ERK-1", "modification" : [ [ 216, "202" ], [ 216, "204" ] ], "ref" : "Reactome:112359" }, "id" : "Reactome:112359_Reactome:109845_2", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179882", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_Reactome:180348_1_1", "Reactome:179860_Reactome:179882_Reactome:180348_1_2" ] }, "id" : "Reactome:179882_Reactome:180348_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179849", "compartment" : "MAP:Cytosol", "label" : "GRB2:GAB1", "modification" : [], "ref" : "Reactome:179849", "subnodes" : [ "MAP:UP62993_CY_Reactome:179849_Reactome:180348_1_1", "MAP:UQ13480_CY_Reactome:179849_Reactome:180348_1_1" ] }, "id" : "Reactome:179849_Reactome:180348_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "Activated ERK1", "modification" : [ [ 216, "202" ], [ 216, "204" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109843_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "phospho-MEK1", "modification" : [ [ 216, "218" ], [ 216, "222" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109843_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "RAF1(ph259,ph621)", "modification" : [ [ 216, "259" ], [ 216, "621" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109788_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109783", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_Reactome:109788_1_1", "MAP:Cb15996_CY_Reactome:109783_Reactome:109788_1_1" ] }, "id" : "Reactome:109783_Reactome:109788_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:UP62993_CY", "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY_Reactome:179849_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UQ13480_CY", "compartment" : "MAP:Cytosol", "label" : "GAB1", "modification" : [], "ref" : "MAP:UQ13480_CY" }, "id" : "MAP:UQ13480_CY_Reactome:179849_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:180304", "compartment" : "MAP:Cytosol", "label" : "GRB2:Phospho-GAB1", "modification" : [], "ref" : "Reactome:180304", "subnodes" : [ "MAP:UP62993_CY_Reactome:180304_Reactome:180286_1_1", "Reactome:180344_Reactome:180304_Reactome:180286_1_1" ] }, "id" : "Reactome:180304_Reactome:180286_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179882", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_Reactome:180286_1_1", "Reactome:179860_Reactome:179882_Reactome:180286_1_2" ] }, "id" : "Reactome:179882_Reactome:180286_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179847", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:EGFR", "modification" : [], "ref" : "Reactome:179847", "subnodes" : [ "Reactome:179863_Reactome:179847_Reactome:179845_1_1", "Reactome:179837_Reactome:179847_Reactome:179845_1_1" ] }, "id" : "Reactome:179847_Reactome:179845_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179847", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:EGFR", "modification" : [], "ref" : "Reactome:179847", "subnodes" : [ "Reactome:179863_Reactome:179847_Reactome:179845_2_1", "Reactome:179837_Reactome:179847_Reactome:179845_2_1" ] }, "id" : "Reactome:179847_Reactome:179845_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "Activated ERK1", "modification" : [ [ 216, "202" ], [ 216, "204" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109844_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "Activated ERK1", "modification" : [ [ 216, "202" ], [ 216, "204" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109844_2", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UQ07889_CY", "compartment" : "MAP:Cytosol", "label" : "Son of sevenless protein homolog 1", "modification" : [], "ref" : "MAP:UQ07889_CY" }, "id" : "MAP:UQ07889_CY_MAP:Cx114_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UP62993_CY", "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY_MAP:Cx114_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179847_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179837", "compartment" : "MAP:Plasmamembrane", "label" : "EGFR", "modification" : [], "ref" : "Reactome:179837" }, "id" : "Reactome:179837_Reactome:179847_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UP27361_CY", "compartment" : "MAP:Cytosol", "label" : "ERK1", "modification" : [], "ref" : "MAP:UP27361_CY" }, "id" : "MAP:UP27361_CY_Reactome:109838_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "phospho-MEK1", "modification" : [ [ 216, "218" ], [ 216, "222" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109838_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "RAF1(ph259,ph621)", "modification" : [ [ 216, "259" ], [ 216, "621" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109787_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UP31946_CY", "compartment" : "MAP:Cytosol", "label" : "YWHAB()", "modification" : [], "ref" : "MAP:UP31946_CY" }, "id" : "MAP:UP31946_CY_Reactome:109787_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:Cx156", "compartment" : "MAP:Cytosol", "label" : "PI3K alpha", "modification" : [], "ref" : "MAP:Cx156", "subnodes" : [ "MAP:C3_MAP:Cx156_MAN:C10_1_1", "MAP:C2_MAP:Cx156_MAN:C10_1_1" ] }, "id" : "MAP:Cx156_MAN:C10_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109783", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_MAN:C10_1_1", "MAP:Cb15996_CY_Reactome:109783_MAN:C10_1_1" ] }, "id" : "Reactome:109783_MAN:C10_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109793", "compartment" : "MAP:Plasmamembrane", "label" : "Activated RAF1 complex", "modification" : [], "ref" : "Reactome:109793", "subnodes" : [ "MAP:UP31946_CY_Reactome:109793_Reactome:109795_1_1", "Reactome:109783_Reactome:109793_Reactome:109795_1_1", "Reactome:109792_Reactome:109793_Reactome:109795_1_1" ] }, "id" : "Reactome:109793_Reactome:109795_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:UP36507_CY", "compartment" : "MAP:Cytosol", "label" : "MEK2()", "modification" : [], "ref" : "MAP:UP36507_CY" }, "id" : "MAP:UP36507_CY_Reactome:109795_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:Cx114", "compartment" : "MAP:Cytosol", "label" : "GRB2:SOS1", "modification" : [], "ref" : "MAP:Cx114", "subnodes" : [ "MAP:UQ07889_CY_MAP:Cx114_Reactome:180331_1_1", "MAP:UP62993_CY_MAP:Cx114_Reactome:180331_1_1" ] }, "id" : "MAP:Cx114_Reactome:180331_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:180337", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR:Phospho-SHC", "modification" : [], "ref" : "Reactome:180337", "subnodes" : [ "Reactome:180276_Reactome:180337_Reactome:180331_1_1", "Reactome:179882_Reactome:180337_Reactome:180331_1_1" ] }, "id" : "Reactome:180337_Reactome:180331_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:C3", "compartment" : "MAP:Cytosol", "label" : "PI3K-p85", "modification" : [], "ref" : "MAP:C3" }, "id" : "MAP:C3_Reactome:179791_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179882", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_Reactome:179791_1_1", "Reactome:179860_Reactome:179882_Reactome:179791_1_2" ] }, "id" : "Reactome:179882_Reactome:179791_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:C2", "compartment" : "MAP:Cytosol", "label" : "PI3K-p110", "modification" : [], "ref" : "MAP:C2" }, "id" : "MAP:C2_Reactome:179791_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179849", "compartment" : "MAP:Cytosol", "label" : "GRB2:GAB1", "modification" : [], "ref" : "Reactome:179849", "subnodes" : [ "MAP:UP62993_CY_Reactome:179849_Reactome:179791_1_1", "MAP:UQ13480_CY_Reactome:179849_Reactome:179791_1_1" ] }, "id" : "Reactome:179849_Reactome:179791_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109793", "compartment" : "MAP:Plasmamembrane", "label" : "Activated RAF1 complex", "modification" : [], "ref" : "Reactome:109793", "subnodes" : [ "MAP:UP31946_CY_Reactome:109793_Reactome:112406_1_1", "Reactome:109783_Reactome:109793_Reactome:112406_1_1", "Reactome:109792_Reactome:109793_Reactome:112406_1_1" ] }, "id" : "Reactome:109793_Reactome:112406_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:112398", "compartment" : "MAP:Cytosol", "label" : "MEK", "modification" : [], "ref" : "Reactome:112398" }, "id" : "Reactome:112398_Reactome:112406_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:UQ02750_CY", "compartment" : "MAP:Cytosol", "label" : "MEK1", "modification" : [], "ref" : "MAP:UQ02750_CY" }, "id" : "MAP:UQ02750_CY_Reactome:109794_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109793", "compartment" : "MAP:Plasmamembrane", "label" : "Activated RAF1 complex", "modification" : [], "ref" : "Reactome:109793", "subnodes" : [ "MAP:UP31946_CY_Reactome:109793_Reactome:109794_1_1", "Reactome:109783_Reactome:109793_Reactome:109794_1_1", "Reactome:109792_Reactome:109793_Reactome:109794_1_1" ] }, "id" : "Reactome:109793_Reactome:109794_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:180276", "compartment" : "MAP:Cytosol", "label" : "Phospho-SHC transforming protein", "modification" : [ [ 216, "349" ], [ 216, "350" ] ], "ref" : "Reactome:180276" }, "id" : "Reactome:180276_Reactome:180337_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179882", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_Reactome:180337_1_1", "Reactome:179860_Reactome:179882_Reactome:180337_1_2" ] }, "id" : "Reactome:179882_Reactome:180337_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:Cx114", "compartment" : "MAP:Cytosol", "label" : "GRB2:SOS1", "modification" : [], "ref" : "MAP:Cx114", "subnodes" : [ "MAP:UQ07889_CY_MAP:Cx114_Reactome:179820_1_1", "MAP:UP62993_CY_MAP:Cx114_Reactome:179820_1_1" ] }, "id" : "MAP:Cx114_Reactome:179820_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179882", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_Reactome:179820_1_1", "Reactome:179860_Reactome:179882_Reactome:179820_1_2" ] }, "id" : "Reactome:179882_Reactome:179820_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:<API key>", "compartment" : "MAP:Cytosol", "label" : "RAF1(ph259,ph621)", "modification" : [ [ 216, "259" ], [ 216, "621" ] ], "ref" : "MAP:<API key>" }, "id" : "MAP:<API key>:109788_Reactome:109789_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109783", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1", "MAP:Cb15996_CY_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1" ] }, "id" : "Reactome:109783_Reactome:109788_Reactome:109789_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_Reactome:109793_1_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_1_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180301_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180301_1_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180348_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180348_1_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:UP62993_CY", "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY_Reactome:179849_Reactome:180348_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UQ13480_CY", "compartment" : "MAP:Cytosol", "label" : "GAB1", "modification" : [], "ref" : "MAP:UQ13480_CY" }, "id" : "MAP:UQ13480_CY_Reactome:179849_Reactome:180348_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_Reactome:109788_1_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109788_1_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:UP62993_CY", "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY_Reactome:180304_Reactome:180286_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:180344", "compartment" : "MAP:Cytosol", "label" : "Phospho-GAB1", "modification" : [ [ 216, "627" ], [ 216, "659" ], [ 216, "447" ], [ 216, "472" ], [ 216, "589" ] ], "ref" : "Reactome:180344" }, "id" : "Reactome:180344_Reactome:180304_Reactome:180286_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180286_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180286_1_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179847_Reactome:179845_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179837", "compartment" : "MAP:Plasmamembrane", "label" : "EGFR", "modification" : [], "ref" : "Reactome:179837" }, "id" : "Reactome:179837_Reactome:179847_Reactome:179845_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179847_Reactome:179845_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179837", "compartment" : "MAP:Plasmamembrane", "label" : "EGFR", "modification" : [], "ref" : "Reactome:179837" }, "id" : "Reactome:179837_Reactome:179847_Reactome:179845_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:C3", "compartment" : "MAP:Cytosol", "label" : "PI3K-p85", "modification" : [], "ref" : "MAP:C3" }, "id" : "MAP:C3_MAP:Cx156_MAN:C10_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:C2", "compartment" : "MAP:Cytosol", "label" : "PI3K-p110", "modification" : [], "ref" : "MAP:C2" }, "id" : "MAP:C2_MAP:Cx156_MAN:C10_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_MAN:C10_1_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_MAN:C10_1_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "MAP:UP31946_CY", "compartment" : "MAP:Cytosol", "label" : "YWHAB()", "modification" : [], "ref" : "MAP:UP31946_CY" }, "id" : "MAP:UP31946_CY_Reactome:109793_Reactome:109795_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109783", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1", "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1" ] }, "id" : "Reactome:109783_Reactome:109793_Reactome:109795_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109792", "compartment" : "MAP:Plasmamembrane", "label" : "cRaf", "modification" : [ [ 216, "340" ], [ 216, "621" ], [ 216, "259" ], [ 216, "341" ] ], "ref" : "Reactome:109792" }, "id" : "Reactome:109792_Reactome:109793_Reactome:109795_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UQ07889_CY", "compartment" : "MAP:Cytosol", "label" : "Son of sevenless protein homolog 1", "modification" : [], "ref" : "MAP:UQ07889_CY" }, "id" : "MAP:UQ07889_CY_MAP:Cx114_Reactome:180331_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UP62993_CY", "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY_MAP:Cx114_Reactome:180331_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:180276", "compartment" : "MAP:Cytosol", "label" : "Phospho-SHC transforming protein", "modification" : [ [ 216, "349" ], [ 216, "350" ] ], "ref" : "Reactome:180276" }, "id" : "Reactome:180276_Reactome:180337_Reactome:180331_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179882", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR (Y992, Y1068, Y1086, Y1148, Y1173) dimer", "modification" : [], "ref" : "Reactome:179882", "subnodes" : [ "Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1", "Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2" ] }, "id" : "Reactome:179882_Reactome:180337_Reactome:180331_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:179791_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:179791_1_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:UP62993_CY", "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY_Reactome:179849_Reactome:179791_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UQ13480_CY", "compartment" : "MAP:Cytosol", "label" : "GAB1", "modification" : [], "ref" : "MAP:UQ13480_CY" }, "id" : "MAP:UQ13480_CY_Reactome:179849_Reactome:179791_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UP31946_CY", "compartment" : "MAP:Cytosol", "label" : "YWHAB()", "modification" : [], "ref" : "MAP:UP31946_CY" }, "id" : "MAP:UP31946_CY_Reactome:109793_Reactome:112406_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109783", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1", "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1" ] }, "id" : "Reactome:109783_Reactome:109793_Reactome:112406_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109792", "compartment" : "MAP:Plasmamembrane", "label" : "cRaf", "modification" : [ [ 216, "340" ], [ 216, "621" ], [ 216, "259" ], [ 216, "341" ] ], "ref" : "Reactome:109792" }, "id" : "Reactome:109792_Reactome:109793_Reactome:112406_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UP31946_CY", "compartment" : "MAP:Cytosol", "label" : "YWHAB()", "modification" : [], "ref" : "MAP:UP31946_CY" }, "id" : "MAP:UP31946_CY_Reactome:109793_Reactome:109794_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109783", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS:GTP", "modification" : [], "ref" : "Reactome:109783", "subnodes" : [ "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1", "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1" ] }, "id" : "Reactome:109783_Reactome:109793_Reactome:109794_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109792", "compartment" : "MAP:Plasmamembrane", "label" : "cRaf", "modification" : [ [ 216, "340" ], [ 216, "621" ], [ 216, "259" ], [ 216, "341" ] ], "ref" : "Reactome:109792" }, "id" : "Reactome:109792_Reactome:109793_Reactome:109794_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180337_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180337_1_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "MAP:UQ07889_CY", "compartment" : "MAP:Cytosol", "label" : "Son of sevenless protein homolog 1", "modification" : [], "ref" : "MAP:UQ07889_CY" }, "id" : "MAP:UQ07889_CY_MAP:Cx114_Reactome:179820_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "MAP:UP62993_CY", "compartment" : "MAP:Cytosol", "label" : "GRB2()", "modification" : [], "ref" : "MAP:UP62993_CY" }, "id" : "MAP:UP62993_CY_MAP:Cx114_Reactome:179820_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:179820_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:179820_1_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109788_Reactome:109789_1_1_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180301_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180348_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180286_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109795_1_1_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179860", "compartment" : "MAP:Plasmamembrane", "label" : "EGF:Phospho-EGFR", "modification" : [], "ref" : "Reactome:179860", "subnodes" : [ "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1", "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1" ] }, "id" : "Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2", "is_abstract" : 1, "sbo" : 253, "type" : "Complex" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179791_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:112406_1_1_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "Reactome:109782", "compartment" : "MAP:Plasmamembrane", "label" : "p21 RAS", "modification" : [], "ref" : "Reactome:109782" }, "id" : "Reactome:109782_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1", "is_abstract" : 1, "sbo" : 240, "type" : "Compound" }, { "data" : { "clone_marker" : "MAP:Cb15996_CY", "compartment" : "MAP:Cytosol", "label" : "GTP", "modification" : [], "ref" : "MAP:Cb15996_CY" }, "id" : "MAP:Cb15996_CY_Reactome:109783_Reactome:109793_Reactome:109794_1_1_1", "is_abstract" : 1, "sbo" : 247, "type" : "SimpleCompound" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:179820_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_1_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179863", "compartment" : "MAP:Extracellular", "label" : "EGF", "modification" : [], "ref" : "Reactome:179863" }, "id" : "Reactome:179863_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "clone_marker" : "Reactome:179803", "compartment" : "MAP:Plasmamembrane", "label" : "Phospho-EGFR", "modification" : [ [ 216, "1068" ], [ 216, "1148" ], [ 216, "1173" ], [ 216, "1086" ], [ 216, "992" ] ], "ref" : "Reactome:179803" }, "id" : "Reactome:179803_Reactome:179860_Reactome:179882_Reactome:180337_Reactome:180331_1_1_2_1", "is_abstract" : 1, "sbo" : 252, "type" : "Protein" }, { "data" : { "label" : "Extracellular", "ref" : "MAP:Extracellular", "subnodes" : [ "Reactome:179863" ] }, "id" : "MAP:Extracellular", "is_abstract" : 0, "sbo" : 290, "type" : "Compartment" }, { "data" : { "label" : "Plasmamembrane", "ref" : "MAP:Plasmamembrane", "subnodes" : [ "Reactome:177934", "MAP:C79", "Reactome:179856", "Reactome:109841", "Reactome:179860", "Reactome:177940", "MAP:UP01116_", "Reactome:109803", "Reactome:109788", "Reactome:177930", "Reactome:180286", "MAN:R1", "MAN:C10", "Reactome:180331", "Reactome:177936", "Reactome:112406", "MAN:R28", "Reactome:177922", "Reactome:180337", "Reactome:177943", "Reactome:109792", "MAP:UP01112_PM", "Reactome:109789", "Reactome:109796", "Reactome:163338", "Reactome:177938", "Reactome:109793", "Reactome:180301", "Reactome:109802", "Reactome:180348", "Reactome:179837", "Reactome:177945", "Reactome:179845", "Reactome:177933", "Reactome:179847", "MAN:R2", "Reactome:179882", "Reactome:197745", "Reactome:109852", "Reactome:177939", "Reactome:109795", "Reactome:109794", "Reactome:109782", "Reactome:179820", "Reactome:179803", "Reactome:179838", "Reactome:177925", "Reactome:109829", "Reactome:109783", "Reactome:177942" ] }, "id" : "MAP:Plasmamembrane", "is_abstract" : 0, "sbo" : 290, "type" : "Compartment" }, { "data" : { "label" : "Nucleus", "ref" : "MAP:Nucleus", "subnodes" : [ "MAP:UP19419_NU(1-428)", "Reactome:29358", "Reactome:198666", "MAP:UP19419_NU(1-428)<API key>", "Reactome:112359", "Reactome:198710", "Reactome:109845", "Reactome:113582" ] }, "id" : "MAP:Nucleus", "is_abstract" : 0, "sbo" : 290, "type" : "Compartment" }, { "data" : { "label" : "Cytosol", "ref" : "MAP:Cytosol", "subnodes" : [ "MAP:Cx156", "Reactome:109848", "Reactome:109867", "MAP:UP31946_CY", "Reactome:180276", "Reactome:180304", "Reactome:109843", "Reactome:179849", "MAP:Cb17552_CY", "Reactome:112374", "MAP:UQ07889_CY", "MAP:Cx114", "Reactome:109804", "Reactome:109787", "Reactome:112340", "MAP:UP29353_CY", "MAP:UQ02750_CY", "MAP:Cb16761_CY", "Reactome:109860", "Reactome:112398", "MAP:UP62993_CY", "MAP:Cb15996_CY", "Reactome:109865", "Reactome:180344", "MAP:C3", "MAP:<API key>", "MAP:Cs56-65-5_CY", "MAP:UP36507_CY", "MAP:<API key>", "MAP:<API key>", "MAP:UQ13480_CY", "Reactome:112339", "Reactome:109863", "Reactome:109844", "Reactome:109838", "Reactome:179791", "MAP:C2", "MAP:UP27361_CY", "Reactome:109857" ] }, "id" : "MAP:Cytosol", "is_abstract" : 0, "sbo" : 290, "type" : "Compartment" } ] };
#include "gblackboard_p.h" #include "gblackboard_p_p.h" #include "gghosttree_p.h" #include "gghostnode_p.h" typedef QHash<QQmlEngine *, QPointer<GBlackboard> > GlobalBlackboards; Q_GLOBAL_STATIC(GlobalBlackboards, <API key>) // class GBlackboard GBlackboard::GBlackboard(QObject *parent) : QObject(*new GBlackboardPrivate(), parent) { Q_D(GBlackboard); d->targetNode = qobject_cast<GGhostNode *>(parent); if (d->targetNode) { connect(d->targetNode, &GGhostNode::statusChanged, [this](Ghost::Status status) { if (Ghost::StandBy == status) { this->clear(); } }); d->masterTree = d->targetNode->masterTree(); } else { d->masterTree = qobject_cast<GGhostTree *>(parent); if (d->masterTree) { connect(d->masterTree, &GGhostTree::statusChanged, [this](Ghost::Status status) { if (Ghost::StandBy == status) { this->clear(); } }); } } } GBlackboard *GBlackboard::<API key>(QObject *target) { return new GBlackboard(target); } GBlackboard *GBlackboard::globalBlackboard() const { Q_D(const GBlackboard); if (d->globalBlackboard) { return d->globalBlackboard; } QQmlContext *context = qmlContext(d->parent); if (nullptr == context) { Q_CHECK_PTR(context); return nullptr; } QQmlEngine *engine = context->engine(); if (nullptr == engine) { Q_CHECK_PTR(engine); return nullptr; } QPointer<GBlackboard> blackboard = <API key>()->value(engine); if (blackboard.isNull()) { blackboard = new GBlackboard(engine); <API key>()->insert(engine, blackboard); } GBlackboardPrivate *_this = const_cast<GBlackboardPrivate *>(d); _this->globalBlackboard = blackboard.data(); return d->globalBlackboard; } GBlackboard *GBlackboard::sharedBlackboard() const { Q_D(const GBlackboard); if (d->sharedBlackboard) { return d->sharedBlackboard; } if (!d->masterTree) { qWarning("GtGhost : Master tree is null."); return nullptr; } QObject *attached = <API key><GBlackboard>(d->masterTree); if (attached) { GBlackboardPrivate *_this = const_cast<GBlackboardPrivate *>(d); _this->sharedBlackboard = qobject_cast<GBlackboard *>(attached); } return d->sharedBlackboard; } bool GBlackboard::has(const QString &key) const { Q_D(const GBlackboard); return d->datas.contains(key); } void GBlackboard::set(const QString &key, const QJSValue &value) { Q_D(GBlackboard); if (value.isUndefined()) { d->datas.remove(key); } else { d->datas.insert(key, value); } } QJSValue GBlackboard::get(const QString &key) const { Q_D(const GBlackboard); return d->datas.value(key); } void GBlackboard::unset(const QString &key) { Q_D(GBlackboard); d->datas.remove(key); } void GBlackboard::clear() { Q_D(GBlackboard); d->datas.clear(); } // class GBlackboardPrivate GBlackboardPrivate::GBlackboardPrivate() : masterTree(nullptr) , targetNode(nullptr) , globalBlackboard(nullptr) , sharedBlackboard(nullptr) { } GBlackboardPrivate::~GBlackboardPrivate() { }
package org.alfresco.jlan.client; import org.alfresco.jlan.smb.PCShare; import org.alfresco.jlan.smb.SMBDeviceType; import org.alfresco.jlan.smb.SMBException; /** * SMB print session class * * <p>The print session allows a new print job to be created, using the SMBFile * class or as an SMBOutputStream. * * <p>When the SMBFile/SMBOutputStream is closed the print job will be queued to * the remote printer. * * <p>A print session is created using the SessionFactory.OpenPrinter() method. The * SessionFactory negotiates the appropriate SMB dialect and creates the appropriate * PrintSession derived object. * * @see SessionFactory * * @author gkspencer */ public abstract class PrintSession extends Session { // Print modes public static final int TextMode = 0; public static final int GraphicsMode = 1; // Default number of print queue entries to return public static final int DefaultEntryCount = 20; /** * Construct an SMB print session * * @param shr Remote server details * @param dialect SMB dialect that this session is using */ protected PrintSession(PCShare shr, int dialect) { super(shr, dialect, null); // Set the device type this.setDeviceType(SMBDeviceType.Printer); } /** * Determine if the print session has been closed. * * @return true if the print session has been closed, else false. */ protected final boolean isClosed() { return m_treeid == Closed ? true : false; } /** * Open a spool file on the remote print server. * * @param id Identifier string for this print request. * @param mode Print mode, either TextMode or GraphicsMode. * @param setuplen Length of data in the start of the spool file that is printer setup code. * @return SMBFile for the new spool file, else null. * @exception java.io.IOException If an I/O error occurs. * @exception SMBException If an SMB level error occurs */ public abstract SMBFile OpenSpoolFile(String id, int mode, int setuplen) throws java.io.IOException, SMBException; /** * Open a spool file as an output stream. * * @param id Identifier string for this print request. * @param mode Print mode, either TextMode or GraphicsMode. * @param setuplen Length of data in the start of the spool file that is printer setup code. * @return SMBOutputStream for the spool file, else null. * @exception java.io.IOException If an I/O error occurs. * @exception SMBException If an SMB level error occurs */ public SMBOutputStream OpenSpoolStream(String id, int mode, int setuplen) throws java.io.IOException, SMBException { // Open an SMBFile first SMBFile sfile = OpenSpoolFile(id, mode, setuplen); if ( sfile == null) return null; // Create an output stream attached to the SMBFile return new SMBOutputStream(sfile); } }
package org.klipdev.spidergps3p.kml; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "vec2Type") public class Vec2Type { @XmlAttribute(name = "x") protected Double x; @XmlAttribute(name = "y") protected Double y; @XmlAttribute(name = "xunits") protected UnitsEnumType xunits; @XmlAttribute(name = "yunits") protected UnitsEnumType yunits; public double getX() { if (x == null) { return 1.0D; } else { return x; } } public void setX(Double value) { this.x = value; } public double getY() { if (y == null) { return 1.0D; } else { return y; } } public void setY(Double value) { this.y = value; } public UnitsEnumType getXunits() { if (xunits == null) { return UnitsEnumType.FRACTION; } else { return xunits; } } public void setXunits(UnitsEnumType value) { this.xunits = value; } public UnitsEnumType getYunits() { if (yunits == null) { return UnitsEnumType.FRACTION; } else { return yunits; } } public void setYunits(UnitsEnumType value) { this.yunits = value; } }
<?php namespace ConfigTest; class TokenProcessorTest extends \<API key> { public function testInstantiate() { } }
<?php namespace Database\Media\om; use \Criteria; use \Exception; use \ModelCriteria; use \ModelJoin; use \PDO; use \Propel; use \PropelCollection; use \PropelException; use \<API key>; use \PropelPDO; use Database\Media\Artist; use Database\Media\Media; use Database\Media\MediaToArtist; use Database\Media\MediaToArtistPeer; use Database\Media\MediaToArtistQuery; /** * Base class that represents a query for the '<API key>' table. * * * * This class was autogenerated by Propel 1.7.1 on: * * Wed Oct 1 21:22:56 2014 * * @method MediaToArtistQuery orderById($order = Criteria::ASC) Order by the id column * @method MediaToArtistQuery orderByMediaId($order = Criteria::ASC) Order by the media_id column * @method MediaToArtistQuery orderByArtistId($order = Criteria::ASC) Order by the artist_id column * * @method MediaToArtistQuery groupById() Group by the id column * @method MediaToArtistQuery groupByMediaId() Group by the media_id column * @method MediaToArtistQuery groupByArtistId() Group by the artist_id column * * @method MediaToArtistQuery leftJoin($relation) Adds a LEFT JOIN clause to the query * @method MediaToArtistQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query * @method MediaToArtistQuery innerJoin($relation) Adds a INNER JOIN clause to the query * * @method MediaToArtistQuery leftJoinMedia($relationAlias = null) Adds a LEFT JOIN clause to the query using the Media relation * @method MediaToArtistQuery rightJoinMedia($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Media relation * @method MediaToArtistQuery innerJoinMedia($relationAlias = null) Adds a INNER JOIN clause to the query using the Media relation * * @method MediaToArtistQuery leftJoinArtist($relationAlias = null) Adds a LEFT JOIN clause to the query using the Artist relation * @method MediaToArtistQuery rightJoinArtist($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Artist relation * @method MediaToArtistQuery innerJoinArtist($relationAlias = null) Adds a INNER JOIN clause to the query using the Artist relation * * @method MediaToArtist findOne(PropelPDO $con = null) Return the first MediaToArtist matching the query * @method MediaToArtist findOneOrCreate(PropelPDO $con = null) Return the first MediaToArtist matching the query, or a new MediaToArtist object populated from the query conditions when no match is found * * @method MediaToArtist findOneByMediaId(string $media_id) Return the first MediaToArtist filtered by the media_id column * @method MediaToArtist findOneByArtistId(string $artist_id) Return the first MediaToArtist filtered by the artist_id column * * @method array findById(string $id) Return MediaToArtist objects filtered by the id column * @method array findByMediaId(string $media_id) Return MediaToArtist objects filtered by the media_id column * @method array findByArtistId(string $artist_id) Return MediaToArtist objects filtered by the artist_id column * * @package propel.generator.Media.om */ abstract class <API key> extends ModelCriteria { /** * Initializes internal state of <API key> object. * * @param string $dbName The dabase name * @param string $modelName The phpName of a model, e.g. 'Book' * @param string $modelAlias The alias for the model in this query, e.g. 'b' */ public function __construct($dbName = null, $modelName = null, $modelAlias = null) { if (null === $dbName) { $dbName = '<API key>'; } if (null === $modelName) { $modelName = 'Database\\Media\\MediaToArtist'; } parent::__construct($dbName, $modelName, $modelAlias); } /** * Returns a new MediaToArtistQuery object. * * @param string $modelAlias The alias of a model in the query * @param MediaToArtistQuery|Criteria $criteria Optional Criteria to build the query from * * @return MediaToArtistQuery */ public static function create($modelAlias = null, $criteria = null) { if ($criteria instanceof MediaToArtistQuery) { return $criteria; } $query = new MediaToArtistQuery(null, null, $modelAlias); if ($criteria instanceof Criteria) { $query->mergeWith($criteria); } return $query; } /** * Find object by primary key. * Propel uses the instance pool to skip the database if the object exists. * Go fast if the query is untouched. * * <code> * $obj = $c->findPk(12, $con); * </code> * * @param mixed $key Primary key to use for the query * @param PropelPDO $con an optional connection object * * @return MediaToArtist|MediaToArtist[]|mixed the result, formatted by the current formatter */ public function findPk($key, $con = null) { if ($key === null) { return null; } if ((null !== ($obj = MediaToArtistPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { // the object is already in the instance pool return $obj; } if ($con === null) { $con = Propel::getConnection(MediaToArtistPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $this->basePreSelect($con); if ($this->formatter || $this->modelAlias || $this->with || $this->select || $this->selectColumns || $this->asColumns || $this->selectModifiers || $this->map || $this->having || $this->joins) { return $this->findPkComplex($key, $con); } else { return $this->findPkSimple($key, $con); } } /** * Alias of findPk to use instance pooling * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return MediaToArtist A model object, or null if the key is not found * @throws PropelException */ public function findOneById($key, $con = null) { return $this->findPk($key, $con); } /** * Find object by primary key using raw SQL to go fast. * Bypass doSelect() and the object formatter by using generated code. * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return MediaToArtist A model object, or null if the key is not found * @throws PropelException */ protected function findPkSimple($key, $con) { $sql = 'SELECT id, media_id, artist_id FROM <API key> WHERE id = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_STR); $stmt->execute(); } catch (Exception $e) { Propel::log($e->getMessage(), Propel::LOG_ERR); throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); } $obj = null; if ($row = $stmt->fetch(PDO::FETCH_NUM)) { $obj = new MediaToArtist(); $obj->hydrate($row); MediaToArtistPeer::addInstanceToPool($obj, (string) $key); } $stmt->closeCursor(); return $obj; } /** * Find object by primary key. * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return MediaToArtist|MediaToArtist[]|mixed the result, formatted by the current formatter */ protected function findPkComplex($key, $con) { // As the query uses a PK condition, no limit(1) is necessary. $criteria = $this->isKeepQuery() ? clone $this : $this; $stmt = $criteria ->filterByPrimaryKey($key) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->formatOne($stmt); } /** * Find objects by primary key * <code> * $objs = $c->findPks(array(12, 56, 832), $con); * </code> * @param array $keys Primary keys to use for the query * @param PropelPDO $con an optional connection object * * @return <API key>|MediaToArtist[]|mixed the list of results, formatted by the current formatter */ public function findPks($keys, $con = null) { if ($con === null) { $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); } $this->basePreSelect($con); $criteria = $this->isKeepQuery() ? clone $this : $this; $stmt = $criteria ->filterByPrimaryKeys($keys) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->format($stmt); } /** * Filter the query by primary key * * @param mixed $key Primary key to use for the query * * @return MediaToArtistQuery The current query, for fluid interface */ public function filterByPrimaryKey($key) { return $this->addUsingAlias(MediaToArtistPeer::ID, $key, Criteria::EQUAL); } /** * Filter the query by a list of primary keys * * @param array $keys The list of primary key to use for the query * * @return MediaToArtistQuery The current query, for fluid interface */ public function filterByPrimaryKeys($keys) { return $this->addUsingAlias(MediaToArtistPeer::ID, $keys, Criteria::IN); } /** * Filter the query on the id column * * Example usage: * <code> * $query->filterById('fooValue'); // WHERE id = 'fooValue' * $query->filterById('%fooValue%'); // WHERE id LIKE '%fooValue%' * </code> * * @param string $id The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return MediaToArtistQuery The current query, for fluid interface */ public function filterById($id = null, $comparison = null) { if (null === $comparison) { if (is_array($id)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $id)) { $id = str_replace('*', '%', $id); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(MediaToArtistPeer::ID, $id, $comparison); } /** * Filter the query on the media_id column * * Example usage: * <code> * $query->filterByMediaId('fooValue'); // WHERE media_id = 'fooValue' * $query->filterByMediaId('%fooValue%'); // WHERE media_id LIKE '%fooValue%' * </code> * * @param string $mediaId The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return MediaToArtistQuery The current query, for fluid interface */ public function filterByMediaId($mediaId = null, $comparison = null) { if (null === $comparison) { if (is_array($mediaId)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $mediaId)) { $mediaId = str_replace('*', '%', $mediaId); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(MediaToArtistPeer::MEDIA_ID, $mediaId, $comparison); } /** * Filter the query on the artist_id column * * Example usage: * <code> * $query->filterByArtistId('fooValue'); // WHERE artist_id = 'fooValue' * $query->filterByArtistId('%fooValue%'); // WHERE artist_id LIKE '%fooValue%' * </code> * * @param string $artistId The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return MediaToArtistQuery The current query, for fluid interface */ public function filterByArtistId($artistId = null, $comparison = null) { if (null === $comparison) { if (is_array($artistId)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $artistId)) { $artistId = str_replace('*', '%', $artistId); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(MediaToArtistPeer::ARTIST_ID, $artistId, $comparison); } /** * Filter the query by a related Media object * * @param Media|<API key> $media The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return MediaToArtistQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByMedia($media, $comparison = null) { if ($media instanceof Media) { return $this ->addUsingAlias(MediaToArtistPeer::MEDIA_ID, $media->getId(), $comparison); } elseif ($media instanceof <API key>) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(MediaToArtistPeer::MEDIA_ID, $media->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByMedia() only accepts arguments of type Media or PropelCollection'); } } /** * Adds a JOIN clause to the query using the Media relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return MediaToArtistQuery The current query, for fluid interface */ public function joinMedia($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Media'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'Media'); } return $this; } /** * Use the Media relation Media object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return \Database\Media\MediaQuery A secondary query class using the current class as primary query */ public function useMediaQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinMedia($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'Media', '\Database\Media\MediaQuery'); } /** * Filter the query by a related Artist object * * @param Artist|<API key> $artist The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return MediaToArtistQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByArtist($artist, $comparison = null) { if ($artist instanceof Artist) { return $this ->addUsingAlias(MediaToArtistPeer::ARTIST_ID, $artist->getId(), $comparison); } elseif ($artist instanceof <API key>) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(MediaToArtistPeer::ARTIST_ID, $artist->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByArtist() only accepts arguments of type Artist or PropelCollection'); } } /** * Adds a JOIN clause to the query using the Artist relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return MediaToArtistQuery The current query, for fluid interface */ public function joinArtist($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Artist'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'Artist'); } return $this; } /** * Use the Artist relation Artist object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return \Database\Media\ArtistQuery A secondary query class using the current class as primary query */ public function useArtistQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinArtist($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'Artist', '\Database\Media\ArtistQuery'); } /** * Exclude object from result * * @param MediaToArtist $mediaToArtist Object to remove from the list of results * * @return MediaToArtistQuery The current query, for fluid interface */ public function prune($mediaToArtist = null) { if ($mediaToArtist) { $this->addUsingAlias(MediaToArtistPeer::ID, $mediaToArtist->getId(), Criteria::NOT_EQUAL); } return $this; } }
#import <Ushahidi/<API key>.h> #import <Ushahidi/USHDatePicker.h> #import <Ushahidi/USHLocator.h> #import <Ushahidi/USHImagePicker.h> #import <Ushahidi/USHVideoPicker.h> #import <Ushahidi/USHLoginDialog.h> #import <Ushahidi/Ushahidi.h> #import <Ushahidi/USHShareController.h> #import "USHInputTableCell.h" #import "<API key>.h" @class <API key>; @class <API key>; @class <API key>; @class USHMap; @class USHReport; @interface <API key> : <API key><UshahidiDelegate, <API key>, UIAlertViewDelegate, USHLocatorDelegate, <API key>, <API key>, <API key>, <API key>, <API key>> @property (retain, nonatomic) IBOutlet <API key> *<API key>; @property (strong, nonatomic) IBOutlet <API key> *<API key>; @property (strong, nonatomic) IBOutlet <API key> *<API key>; @property (strong, nonatomic) IBOutlet <API key> *<API key>; @property (strong, nonatomic) USHMap *map; @property (strong, nonatomic) USHReport *report; @property (assign, nonatomic) BOOL openGeoSMS; - (IBAction)info:(id)sender event:(UIEvent*)event; @end
// Created file "Lib\src\dxguid\X64\d3d9guid" typedef struct _GUID { unsigned long Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[8]; } GUID; #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } DEFINE_GUID(<API key>, 0x48f377b8, 0x6880, 0x4c7b, 0x8b, 0xdc, 0x38, 0x01, 0x76, 0xc6, 0x65, 0x4d);
package com.pahlsoft.ws.iaas.provision.deploy.behaviors; import org.apache.log4j.Logger; import com.pahlsoft.ws.iaas.provision.generated.InstructionType; import com.pahlsoft.ws.iaas.provision.generated.ProvisionProperties; import com.pahlsoft.ws.iaas.provision.generated.ProvisionResponse; import com.pahlsoft.ws.iaas.utilities.PropertyParser; public class JbossDeployBehavior implements DeployBehavior { public Logger LOG = Logger.getLogger(JbossDeployBehavior.class); public ProvisionResponse pr = new ProvisionResponse(); public ProvisionResponse deploy(String hostname, ProvisionProperties props) { LOG.info("Deploying JBOSS :" + hostname); PropertyParser.listProps(props); pr.setHostname(hostname); pr.setProperties(props); pr.setInstruction(InstructionType.DEPLOY); pr.setStatus(true); return pr; } public ProvisionResponse redeploy(String hostname, ProvisionProperties props) { LOG.info("Redeploying JBOSS :" + hostname); PropertyParser.listProps(props); pr.setHostname(hostname); pr.setProperties(props); pr.setInstruction(InstructionType.REDEPLOY); pr.setStatus(true); return pr; } public ProvisionResponse clean(String hostname, ProvisionProperties props) { LOG.info("Cleaning JBOSS :" + hostname); PropertyParser.listProps(props); pr.setHostname(hostname); pr.setProperties(props); pr.setInstruction(InstructionType.CLEAN); pr.setStatus(true); return pr; } public ProvisionResponse backup(String hostname, ProvisionProperties props) { LOG.info("Backing Up JBOSS :" + hostname); PropertyParser.listProps(props); pr.setHostname(hostname); pr.setProperties(props); pr.setInstruction(InstructionType.BACKUP); pr.setStatus(true); return pr; } public ProvisionResponse configure(String hostname, ProvisionProperties props) { LOG.info("Configuring JBOSS :" + hostname); PropertyParser.listProps(props); pr.setHostname(hostname); pr.setProperties(props); pr.setInstruction(InstructionType.CONFIGURE); pr.setStatus(true); return pr; } public ProvisionResponse install(String hostname, ProvisionProperties props) { LOG.info("Installing JBOSS :" + hostname); PropertyParser.listProps(props); pr.setHostname(hostname); pr.setProperties(props); pr.setInstruction(InstructionType.INSTALL); pr.setStatus(true); return pr; } }
package org.eso.ias.cdb; import org.eso.ias.cdb.json.CdbFiles; import org.eso.ias.cdb.json.CdbJsonFiles; import org.eso.ias.cdb.json.JsonReader; import org.eso.ias.cdb.rdb.RdbReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.lang.reflect.Constructor; import java.util.Arrays; import java.util.List; import java.util.Objects; import java.util.Optional; /** * The factory to get the CdbReader implementation to use. * * This class checks the parameters of the command line, the java properties * and the environment variable to build and return the {@link CdbReader} to use * for reading the CDB. * * It offers a common strategy to be used consistently by all the IAS tools. * * The strategy is as follow: * - if -cdbClass java.class param is present in the command line then the passed class * is dynamically loaded and built (empty constructor); the configuration * parameters eventually expected by such class will be passed by means of java * properties (-D...) * - else if jCdb file.path param is present in the command line then the JSON CDB * implementation will be returned passing the passed file path * - else the RDB implementation is returned (note that the parameters to connect to the RDB are passed * in the hibernate configuration file * * RDB implementation is the fallback if none of the other possibilities succeeds. * */ public class CdbReaderFactory { /** * The logger */ private static final Logger logger = LoggerFactory.getLogger(CdbReaderFactory.class); /** * The parameter to set in the command line to build a CdbReader from a custom java class */ public static final String <API key>="-cdbClass"; /** * The long parameter to set in the command line to build a JSON CdbReader */ public static final String <API key> ="-jCdb"; /** * The short parameter to set in the command line to build a JSON CdbReader */ public static final String <API key> ="-j"; /** * get the value of the passed parameter from the eray of strings. * * The value of the parameter is in the position next to the passed param name like in * -jcdb path * * @param paramName the not null nor empty parameter * @param cmdLine the command line * @return the value of the parameter or empty if not found in the command line */ private static Optional<String> getValueOfParam(String paramName, String cmdLine[]) { if (paramName==null || paramName.isEmpty()) { throw new <API key>("Invalid null/empty name of parameter"); } if (cmdLine==null || cmdLine.length<2) { return Optional.empty(); } List<String> params = Arrays.asList(cmdLine); int pos=params.indexOf(paramName); if (pos==-1) { // Not found return Optional.empty(); } String ret = null; try { ret=params.get(pos+1); } catch (<API key> e) { logger.error("Missing parameter for {}}",paramName); } return Optional.ofNullable(ret); } /** * Build and return the user provided CdbReader from the passed class using introspection * * @param cls The class implementing the CdbReader * @return the user defined CdbReader */ private static final CdbReader <API key>(String cls) throws IasCdbException { if (cls==null || cls.isEmpty()) { throw new <API key>("Invalid null/empty class"); } ClassLoader classLoader = Thread.currentThread().<API key>(); Class<?> theClass=null; try { theClass=classLoader.loadClass(cls); } catch (Exception e) { throw new IasCdbException("Error loading the external class "+cls,e); } Constructor constructor = null; try { constructor=theClass.getConstructor(null); } catch (Exception e) { throw new IasCdbException("Error getting the default (empty) constructor of the external class "+cls,e); } Object obj=null; try { obj=constructor.newInstance(null); } catch (Exception e) { throw new IasCdbException("Error building an object of the external class "+cls,e); } return (CdbReader)obj; } /** * Gets and return the CdbReader to use to read the CDB applying the policiy described in the javadoc * of the class * * @param cmdLine The command line * @return the CdbReader to read th CDB * @throws Exception in case of error building the CdbReader */ public static CdbReader getCdbReader(String[] cmdLine) throws Exception { Objects.requireNonNull(cmdLine,"Invalid null command line"); Optional<String> userCdbReader = getValueOfParam(<API key>,cmdLine); if (userCdbReader.isPresent()) { logger.info("Using external (user provided) CdbReader from class {}",userCdbReader.get()); return <API key>(userCdbReader.get()); } else { logger.debug("No external CdbReader found"); } Optional<String> jsonCdbReaderS = getValueOfParam(<API key>,cmdLine); Optional<String> jsonCdbReaderL = getValueOfParam(<API key>,cmdLine); if (jsonCdbReaderS.isPresent() && jsonCdbReaderL.isPresent()) { throw new Exception("JSON CDB path defined twice: check "+<API key>+"and "+<API key>+" params in cmd line"); } if (jsonCdbReaderL.isPresent() || jsonCdbReaderS.isPresent()) { String cdbPath = jsonCdbReaderL.orElseGet(() -> jsonCdbReaderS.get()); logger.info("Loading JSON CdbReader with folder {}",cdbPath); CdbFiles cdbfiles = new CdbJsonFiles(cdbPath); return new JsonReader(cdbfiles); } else { logger.debug("NO JSON CdbReader requested"); } return new RdbReader(); } }
<html dir="LTR" xmlns:ndoc="urn:ndoc-schema"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta content="history" name="save" /> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" /> <title>Trace Method</title> <xml> </xml> <link rel="stylesheet" type="text/css" href="MSDN.css" /> </head> <body id="bodyID" class="dtBODY"> <div id="nsbanner"> <div id="bannerrow1"> <table class="bannerparthead" cellspacing="0"> <tr id="hdr"> <td class="runninghead">Common Logging 2.0 API Reference</td> <td class="product"> </td> </tr> </table> </div> <div id="TitleRow"> <h1 class="dtH1">AbstractLogger.Trace Method</h1> </div> </div> <div id="nstext"> <p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p> <h4 class="dtH4">Overload List</h4> <p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p> <blockquote class="dtBlock"> <a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace3.html">public virtual void Trace(Action&lt;<API key>&gt;)</a> </blockquote> <p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p> <blockquote class="dtBlock"> <a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace4.html">public virtual void Trace(Action&lt;<API key>&gt;,Exception)</a> </blockquote> <p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p> <blockquote class="dtBlock"> <a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace5.html">public virtual void Trace(IFormatProvider,Action&lt;<API key>&gt;)</a> </blockquote> <p> Log a message with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level using a callback to obtain the message </p> <blockquote class="dtBlock"> <a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace6.html">public virtual void Trace(IFormatProvider,Action&lt;<API key>&gt;,Exception)</a> </blockquote> <p> Log a message object with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level. </p> <blockquote class="dtBlock"> <a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace1.html">public virtual void Trace(object)</a> </blockquote> <p> Log a message object with the <a href="Common.Logging~Common.Logging.LogLevel.html">Trace</a> level including the stack trace of the <a href="http://msdn.microsoft.com/en-us/library/System.Exception(VS.80).aspx">Exception</a> passed as a parameter. </p> <blockquote class="dtBlock"> <a href="Common.Logging~Common.Logging.Factory.AbstractLogger.Trace2.html">public virtual void Trace(object,Exception)</a> </blockquote> <h4 class="dtH4">See Also</h4> <p> <a href="Common.Logging~Common.Logging.Factory.AbstractLogger.html">AbstractLogger Class</a> | <a href="Common.Logging~Common.Logging.Factory.html">Common.Logging.Factory Namespace</a></p> <hr /> <div id="footer"> <p> <a href="mailto:netcommon-developer@lists.sourceforge.net?subject=Common%20Logging%202.0%20API%20Reference%20Documentation%20Feedback:%20AbstractLogger.Trace Method">Send comments on this topic.</a> </p> <p> <a>© The Common Infrastructure Libraries for .NET Team 2009 All Rights Reserved.</a> </p> <p>Generated from assembly Common.Logging [2.0.0.0] by <a href="http://ndoc3.sourceforget.net">NDoc3</a></p> </div> </div> </body> </html>
<?php $GLOBALS['TL_LANG']['MSC']['<API key>'] = 'Choose file';
/** *A PUBLIC CLASS FOR ACTIONS.JAVA */ class Actions{ public Fonts font = new Fonts(); /** *@see FONTS.JAVA *this is a font class which is for changing the font, style & size */ public void fonT(){ font.setVisible(true); //setting the visible is true font.pack(); //pack the panel //making an action for ok button, so we can change the font font.getOkjb().addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent ae){ n.getTextArea().setFont(font.font()); //after we chose the font, then the JDialog will be closed font.setVisible(false); } }); //making an action for cancel button, so we can return to the old font. font.getCajb().addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent ae){ //after we cancel the, then the JDialog will be closed font.setVisible(false); } }); } //for wraping the line & wraping the style word public void lineWraP(){ if(n.getLineWrap().isSelected()){ /** *make the line wrap & wrap style word is true *when the line wrap is selected */ n.getTextArea().setLineWrap(true); n.getTextArea().setWrapStyleWord(true); } else{ /** *make the line wrap & wrap style word is false *when the line wrap isn't selected */ n.getTextArea().setLineWrap(false); n.getTextArea().setWrapStyleWord(false); } } }
# noinspection <API key> from .._raw import <API key> as _raw # noinspection <API key> from .._raw.<API key> import *
# == Schema Information # Table name: listing_shapes # id :integer not null, primary key # community_id :integer not null # <API key> :integer not null # price_enabled :boolean not null # shipping_enabled :boolean not null # name :string(255) not null # name_tr_key :string(255) not null # <API key> :string(255) not null # sort_priority :integer default(0), not null # created_at :datetime not null # updated_at :datetime not null # deleted :boolean default(FALSE) # Indexes # <API key> (community_id) # <API key> (name) # multicol_index (community_id,deleted,sort_priority) class ListingShape < ActiveRecord::Base attr_accessible( :community_id, :<API key>, :price_enabled, :shipping_enabled, :name, :sort_priority, :name_tr_key, :<API key>, :<API key>, :deleted ) <API key> :categories, -> { order("sort_priority") }, join_table: "<API key>" has_many :listing_units def self.columns super.reject { |c| c.name == "transaction_type_id" || c.name == "<API key>" } end end
#pragma once #pragma region Imported API extern "C" NTSYSAPI NTSTATUS NTAPI <API key>( __in HANDLE Handle, __in BOOLEAN Alertable, __in_opt PLARGE_INTEGER Timeout); typedef struct <API key> { NTSTATUS ExitStatus; PVOID TebBaseAddress; CLIENT_ID ClientId; KAFFINITY AffinityMask; KPRIORITY Priority; KPRIORITY BasePriority; } <API key>, *<API key>; extern "C" NTSTATUS NTAPI <API key>(HANDLE ThreadHandle, THREADINFOCLASS <API key>, PVOID ThreadInformation, ULONG <API key>, PULONG ReturnLength); #pragma endregion namespace BazisLib { namespace _ThreadPrivate { //! Represents a kernel thread. /*! The _BasicThread template class represents a single kernel thread and contains methods for controlling it. The thread body is defined through the template parameter (DescendantClass::ThreadStarter static function is called, passing <b>this</b> as a parameter). That allows declaring VT-less thread classes. However, as VT is not a huge overhead, a classical pure method-based BazisLib::Win32::Thread class is provided. */ template <class DescendantClass> class _BasicThread { private: HANDLE m_hThread; CLIENT_ID m_ID; protected: typedef void <API key>; static inline <API key> _ReturnFromThread(void *pArg, ULONG retcode) { <API key>((NTSTATUS)retcode); } public: //! Initializes the thread object, but does not start the thread /*! This constructor does not create actual Win32 thread. To create the thread and to start it, call the Start() method. */ _BasicThread() : m_hThread(NULL) { m_ID.UniqueProcess = m_ID.UniqueThread = 0; } bool Start(HANDLE hProcessToInject = NULL) { if (m_hThread) return false; OBJECT_ATTRIBUTES threadAttr; <API key>(&threadAttr, NULL, OBJ_KERNEL_HANDLE, 0, NULL); NTSTATUS st = <API key>(&m_hThread, THREAD_ALL_ACCESS, &threadAttr, hProcessToInject, &m_ID, DescendantClass::ThreadStarter, this); if (!NT_SUCCESS(st)) return false; return true; } /*bool Terminate() { return false; }*/ //! Waits for the thread to complete bool Join() { if (!m_hThread) return true; if (<API key>() == m_ID.UniqueThread) return true; <API key>(m_hThread, FALSE, NULL); return true; } bool Join(unsigned timeoutInMsec) { if (!m_hThread) return true; if (<API key>() == m_ID.UniqueThread) return true; LARGE_INTEGER interval; interval.QuadPart = (ULONGLONG)(-((LONGLONG)timeoutInMsec) * 10000); NTSTATUS st = <API key>(m_hThread, FALSE, &interval); return st == STATUS_SUCCESS; } bool IsRunning() { if (!m_hThread) return false; LARGE_INTEGER zero = {0,}; return <API key>(m_hThread, FALSE, &zero) == STATUS_TIMEOUT; } void Reset() { Join(); m_hThread = NULL; memset(&m_ID, 0, sizeof(m_ID)); } /* bool Suspend() { } bool Resume() { }*/ int GetReturnCode(bool *pbSuccess = NULL) { if (!m_hThread) { if (pbSuccess) *pbSuccess = false; return -1; } <API key> info; NTSTATUS status = <API key>(m_hThread, <API key>, &info, sizeof(info), NULL); if (!NT_SUCCESS(status)) { if (pbSuccess) *pbSuccess = false; return -1; } if (pbSuccess) *pbSuccess = true; return info.ExitStatus; } unsigned GetThreadID() { return (unsigned)m_ID.UniqueThread; } ~_BasicThread() { Join(); if (m_hThread) ZwClose(m_hThread); } public: static void Sleep(unsigned Millisecs) { LARGE_INTEGER interval; interval.QuadPart = (ULONGLONG)(-((LONGLONG)Millisecs) * 10000); <API key>(KernelMode, FALSE, &interval); } }; } }
#pragma once #include <blendint/opengl/gl-buffer.hpp> #include <blendint/core/color.hpp> #include <blendint/gui/abstract-button.hpp> #include <blendint/gui/color-selector.hpp> namespace BlendInt { /** * @brief The most common button class * * @ingroup <API key> */ class ColorButton: public AbstractButton { <API key>(ColorButton); public: ColorButton (); virtual ~ColorButton (); void SetColor (const Color& color); virtual bool IsExpandX () const override; virtual Size GetPreferredSize () const override; protected: virtual void PerformSizeUpdate (const AbstractView* source, const AbstractView* target, int width, int height) final; virtual void <API key> (int round_type) final; virtual void <API key> (float radius) final; virtual void PerformHoverIn (AbstractWindow* context) final; virtual void PerformHoverOut (AbstractWindow* context) final; virtual Response Draw (AbstractWindow* context) final; private: void <API key> (); void OnClick (); void OnSelectorDestroyed (AbstractFrame* sender); GLuint vao_[2]; GLBuffer<ARRAY_BUFFER, 2> vbo_; Color color0_; Color color1_; ColorSelector* selector_; }; }
import java.util.*; import Jakarta.util.FixDosOutputStream; import java.io.*; public class ImpQual { /* returns name of AST_QualifiedName */ public String GetName() { String result = ( ( AST_QualifiedName ) arg[0] ).GetName(); if ( arg[1].arg[0] != null ) result = result + ".*"; return result; } }
/* created August 26, 2009 */ package field.kit.gl.scene.shape import field.kit.gl.scene._ import field.kit.math.Common._ import field.kit.math._ import field.kit.util.Buffer /** * Companion object to class <code>Box</code> */ object Box { val DEFAULT_USE_QUADS = true /** Creates a new default Box */ def apply() = new Box("Box", Vec3(), 1f, 1f, 1f) def apply(extent:Float) = new Box("Box", Vec3(), extent, extent, extent) def apply(name:String, extent:Float) = new Box(name, Vec3(), extent, extent, extent) } /** * Implements a 6-sided axis-aligned box * @author Marcus Wendt */ class Box(name:String, var center:Vec3, var extentX:Float, var extentY:Float, var extentZ:Float) extends Mesh(name) { var useQuads = Box.DEFAULT_USE_QUADS init(center, extentX, extentY, extentZ) /** * initializes the geometry data of this Box */ def init(center:Vec3, extentX:Float, extentY:Float, extentZ:Float) { this.center := center this.extentX = extentX this.extentY = extentY this.extentZ = extentZ val vertices = data.allocVertices(24) val vd = computeVertices // back Buffer put (vd(0), vertices, 0) Buffer put (vd(1), vertices, 1) Buffer put (vd(2), vertices, 2) Buffer put (vd(3), vertices, 3) // right Buffer put (vd(1), vertices, 4) Buffer put (vd(4), vertices, 5) Buffer put (vd(6), vertices, 6) Buffer put (vd(2), vertices, 7) // front Buffer put (vd(4), vertices, 8) Buffer put (vd(5), vertices, 9) Buffer put (vd(7), vertices, 10) Buffer put (vd(6), vertices, 11) // left Buffer put (vd(5), vertices, 12) Buffer put (vd(0), vertices, 13) Buffer put (vd(3), vertices, 14) Buffer put (vd(7), vertices, 15) // top Buffer put (vd(2), vertices, 16) Buffer put (vd(6), vertices, 17) Buffer put (vd(7), vertices, 18) Buffer put (vd(3), vertices, 19) // bottom Buffer put (vd(0), vertices, 20) Buffer put (vd(5), vertices, 21) Buffer put (vd(4), vertices, 22) Buffer put (vd(1), vertices, 23) val normals = data.allocNormals(24) // back for(i <- 0 until 4) normals put 0 put 0 put -1 // right for(i <- 0 until 4) normals put 1 put 0 put 0 // front for(i <- 0 until 4) normals put 0 put 0 put 1 // left for(i <- 0 until 4) normals put -1 put 0 put 0 // top for(i <- 0 until 4) normals put 0 put 1 put 0 // bottom for(i <- 0 until 4) normals put 0 put -1 put 0 val textureCoords = data.allocTextureCoords(24) for(i <- 0 until 6) { textureCoords put 1 put 0 textureCoords put 0 put 0 textureCoords put 0 put 1 textureCoords put 1 put 1 } if(useQuads) { data.indexModes(0) = IndexMode.QUADS } else { val indices = data.allocIndices(36) indices put Array(2, 1, 0, 3, 2, 0, 6, 5, 4, 7, 6, 4, 10, 9, 8, 11, 10, 8, 14, 13, 12, 15, 14, 12, 18, 17, 16, 19, 18, 16, 22, 21, 20, 23, 22, 20) } } /** * @return a size 8 array of Vectors representing the 8 points of the box. */ protected def computeVertices = { val a = new Array[Vec3](8) a(0) = Vec3(center) += (-extentX, -extentY, -extentZ) a(1) = Vec3(center) += (extentX, -extentY, -extentZ) a(2) = Vec3(center) += (extentX, extentY, -extentZ) a(3) = Vec3(center) += (-extentX, extentY, -extentZ) a(4) = Vec3(center) += (extentX, -extentY, extentZ) a(5) = Vec3(center) += (-extentX, -extentY, extentZ) a(6) = Vec3(center) += (extentX, extentY, extentZ) a(7) = Vec3(center) += (-extentX, extentY, extentZ) a } }
package com.ihidea.component.datastore.archive; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.BufferedInputStream; import java.io.<API key>; import java.io.<API key>; import java.io.<API key>; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.imageio.ImageIO; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.util.FileCopyUtils; import org.springframework.web.bind.annotation.RequestMapping; import com.ihidea.component.datastore.FileSupportService; import com.ihidea.component.datastore.fileio.FileIoEntity; import com.ihidea.core.CoreConstants; import com.ihidea.core.support.exception.ServiceException; import com.ihidea.core.support.servlet.ServletHolderFilter; import com.ihidea.core.util.ImageUtilsEx; import com.ihidea.core.util.ServletUtilsEx; import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGImageEncoder; /** * * @author TYOTANN */ @Controller public class ArchiveController { protected Log logger = LogFactory.getLog(getClass()); @Autowired private FileSupportService fileSupportService; @Autowired private ArchiveService archiveService; @RequestMapping("/twain.do") public String doTwain(ModelMap model, HttpServletRequest request) { String twainHttp = CoreConstants.twainHost; model.addAttribute("path", request.getParameter("path")); model.addAttribute("params", request.getParameter("cs")); model.addAttribute("picname", request.getParameter("picname")); model.addAttribute("frame", request.getParameter("frame")); model.addAttribute("HostIP", twainHttp.split(":")[0]); model.addAttribute("HTTPPort", twainHttp.split(":")[1]); model.addAttribute("storeName", "ds_archive"); model.addAttribute("storeType", "2"); return "archive/twain"; } @RequestMapping("/editPicture.do") public String doEditPicture(ModelMap model, HttpServletRequest request) { model.addAttribute("ywid", request.getParameter("ywid")); model.addAttribute("img", request.getParameter("img")); model.addAttribute("name", request.getParameter("name")); return "aie/imageeditor"; } @RequestMapping("/showPicture.do") public void showPicture(HttpServletRequest request, HttpServletResponse response, ModelMap model) { OutputStream os = null; String id = request.getParameter("id"); FileIoEntity file = fileSupportService.get(id); byte[] b = file.getContent(); response.setContentType("image/png"); try { os = response.getOutputStream(); FileCopyUtils.copy(b, os); } catch (IOException e) { logger.debug("!", e); } finally { if (os != null) { try { os.close(); } catch (IOException e) { logger.debug("!", e); } } } } /** * * @param request * @param response * @param model */ @RequestMapping("/doPictureData.do") public void doPictureData(HttpServletRequest request, HttpServletResponse response, ModelMap model) { String tid = request.getParameter("id"); String spcode = request.getParameter("spcode"); String sncode = request.getParameter("sncode"); String typeid = request.getParameter("typeid"); String dm = request.getParameter("dm"); String dwyq = request.getParameter("dwyq"); if (tid == null || tid.trim().equals("") || tid.trim().equals("null")) { tid = "-1"; } List<Map<String, Object>> pList = null; // sncodespcode if (StringUtils.isBlank(spcode) && StringUtils.isBlank(sncode)) { pList = archiveService.getPicture(Integer.valueOf(tid)); } else { Map<String, Object> params = new HashMap<String, Object>(); params.put("spcode", spcode); params.put("sncode", sncode); params.put("typeid", typeid); params.put("dm", dm); pList = archiveService.getPicture("09100E", params); } List<Map<String, Object>> picList = new ArrayList<Map<String, Object>>(); if (!StringUtils.isBlank(dwyq)) { for (int i = 0; i < pList.size(); i++) { Map<String, Object> pic = pList.get(i); if (dwyq.equals(pic.get("ino").toString())) { picList.add(pic); break; } } } else { picList = pList; } Map<String, List<Map<String, Object>>> map = new HashMap<String, List<Map<String, Object>>>(); map.put("images", picList); ServletUtilsEx.renderJson(response, map); } @SuppressWarnings({ "unchecked" }) @RequestMapping("/uploadDataFile.do") public String uploadFjToFile(HttpServletRequest request, HttpServletResponse response, ModelMap model) { String ino = null; int id = request.getParameter("id") == null ? 0 : Integer.valueOf(request.getParameter("id")); String strFileName = request.getParameter("filename"); Map<String, Object> paramMap = ServletHolderFilter.getContext().getParamMap(); FileItem cfile = null; for (String key : paramMap.keySet()) { if (paramMap.get(key) instanceof List) { if (((List) paramMap.get(key)).get(0) instanceof FileItem) cfile = ((List<FileItem>) paramMap.get(key)).get(0); break; } } ino = fileSupportService.add(cfile.getName(), cfile.get(), "ds_archive"); fileSupportService.submit(ino, "-"); // ARCSJMX archiveService.savePicture(id, ino, strFileName, ""); return null; } /** * * @param request * @param response * @param model * @return * @throws Exception */ @SuppressWarnings({ "unchecked" }) @RequestMapping("/<API key>.do") public String <API key>(HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { Map<String, Object> paramMap = ServletHolderFilter.getContext().getParamMap(); int id = paramMap.get("id") == null ? 0 : Integer.valueOf(String.valueOf(paramMap.get("id"))); String strFileName = paramMap.get("filename") == null ? StringUtils.EMPTY : String.valueOf(paramMap.get("filename")); String storeName = "ds_archive"; FileOutputStream fos = null; String ino = null; try { List<FileItem> remoteFile = (List<FileItem>) paramMap.get("uploadFile"); FileItem cfile = remoteFile.get(0); String cfileOrjgName = cfile.getName(); String cfileName = cfileOrjgName.substring(0, cfileOrjgName.lastIndexOf(".")); ino = fileSupportService.add(cfile.getName(), cfile.get(), "ds_archive"); fileSupportService.submit(ino, "-"); if (strFileName != null) { cfileName = strFileName; } // ARCSJMX archiveService.savePicture(id, ino, cfileName, ""); } catch (Exception e) { throw new ServiceException(e.getMessage()); } finally { if (fos != null) { fos.flush(); fos.close(); } } model.addAttribute("isSubmit", "1"); model.addAttribute("params", id); model.addAttribute("path", ""); model.addAttribute("picname", strFileName); model.addAttribute("storeName", storeName); model.addAttribute("success", "!"); model.addAttribute("ino", ino); return "archive/twain"; } /** * * @param request * @param response * @param model * @return */ @RequestMapping("/doPicture.do") public String doPicture(HttpServletRequest request, HttpServletResponse response, ModelMap model) { String img = request.getParameter("img"); String ywid = request.getParameter("ywid"); model.addAttribute("img", img); model.addAttribute("ywid", ywid); model.addAttribute("storeName", "ds_archive"); return "aie/showPicture"; } /** * * @param request * @param response * @throws Exception */ @RequestMapping("/downloadFj.do") public void downloadFj(HttpServletRequest request, HttpServletResponse response) throws Exception { String id = request.getParameter("id") == null ? "" : String.valueOf(request.getParameter("id")); if (StringUtils.isBlank(id)) { id = request.getParameter("file") == null ? "" : String.valueOf(request.getParameter("file")); } ServletOutputStream fos = null; try { fos = response.getOutputStream(); response.setContentType("application/octet-stream"); FileIoEntity file = fileSupportService.get(id); FileCopyUtils.copy(file.getContent(), fos); } catch (Exception e) { logger.error(e.getMessage(), e); } finally { if (fos != null) { fos.flush(); fos.close(); } } } @RequestMapping("/changePicture.do") public void changePicture(HttpServletRequest request, HttpServletResponse response, ModelMap model) { String type = request.getParameter("type"); String path = request.getParameter("imagepath"); if (type.equals("rotate")) { String aktion = request.getParameter("aktion"); if (aktion.equals("rotieren")) { int degree = Integer.valueOf(request.getParameter("degree")); try { Image imageOriginal = ImageIO.read(new <API key>(fileSupportService.get(path).getContent())); // if (uploadType.equals("file")) { // // File tfile = new File(path); // if (!tfile.exists()) { // return; // imageOriginal = ImageIO.read(tfile); // } else { // // String errfilename = // this.getClass().getResource("/").getPath() // .replace("WEB-INF/classes", // "resources/images/sjerr.png"); // <API key> os = new <API key>(); // archiveService.getPictureFromDB(request.getParameter("imagepath"), // errfilename, os); // byte[] data = os.toByteArray(); // InputStream is = new <API key>(data); // imageOriginal = ImageIO.read(is); int widthOriginal = imageOriginal.getWidth(null); int heightOriginal = imageOriginal.getHeight(null); BufferedImage bi = new BufferedImage(widthOriginal, heightOriginal, BufferedImage.TYPE_3BYTE_BGR); Graphics2D g2d = bi.createGraphics(); g2d.drawImage(imageOriginal, 0, 0, null); BufferedImage bu = ImageUtilsEx.rotateImage(bi, degree); <API key> bos = new <API key>(); JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bos); encoder.encode(bu); byte[] data = bos.toByteArray(); fileSupportService.updateContent(path, data); // if (uploadType.equals("file")) { // // FileOutputStream fos = new FileOutputStream(path); // JPEGImageEncoder encoder = // JPEGCodec.createJPEGEncoder(fos); // encoder.encode(bu); // fos.flush(); // fos.close(); // fos = null; // } else { // // <API key> bos = new <API key>(); // JPEGImageEncoder encoder = // JPEGCodec.createJPEGEncoder(bos); // encoder.encode(bu); // byte[] data = bos.toByteArray(); // InputStream is = new <API key>(data); // archiveService.updatePictureToDB(request.getParameter("imagepath"), // is, data.length); // bos.flush(); // bos.close(); // bos = null; // is.close(); // is = null; } catch (IOException e) { e.printStackTrace(); logger.error("" + e.getMessage()); } } else { String degree = request.getParameter("degree"); try { Image imageOriginal = ImageIO.read(new <API key>(fileSupportService.get(path).getContent())); // if (uploadType.equals("file")) { // // File tfile = new File(path); // if (!tfile.exists()) { // return; // imageOriginal = ImageIO.read(tfile); // } else { // // String errfilename = // this.getClass().getResource("/").getPath() // .replace("WEB-INF/classes", // "resources/images/sjerr.png"); // <API key> os = new <API key>(); // archiveService.getPictureFromDB(request.getParameter("imagepath"), // errfilename, os); // byte[] data = os.toByteArray(); // InputStream is = new <API key>(data); // imageOriginal = ImageIO.read(is); int widthOriginal = imageOriginal.getWidth(null); int heightOriginal = imageOriginal.getHeight(null); BufferedImage bi = new BufferedImage(widthOriginal, heightOriginal, BufferedImage.TYPE_3BYTE_BGR); Graphics2D g2d = bi.createGraphics(); g2d.drawImage(imageOriginal, 0, 0, null); BufferedImage bu = null; if (degree.equals("flip")) { bu = ImageUtilsEx.flipImage(bi); } else { bu = ImageUtilsEx.flopImage(bi); } <API key> bos = new <API key>(); JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bos); encoder.encode(bu); byte[] data = bos.toByteArray(); fileSupportService.updateContent(path, data); // if (uploadType.equals("file")) { // // FileOutputStream fos = new FileOutputStream(path); // JPEGImageEncoder encoder = // JPEGCodec.createJPEGEncoder(fos); // encoder.encode(bu); // fos.flush(); // fos.close(); // fos = null; // } else { // // <API key> bos = new <API key>(); // JPEGImageEncoder encoder = // JPEGCodec.createJPEGEncoder(bos); // encoder.encode(bu); // byte[] data = bos.toByteArray(); // InputStream is = new <API key>(data); // archiveService.updatePictureToDB(request.getParameter("imagepath"), // is, data.length); // bos.flush(); // bos.close(); // bos = null; // is.close(); // is = null; } catch (IOException e) { e.printStackTrace(); logger.error("" + e.getMessage()); } } } } @RequestMapping("/arcDownloadFj.do") public void arcDownloadFj(HttpServletRequest request, HttpServletResponse response) { int id = Integer.parseInt(request.getParameter("id")); Map<String, Object> map = this.archiveService.getArcfj(id); if (map == null) { return; } ServletOutputStream fos = null; FileInputStream fis = null; BufferedInputStream bfis = null; <API key> bfos = null; try { File file = new File(map.get("filepath").toString()); if (!file.exists()) { response.<API key>("GBK"); response.getWriter().write("<script>alert('');window.history.back();</script>"); return; } fos = response.getOutputStream(); response.setHeader("Content-Disposition", "attachment; filename=\"" + new String(map.get("filename").toString().getBytes("GBK"), "ISO8859_1") + "\""); fis = new FileInputStream(file); bfis = new BufferedInputStream(fis); bfos = new <API key>(fos); FileCopyUtils.copy(bfis, bfos); } catch (Exception e) { // e.printStackTrace(); } finally { try { if (fos != null) { fos.close(); } if (bfis != null) { bfis.close(); } if (bfos != null) { bfos.close(); } if (fis != null) { fis.close(); } } catch (Exception e) { } } } }
package org.sonar.server.almsettings.ws; import org.sonar.api.server.ServerSide; import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.alm.setting.ALM; import org.sonar.db.alm.setting.AlmSettingDto; import org.sonar.db.project.ProjectDto; import org.sonar.server.almsettings.<API key>; import org.sonar.server.component.ComponentFinder; import org.sonar.server.exceptions.BadRequestException; import org.sonar.server.exceptions.NotFoundException; import org.sonar.server.user.UserSession; import org.sonarqube.ws.AlmSettings; import static java.lang.String.format; import static org.sonar.api.web.UserRole.ADMIN; @ServerSide public class AlmSettingsSupport { private final DbClient dbClient; private final UserSession userSession; private final ComponentFinder componentFinder; private final <API key> <API key>; public AlmSettingsSupport(DbClient dbClient, UserSession userSession, ComponentFinder componentFinder, <API key> <API key>) { this.dbClient = dbClient; this.userSession = userSession; this.componentFinder = componentFinder; this.<API key> = <API key>; } public <API key> <API key>() { return <API key>; } public void <API key>(DbSession dbSession, String almSetting) { dbClient.almSettingDao().selectByKey(dbSession, almSetting) .ifPresent(a -> { throw new <API key>(format("An ALM setting with key '%s' already exists", a.getKey())); }); } public void <API key>(ALM alm) { try (DbSession dbSession = dbClient.openSession(false)) { if (!<API key>.enabled() && !dbClient.almSettingDao().selectByAlm(dbSession, alm).isEmpty()) { throw BadRequestException.create("A " + alm + " setting is already defined"); } } } public ProjectDto getProjectAsAdmin(DbSession dbSession, String projectKey) { return getProject(dbSession, projectKey, ADMIN); } public ProjectDto getProject(DbSession dbSession, String projectKey, String projectPermission) { ProjectDto project = componentFinder.getProjectByKey(dbSession, projectKey); userSession.<API key>(projectPermission, project); return project; } public AlmSettingDto getAlmSetting(DbSession dbSession, String almSetting) { return dbClient.almSettingDao().selectByKey(dbSession, almSetting) .orElseThrow(() -> new NotFoundException(format("ALM setting with key '%s' cannot be found", almSetting))); } public static AlmSettings.Alm toAlmWs(ALM alm) { switch (alm) { case GITHUB: return AlmSettings.Alm.github; case BITBUCKET: return AlmSettings.Alm.bitbucket; case BITBUCKET_CLOUD: return AlmSettings.Alm.bitbucketcloud; case AZURE_DEVOPS: return AlmSettings.Alm.azure; case GITLAB: return AlmSettings.Alm.gitlab; default: throw new <API key>(format("Unknown ALM '%s'", alm.name())); } } }
#include <osgOcean/SiltEffect> #include <osgOcean/ShaderManager> #include <stdlib.h> #include <OpenThreads/ScopedLock> #include <osg/Texture2D> #include <osg/PointSprite> #include <osgUtil/CullVisitor> #include <osgUtil/GLObjectsVisitor> #include <osg/Notify> #include <osg/io_utils> #include <osg/Timer> #include <osg/Version> using namespace osgOcean; static float random(float min,float max) { return min + (max-min)*(float)rand()/(float)RAND_MAX; } static void fillSpotLightImage(unsigned char* ptr, const osg::Vec4& centerColour, const osg::Vec4& backgroudColour, unsigned int size, float power) { if (size==1) { float r = 0.5f; osg::Vec4 color = centerColour*r+backgroudColour*(1.0f-r); *ptr++ = (unsigned char)((color[0])*255.0f); *ptr++ = (unsigned char)((color[1])*255.0f); *ptr++ = (unsigned char)((color[2])*255.0f); *ptr++ = (unsigned char)((color[3])*255.0f); return; } float mid = (float(size)-1.0f)*0.5f; float div = 2.0f/float(size); for(unsigned int r=0;r<size;++r) { //unsigned char* ptr = image->data(0,r,0); for(unsigned int c=0;c<size;++c) { float dx = (float(c) - mid)*div; float dy = (float(r) - mid)*div; float r = powf(1.0f-sqrtf(dx*dx+dy*dy),power); if (r<0.0f) r=0.0f; osg::Vec4 color = centerColour*r+backgroudColour*(1.0f-r); *ptr++ = (unsigned char)((color[0])*255.0f); *ptr++ = (unsigned char)((color[1])*255.0f); *ptr++ = (unsigned char)((color[2])*255.0f); *ptr++ = (unsigned char)((color[3])*255.0f); } } } static osg::Image* <API key>(const osg::Vec4& centerColour, const osg::Vec4& backgroudColour, unsigned int size, float power) { #if 0 osg::Image* image = new osg::Image; unsigned char* ptr = image->data(0,0,0); fillSpotLightImage(ptr, centerColour, backgroudColour, size, power); return image; #else osg::Image* image = new osg::Image; osg::Image::MipmapDataType mipmapData; unsigned int s = size; unsigned int totalSize = 0; unsigned i; for(i=0; s>0; s>>=1, ++i) { if (i>0) mipmapData.push_back(totalSize); totalSize += s*s*4; } unsigned char* ptr = new unsigned char[totalSize]; image->setImage(size, size, size, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, ptr, osg::Image::USE_NEW_DELETE,1); image->setMipmapLevels(mipmapData); s = size; for(i=0; s>0; s>>=1, ++i) { fillSpotLightImage(ptr, centerColour, backgroudColour, s, power); ptr += s*s*4; } return image; #endif } SiltEffect::SiltEffect() { <API key>(1); setUpGeometries(1024); setIntensity(0.5); } void SiltEffect::setIntensity(float intensity) { _wind.set(0.0f,0.0f,0.0f); _particleSpeed = -0.75f - 0.25f*intensity; _particleSize = 0.02f + 0.03f*intensity; _particleColor = osg::Vec4(0.85f, 0.85f, 0.85f, 1.0f) - osg::Vec4(0.1f, 0.1f, 0.1f, 1.0f)* intensity; <API key> = intensity * 8.2f; _cellSize.set(5.0f / (0.25f+intensity), 5.0f / (0.25f+intensity), 5.0f); _nearTransition = 25.f; _farTransition = 100.0f - 60.0f*sqrtf(intensity); if (!_fog) _fog = new osg::Fog; _fog->setMode(osg::Fog::EXP); _fog->setDensity(0.01f*intensity); _fog->setColor(osg::Vec4(0.6, 0.6, 0.6, 1.0)); _dirty = true; update(); } SiltEffect::SiltEffect(const SiltEffect& copy, const osg::CopyOp& copyop): osg::Node(copy,copyop) { <API key>(<API key>()+1); _dirty = true; update(); } void SiltEffect::compileGLObjects(osg::RenderInfo& renderInfo) const { if (_quadGeometry.valid()) { _quadGeometry->compileGLObjects(renderInfo); if (_quadGeometry->getStateSet()) _quadGeometry->getStateSet()->compileGLObjects(*renderInfo.getState()); } if (_pointGeometry.valid()) { _pointGeometry->compileGLObjects(renderInfo); if (_pointGeometry->getStateSet()) _pointGeometry->getStateSet()->compileGLObjects(*renderInfo.getState()); } } void SiltEffect::traverse(osg::NodeVisitor& nv) { if (nv.getVisitorType() == osg::NodeVisitor::UPDATE_VISITOR) { if (_dirty) update(); if (nv.getFrameStamp()) { double currentTime = nv.getFrameStamp()->getSimulationTime(); static double previousTime = currentTime; double delta = currentTime - previousTime; _origin += _wind * delta; previousTime = currentTime; } return; } if (nv.getVisitorType() == osg::NodeVisitor::NODE_VISITOR) { if (_dirty) update(); osgUtil::GLObjectsVisitor* globjVisitor = dynamic_cast<osgUtil::GLObjectsVisitor*>(&nv); if (globjVisitor) { if (globjVisitor->getMode() & osgUtil::GLObjectsVisitor::<API key>) { compileGLObjects(globjVisitor->getRenderInfo()); } } return; } if (nv.getVisitorType() != osg::NodeVisitor::CULL_VISITOR) { return; } osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(&nv); if (!cv) { return; } ViewIdentifier viewIndentifier(cv, nv.getNodePath()); { SiltDrawableSet* SiltDrawableSet = 0; { OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); SiltDrawableSet = &(_viewDrawableMap[viewIndentifier]); if (!SiltDrawableSet->_quadSiltDrawable) { SiltDrawableSet->_quadSiltDrawable = new SiltDrawable; SiltDrawableSet->_quadSiltDrawable->setGeometry(_quadGeometry.get()); SiltDrawableSet->_quadSiltDrawable->setStateSet(_quadStateSet.get()); SiltDrawableSet->_quadSiltDrawable->setDrawType(GL_QUADS); SiltDrawableSet->_pointSiltDrawable = new SiltDrawable; SiltDrawableSet->_pointSiltDrawable->setGeometry(_pointGeometry.get()); SiltDrawableSet->_pointSiltDrawable->setStateSet(_pointStateSet.get()); SiltDrawableSet->_pointSiltDrawable->setDrawType(GL_POINTS); } } cull(*SiltDrawableSet, cv); cv->pushStateSet(_stateset.get()); float depth = 0.0f; if (!SiltDrawableSet->_quadSiltDrawable-><API key>().empty()) { cv->pushStateSet(SiltDrawableSet->_quadSiltDrawable->getStateSet()); cv->addDrawableAndDepth(SiltDrawableSet->_quadSiltDrawable.get(),cv->getModelViewMatrix(),depth); cv->popStateSet(); } if (!SiltDrawableSet->_pointSiltDrawable-><API key>().empty()) { cv->pushStateSet(SiltDrawableSet->_pointSiltDrawable->getStateSet()); cv->addDrawableAndDepth(SiltDrawableSet->_pointSiltDrawable.get(),cv->getModelViewMatrix(),depth); cv->popStateSet(); } cv->popStateSet(); } } void SiltEffect::update() { _dirty = false; osg::notify(osg::INFO)<<"SiltEffect::update()"<<std::endl; float length_u = _cellSize.x(); float length_v = _cellSize.y(); float length_w = _cellSize.z(); // time taken to get from start to the end of cycle _period = fabsf(_cellSize.z() / _particleSpeed); _du.set(length_u, 0.0f, 0.0f); _dv.set(0.0f, length_v, 0.0f); _dw.set(0.0f, 0.0f, length_w); _inverse_du.set(1.0f/length_u, 0.0f, 0.0f); _inverse_dv.set(0.0f, 1.0f/length_v, 0.0f); _inverse_dw.set(0.0f, 0.0f, 1.0f/length_w); osg::notify(osg::INFO)<<"Cell size X="<<length_u<<std::endl; osg::notify(osg::INFO)<<"Cell size Y="<<length_v<<std::endl; osg::notify(osg::INFO)<<"Cell size Z="<<length_w<<std::endl; { OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); _viewDrawableMap.clear(); } // set up state/ { if (!_stateset) { _stateset = new osg::StateSet; _stateset->addUniform(new osg::Uniform("<API key>",0)); _stateset->setMode(GL_LIGHTING, osg::StateAttribute::OFF); _stateset->setMode(GL_BLEND, osg::StateAttribute::ON); osg::Texture2D* texture = new osg::Texture2D(<API key>(osg::Vec4(0.55f,0.55f,0.55f,0.65f),osg::Vec4(0.55f,0.55f,0.55f,0.0f),32,1.0)); _stateset->setTextureAttribute(0, texture); } if (!<API key>) { <API key> = new osg::Uniform("<API key>",1.0f/_period); _stateset->addUniform(<API key>.get()); } else <API key>->set(1.0f/_period); if (!<API key>) { <API key> = new osg::Uniform("<API key>", _particleColor); _stateset->addUniform(<API key>.get()); } else <API key>->set(_particleColor); if (!<API key>) { <API key> = new osg::Uniform("<API key>", _particleSize); _stateset->addUniform(<API key>.get()); } else <API key>->set(_particleSize); } } void SiltEffect::createGeometry(unsigned int numParticles, osg::Geometry* quad_geometry, osg::Geometry* point_geometry ) { // particle corner offsets osg::Vec2 offset00(0.0f,0.0f); osg::Vec2 offset10(1.0f,0.0f); osg::Vec2 offset01(0.0f,1.0f); osg::Vec2 offset11(1.0f,1.0f); osg::Vec2 offset0(0.5f,0.0f); osg::Vec2 offset1(0.5f,1.0f); osg::Vec2 offset(0.5f,0.5f); // configure quad_geometry; osg::Vec3Array* quad_vertices = 0; osg::Vec2Array* quad_offsets = 0; osg::Vec3Array* quad_vectors = 0; if (quad_geometry) { quad_geometry->setName("quad"); quad_vertices = new osg::Vec3Array(numParticles*4); quad_offsets = new osg::Vec2Array(numParticles*4); quad_vectors = new osg::Vec3Array(numParticles*4); quad_geometry->setVertexArray(quad_vertices); quad_geometry->setTexCoordArray(0, quad_offsets); quad_geometry->setNormalArray(quad_vectors); quad_geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX); } // configure point_geometry; osg::Vec3Array* point_vertices = 0; osg::Vec2Array* point_offsets = 0; osg::Vec3Array* point_vectors = 0; if (point_geometry) { point_geometry->setName("point"); point_vertices = new osg::Vec3Array(numParticles); point_offsets = new osg::Vec2Array(numParticles); point_vectors = new osg::Vec3Array(numParticles); point_geometry->setVertexArray(point_vertices); point_geometry->setTexCoordArray(0, point_offsets); point_geometry->setNormalArray(point_vectors); point_geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX); } // set up vertex attribute data. for(unsigned int i=0; i< numParticles; ++i) { osg::Vec3 pos( random(0.0f, 1.0f), random(0.0f, 1.0f), random(0.0f, 1.0f)); osg::Vec3 dir( random(-1.f, 1.f), random(-1.f,1.f), random(-1.f,1.f) ); // quad particles if (quad_vertices) { (*quad_vertices)[i*4] = pos; (*quad_vertices)[i*4+1] = pos; (*quad_vertices)[i*4+2] = pos; (*quad_vertices)[i*4+3] = pos; (*quad_offsets)[i*4] = offset00; (*quad_offsets)[i*4+1] = offset01; (*quad_offsets)[i*4+2] = offset11; (*quad_offsets)[i*4+3] = offset10; (*quad_vectors)[i*4] = dir; (*quad_vectors)[i*4+1] = dir; (*quad_vectors)[i*4+2] = dir; (*quad_vectors)[i*4+3] = dir; } // point particles if (point_vertices) { (*point_vertices)[i] = pos; (*point_offsets)[i] = offset; (*point_vectors)[i] = dir; } } } #include <osgOcean/shaders/<API key>.inl> #include <osgOcean/shaders/<API key>.inl> #include <osgOcean/shaders/<API key>.inl> #include <osgOcean/shaders/<API key>.inl> void SiltEffect::setUpGeometries(unsigned int numParticles) { unsigned int quadRenderBin = 12; unsigned int pointRenderBin = 11; osg::notify(osg::INFO)<<"SiltEffect::setUpGeometries("<<numParticles<<")"<<std::endl; bool needGeometryRebuild = false; if (!_quadGeometry || _quadGeometry->getVertexArray()->getNumElements() != 4*numParticles) { _quadGeometry = new osg::Geometry; _quadGeometry-><API key>(true); needGeometryRebuild = true; } if (!_pointGeometry || _pointGeometry->getVertexArray()->getNumElements() != numParticles) { _pointGeometry = new osg::Geometry; _pointGeometry-><API key>(true); needGeometryRebuild = true; } if (needGeometryRebuild) { createGeometry(numParticles, _quadGeometry.get(), _pointGeometry.get()); } if (!_quadStateSet) { _quadStateSet = new osg::StateSet; _quadStateSet->setRenderBinDetails(quadRenderBin,"DepthSortedBin"); static const char <API key>[] = "osgOcean/shaders/osgOcean_silt_quads.vert"; static const char <API key>[] = "osgOcean/shaders/osgOcean_silt_quads.frag"; osg::Program* program = ShaderManager::instance().createProgram("silt_quads", <API key>, <API key>, <API key>, <API key> ); _quadStateSet->setAttribute(program); } if (!_pointStateSet) { _pointStateSet = new osg::StateSet; static const char <API key>[] = "osgOcean/shaders/<API key>.vert"; static const char <API key>[] = "osgOcean/shaders/<API key>.frag"; osg::Program* program = ShaderManager::instance().createProgram("silt_point", <API key>, <API key>, <API key>, <API key> ); _pointStateSet->setAttribute(program); Setup the point sprites osg::PointSprite *sprite = new osg::PointSprite(); _pointStateSet-><API key>(0, sprite, osg::StateAttribute::ON); _pointStateSet->setMode(<API key>, osg::StateAttribute::ON); _pointStateSet->setRenderBinDetails(pointRenderBin,"DepthSortedBin"); } } void SiltEffect::cull(SiltDrawableSet& pds, osgUtil::CullVisitor* cv) const { #ifdef DO_TIMING osg::Timer_t startTick = osg::Timer::instance()->tick(); #endif float cellVolume = _cellSize.x() * _cellSize.y() * _cellSize.z(); int numberOfParticles = (int)(<API key> * cellVolume); if (numberOfParticles==0) return; pds._quadSiltDrawable->setNumberOfVertices(numberOfParticles*4); pds._pointSiltDrawable->setNumberOfVertices(numberOfParticles); pds._quadSiltDrawable->newFrame(); pds._pointSiltDrawable->newFrame(); osg::Matrix inverse_modelview; inverse_modelview.invert(*(cv->getModelViewMatrix())); osg::Vec3 eyeLocal = osg::Vec3(0.0f,0.0f,0.0f) * inverse_modelview; //osg::notify(osg::NOTICE)<<" eyeLocal "<<eyeLocal<<std::endl; float eye_k = (eyeLocal-_origin)*_inverse_dw; osg::Vec3 eye_kPlane = eyeLocal-_dw*eye_k-_origin; // osg::notify(osg::NOTICE)<<" eye_kPlane "<<eye_kPlane<<std::endl; float eye_i = eye_kPlane*_inverse_du; float eye_j = eye_kPlane*_inverse_dv; osg::Polytope frustum; frustum.setToUnitFrustum(false,false); frustum.<API key>(*(cv->getProjectionMatrix())); frustum.<API key>(*(cv->getModelViewMatrix())); float i_delta = _farTransition * _inverse_du.x(); float j_delta = _farTransition * _inverse_dv.y(); float k_delta = 1;//_nearTransition * _inverse_dw.z(); int i_min = (int)floor(eye_i - i_delta); int j_min = (int)floor(eye_j - j_delta); int k_min = (int)floor(eye_k - k_delta); int i_max = (int)ceil(eye_i + i_delta); int j_max = (int)ceil(eye_j + j_delta); int k_max = (int)ceil(eye_k + k_delta); //osg::notify(osg::NOTICE)<<"i_delta="<<i_delta<<" j_delta="<<j_delta<<" k_delta="<<k_delta<<std::endl; unsigned int numTested=0; unsigned int numInFrustum=0; float iCyle = 0.43; float jCyle = 0.64; for(int i = i_min; i<=i_max; ++i) { for(int j = j_min; j<=j_max; ++j) { for(int k = k_min; k<=k_max; ++k) { float startTime = (float)(i)*iCyle + (float)(j)*jCyle; startTime = (startTime-floor(startTime))*_period; if (build(eyeLocal, i,j,k, startTime, pds, frustum, cv)) ++numInFrustum; ++numTested; } } } #ifdef DO_TIMING osg::Timer_t endTick = osg::Timer::instance()->tick(); osg::notify(osg::NOTICE)<<"time for cull "<<osg::Timer::instance()->delta_m(startTick,endTick)<<"ms numTested= "<<numTested<<" numInFrustum= "<<numInFrustum<<std::endl; osg::notify(osg::NOTICE)<<" quads "<<pds._quadSiltDrawable-><API key>().size()<<" points "<<pds._pointSiltDrawable-><API key>().size()<<std::endl; #endif } bool SiltEffect::build(const osg::Vec3 eyeLocal, int i, int j, int k, float startTime, SiltDrawableSet& pds, osg::Polytope& frustum, osgUtil::CullVisitor* cv) const { osg::Vec3 position = _origin + osg::Vec3(float(i)*_du.x(), float(j)*_dv.y(), float(k+1)*_dw.z()); osg::Vec3 scale(_du.x(), _dv.y(), -_dw.z()); osg::BoundingBox bb(position.x(), position.y(), position.z()+scale.z(), position.x()+scale.x(), position.y()+scale.y(), position.z()); if ( !frustum.contains(bb) ) return false; osg::Vec3 center = position + scale*0.5f; float distance = (center-eyeLocal).length(); osg::Matrix* mymodelview = 0; if (distance < _nearTransition) { SiltDrawable::<API key>& mstp = pds._quadSiltDrawable-><API key>()[SiltDrawable::Cell(i,k,j)]; mstp.depth = distance; mstp.startTime = startTime; mymodelview = &mstp.modelview; } else if (distance <= _farTransition) { SiltDrawable::<API key>& mstp = pds._pointSiltDrawable-><API key>()[SiltDrawable::Cell(i,k,j)]; mstp.depth = distance; mstp.startTime = startTime; mymodelview = &mstp.modelview; } else { return false; } *mymodelview = *(cv->getModelViewMatrix()); #if <API key> > 2 || \ (<API key> == 2 && <API key> > 7) || \ (<API key> == 2 && <API key> == 7 && <API key> >= 3) // preMultTranslate and preMultScale introduced in rev 8868, which was // before OSG 2.7.3. mymodelview->preMultTranslate(position); mymodelview->preMultScale(scale); #else // Otherwise use unoptimized versions mymodelview->preMult(osg::Matrix::translate(position)); mymodelview->preMult(osg::Matrix::scale(scale)); #endif cv-><API key>(*(cv->getModelViewMatrix()),bb); return true; } // Precipitation Drawable SiltEffect::SiltDrawable::SiltDrawable(): _drawType(GL_QUADS), _numberOfVertices(0) { <API key>(false); } SiltEffect::SiltDrawable::SiltDrawable(const SiltDrawable& copy, const osg::CopyOp& copyop): osg::Drawable(copy,copyop), _geometry(copy._geometry), _drawType(copy._drawType), _numberOfVertices(copy._numberOfVertices) { } void SiltEffect::SiltDrawable::drawImplementation(osg::RenderInfo& renderInfo) const { if (!_geometry) return; const osg::Geometry::Extensions* extensions = osg::Geometry::getExtensions(renderInfo.getContextID(),true); glPushMatrix(); typedef std::vector<const CellMatrixMap::value_type*> <API key>; <API key> orderedEntries; orderedEntries.reserve(<API key>.size()); for(CellMatrixMap::const_iterator citr = <API key>.begin(); citr != <API key>.end(); ++citr) { orderedEntries.push_back(&(*citr)); } std::sort(orderedEntries.begin(),orderedEntries.end(),LessFunctor()); for(<API key>::reverse_iterator itr = orderedEntries.rbegin(); itr != orderedEntries.rend(); ++itr) { extensions->glMultiTexCoord1f(GL_TEXTURE0+1, (*itr)->second.startTime); glMatrixMode( GL_MODELVIEW ); glLoadMatrix((*itr)->second.modelview.ptr()); _geometry->draw(renderInfo); unsigned int numVertices = osg::minimum(_geometry->getVertexArray()->getNumElements(), _numberOfVertices); glDrawArrays(_drawType, 0, numVertices); } glPopMatrix(); }
<html dir="LTR" xmlns:ndoc="urn:ndoc-schema"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" /> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" /> <title>AbstractLogger.Info(Object, Exception) Method</title> <xml> </xml> <link rel="stylesheet" type="text/css" href="MSDN.css" /> </head> <body id="bodyID" class="dtBODY"> <div id="nsbanner"> <div id="bannerrow1"> <table class="bannerparthead" cellspacing="0"> <tr id="hdr"> <td class="runninghead">Common Logging 2.0 API Reference</td> <td class="product"> </td> </tr> </table> </div> <div id="TitleRow"> <h1 class="dtH1">AbstractLogger.Info(Object, Exception) Method</h1> </div> </div> <div id="nstext"> <p> Log a message object with the <a href="Common.Logging~Common.Logging.LogLevel.html">Info</a> level including the stack Info of the <a href="http://msdn.microsoft.com/en-us/library/System.Exception(VS.80).aspx">Exception</a> passed as a parameter. </p> <div class="syntax"> <span class="lang">[Visual Basic]</span> <br />Public Overridable Overloads Sub Info( _<br />   ByVal <i>message</i> As <a href="">Object</a>, _<br />   ByVal <i>exception</i> As <a href="">Exception</a> _<br />) _<div>    Implements <a href="Common.Logging~Common.Logging.ILog.Info2.html">ILog.Info</a></div></div> <div class="syntax"> <span class="lang">[C#]</span> <br />public virtual <a href="">void</a> Info(<br />   <a href="">object</a> <i>message</i>,<br />   <a href="">Exception</a> <i>exception</i><br />);</div> <h4 class="dtH4">Parameters</h4> <dl> <dt> <i>message</i> </dt> <dd>The message object to log.</dd> <dt> <i>exception</i> </dt> <dd>The exception to log, including its stack Info.</dd> </dl> <h4 class="dtH4">Implements</h4> <p> <a href="Common.Logging~Common.Logging.ILog.Info2.html">ILog.Info</a> </p> <h4 class="dtH4">See Also</h4> <p> <a href="Common.Logging~Common.Logging.AbstractLogger.html">AbstractLogger Class</a> | <a href="Common.Logging~Common.Logging.html">Common.Logging Namespace</a> | <a href="Common.Logging~Common.Logging.AbstractLogger.Info~Overloads.html">AbstractLogger.Info Overload List</a></p> <object type="application/x-oleobject" classid="clsid:<API key>" viewastext="true" style="display: none;"> <param name="Keyword" value="Info method&#xD;&#xA; "> </param> <param name="Keyword" value="Info method, AbstractLogger class"> </param> <param name="Keyword" value="AbstractLogger.Info method&#xD;&#xA; "> </param> </object> <hr /> <div id="footer"> <p> <a href="mailto:netcommon-developer@lists.sourceforge.net?subject=Common%20Logging%202.0%20API%20Reference%20Documentation%20Feedback:%20AbstractLogger.Info Method (Object,%20Exception)">Send comments on this topic.</a> </p> <p> <a>© The Common Infrastructure Libraries for .NET Team 2009 All Rights Reserved.</a> </p> <p>Generated from assembly Common.Logging [2.0.0.0] by <a href="http://ndoc3.sourceforget.net">NDoc3</a></p> </div> </div> </body> </html>
/** * * @module alfresco/search/FacetFilter * @extends external:dijit/_WidgetBase * @mixes external:dojo/_TemplatedMixin * @mixes module:alfresco/core/Core * @mixes module:alfresco/documentlibrary/<API key> * @author Dave Draper */ define(["dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_OnDijitClickMixin", "dojo/text!./templates/FacetFilter.html", "alfresco/core/Core", "dojo/_base/lang", "dojo/_base/array", "dojo/dom-construct", "dojo/dom-class", "dojo/on", "alfresco/util/hashUtils", "dojo/io-query", "alfresco/core/ArrayUtils"], function(declare, _WidgetBase, _TemplatedMixin, _OnDijitClickMixin, template, AlfCore, lang, array, domConstruct, domClass, on, hashUtils, ioQuery, arrayUtils) { return declare([_WidgetBase, _TemplatedMixin, AlfCore], { /** * An array of the i18n files to use with this widget. * * @instance * @type {object[]} * @default [{i18nFile: "./i18n/FacetFilter.properties"}] */ i18nRequirements: [{i18nFile: "./i18n/FacetFilter.properties"}], /** * An array of the CSS files to use with this widget. * * @instance cssRequirements {Array} * @type {object[]} * @default [{cssFile:"./css/FacetFilter.css"}] */ cssRequirements: [{cssFile:"./css/FacetFilter.css"}], /** * The HTML template to use for the widget. * @instance * @type {string} */ templateString: template, /** * Indicate whether or not the filter is currently applied * * @instance * @type {boolean} * @default */ applied: false, /** * The alt-text to use for the image that indicates that a filter has been applied * * @instance * @type {string} * @default */ <API key>: "facet.filter.applied.alt-text", /** * The path to use as the source for the image that indicates that a filter has been applied * * @instance * @type {string} * @default */ <API key>: "12x12-selected-icon.png", /** * The facet qname * * @instance * @type {string} * @default */ facet: null, /** * The filter (or more accurately the filterId) for this filter * * @instance * @type {string} * @default */ filter: null, /** * Additional data for the filter (appended after the filter with a bar, e.g. tag|sometag) * * @instance * @type {string} * @default */ filterData: "", /** * Indicates that the filter should be hidden. This will be set to "true" if any required data is missing * * @instance * @type {boolean} * @default */ hide: false, /** * When this is set to true the current URL hash fragment will be used to initialise the facet selection * and when the facet is selected the hash fragment will be updated with the facet selection. * * @instance * @type {boolean} * @default */ useHash: false, /** * Sets up the attributes required for the HTML template. * @instance */ postMixInProperties: function <API key>() { if (this.label && this.facet && this.filter && this.hits) { this.label = this.message(this.label); // Localize the alt-text for the applied filter message... this.<API key> = this.message(this.<API key>, {0: this.label}); // Set the source for the image to use to indicate that a filter is applied... this.<API key> = require.toUrl("alfresco/search") + "/css/images/" + this.<API key>; } else { // Hide the filter if there is no label or no link... this.alfLog("warn", "Not enough information provided for filter. It will not be displayed", this); this.hide = true; } }, /** * @instance */ postCreate: function <API key>() { if (this.hide === true) { domClass.add(this.domNode, "hidden"); } if (this.applied) { domClass.remove(this.removeNode, "hidden"); domClass.add(this.labelNode, "applied"); } }, /** * If the filter has previously been applied then it is removed, if the filter is not applied * then it is applied. * * @instance */ onToggleFilter: function <API key>(/*jshint unused:false*/ evt) { if (this.applied) { this.onClearFilter(); } else { this.onApplyFilter(); } }, /** * Applies the current filter by publishing the details of the filter along with the facet to * which it belongs and then displays the "applied" image. * * @instance */ onApplyFilter: function <API key>() { var fullFilter = this.facet + "|" + this.filter; if(this.useHash) { this._updateHash(fullFilter, "add"); } else { this.alfPublish("<API key>", { filter: fullFilter }); } domClass.remove(this.removeNode, "hidden"); domClass.add(this.labelNode, "applied"); this.applied = true; }, /** * Removes the current filter by publishing the details of the filter along with the facet * to which it belongs and then hides the "applied" image * * @instance */ onClearFilter: function <API key>() { var fullFilter = this.facet + "|" + this.filter; if(this.useHash) { this._updateHash(fullFilter, "remove"); } else { this.alfPublish("<API key>", { filter: fullFilter }); } domClass.add(this.removeNode, "hidden"); domClass.remove(this.labelNode, "applied"); this.applied = false; }, /** * Performs updates to the url hash as facets are selected and de-selected * * @instance */ _updateHash: function <API key>(fullFilter, mode) { // Get the existing hash and extract the individual facetFilters into an array var aHash = hashUtils.getHash(), facetFilters = ((aHash.facetFilters) ? aHash.facetFilters : ""), facetFiltersArr = (facetFilters === "") ? [] : facetFilters.split(","); // Add or remove the filter from the hash object if(mode === "add" && !arrayUtils.arrayContains(facetFiltersArr, fullFilter)) { facetFiltersArr.push(fullFilter); } else if (mode === "remove" && arrayUtils.arrayContains(facetFiltersArr, fullFilter)) { facetFiltersArr.splice(facetFiltersArr.indexOf(fullFilter), 1); } // Put the manipulated filters back into the hash object or remove the property if empty if(facetFiltersArr.length < 1) { delete aHash.facetFilters; } else { aHash.facetFilters = facetFiltersArr.join(); } // Send the hash value back to navigation this.alfPublish("<API key>", { url: ioQuery.objectToQuery(aHash), type: "HASH" }, true); } }); });
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_31) on Mon Apr 06 15:30:27 CEST 2015 --> <title>Uses of Class org.cloudbus.cloudsim.<API key></title> <meta name="date" content="2015-04-06"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.cloudbus.cloudsim.<API key>"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../org/cloudbus/cloudsim/<API key>.html" title="class in org.cloudbus.cloudsim">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/cloudbus/cloudsim/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h2 title="Uses of Class org.cloudbus.cloudsim.<API key>" class="title">Uses of Class<br>org.cloudbus.cloudsim.<API key></h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../org/cloudbus/cloudsim/<API key>.html" title="class in org.cloudbus.cloudsim"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.cloudbus.cloudsim">org.cloudbus.cloudsim</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.cloudbus.cloudsim"> </a> <h3>Uses of <a href="../../../../org/cloudbus/cloudsim/<API key>.html" title="class in org.cloudbus.cloudsim"><API key></a> in <a href="../../../../org/cloudbus/cloudsim/package-summary.html">org.cloudbus.cloudsim</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subclasses, and an explanation"> <caption><span>Subclasses of <a href="../../../../org/cloudbus/cloudsim/<API key>.html" title="class in org.cloudbus.cloudsim"><API key></a> in <a href="../../../../org/cloudbus/cloudsim/package-summary.html">org.cloudbus.cloudsim</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Class and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>class&nbsp;</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/cloudbus/cloudsim/<API key>.html" title="class in org.cloudbus.cloudsim"><API key></a></span></code> <div class="block">This is a Time-Shared VM Scheduler, which allows over-subscription.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../org/cloudbus/cloudsim/<API key>.html" title="class in org.cloudbus.cloudsim">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/cloudbus/cloudsim/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> </body> </html>
<?php class <API key> extends <API key> { protected function _construct() { $this->_init('goodahead_core/cms_update'); return $this; } }
#!/bin/bash -i tmp=`pwd` source ~/.bashrc module purge # Ensure that there is not multiple threads running export OMP_NUM_THREADS=1 # On thul and interactive nodes, sourching leads to going back cd $tmp unset tmp # We have here the installation of all the stuff for gray.... source install_funcs.sh # Use ln to link to this file if [ $# -ne 0 ]; then [ ! -e $1 ] && echo "File $1 does not exist, please create." && exit 1 source $1 else [ ! -e compiler.sh ] && echo "Please create file: compiler.sh" && exit 1 source compiler.sh fi if [ -z "$(build_get --installation-path)" ]; then msg_install --message "The installation path has not been set." echo "I do not dare to guess where to place it..." echo "Please set it in your source file." exit 1 fi if [ -z "$(build_get --module-path)" ]; then msg_install --message "The module path has not been set." msg_install --message "Will set it to: $(build_get --installation-path)/modules" build_set --module-path "$(build_get --installation-path)/modules" fi # Begin installation of various packages # List of archives # The order is the installation order # Set the umask 5 means read and execute #umask 0 # We can always set the env-variable of LMOD export LMOD_IGNORE_CACHE=1 # Install the helper source helpers.bash source libs/zlib.bash source libs/libxml2.bash source libs/hwloc.bash source libs/openmpi-hpc.bash source applications/valgrind.bash
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="de"> <head> <!-- Generated by javadoc (1.8.0_45) on Mon Jan 16 14:28:58 CET 2017 --> <title>A-Index</title> <meta name="date" content="2017-01-16"> <link rel="stylesheet" type="text/css" href="../docstyle.css" title="Style"> <script type="text/javascript" src="../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="A-Index"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../de/pniehus/jalienfx/package-summary.html">Package</a></li> <li>Class</li> <li>Use</li> <li><a href="../de/pniehus/jalienfx/package-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev Letter</li> <li><a href="index-2.html">Next Letter</a></li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-1.html" target="_top">Frames</a></li> <li><a href="index-1.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="contentContainer"><a href="index-1.html">A</a>&nbsp;<a href="index-2.html">D</a>&nbsp;<a href="index-3.html">F</a>&nbsp;<a href="index-4.html">G</a>&nbsp;<a href="index-5.html">I</a>&nbsp;<a href="index-6.html">R</a>&nbsp;<a href="index-7.html">S</a>&nbsp;<a href="index-8.html">U</a>&nbsp;<a name="I:A"> </a> <h2 class="title">A</h2> <dl> <dt><a href="../de/pniehus/jalienfx/AlienFXController.html" title="class in de.pniehus.jalienfx"><span class="typeNameLink">AlienFXController</span></a> - Class in <a href="../de/pniehus/jalienfx/package-summary.html">de.pniehus.jalienfx</a></dt> <dd> <div class="block">This class can be used to control the AlienFX lighting of AlienFX compatible windows devices.</div> </dd> <dt><span class="memberNameLink"><a href="../de/pniehus/jalienfx/AlienFXController.html#AlienFXController--">AlienFXController()</a></span> - Constructor for class de.pniehus.jalienfx.<a href="../de/pniehus/jalienfx/AlienFXController.html" title="class in de.pniehus.jalienfx">AlienFXController</a></dt> <dd>&nbsp;</dd> </dl> <a href="index-1.html">A</a>&nbsp;<a href="index-2.html">D</a>&nbsp;<a href="index-3.html">F</a>&nbsp;<a href="index-4.html">G</a>&nbsp;<a href="index-5.html">I</a>&nbsp;<a href="index-6.html">R</a>&nbsp;<a href="index-7.html">S</a>&nbsp;<a href="index-8.html">U</a>&nbsp;</div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../de/pniehus/jalienfx/package-summary.html">Package</a></li> <li>Class</li> <li>Use</li> <li><a href="../de/pniehus/jalienfx/package-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev Letter</li> <li><a href="index-2.html">Next Letter</a></li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-1.html" target="_top">Frames</a></li> <li><a href="index-1.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> </body> </html>
mozHistDownload ============ firefox 26 + download history extractor to standard json Have you downloaded lots and lots of files with firefox and then gone and lost them? Well this script takes a firefox places.sqlite file as argument and extracts the download history and saves it as a standard json with name and url so you can parse it and redownload everything at once. Enjoy.