answer
stringlengths 15
1.25M
|
|---|
<?php
namespace NakedPhp\MetaModel;
class <API key> extends \<API key>
{
public function <API key>()
{
$this->assertEquals('OBJECT', <API key>::OBJECT);
}
}
|
<?php
/**
* PHPExcel
*/
class <API key> extends Chajian{
protected function initChajian()
{
$this->Astr = 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ,BA,BB,BC,BD,BE,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BP,BQ,BR,BS,BT,BU,BV,BW,BX,BY,BZ,CA,CB,CC,CD,CE,CF,CG,CH,CI,CJ,CK,CL,CM,CN,CO,CP,CQ,CR,CS,CT,CU,CV,CW,CX,CY,CZ';
$this->A = explode(',', $this->Astr);
$this->AT = array('A'=>0,'B'=>1,'C'=>2,'D'=>3,'E'=>4,'F'=>5,'G'=>6,'H'=>7,'I'=>8,'J'=>9,'K'=>10,'L'=>11,'M'=>12,'N'=>13,'O'=>14,'P'=>15,'Q'=>16,'R'=>17,'S'=>18,'T'=>19,'U'=>20,'V'=>21,'W'=>22,'X'=>23,'Y'=>24,'Z'=>25,'AA'=>26,'AB'=>27,'AC'=>28,'AD'=>29,'AE'=>30,'AF'=>31,'AG'=>32,'AH'=>33,'AI'=>34,'AJ'=>35,'AK'=>36,'AL'=>37,'AM'=>38,'AN'=>39,'AO'=>40,'AP'=>41,'AQ'=>42,'AR'=>43,'AS'=>44,'AT'=>45,'AU'=>46,'AV'=>47,'AW'=>48,'AX'=>49,'AY'=>50,'AZ'=>51,'BA'=>52,'BB'=>53,'BC'=>54,'BD'=>55,'BE'=>56,'BF'=>57,'BG'=>58,'BH'=>59,'BI'=>60,'BJ'=>61,'BK'=>62,'BL'=>63,'BM'=>64,'BN'=>65,'BO'=>66,'BP'=>67,'BQ'=>68,'BR'=>69,'BS'=>70,'BT'=>71,'BU'=>72,'BV'=>73,'BW'=>74,'BX'=>75,'BY'=>76,'BZ'=>77,'CA'=>78,'CB'=>79,'CC'=>80,'CD'=>81,'CE'=>82,'CF'=>83,'CG'=>84,'CH'=>85,'CI'=>86,'CJ'=>87,'CK'=>88,'CL'=>89,'CM'=>90,'CN'=>91,'CO'=>92,'CP'=>93,'CQ'=>94,'CR'=>95,'CS'=>96,'CT'=>97,'CU'=>98,'CV'=>99,'CW'=>100,'CX'=>101,'CY'=>102,'CZ'=>103);
}
public function reader($filePath=null, $index=2)
{
if(file_exists(ROOT_PATH.'/include/PHPExcel/Reader/Excel2007.php'))include_once(ROOT_PATH.'/include/PHPExcel/Reader/Excel2007.php');
if(file_exists(ROOT_PATH.'/include/PHPExcel/Reader/Excel5.php'))include_once(ROOT_PATH.'/include/PHPExcel/Reader/Excel5.php');
$help = c('xinhu')->helpstr('phpexcel');
if(!class_exists('<API key>'))return 'PHPExcel'.$help.'';
if($filePath==null)$filePath = $_FILES['file']['tmp_name'];
$PHPReader = new <API key>();
if(!$PHPReader->canRead($filePath)){
$PHPReader = new <API key>();
if(!$PHPReader->canRead($filePath)){
return 'Excel'.$help.'';
}
}
$PHPExcel = $PHPReader->load($filePath);
$rows = array();
$sheet = $PHPExcel->getSheet(0);
$allColumn = $sheet->getHighestColumn();
$allRow = $sheet->getHighestRow();
$allCell = $this->AT[$allColumn];
for($row = $index; $row <= $allRow; $row++){
$arr = array();
for($cell= 0; $cell<= $allCell; $cell++){
$val = $sheet-><API key>($cell, $row)->getValue();
$arr[$this->A[$cell]] = $val;
}
$rows[] = $arr;
}
return $rows;
}
public function importTable($table, $rows, $fields)
{
}
}
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="Text/html; charset=iso-8859-1">
<meta name="Author" content = "misho" >
<meta name="GENERATOR" content="VBDOX [1.0.24]" >
<script SRC="linkcss.js"></script>
<script SRC="langref.js"></script>
<title>dx_GFX_class: DRAW_AdvMap</title>
</head>
<BODY TOPMARGIN="0">
<TABLE CLASS="buttonbarshade" CELLSPACING=0><TR><TD> </TD></TR></TABLE>
<TABLE CLASS="buttonbartable" CELLSPACING=0>
<TR ID="hdr"><TD CLASS="runninghead" NOWRAP>dx_GFX_class: DRAW_AdvMap</TD></TR>
</TABLE>
<H1>DRAW_AdvMap</H1>
<P>Función avanzada de <a href="dx_GFX_class.DRAW_MapEx.html">DRAW_MapEx</a>. Dibuja un
<a href="REF_Maps.html">grafico</a> con efectos
aplicándole perspectiva.
<PRE class=syntax><B><font color="darkblue"> Public</font><font color="darkblue"> Sub</font><b><i> DRAW_AdvMap</i></b>(
<b><i> Map</i></b><font color="darkblue"> As</font><font color="darkblue"> Long</font>,
<b><i> X</i></b><font color="darkblue"> As</font><font color="darkblue"> Long</font>,
<b><i> Y</i></b><font color="darkblue"> As</font><font color="darkblue"> Long</font>,
<b><i> Z</i></b><font color="darkblue"> As</font><font color="darkblue"> Long</font>,
<b><i> Width</i></b><font color="darkblue"> As</font><font color="darkblue"> Long</font>,
<i> Height</i><font color="darkblue"> As Long</font>,
<b><i> AlphaBlendMode</i></b><font color="darkblue"> As</font><b><i> Blit_Alpha</i></b>,
<b><i> Color</i></b><font color="darkblue"> As</font><font color="darkblue"> Long</font>,
<b><i> Mirror</i></b><font color="darkblue"> As</font><b><i> Blit_Mirror</i></b>,
<b><i> Filter</i></b><font color="darkblue"> As</font><b><i> Blit_Filter</i></b>,
<b><i> Perspective</i></b><font color="darkblue"> As</font><b><i> Blit_Perspective</i></b>,
<font color="darkblue"> Optional</font><b><i> Factor</i></b><font color="darkblue"> As</font><font color="darkblue"> Long</font> )</B></PRE>
<H4>Argumentos</H4>
<DL>
<DT><I>Map</I></TD>
<DD>
<B>Long</B>.
Identificador del grafico.
</DD>
<DT><I>X</I></TD>
<DD>
<B>Long</B>.
Coordenada horizontal de dibujo.
</DD>
<DT><I>Y</I></TD>
<DD>
<B>Long</B>.
Coordenada vertical de dibujo.
</DD>
<DT><I>Z</I></TD>
<DD>
<B>Long</B>.
Coordenada de profundidad de dibujo.
Para saber como funciona este parámetro leer información acerca del
<a href="REF_ZBuffer.html">ZBuffer</a>.</DD>
<DT><I>Width</I></TD>
<DD>
<B>Long</B>.
Anchura con la que se dibujara el grafico. Si el valor es 0 se toma las dimensiones originales del grafico, si el valor es -1 se toma la dimensiones del grafico en memoria.
</DD>
<DT><I>Height</I></TD>
<DD>
<B>Long</B>.
Altura con la que se dibujara el grafico. Si el valor es 0 se toma las dimensiones originales del grafico, si el valor es -1 se toma la dimensiones del grafico en memoria.
</DD>
<DT><I>AlphaBlendMode</I></TD>
<DD>
<B><A href="dx_GFX_class.Blit_Alpha.html">Blit_Alpha</A></B>.
Modo de opacidad.
</DD>
<DT><I>Color</I></TD>
<DD>
<B>Long</B>.
Color <a href="REF_ARGB.html">ARGB</a> que se aplicara para realizar la
operación de dibujo. Para que el grafico se dibuje con los colores originales el
valor debe ser blanco puro <i>(&HFFFFFFFF o ARGB 255, 255, 255, 255). </i>El componente Alpha del color no se aplicara en los modos de opacidad
<a href="dx_GFX_class.Blit_Alpha.html">BlendOp_Aditive</a> y
<a href="dx_GFX_class.Blit_Alpha.html">BlendOp_Sustrative</a>.
</DD>
<DT><I>Mirror</I></TD>
<DD>
<B><A href="dx_GFX_class.Blit_Mirror.html">Blit_Mirror</A></B>.
Modo de espejado.
</DD>
<DT><I>Filter</I></TD>
<DD>
<B><A href="dx_GFX_class.Blit_Filter.html">Blit_Filter</A></B>.
Filtro de suavizado que se utilizara para dibujar el grafico.
</DD>
<DT><I>Perspective</I></TD>
<DD>
<B><A href="dx_GFX_class.Blit_Perspective.html">Blit_Perspective</A></B>.
Especifica el modo de perspectiva que tendrá el grafico en pantalla.</DD>
<DT><I>Factor</I></TD>
<DD>
Optional.
<B>Long</B>.
Parámetro opcional que permite introducir un valor para alterar la perspectiva final.
Este parametro no afecta a la constante
<a href="dx_GFX_class.Blit_Perspective.html">Isometric_Base</a></DD>
</DL>
<H4>Comentarios</H4>
<P>Esta función añade extras a la versión de
<a href="dx_GFX_class.DRAW_Map.html">DRAW_Map</a> permitiendo operaciones de espejados, opacidad (Alpha Blending), filtrado para suavizar los
píxeles del grafico en pantalla y posibilidad de proyectar un grafico en perspectiva tanto caballera como isométrica.
</P>
<H4>Vea también</H4>
<P>
<A HREF="dx_lib32.html">Proyecto dx_lib32 Descripción</A>
<A HREF="dx_GFX_class.html">Clase dx_GFX_class Descripción</A>
<A HREF="dx_GFX_class.html#public_props">dx_GFX_class Propiedades</A>
<A HREF="dx_GFX_class.html#public_methods">dx_GFX_class Metodos</A>
<B><A HREF="dx_GFX_class.DRAW_AdvBox.html">DRAW_AdvBox</A></B>
<B><A HREF="dx_GFX_class.DRAW_Box.html">DRAW_Box</A></B>
<DIV class=footer>dx_lib32 © 2004 - 2009 José Miguel Sánchez Fernández <P>Generado el viernes 02 de enero del 2009 con VBDOX 1.0.34 (<A href="http:
<DIV class=footer style="COLOR: #000000; FONT-SIZE: 90%">
</body>
</html>
|
// This is autogenerated code by CppSharp.
// Do not edit this file or all your changes will be lost after re-generation.
using System;
using System.Runtime.InteropServices;
using System.Security;
namespace Webbed.Scripting.Interop
{
// DEBUG: typedef struct <API key> <API key>
// DEBUG: struct <API key>
[StructLayout(LayoutKind.Explicit, Size = 0)]
public unsafe struct _cPrivate
{
}
// DEBUG: struct _WebKitIconDatabase { GObject parent_instance; /*< private >*/ <API key>* priv;}
[StructLayout(LayoutKind.Explicit, Size = 16)]
public unsafe struct _WebKitIconDatabase
{
// DEBUG: GObject parent_instance
[FieldOffset(0)]
public _GObject parent_instance;
// DEBUG: <API key>* priv
[FieldOffset(12)]
public global::System.IntPtr priv;
}
// DEBUG: struct <API key> { GObjectClass parent_class; /* Padding for future expansion */ void (*_webkit_reserved1) (void); void (*_webkit_reserved2) (void); void (*_webkit_reserved3) (void); void (*_webkit_reserved4) (void);}
[StructLayout(LayoutKind.Explicit, Size = 84)]
public unsafe struct <API key>
{
// DEBUG: GObjectClass parent_class
[FieldOffset(0)]
public _GObjectClass parent_class;
}
public unsafe partial class WebKitIconDatabase : GLib.Object
{
public WebKitIconDatabase(IntPtr handle):base(handle){};
// DEBUG: WEBKIT_API <API key> (void)
[<API key>]
[DllImport("webkitgtk-1.0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="<API key>")]
internal static extern uint <API key>();
public GLib.GType Type
{
get
{
return new GLib.GType((IntPtr)<API key>());
}
}
// DEBUG: WEBKIT_API const gchar*<API key> (WebKitIconDatabase* database)
[<API key>]
[DllImport("webkitgtk-1.0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, CharSet = CharSet.Ansi
EntryPoint="<API key>")]
internal static extern string <API key>(global::System.IntPtr database);
public string Path
{
get
{
return <API key>(this.Handle);
}
set{
<API key>(this.Handle, value);
}
}
// DEBUG: WEBKIT_API <API key> (WebKitIconDatabase* database, const gchar* path)
[<API key>]
[DllImport("webkitgtk-1.0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, CharSet = CharSet.Ansi
EntryPoint="<API key>")]
internal static extern void <API key>(global::System.IntPtr database, string path);
// DEBUG: WEBKIT_API gchar*<API key> (WebKitIconDatabase* database, const gchar* page_uri)
[<API key>]
[DllImport("webkitgtk-1.0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, CharSet = CharSet.Ansi
EntryPoint="<API key>")]
internal static extern string <API key>(global::System.IntPtr database, string page_uri);
public string GetIconUri(string page_uri){
return <API key>(this.Handle,page_uri);
}
// DEBUG: WEBKIT_API GdkPixbuf*<API key> (WebKitIconDatabase* database, const gchar* page_uri)
[<API key>]
[DllImport("webkitgtk-1.0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl, CharSet = CharSet.Ansi
EntryPoint="<API key>")]
internal static extern global::System.IntPtr <API key>(global::System.IntPtr database, string page_uri);
public Gdk.Pixbuf GetIconPixbuf(string page_uri){
return new Gdk.Pixbuf( <API key>(this.Handle,page_uri));
}
// DEBUG: WEBKIT_API <API key> (WebKitIconDatabase* database)
[<API key>]
[DllImport("webkitgtk-1.0", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="<API key>")]
internal static extern void <API key>(global::System.IntPtr database);
public void Clear(){
<API key>(this.Handle);
}
}
}
|
#include "nova_renderer/util/platform.hpp"
#ifdef NOVA_LINUX
#include "x11_window.hpp"
namespace nova::renderer {
x11_window::x11_window(uint32_t width, uint32_t height, const std::string& title) {
display = XOpenDisplay(nullptr);
if(display == nullptr) {
throw <API key>("Failed to open XDisplay");
}
// NOLINTNEXTLINE(<API key>)
int screen = DefaultScreen(display);
window = XCreateSimpleWindow(display,
RootWindow(display, screen), // NOLINT(<API key>)
50,
50,
width,
height,
1,
BlackPixel(display, screen), // NOLINT(<API key>)
WhitePixel(display, screen)); // NOLINT(<API key>)
XStoreName(display, window, title.c_str());
wm_protocols = XInternAtom(display, "WM_PROTOCOLS", 0);
wm_delete_window = XInternAtom(display, "WM_DELETE_WINDOW", 0);
XSetWMProtocols(display, window, &wm_delete_window, 1);
XSelectInput(display, window, ExposureMask | ButtonPressMask | KeyPressMask);
XMapWindow(display, window);
}
x11_window::~x11_window() {
XUnmapWindow(display, window);
XDestroyWindow(display, window);
XCloseDisplay(display);
}
Window& x11_window::get_x11_window() { return window; }
Display* x11_window::get_display() { return display; }
void x11_window::on_frame_end() {
XEvent event;
while(XPending(display) != 0) {
XNextEvent(display, &event);
switch(event.type) {
case ClientMessage: {
if(event.xclient.message_type == wm_protocols && event.xclient.data.l[0] == static_cast<long>(wm_delete_window)) {
should_window_close = true;
}
break;
}
default:
break;
}
}
}
bool x11_window::should_close() const { return should_window_close; }
glm::uvec2 x11_window::get_window_size() const {
Window root_window;
int x_pos;
int y_pos;
uint32_t width;
uint32_t height;
uint32_t border_width;
uint32_t depth;
XGetGeometry(display, window, &root_window, &x_pos, &y_pos, &width, &height, &border_width, &depth);
return {width, height};
}
} // namespace nova::renderer
#endif
|
package codechicken.lib.math;
import net.minecraft.util.math.BlockPos;
//TODO cleanup.
public class MathHelper {
public static final double phi = 1.618033988749894;
public static final double pi = Math.PI;
public static final double todeg = 57.29577951308232;
public static final double torad = 0.017453292519943;
public static final double sqrt2 = 1.414213562373095;
public static double[] SIN_TABLE = new double[65536];
static {
for (int i = 0; i < 65536; ++i) {
SIN_TABLE[i] = Math.sin(i / 65536D * 2 * Math.PI);
}
SIN_TABLE[0] = 0;
SIN_TABLE[16384] = 1;
SIN_TABLE[32768] = 0;
SIN_TABLE[49152] = 1;
}
public static double sin(double d) {
return SIN_TABLE[(int) ((float) d * 10430.378F) & 65535];
}
public static double cos(double d) {
return SIN_TABLE[(int) ((float) d * 10430.378F + 16384.0F) & 65535];
}
/**
* @param a The value
* @param b The value to approach
* @param max The maximum step
* @return the closed value to b no less than max from a
*/
public static float approachLinear(float a, float b, float max) {
return (a > b) ? (a - b < max ? b : a - max) : (b - a < max ? b : a + max);
}
/**
* @param a The value
* @param b The value to approach
* @param max The maximum step
* @return the closed value to b no less than max from a
*/
public static double approachLinear(double a, double b, double max) {
return (a > b) ? (a - b < max ? b : a - max) : (b - a < max ? b : a + max);
}
/**
* @param a The first value
* @param b The second value
* @param d The interpolation factor, between 0 and 1
* @return a+(b-a)*d
*/
public static float interpolate(float a, float b, float d) {
return a + (b - a) * d;
}
/**
* @param a The first value
* @param b The second value
* @param d The interpolation factor, between 0 and 1
* @return a+(b-a)*d
*/
public static double interpolate(double a, double b, double d) {
return a + (b - a) * d;
}
/**
* @param a The value
* @param b The value to approach
* @param ratio The ratio to reduce the difference by
* @return a+(b-a)*ratio
*/
public static double approachExp(double a, double b, double ratio) {
return a + (b - a) * ratio;
}
/**
* @param a The value
* @param b The value to approach
* @param ratio The ratio to reduce the difference by
* @param cap The maximum amount to advance by
* @return a+(b-a)*ratio
*/
public static double approachExp(double a, double b, double ratio, double cap) {
double d = (b - a) * ratio;
if (Math.abs(d) > cap) {
d = Math.signum(d) * cap;
}
return a + d;
}
/**
* @param a The value
* @param b The value to approach
* @param ratio The ratio to reduce the difference by
* @param c The value to retreat from
* @param kick The difference when a == c
* @return
*/
public static double retreatExp(double a, double b, double c, double ratio, double kick) {
double d = (Math.abs(c - a) + kick) * ratio;
if (d > Math.abs(b - a)) {
return b;
}
return a + Math.signum(b - a) * d;
}
/**
* @param value The value
* @param min The min value
* @param max The max value
* @return The clipped value between min and max
*/
public static double clip(double value, double min, double max) {
if (value > max) {
value = max;
}
if (value < min) {
value = min;
}
return value;
}
/**
* @param value The value
* @param min The min value
* @param max The max value
* @return The clipped value between min and max
*/
public static float clip(float value, float min, float max) {
if (value > max) {
value = max;
}
if (value < min) {
value = min;
}
return value;
}
/**
* @param value The value
* @param min The min value
* @param max The max value
* @return The clipped value between min and max
*/
public static int clip(int value, int min, int max) {
if (value > max) {
value = max;
}
if (value < min) {
value = min;
}
return value;
}
/**
* Maps a value range to another value range.
*
* @param valueIn The value to map.
* @param inMin The minimum of the input value range.
* @param inMax The maximum of the input value range
* @param outMin The minimum of the output value range.
* @param outMax The maximum of the output value range.
* @return The mapped value.
*/
public static double map(double valueIn, double inMin, double inMax, double outMin, double outMax) {
return (valueIn - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
}
/**
* Maps a value range to another value range.
*
* @param valueIn The value to map.
* @param inMin The minimum of the input value range.
* @param inMax The maximum of the input value range
* @param outMin The minimum of the output value range.
* @param outMax The maximum of the output value range.
* @return The mapped value.
*/
public static float map(float valueIn, float inMin, float inMax, float outMin, float outMax) {
return (valueIn - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
}
/**
* Rounds the number of decimal places based on the given multiplier.<br>
* e.g.<br>
* Input: 17.5245743<br>
* multiplier: 1000<br>
* Output: 17.534<br>
* multiplier: 10<br>
* Output 17.5<br><br>
*
* @param number The input value.
* @param multiplier The multiplier.
* @return The input rounded to a number of decimal places based on the multiplier.
*/
public static double round(double number, double multiplier) {
return Math.round(number * multiplier) / multiplier;
}
/**
* Rounds the number of decimal places based on the given multiplier.<br>
* e.g.<br>
* Input: 17.5245743<br>
* multiplier: 1000<br>
* Output: 17.534<br>
* multiplier: 10<br>
* Output 17.5<br><br>
*
* @param number The input value.
* @param multiplier The multiplier.
* @return The input rounded to a number of decimal places based on the multiplier.
*/
public static float round(float number, float multiplier) {
return Math.round(number * multiplier) / multiplier;
}
/**
* @return min <= value <= max
*/
public static boolean between(double min, double value, double max) {
return min <= value && value <= max;
}
public static int approachExpI(int a, int b, double ratio) {
int r = (int) Math.round(approachExp(a, b, ratio));
return r == a ? b : r;
}
public static int retreatExpI(int a, int b, int c, double ratio, int kick) {
int r = (int) Math.round(retreatExp(a, b, c, ratio, kick));
return r == a ? b : r;
}
public static int floor(double d) {
return net.minecraft.util.math.MathHelper.floor_double(d);
}
public static int floor(float d) {
return net.minecraft.util.math.MathHelper.floor_float(d);
}
public static int ceil(double d) {
return net.minecraft.util.math.MathHelper.ceiling_double_int(d);
}
public static int ceil(float d) {
return net.minecraft.util.math.MathHelper.ceiling_float_int(d);
}
public static float sqrt(float f) {
return net.minecraft.util.math.MathHelper.sqrt_float(f);
}
public static float sqrt(double f) {
return net.minecraft.util.math.MathHelper.sqrt_double(f);
}
public static int roundAway(double d) {
return (int) (d < 0 ? Math.floor(d) : Math.ceil(d));
}
public static int compare(int a, int b) {
return a == b ? 0 : a < b ? -1 : 1;
}
public static int compare(double a, double b) {
return a == b ? 0 : a < b ? -1 : 1;
}
public static int absSum(BlockPos pos) {
return (pos.getX() < 0 ? -pos.getX() : pos.getX()) + (pos.getY() < 0 ? -pos.getY() : pos.getY()) + (pos.getZ() < 0 ? -pos.getZ() : pos.getZ());
}
public static boolean isAxial(BlockPos pos) {
return pos.getX() == 0 ? (pos.getY() == 0 || pos.getZ() == 0) : (pos.getY() == 0 && pos.getZ() == 0);
}
public static int toSide(BlockPos pos) {
if (!isAxial(pos)) {
return -1;
}
if (pos.getY() < 0) {
return 0;
}
if (pos.getY() > 0) {
return 1;
}
if (pos.getZ() < 0) {
return 2;
}
if (pos.getZ() > 0) {
return 3;
}
if (pos.getX() < 0) {
return 4;
}
if (pos.getX() > 0) {
return 5;
}
return -1;
}
}
|
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-<API key>: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
a {
background-color: transparent;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
mark {
background: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
box-sizing: content-box;
height: 0;
}
pre {
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-<API key>,
input[type="number"]::-<API key> {
height: auto;
}
input[type="search"] {
-webkit-appearance: textfield;
box-sizing: content-box;
}
input[type="search"]::-<API key>,
input[type="search"]::-<API key> {
-webkit-appearance: none;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
}
optgroup {
font-weight: bold;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
.navbar {
display: none;
}
.btn > .caret,
.dropup > .btn > .caret {
border-top-color: #000 !important;
}
.label {
border: 1px solid #000;
}
.table {
border-collapse: collapse !important;
}
.table td,
.table th {
background-color: #fff !important;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd !important;
}
}
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../../../vendor_bundled/vendor/twitter/bootstrap/fonts/<API key>.eot');
src: url('../../../vendor_bundled/vendor/twitter/bootstrap/fonts/<API key>.eot?#iefix') format('embedded-opentype'), url('../../../vendor_bundled/vendor/twitter/bootstrap/fonts/<API key>.woff2') format('woff2'), url('../../../vendor_bundled/vendor/twitter/bootstrap/fonts/<API key>.woff') format('woff'), url('../../../vendor_bundled/vendor/twitter/bootstrap/fonts/<API key>.ttf') format('truetype'), url('../../../vendor_bundled/vendor/twitter/bootstrap/fonts/<API key>.svg#<API key>') format('svg');
}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: normal;
line-height: 1;
-<API key>: antialiased;
-<API key>: grayscale;
}
.glyphicon-asterisk:before {
content: "\002a";
}
.glyphicon-plus:before {
content: "\002b";
}
.glyphicon-euro:before,
.glyphicon-eur:before {
content: "\20ac";
}
.glyphicon-minus:before {
content: "\2212";
}
.glyphicon-cloud:before {
content: "\2601";
}
.glyphicon-envelope:before {
content: "\2709";
}
.glyphicon-pencil:before {
content: "\270f";
}
.glyphicon-glass:before {
content: "\e001";
}
.glyphicon-music:before {
content: "\e002";
}
.glyphicon-search:before {
content: "\e003";
}
.glyphicon-heart:before {
content: "\e005";
}
.glyphicon-star:before {
content: "\e006";
}
.<API key>:before {
content: "\e007";
}
.glyphicon-user:before {
content: "\e008";
}
.glyphicon-film:before {
content: "\e009";
}
.glyphicon-th-large:before {
content: "\e010";
}
.glyphicon-th:before {
content: "\e011";
}
.glyphicon-th-list:before {
content: "\e012";
}
.glyphicon-ok:before {
content: "\e013";
}
.glyphicon-remove:before {
content: "\e014";
}
.glyphicon-zoom-in:before {
content: "\e015";
}
.glyphicon-zoom-out:before {
content: "\e016";
}
.glyphicon-off:before {
content: "\e017";
}
.glyphicon-signal:before {
content: "\e018";
}
.glyphicon-cog:before {
content: "\e019";
}
.glyphicon-trash:before {
content: "\e020";
}
.glyphicon-home:before {
content: "\e021";
}
.glyphicon-file:before {
content: "\e022";
}
.glyphicon-time:before {
content: "\e023";
}
.glyphicon-road:before {
content: "\e024";
}
.<API key>:before {
content: "\e025";
}
.glyphicon-download:before {
content: "\e026";
}
.glyphicon-upload:before {
content: "\e027";
}
.glyphicon-inbox:before {
content: "\e028";
}
.<API key>:before {
content: "\e029";
}
.glyphicon-repeat:before {
content: "\e030";
}
.glyphicon-refresh:before {
content: "\e031";
}
.glyphicon-list-alt:before {
content: "\e032";
}
.glyphicon-lock:before {
content: "\e033";
}
.glyphicon-flag:before {
content: "\e034";
}
.<API key>:before {
content: "\e035";
}
.<API key>:before {
content: "\e036";
}
.<API key>:before {
content: "\e037";
}
.glyphicon-volume-up:before {
content: "\e038";
}
.glyphicon-qrcode:before {
content: "\e039";
}
.glyphicon-barcode:before {
content: "\e040";
}
.glyphicon-tag:before {
content: "\e041";
}
.glyphicon-tags:before {
content: "\e042";
}
.glyphicon-book:before {
content: "\e043";
}
.glyphicon-bookmark:before {
content: "\e044";
}
.glyphicon-print:before {
content: "\e045";
}
.glyphicon-camera:before {
content: "\e046";
}
.glyphicon-font:before {
content: "\e047";
}
.glyphicon-bold:before {
content: "\e048";
}
.glyphicon-italic:before {
content: "\e049";
}
.<API key>:before {
content: "\e050";
}
.<API key>:before {
content: "\e051";
}
.<API key>:before {
content: "\e052";
}
.<API key>:before {
content: "\e053";
}
.<API key>:before {
content: "\e054";
}
.<API key>:before {
content: "\e055";
}
.glyphicon-list:before {
content: "\e056";
}
.<API key>:before {
content: "\e057";
}
.<API key>:before {
content: "\e058";
}
.<API key>:before {
content: "\e059";
}
.glyphicon-picture:before {
content: "\e060";
}
.<API key>:before {
content: "\e062";
}
.glyphicon-adjust:before {
content: "\e063";
}
.glyphicon-tint:before {
content: "\e064";
}
.glyphicon-edit:before {
content: "\e065";
}
.glyphicon-share:before {
content: "\e066";
}
.glyphicon-check:before {
content: "\e067";
}
.glyphicon-move:before {
content: "\e068";
}
.<API key>:before {
content: "\e069";
}
.<API key>:before {
content: "\e070";
}
.glyphicon-backward:before {
content: "\e071";
}
.glyphicon-play:before {
content: "\e072";
}
.glyphicon-pause:before {
content: "\e073";
}
.glyphicon-stop:before {
content: "\e074";
}
.glyphicon-forward:before {
content: "\e075";
}
.<API key>:before {
content: "\e076";
}
.<API key>:before {
content: "\e077";
}
.glyphicon-eject:before {
content: "\e078";
}
.<API key>:before {
content: "\e079";
}
.<API key>:before {
content: "\e080";
}
.glyphicon-plus-sign:before {
content: "\e081";
}
.<API key>:before {
content: "\e082";
}
.<API key>:before {
content: "\e083";
}
.glyphicon-ok-sign:before {
content: "\e084";
}
.<API key>:before {
content: "\e085";
}
.glyphicon-info-sign:before {
content: "\e086";
}
.<API key>:before {
content: "\e087";
}
.<API key>:before {
content: "\e088";
}
.glyphicon-ok-circle:before {
content: "\e089";
}
.<API key>:before {
content: "\e090";
}
.<API key>:before {
content: "\e091";
}
.<API key>:before {
content: "\e092";
}
.glyphicon-arrow-up:before {
content: "\e093";
}
.<API key>:before {
content: "\e094";
}
.glyphicon-share-alt:before {
content: "\e095";
}
.<API key>:before {
content: "\e096";
}
.<API key>:before {
content: "\e097";
}
.<API key>:before {
content: "\e101";
}
.glyphicon-gift:before {
content: "\e102";
}
.glyphicon-leaf:before {
content: "\e103";
}
.glyphicon-fire:before {
content: "\e104";
}
.glyphicon-eye-open:before {
content: "\e105";
}
.glyphicon-eye-close:before {
content: "\e106";
}
.<API key>:before {
content: "\e107";
}
.glyphicon-plane:before {
content: "\e108";
}
.glyphicon-calendar:before {
content: "\e109";
}
.glyphicon-random:before {
content: "\e110";
}
.glyphicon-comment:before {
content: "\e111";
}
.glyphicon-magnet:before {
content: "\e112";
}
.<API key>:before {
content: "\e113";
}
.<API key>:before {
content: "\e114";
}
.glyphicon-retweet:before {
content: "\e115";
}
.<API key>:before {
content: "\e116";
}
.<API key>:before {
content: "\e117";
}
.<API key>:before {
content: "\e118";
}
.<API key>:before {
content: "\e119";
}
.<API key>:before {
content: "\e120";
}
.glyphicon-hdd:before {
content: "\e121";
}
.glyphicon-bullhorn:before {
content: "\e122";
}
.glyphicon-bell:before {
content: "\e123";
}
.<API key>:before {
content: "\e124";
}
.glyphicon-thumbs-up:before {
content: "\e125";
}
.<API key>:before {
content: "\e126";
}
.<API key>:before {
content: "\e127";
}
.glyphicon-hand-left:before {
content: "\e128";
}
.glyphicon-hand-up:before {
content: "\e129";
}
.glyphicon-hand-down:before {
content: "\e130";
}
.<API key>:before {
content: "\e131";
}
.<API key>:before {
content: "\e132";
}
.<API key>:before {
content: "\e133";
}
.<API key>:before {
content: "\e134";
}
.glyphicon-globe:before {
content: "\e135";
}
.glyphicon-wrench:before {
content: "\e136";
}
.glyphicon-tasks:before {
content: "\e137";
}
.glyphicon-filter:before {
content: "\e138";
}
.glyphicon-briefcase:before {
content: "\e139";
}
.<API key>:before {
content: "\e140";
}
.glyphicon-dashboard:before {
content: "\e141";
}
.glyphicon-paperclip:before {
content: "\e142";
}
.<API key>:before {
content: "\e143";
}
.glyphicon-link:before {
content: "\e144";
}
.glyphicon-phone:before {
content: "\e145";
}
.glyphicon-pushpin:before {
content: "\e146";
}
.glyphicon-usd:before {
content: "\e148";
}
.glyphicon-gbp:before {
content: "\e149";
}
.glyphicon-sort:before {
content: "\e150";
}
.<API key>:before {
content: "\e151";
}
.<API key>:before {
content: "\e152";
}
.<API key>:before {
content: "\e153";
}
.<API key>:before {
content: "\e154";
}
.<API key>:before {
content: "\e155";
}
.<API key>:before {
content: "\e156";
}
.glyphicon-unchecked:before {
content: "\e157";
}
.glyphicon-expand:before {
content: "\e158";
}
.<API key>:before {
content: "\e159";
}
.<API key>:before {
content: "\e160";
}
.glyphicon-log-in:before {
content: "\e161";
}
.glyphicon-flash:before {
content: "\e162";
}
.glyphicon-log-out:before {
content: "\e163";
}
.<API key>:before {
content: "\e164";
}
.glyphicon-record:before {
content: "\e165";
}
.glyphicon-save:before {
content: "\e166";
}
.glyphicon-open:before {
content: "\e167";
}
.glyphicon-saved:before {
content: "\e168";
}
.glyphicon-import:before {
content: "\e169";
}
.glyphicon-export:before {
content: "\e170";
}
.glyphicon-send:before {
content: "\e171";
}
.<API key>:before {
content: "\e172";
}
.<API key>:before {
content: "\e173";
}
.<API key>:before {
content: "\e174";
}
.<API key>:before {
content: "\e175";
}
.<API key>:before {
content: "\e176";
}
.<API key>:before {
content: "\e177";
}
.glyphicon-transfer:before {
content: "\e178";
}
.glyphicon-cutlery:before {
content: "\e179";
}
.glyphicon-header:before {
content: "\e180";
}
.<API key>:before {
content: "\e181";
}
.glyphicon-earphone:before {
content: "\e182";
}
.glyphicon-phone-alt:before {
content: "\e183";
}
.glyphicon-tower:before {
content: "\e184";
}
.glyphicon-stats:before {
content: "\e185";
}
.glyphicon-sd-video:before {
content: "\e186";
}
.glyphicon-hd-video:before {
content: "\e187";
}
.glyphicon-subtitles:before {
content: "\e188";
}
.<API key>:before {
content: "\e189";
}
.<API key>:before {
content: "\e190";
}
.glyphicon-sound-5-1:before {
content: "\e191";
}
.glyphicon-sound-6-1:before {
content: "\e192";
}
.glyphicon-sound-7-1:before {
content: "\e193";
}
.<API key>:before {
content: "\e194";
}
.<API key>:before {
content: "\e195";
}
.<API key>:before {
content: "\e197";
}
.<API key>:before {
content: "\e198";
}
.<API key>:before {
content: "\e199";
}
.<API key>:before {
content: "\e200";
}
.glyphicon-cd:before {
content: "\e201";
}
.glyphicon-save-file:before {
content: "\e202";
}
.glyphicon-open-file:before {
content: "\e203";
}
.glyphicon-level-up:before {
content: "\e204";
}
.glyphicon-copy:before {
content: "\e205";
}
.glyphicon-paste:before {
content: "\e206";
}
.glyphicon-alert:before {
content: "\e209";
}
.glyphicon-equalizer:before {
content: "\e210";
}
.glyphicon-king:before {
content: "\e211";
}
.glyphicon-queen:before {
content: "\e212";
}
.glyphicon-pawn:before {
content: "\e213";
}
.glyphicon-bishop:before {
content: "\e214";
}
.glyphicon-knight:before {
content: "\e215";
}
.<API key>:before {
content: "\e216";
}
.glyphicon-tent:before {
content: "\26fa";
}
.<API key>:before {
content: "\e218";
}
.glyphicon-bed:before {
content: "\e219";
}
.glyphicon-apple:before {
content: "\f8ff";
}
.glyphicon-erase:before {
content: "\e221";
}
.glyphicon-hourglass:before {
content: "\231b";
}
.glyphicon-lamp:before {
content: "\e223";
}
.glyphicon-duplicate:before {
content: "\e224";
}
.<API key>:before {
content: "\e225";
}
.glyphicon-scissors:before {
content: "\e226";
}
.glyphicon-bitcoin:before {
content: "\e227";
}
.glyphicon-btc:before {
content: "\e227";
}
.glyphicon-xbt:before {
content: "\e227";
}
.glyphicon-yen:before {
content: "\00a5";
}
.glyphicon-jpy:before {
content: "\00a5";
}
.glyphicon-ruble:before {
content: "\20bd";
}
.glyphicon-rub:before {
content: "\20bd";
}
.glyphicon-scale:before {
content: "\e230";
}
.glyphicon-ice-lolly:before {
content: "\e231";
}
.<API key>:before {
content: "\e232";
}
.glyphicon-education:before {
content: "\e233";
}
.<API key>:before {
content: "\e234";
}
.<API key>:before {
content: "\e235";
}
.<API key>:before {
content: "\e236";
}
.<API key>:before {
content: "\e237";
}
.glyphicon-oil:before {
content: "\e238";
}
.glyphicon-grain:before {
content: "\e239";
}
.<API key>:before {
content: "\e240";
}
.glyphicon-text-size:before {
content: "\e241";
}
.<API key>:before {
content: "\e242";
}
.<API key>:before {
content: "\e243";
}
.<API key>:before {
content: "\e244";
}
.<API key>:before {
content: "\e245";
}
.<API key>:before {
content: "\e246";
}
.<API key>:before {
content: "\e247";
}
.<API key>:before {
content: "\e248";
}
.<API key>:before {
content: "\e249";
}
.<API key>:before {
content: "\e250";
}
.<API key>:before {
content: "\e251";
}
.<API key>:before {
content: "\e252";
}
.<API key>:before {
content: "\e253";
}
.glyphicon-console:before {
content: "\e254";
}
.<API key>:before {
content: "\e255";
}
.glyphicon-subscript:before {
content: "\e256";
}
.glyphicon-menu-left:before {
content: "\e257";
}
.<API key>:before {
content: "\e258";
}
.glyphicon-menu-down:before {
content: "\e259";
}
.glyphicon-menu-up:before {
content: "\e260";
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-size: 10px;
-<API key>: rgba(0, 0, 0, 0);
}
body {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1.846;
color: #666666;
background-color: #ffffff;
}
input,
button,
select,
textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
a {
color: #2196f3;
text-decoration: none;
}
a:hover,
a:focus {
color: #0a6ebd;
text-decoration: underline;
}
a:focus {
outline: 5px auto -<API key>;
outline-offset: -2px;
}
figure {
margin: 0;
}
img {
vertical-align: middle;
}
.img-responsive,
.thumbnail > img,
.thumbnail a > img,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
}
.img-rounded {
border-radius: 3px;
}
.img-thumbnail {
padding: 4px;
line-height: 1.846;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 3px;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-block;
max-width: 100%;
height: auto;
}
.img-circle {
border-radius: 50%;
}
hr {
margin-top: 23px;
margin-bottom: 23px;
border: 0;
border-top: 1px solid #eeeeee;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
[role="button"] {
cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
font-family: inherit;
font-weight: 400;
line-height: 1.1;
color: #444444;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small,
.h1 small,
.h2 small,
.h3 small,
.h4 small,
.h5 small,
.h6 small,
h1 .small,
h2 .small,
h3 .small,
h4 .small,
h5 .small,
h6 .small,
.h1 .small,
.h2 .small,
.h3 .small,
.h4 .small,
.h5 .small,
.h6 .small {
font-weight: normal;
line-height: 1;
color: #bbbbbb;
}
h1,
.h1,
h2,
.h2,
h3,
.h3 {
margin-top: 23px;
margin-bottom: 11.5px;
}
h1 small,
.h1 small,
h2 small,
.h2 small,
h3 small,
.h3 small,
h1 .small,
.h1 .small,
h2 .small,
.h2 .small,
h3 .small,
.h3 .small {
font-size: 65%;
}
h4,
.h4,
h5,
.h5,
h6,
.h6 {
margin-top: 11.5px;
margin-bottom: 11.5px;
}
h4 small,
.h4 small,
h5 small,
.h5 small,
h6 small,
.h6 small,
h4 .small,
.h4 .small,
h5 .small,
.h5 .small,
h6 .small,
.h6 .small {
font-size: 75%;
}
h1,
.h1 {
font-size: 56px;
}
h2,
.h2 {
font-size: 45px;
}
h3,
.h3 {
font-size: 34px;
}
h4,
.h4 {
font-size: 24px;
}
h5,
.h5 {
font-size: 20px;
}
h6,
.h6 {
font-size: 14px;
}
p {
margin: 0 0 11.5px;
}
.lead {
margin-bottom: 23px;
font-size: 14px;
font-weight: 300;
line-height: 1.4;
}
@media (min-width: 768px) {
.lead {
font-size: 19.5px;
}
}
small,
.small {
font-size: 92%;
}
mark,
.mark {
background-color: #ffe0b2;
padding: .2em;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-justify {
text-align: justify;
}
.text-nowrap {
white-space: nowrap;
}
.text-lowercase {
text-transform: lowercase;
}
.text-uppercase {
text-transform: uppercase;
}
.text-capitalize {
text-transform: capitalize;
}
.text-muted {
color: #bbbbbb;
}
.text-primary {
color: #2196f3;
}
a.text-primary:hover,
a.text-primary:focus {
color: #0c7cd5;
}
.text-success {
color: #4caf50;
}
a.text-success:hover,
a.text-success:focus {
color: #3d8b40;
}
.text-info {
color: #9c27b0;
}
a.text-info:hover,
a.text-info:focus {
color: #771e86;
}
.text-warning {
color: #ff9800;
}
a.text-warning:hover,
a.text-warning:focus {
color: #cc7a00;
}
.text-danger {
color: #e51c23;
}
a.text-danger:hover,
a.text-danger:focus {
color: #b9151b;
}
.bg-primary {
color: #fff;
background-color: #2196f3;
}
a.bg-primary:hover,
a.bg-primary:focus {
background-color: #0c7cd5;
}
.bg-success {
background-color: #dff0d8;
}
a.bg-success:hover,
a.bg-success:focus {
background-color: #c1e2b3;
}
.bg-info {
background-color: #e1bee7;
}
a.bg-info:hover,
a.bg-info:focus {
background-color: #d099d9;
}
.bg-warning {
background-color: #ffe0b2;
}
a.bg-warning:hover,
a.bg-warning:focus {
background-color: #ffcb7f;
}
.bg-danger {
background-color: #f9bdbb;
}
a.bg-danger:hover,
a.bg-danger:focus {
background-color: #f5908c;
}
.page-header {
padding-bottom: 10.5px;
margin: 46px 0 23px;
border-bottom: 1px solid #eeeeee;
}
ul,
ol {
margin-top: 0;
margin-bottom: 11.5px;
}
ul ul,
ol ul,
ul ol,
ol ol {
margin-bottom: 0;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;
margin-left: -5px;
}
.list-inline > li {
display: inline-block;
padding-left: 5px;
padding-right: 5px;
}
dl {
margin-top: 0;
margin-bottom: 23px;
}
dt,
dd {
line-height: 1.846;
}
dt {
font-weight: bold;
}
dd {
margin-left: 0;
}
@media (min-width: 768px) {
.dl-horizontal dt {
float: left;
width: 160px;
clear: left;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dl-horizontal dd {
margin-left: 180px;
}
}
abbr[title],
abbr[data-original-title] {
cursor: help;
border-bottom: 1px dotted #bbbbbb;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
blockquote {
padding: 11.5px 23px;
margin: 0 0 23px;
font-size: 16.25px;
border-left: 5px solid #eeeeee;
}
blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
margin-bottom: 0;
}
blockquote footer,
blockquote small,
blockquote .small {
display: block;
font-size: 80%;
line-height: 1.846;
color: #bbbbbb;
}
blockquote footer:before,
blockquote small:before,
blockquote .small:before {
content: '\2014 \00A0';
}
.blockquote-reverse,
blockquote.pull-right {
padding-right: 15px;
padding-left: 0;
border-right: 5px solid #eeeeee;
border-left: 0;
text-align: right;
}
.blockquote-reverse footer:before,
blockquote.pull-right footer:before,
.blockquote-reverse small:before,
blockquote.pull-right small:before,
.blockquote-reverse .small:before,
blockquote.pull-right .small:before {
content: '';
}
.blockquote-reverse footer:after,
blockquote.pull-right footer:after,
.blockquote-reverse small:after,
blockquote.pull-right small:after,
.blockquote-reverse .small:after,
blockquote.pull-right .small:after {
content: '\00A0 \2014';
}
address {
margin-bottom: 23px;
font-style: normal;
line-height: 1.846;
}
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
code {
padding: 2px 4px;
font-size: 90%;
color: #444444;
background-color: #f8f8f8;
border-radius: 3px;
}
kbd {
padding: 2px 4px;
font-size: 90%;
color: #ffffff;
background-color: #333333;
border-radius: 3px;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
box-shadow: none;
}
pre {
display: block;
padding: 11px;
margin: 0 0 11.5px;
font-size: 12px;
line-height: 1.846;
word-break: break-all;
word-wrap: break-word;
color: #212121;
background-color: #f5f5f5;
border: 1px solid #cccccc;
border-radius: 3px;
}
pre code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
.container-fluid {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
.row {
margin-left: -15px;
margin-right: -15px;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
float: left;
}
.col-xs-12 {
width: 100%;
}
.col-xs-11 {
width: 91.66666667%;
}
.col-xs-10 {
width: 83.33333333%;
}
.col-xs-9 {
width: 75%;
}
.col-xs-8 {
width: 66.66666667%;
}
.col-xs-7 {
width: 58.33333333%;
}
.col-xs-6 {
width: 50%;
}
.col-xs-5 {
width: 41.66666667%;
}
.col-xs-4 {
width: 33.33333333%;
}
.col-xs-3 {
width: 25%;
}
.col-xs-2 {
width: 16.66666667%;
}
.col-xs-1 {
width: 8.33333333%;
}
.col-xs-pull-12 {
right: 100%;
}
.col-xs-pull-11 {
right: 91.66666667%;
}
.col-xs-pull-10 {
right: 83.33333333%;
}
.col-xs-pull-9 {
right: 75%;
}
.col-xs-pull-8 {
right: 66.66666667%;
}
.col-xs-pull-7 {
right: 58.33333333%;
}
.col-xs-pull-6 {
right: 50%;
}
.col-xs-pull-5 {
right: 41.66666667%;
}
.col-xs-pull-4 {
right: 33.33333333%;
}
.col-xs-pull-3 {
right: 25%;
}
.col-xs-pull-2 {
right: 16.66666667%;
}
.col-xs-pull-1 {
right: 8.33333333%;
}
.col-xs-pull-0 {
right: auto;
}
.col-xs-push-12 {
left: 100%;
}
.col-xs-push-11 {
left: 91.66666667%;
}
.col-xs-push-10 {
left: 83.33333333%;
}
.col-xs-push-9 {
left: 75%;
}
.col-xs-push-8 {
left: 66.66666667%;
}
.col-xs-push-7 {
left: 58.33333333%;
}
.col-xs-push-6 {
left: 50%;
}
.col-xs-push-5 {
left: 41.66666667%;
}
.col-xs-push-4 {
left: 33.33333333%;
}
.col-xs-push-3 {
left: 25%;
}
.col-xs-push-2 {
left: 16.66666667%;
}
.col-xs-push-1 {
left: 8.33333333%;
}
.col-xs-push-0 {
left: auto;
}
.col-xs-offset-12 {
margin-left: 100%;
}
.col-xs-offset-11 {
margin-left: 91.66666667%;
}
.col-xs-offset-10 {
margin-left: 83.33333333%;
}
.col-xs-offset-9 {
margin-left: 75%;
}
.col-xs-offset-8 {
margin-left: 66.66666667%;
}
.col-xs-offset-7 {
margin-left: 58.33333333%;
}
.col-xs-offset-6 {
margin-left: 50%;
}
.col-xs-offset-5 {
margin-left: 41.66666667%;
}
.col-xs-offset-4 {
margin-left: 33.33333333%;
}
.col-xs-offset-3 {
margin-left: 25%;
}
.col-xs-offset-2 {
margin-left: 16.66666667%;
}
.col-xs-offset-1 {
margin-left: 8.33333333%;
}
.col-xs-offset-0 {
margin-left: 0%;
}
@media (min-width: 768px) {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
.col-sm-pull-12 {
right: 100%;
}
.col-sm-pull-11 {
right: 91.66666667%;
}
.col-sm-pull-10 {
right: 83.33333333%;
}
.col-sm-pull-9 {
right: 75%;
}
.col-sm-pull-8 {
right: 66.66666667%;
}
.col-sm-pull-7 {
right: 58.33333333%;
}
.col-sm-pull-6 {
right: 50%;
}
.col-sm-pull-5 {
right: 41.66666667%;
}
.col-sm-pull-4 {
right: 33.33333333%;
}
.col-sm-pull-3 {
right: 25%;
}
.col-sm-pull-2 {
right: 16.66666667%;
}
.col-sm-pull-1 {
right: 8.33333333%;
}
.col-sm-pull-0 {
right: auto;
}
.col-sm-push-12 {
left: 100%;
}
.col-sm-push-11 {
left: 91.66666667%;
}
.col-sm-push-10 {
left: 83.33333333%;
}
.col-sm-push-9 {
left: 75%;
}
.col-sm-push-8 {
left: 66.66666667%;
}
.col-sm-push-7 {
left: 58.33333333%;
}
.col-sm-push-6 {
left: 50%;
}
.col-sm-push-5 {
left: 41.66666667%;
}
.col-sm-push-4 {
left: 33.33333333%;
}
.col-sm-push-3 {
left: 25%;
}
.col-sm-push-2 {
left: 16.66666667%;
}
.col-sm-push-1 {
left: 8.33333333%;
}
.col-sm-push-0 {
left: auto;
}
.col-sm-offset-12 {
margin-left: 100%;
}
.col-sm-offset-11 {
margin-left: 91.66666667%;
}
.col-sm-offset-10 {
margin-left: 83.33333333%;
}
.col-sm-offset-9 {
margin-left: 75%;
}
.col-sm-offset-8 {
margin-left: 66.66666667%;
}
.col-sm-offset-7 {
margin-left: 58.33333333%;
}
.col-sm-offset-6 {
margin-left: 50%;
}
.col-sm-offset-5 {
margin-left: 41.66666667%;
}
.col-sm-offset-4 {
margin-left: 33.33333333%;
}
.col-sm-offset-3 {
margin-left: 25%;
}
.col-sm-offset-2 {
margin-left: 16.66666667%;
}
.col-sm-offset-1 {
margin-left: 8.33333333%;
}
.col-sm-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 992px) {
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
float: left;
}
.col-md-12 {
width: 100%;
}
.col-md-11 {
width: 91.66666667%;
}
.col-md-10 {
width: 83.33333333%;
}
.col-md-9 {
width: 75%;
}
.col-md-8 {
width: 66.66666667%;
}
.col-md-7 {
width: 58.33333333%;
}
.col-md-6 {
width: 50%;
}
.col-md-5 {
width: 41.66666667%;
}
.col-md-4 {
width: 33.33333333%;
}
.col-md-3 {
width: 25%;
}
.col-md-2 {
width: 16.66666667%;
}
.col-md-1 {
width: 8.33333333%;
}
.col-md-pull-12 {
right: 100%;
}
.col-md-pull-11 {
right: 91.66666667%;
}
.col-md-pull-10 {
right: 83.33333333%;
}
.col-md-pull-9 {
right: 75%;
}
.col-md-pull-8 {
right: 66.66666667%;
}
.col-md-pull-7 {
right: 58.33333333%;
}
.col-md-pull-6 {
right: 50%;
}
.col-md-pull-5 {
right: 41.66666667%;
}
.col-md-pull-4 {
right: 33.33333333%;
}
.col-md-pull-3 {
right: 25%;
}
.col-md-pull-2 {
right: 16.66666667%;
}
.col-md-pull-1 {
right: 8.33333333%;
}
.col-md-pull-0 {
right: auto;
}
.col-md-push-12 {
left: 100%;
}
.col-md-push-11 {
left: 91.66666667%;
}
.col-md-push-10 {
left: 83.33333333%;
}
.col-md-push-9 {
left: 75%;
}
.col-md-push-8 {
left: 66.66666667%;
}
.col-md-push-7 {
left: 58.33333333%;
}
.col-md-push-6 {
left: 50%;
}
.col-md-push-5 {
left: 41.66666667%;
}
.col-md-push-4 {
left: 33.33333333%;
}
.col-md-push-3 {
left: 25%;
}
.col-md-push-2 {
left: 16.66666667%;
}
.col-md-push-1 {
left: 8.33333333%;
}
.col-md-push-0 {
left: auto;
}
.col-md-offset-12 {
margin-left: 100%;
}
.col-md-offset-11 {
margin-left: 91.66666667%;
}
.col-md-offset-10 {
margin-left: 83.33333333%;
}
.col-md-offset-9 {
margin-left: 75%;
}
.col-md-offset-8 {
margin-left: 66.66666667%;
}
.col-md-offset-7 {
margin-left: 58.33333333%;
}
.col-md-offset-6 {
margin-left: 50%;
}
.col-md-offset-5 {
margin-left: 41.66666667%;
}
.col-md-offset-4 {
margin-left: 33.33333333%;
}
.col-md-offset-3 {
margin-left: 25%;
}
.col-md-offset-2 {
margin-left: 16.66666667%;
}
.col-md-offset-1 {
margin-left: 8.33333333%;
}
.col-md-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
.col-lg-12 {
width: 100%;
}
.col-lg-11 {
width: 91.66666667%;
}
.col-lg-10 {
width: 83.33333333%;
}
.col-lg-9 {
width: 75%;
}
.col-lg-8 {
width: 66.66666667%;
}
.col-lg-7 {
width: 58.33333333%;
}
.col-lg-6 {
width: 50%;
}
.col-lg-5 {
width: 41.66666667%;
}
.col-lg-4 {
width: 33.33333333%;
}
.col-lg-3 {
width: 25%;
}
.col-lg-2 {
width: 16.66666667%;
}
.col-lg-1 {
width: 8.33333333%;
}
.col-lg-pull-12 {
right: 100%;
}
.col-lg-pull-11 {
right: 91.66666667%;
}
.col-lg-pull-10 {
right: 83.33333333%;
}
.col-lg-pull-9 {
right: 75%;
}
.col-lg-pull-8 {
right: 66.66666667%;
}
.col-lg-pull-7 {
right: 58.33333333%;
}
.col-lg-pull-6 {
right: 50%;
}
.col-lg-pull-5 {
right: 41.66666667%;
}
.col-lg-pull-4 {
right: 33.33333333%;
}
.col-lg-pull-3 {
right: 25%;
}
.col-lg-pull-2 {
right: 16.66666667%;
}
.col-lg-pull-1 {
right: 8.33333333%;
}
.col-lg-pull-0 {
right: auto;
}
.col-lg-push-12 {
left: 100%;
}
.col-lg-push-11 {
left: 91.66666667%;
}
.col-lg-push-10 {
left: 83.33333333%;
}
.col-lg-push-9 {
left: 75%;
}
.col-lg-push-8 {
left: 66.66666667%;
}
.col-lg-push-7 {
left: 58.33333333%;
}
.col-lg-push-6 {
left: 50%;
}
.col-lg-push-5 {
left: 41.66666667%;
}
.col-lg-push-4 {
left: 33.33333333%;
}
.col-lg-push-3 {
left: 25%;
}
.col-lg-push-2 {
left: 16.66666667%;
}
.col-lg-push-1 {
left: 8.33333333%;
}
.col-lg-push-0 {
left: auto;
}
.col-lg-offset-12 {
margin-left: 100%;
}
.col-lg-offset-11 {
margin-left: 91.66666667%;
}
.col-lg-offset-10 {
margin-left: 83.33333333%;
}
.col-lg-offset-9 {
margin-left: 75%;
}
.col-lg-offset-8 {
margin-left: 66.66666667%;
}
.col-lg-offset-7 {
margin-left: 58.33333333%;
}
.col-lg-offset-6 {
margin-left: 50%;
}
.col-lg-offset-5 {
margin-left: 41.66666667%;
}
.col-lg-offset-4 {
margin-left: 33.33333333%;
}
.col-lg-offset-3 {
margin-left: 25%;
}
.col-lg-offset-2 {
margin-left: 16.66666667%;
}
.col-lg-offset-1 {
margin-left: 8.33333333%;
}
.col-lg-offset-0 {
margin-left: 0%;
}
}
table {
background-color: transparent;
}
caption {
padding-top: 8px;
padding-bottom: 8px;
color: #bbbbbb;
text-align: left;
}
th {
text-align: left;
}
.table {
width: 100%;
max-width: 100%;
margin-bottom: 23px;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
padding: 8px;
line-height: 1.846;
vertical-align: top;
border-top: 1px solid #dddddd;
}
.table > thead > tr > th {
vertical-align: bottom;
border-bottom: 2px solid #dddddd;
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
border-top: 0;
}
.table > tbody + tbody {
border-top: 2px solid #dddddd;
}
.table .table {
background-color: #ffffff;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
padding: 5px;
}
.table-bordered {
border: 1px solid #dddddd;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
border: 1px solid #dddddd;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
border-bottom-width: 2px;
}
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: #f9f9f9;
}
.table-hover > tbody > tr:hover {
background-color: #f5f5f5;
}
table col[class*="col-"] {
position: static;
float: none;
display: table-column;
}
table td[class*="col-"],
table th[class*="col-"] {
position: static;
float: none;
display: table-cell;
}
.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
background-color: #f5f5f5;
}
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
background-color: #e8e8e8;
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td,
.table > thead > tr.success > th,
.table > tbody > tr.success > th,
.table > tfoot > tr.success > th {
background-color: #dff0d8;
}
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover,
.table-hover > tbody > tr.success:hover > td,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr.success:hover > th {
background-color: #d0e9c6;
}
.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
background-color: #e1bee7;
}
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover,
.table-hover > tbody > tr.info:hover > td,
.table-hover > tbody > tr:hover > .info,
.table-hover > tbody > tr.info:hover > th {
background-color: #d8abe0;
}
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th {
background-color: #ffe0b2;
}
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover,
.table-hover > tbody > tr.warning:hover > td,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr.warning:hover > th {
background-color: #ffd699;
}
.table > thead > tr > td.danger,
.table > tbody > tr > td.danger,
.table > tfoot > tr > td.danger,
.table > thead > tr > th.danger,
.table > tbody > tr > th.danger,
.table > tfoot > tr > th.danger,
.table > thead > tr.danger > td,
.table > tbody > tr.danger > td,
.table > tfoot > tr.danger > td,
.table > thead > tr.danger > th,
.table > tbody > tr.danger > th,
.table > tfoot > tr.danger > th {
background-color: #f9bdbb;
}
.table-hover > tbody > tr > td.danger:hover,
.table-hover > tbody > tr > th.danger:hover,
.table-hover > tbody > tr.danger:hover > td,
.table-hover > tbody > tr:hover > .danger,
.table-hover > tbody > tr.danger:hover > th {
background-color: #f7a6a4;
}
.table-responsive {
overflow-x: auto;
min-height: 0.01%;
}
@media screen and (max-width: 767px) {
.table-responsive {
width: 100%;
margin-bottom: 17.25px;
overflow-y: hidden;
-ms-overflow-style: -<API key>;
border: 1px solid #dddddd;
}
.table-responsive > .table {
margin-bottom: 0;
}
.table-responsive > .table > thead > tr > th,
.table-responsive > .table > tbody > tr > th,
.table-responsive > .table > tfoot > tr > th,
.table-responsive > .table > thead > tr > td,
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > tfoot > tr > td {
white-space: nowrap;
}
.table-responsive > .table-bordered {
border: 0;
}
.table-responsive > .table-bordered > thead > tr > th:first-child,
.table-responsive > .table-bordered > tbody > tr > th:first-child,
.table-responsive > .table-bordered > tfoot > tr > th:first-child,
.table-responsive > .table-bordered > thead > tr > td:first-child,
.table-responsive > .table-bordered > tbody > tr > td:first-child,
.table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.table-responsive > .table-bordered > thead > tr > th:last-child,
.table-responsive > .table-bordered > tbody > tr > th:last-child,
.table-responsive > .table-bordered > tfoot > tr > th:last-child,
.table-responsive > .table-bordered > thead > tr > td:last-child,
.table-responsive > .table-bordered > tbody > tr > td:last-child,
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.table-responsive > .table-bordered > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
.table-responsive > .table-bordered > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0;
}
}
fieldset {
padding: 0;
margin: 0;
border: 0;
min-width: 0;
}
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: 23px;
font-size: 19.5px;
line-height: inherit;
color: #212121;
border: 0;
border-bottom: 1px solid #e5e5e5;
}
label {
display: inline-block;
max-width: 100%;
margin-bottom: 5px;
font-weight: bold;
}
input[type="search"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="radio"],
input[type="checkbox"] {
margin: 4px 0 0;
margin-top: 1px \9;
line-height: normal;
}
input[type="file"] {
display: block;
}
input[type="range"] {
display: block;
width: 100%;
}
select[multiple],
select[size] {
height: auto;
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
outline: 5px auto -<API key>;
outline-offset: -2px;
}
output {
display: block;
padding-top: 7px;
font-size: 13px;
line-height: 1.846;
color: #666666;
}
.form-control {
display: block;
width: 100%;
height: 37px;
padding: 6px 16px;
font-size: 13px;
line-height: 1.846;
color: #666666;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.form-control::-moz-placeholder {
color: #bbbbbb;
opacity: 1;
}
.form-control:-<API key> {
color: #bbbbbb;
}
.form-control::-<API key> {
color: #bbbbbb;
}
.form-control::-ms-expand {
border: 0;
background-color: transparent;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
background-color: transparent;
opacity: 1;
}
.form-control[disabled],
fieldset[disabled] .form-control {
cursor: not-allowed;
}
textarea.form-control {
height: auto;
}
input[type="search"] {
-webkit-appearance: none;
}
@media screen and (-<API key>: 0) {
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
line-height: 37px;
}
input[type="date"].input-sm,
input[type="time"].input-sm,
input[type="datetime-local"].input-sm,
input[type="month"].input-sm,
.input-group-sm input[type="date"],
.input-group-sm input[type="time"],
.input-group-sm input[type="datetime-local"],
.input-group-sm input[type="month"] {
line-height: 30px;
}
input[type="date"].input-lg,
input[type="time"].input-lg,
input[type="datetime-local"].input-lg,
input[type="month"].input-lg,
.input-group-lg input[type="date"],
.input-group-lg input[type="time"],
.input-group-lg input[type="datetime-local"],
.input-group-lg input[type="month"] {
line-height: 45px;
}
}
.form-group {
margin-bottom: 15px;
}
.radio,
.checkbox {
position: relative;
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
.radio label,
.checkbox label {
min-height: 23px;
padding-left: 20px;
margin-bottom: 0;
font-weight: normal;
cursor: pointer;
}
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
position: absolute;
margin-left: -20px;
margin-top: 4px \9;
}
.radio + .radio,
.checkbox + .checkbox {
margin-top: -5px;
}
.radio-inline,
.checkbox-inline {
position: relative;
display: inline-block;
padding-left: 20px;
margin-bottom: 0;
vertical-align: middle;
font-weight: normal;
cursor: pointer;
}
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline {
margin-top: 0;
margin-left: 10px;
}
input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"].disabled,
input[type="checkbox"].disabled,
fieldset[disabled] input[type="radio"],
fieldset[disabled] input[type="checkbox"] {
cursor: not-allowed;
}
.radio-inline.disabled,
.checkbox-inline.disabled,
fieldset[disabled] .radio-inline,
fieldset[disabled] .checkbox-inline {
cursor: not-allowed;
}
.radio.disabled label,
.checkbox.disabled label,
fieldset[disabled] .radio label,
fieldset[disabled] .checkbox label {
cursor: not-allowed;
}
.form-control-static {
padding-top: 7px;
padding-bottom: 7px;
margin-bottom: 0;
min-height: 36px;
}
.form-control-static.input-lg,
.form-control-static.input-sm {
padding-left: 0;
padding-right: 0;
}
.input-sm {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
select.input-sm {
height: 30px;
line-height: 30px;
}
textarea.input-sm,
select[multiple].input-sm {
height: auto;
}
.form-group-sm .form-control {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.form-group-sm select.form-control {
height: 30px;
line-height: 30px;
}
.form-group-sm textarea.form-control,
.form-group-sm select[multiple].form-control {
height: auto;
}
.form-group-sm .form-control-static {
height: 30px;
min-height: 35px;
padding: 6px 10px;
font-size: 12px;
line-height: 1.5;
}
.input-lg {
height: 45px;
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
select.input-lg {
height: 45px;
line-height: 45px;
}
textarea.input-lg,
select[multiple].input-lg {
height: auto;
}
.form-group-lg .form-control {
height: 45px;
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
.form-group-lg select.form-control {
height: 45px;
line-height: 45px;
}
.form-group-lg textarea.form-control,
.form-group-lg select[multiple].form-control {
height: auto;
}
.form-group-lg .form-control-static {
height: 45px;
min-height: 40px;
padding: 11px 16px;
font-size: 17px;
line-height: 1.3333333;
}
.has-feedback {
position: relative;
}
.has-feedback .form-control {
padding-right: 46.25px;
}
.<API key> {
position: absolute;
top: 0;
right: 0;
z-index: 2;
display: block;
width: 37px;
height: 37px;
line-height: 37px;
text-align: center;
pointer-events: none;
}
.input-lg + .<API key>,
.input-group-lg + .<API key>,
.form-group-lg .form-control + .<API key> {
width: 45px;
height: 45px;
line-height: 45px;
}
.input-sm + .<API key>,
.input-group-sm + .<API key>,
.form-group-sm .form-control + .<API key> {
width: 30px;
height: 30px;
line-height: 30px;
}
.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox,
.has-success .radio-inline,
.has-success .checkbox-inline,
.has-success.radio label,
.has-success.checkbox label,
.has-success.radio-inline label,
.has-success.checkbox-inline label {
color: #4caf50;
}
.has-success .form-control {
border-color: #4caf50;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-success .form-control:focus {
border-color: #3d8b40;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #92cf94;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #92cf94;
}
.has-success .input-group-addon {
color: #4caf50;
border-color: #4caf50;
background-color: #dff0d8;
}
.has-success .<API key> {
color: #4caf50;
}
.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox,
.has-warning .radio-inline,
.has-warning .checkbox-inline,
.has-warning.radio label,
.has-warning.checkbox label,
.has-warning.radio-inline label,
.has-warning.checkbox-inline label {
color: #ff9800;
}
.has-warning .form-control {
border-color: #ff9800;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-warning .form-control:focus {
border-color: #cc7a00;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffc166;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffc166;
}
.has-warning .input-group-addon {
color: #ff9800;
border-color: #ff9800;
background-color: #ffe0b2;
}
.has-warning .<API key> {
color: #ff9800;
}
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline,
.has-error.radio label,
.has-error.checkbox label,
.has-error.radio-inline label,
.has-error.checkbox-inline label {
color: #e51c23;
}
.has-error .form-control {
border-color: #e51c23;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-error .form-control:focus {
border-color: #b9151b;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ef787c;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ef787c;
}
.has-error .input-group-addon {
color: #e51c23;
border-color: #e51c23;
background-color: #f9bdbb;
}
.has-error .<API key> {
color: #e51c23;
}
.has-feedback label ~ .<API key> {
top: 28px;
}
.has-feedback label.sr-only ~ .<API key> {
top: 0;
}
.help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: #a6a6a6;
}
@media (min-width: 768px) {
.form-inline .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.form-inline .form-control-static {
display: inline-block;
}
.form-inline .input-group {
display: inline-table;
vertical-align: middle;
}
.form-inline .input-group .input-group-addon,
.form-inline .input-group .input-group-btn,
.form-inline .input-group .form-control {
width: auto;
}
.form-inline .input-group > .form-control {
width: 100%;
}
.form-inline .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .radio,
.form-inline .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .radio label,
.form-inline .checkbox label {
padding-left: 0;
}
.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.form-inline .has-feedback .<API key> {
top: 0;
}
}
.form-horizontal .radio,
.form-horizontal .checkbox,
.form-horizontal .radio-inline,
.form-horizontal .checkbox-inline {
margin-top: 0;
margin-bottom: 0;
padding-top: 7px;
}
.form-horizontal .radio,
.form-horizontal .checkbox {
min-height: 30px;
}
.form-horizontal .form-group {
margin-left: -15px;
margin-right: -15px;
}
@media (min-width: 768px) {
.form-horizontal .control-label {
text-align: right;
margin-bottom: 0;
padding-top: 7px;
}
}
.form-horizontal .has-feedback .<API key> {
right: 15px;
}
@media (min-width: 768px) {
.form-horizontal .form-group-lg .control-label {
padding-top: 11px;
font-size: 17px;
}
}
@media (min-width: 768px) {
.form-horizontal .form-group-sm .control-label {
padding-top: 6px;
font-size: 12px;
}
}
.btn {
display: inline-block;
margin-bottom: 0;
font-weight: normal;
text-align: center;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 16px;
font-size: 13px;
line-height: 1.846;
border-radius: 3px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
outline: 5px auto -<API key>;
outline-offset: -2px;
}
.btn:hover,
.btn:focus,
.btn.focus {
color: #444444;
text-decoration: none;
}
.btn:active,
.btn.active {
outline: 0;
background-image: none;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
cursor: not-allowed;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none;
}
a.btn.disabled,
fieldset[disabled] a.btn {
pointer-events: none;
}
.btn-default {
color: #444444;
background-color: #ffffff;
border-color: transparent;
}
.btn-default:focus,
.btn-default.focus {
color: #444444;
background-color: #e6e6e6;
border-color: rgba(0, 0, 0, 0);
}
.btn-default:hover {
color: #444444;
background-color: #e6e6e6;
border-color: rgba(0, 0, 0, 0);
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
color: #444444;
background-color: #e6e6e6;
border-color: rgba(0, 0, 0, 0);
}
.btn-default:active:hover,
.btn-default.active:hover,
.open > .dropdown-toggle.btn-default:hover,
.btn-default:active:focus,
.btn-default.active:focus,
.open > .dropdown-toggle.btn-default:focus,
.btn-default:active.focus,
.btn-default.active.focus,
.open > .dropdown-toggle.btn-default.focus {
color: #444444;
background-color: #d4d4d4;
border-color: rgba(0, 0, 0, 0);
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
background-image: none;
}
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled.focus,
.btn-default[disabled].focus,
fieldset[disabled] .btn-default.focus {
background-color: #ffffff;
border-color: transparent;
}
.btn-default .badge {
color: #ffffff;
background-color: #444444;
}
.btn-primary {
color: #ffffff;
background-color: #2196f3;
border-color: transparent;
}
.btn-primary:focus,
.btn-primary.focus {
color: #ffffff;
background-color: #0c7cd5;
border-color: rgba(0, 0, 0, 0);
}
.btn-primary:hover {
color: #ffffff;
background-color: #0c7cd5;
border-color: rgba(0, 0, 0, 0);
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
color: #ffffff;
background-color: #0c7cd5;
border-color: rgba(0, 0, 0, 0);
}
.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open > .dropdown-toggle.btn-primary.focus {
color: #ffffff;
background-color: #0a68b4;
border-color: rgba(0, 0, 0, 0);
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
background-image: none;
}
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus {
background-color: #2196f3;
border-color: transparent;
}
.btn-primary .badge {
color: #2196f3;
background-color: #ffffff;
}
.btn-success {
color: #ffffff;
background-color: #4caf50;
border-color: transparent;
}
.btn-success:focus,
.btn-success.focus {
color: #ffffff;
background-color: #3d8b40;
border-color: rgba(0, 0, 0, 0);
}
.btn-success:hover {
color: #ffffff;
background-color: #3d8b40;
border-color: rgba(0, 0, 0, 0);
}
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
color: #ffffff;
background-color: #3d8b40;
border-color: rgba(0, 0, 0, 0);
}
.btn-success:active:hover,
.btn-success.active:hover,
.open > .dropdown-toggle.btn-success:hover,
.btn-success:active:focus,
.btn-success.active:focus,
.open > .dropdown-toggle.btn-success:focus,
.btn-success:active.focus,
.btn-success.active.focus,
.open > .dropdown-toggle.btn-success.focus {
color: #ffffff;
background-color: #327334;
border-color: rgba(0, 0, 0, 0);
}
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
background-image: none;
}
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled.focus,
.btn-success[disabled].focus,
fieldset[disabled] .btn-success.focus {
background-color: #4caf50;
border-color: transparent;
}
.btn-success .badge {
color: #4caf50;
background-color: #ffffff;
}
.btn-info {
color: #ffffff;
background-color: #9c27b0;
border-color: transparent;
}
.btn-info:focus,
.btn-info.focus {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.btn-info:hover {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.btn-info:active:hover,
.btn-info.active:hover,
.open > .dropdown-toggle.btn-info:hover,
.btn-info:active:focus,
.btn-info.active:focus,
.open > .dropdown-toggle.btn-info:focus,
.btn-info:active.focus,
.btn-info.active.focus,
.open > .dropdown-toggle.btn-info.focus {
color: #ffffff;
background-color: #5d1769;
border-color: rgba(0, 0, 0, 0);
}
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
background-image: none;
}
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled.focus,
.btn-info[disabled].focus,
fieldset[disabled] .btn-info.focus {
background-color: #9c27b0;
border-color: transparent;
}
.btn-info .badge {
color: #9c27b0;
background-color: #ffffff;
}
.btn-warning {
color: #ffffff;
background-color: #ff9800;
border-color: transparent;
}
.btn-warning:focus,
.btn-warning.focus {
color: #ffffff;
background-color: #cc7a00;
border-color: rgba(0, 0, 0, 0);
}
.btn-warning:hover {
color: #ffffff;
background-color: #cc7a00;
border-color: rgba(0, 0, 0, 0);
}
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
color: #ffffff;
background-color: #cc7a00;
border-color: rgba(0, 0, 0, 0);
}
.btn-warning:active:hover,
.btn-warning.active:hover,
.open > .dropdown-toggle.btn-warning:hover,
.btn-warning:active:focus,
.btn-warning.active:focus,
.open > .dropdown-toggle.btn-warning:focus,
.btn-warning:active.focus,
.btn-warning.active.focus,
.open > .dropdown-toggle.btn-warning.focus {
color: #ffffff;
background-color: #a86400;
border-color: rgba(0, 0, 0, 0);
}
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
background-image: none;
}
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled.focus,
.btn-warning[disabled].focus,
fieldset[disabled] .btn-warning.focus {
background-color: #ff9800;
border-color: transparent;
}
.btn-warning .badge {
color: #ff9800;
background-color: #ffffff;
}
.btn-danger {
color: #ffffff;
background-color: #e51c23;
border-color: transparent;
}
.btn-danger:focus,
.btn-danger.focus {
color: #ffffff;
background-color: #b9151b;
border-color: rgba(0, 0, 0, 0);
}
.btn-danger:hover {
color: #ffffff;
background-color: #b9151b;
border-color: rgba(0, 0, 0, 0);
}
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
color: #ffffff;
background-color: #b9151b;
border-color: rgba(0, 0, 0, 0);
}
.btn-danger:active:hover,
.btn-danger.active:hover,
.open > .dropdown-toggle.btn-danger:hover,
.btn-danger:active:focus,
.btn-danger.active:focus,
.open > .dropdown-toggle.btn-danger:focus,
.btn-danger:active.focus,
.btn-danger.active.focus,
.open > .dropdown-toggle.btn-danger.focus {
color: #ffffff;
background-color: #991216;
border-color: rgba(0, 0, 0, 0);
}
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
background-image: none;
}
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled.focus,
.btn-danger[disabled].focus,
fieldset[disabled] .btn-danger.focus {
background-color: #e51c23;
border-color: transparent;
}
.btn-danger .badge {
color: #e51c23;
background-color: #ffffff;
}
.btn-link {
color: #2196f3;
font-weight: normal;
border-radius: 0;
}
.btn-link,
.btn-link:active,
.btn-link.active,
.btn-link[disabled],
fieldset[disabled] .btn-link {
background-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
border-color: transparent;
}
.btn-link:hover,
.btn-link:focus {
color: #0a6ebd;
text-decoration: underline;
background-color: transparent;
}
.btn-link[disabled]:hover,
fieldset[disabled] .btn-link:hover,
.btn-link[disabled]:focus,
fieldset[disabled] .btn-link:focus {
color: #bbbbbb;
text-decoration: none;
}
.btn-lg,
.btn-group-lg > .btn {
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
.btn-sm,
.btn-group-sm > .btn {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-xs,
.btn-group-xs > .btn {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-block {
display: block;
width: 100%;
}
.btn-block + .btn-block {
margin-top: 5px;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%;
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
.collapse {
display: none;
}
.collapse.in {
display: block;
}
tr.collapse.in {
display: table-row;
}
tbody.collapse.in {
display: table-row-group;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-<API key>: height, visibility;
transition-property: height, visibility;
-<API key>: 0.35s;
transition-duration: 0.35s;
-<API key>: ease;
<API key>: ease;
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px dashed;
border-top: 4px solid \9;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
.dropup,
.dropdown {
position: relative;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 13px;
text-align: left;
background-color: #ffffff;
border: 1px solid #cccccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 3px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
}
.dropdown-menu.pull-right {
right: 0;
left: auto;
}
.dropdown-menu .divider {
height: 1px;
margin: 10.5px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.dropdown-menu > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.846;
color: #666666;
white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
text-decoration: none;
color: #141414;
background-color: #eeeeee;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
color: #ffffff;
text-decoration: none;
outline: 0;
background-color: #2196f3;
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
color: #bbbbbb;
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
text-decoration: none;
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
cursor: not-allowed;
}
.open > .dropdown-menu {
display: block;
}
.open > a {
outline: 0;
}
.dropdown-menu-right {
left: auto;
right: 0;
}
.dropdown-menu-left {
left: 0;
right: auto;
}
.dropdown-header {
display: block;
padding: 3px 20px;
font-size: 12px;
line-height: 1.846;
color: #bbbbbb;
white-space: nowrap;
}
.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: 990;
}
.pull-right > .dropdown-menu {
right: 0;
left: auto;
}
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
border-top: 0;
border-bottom: 4px dashed;
border-bottom: 4px solid \9;
content: "";
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 2px;
}
@media (min-width: 768px) {
.navbar-right .dropdown-menu {
left: auto;
right: 0;
}
.navbar-right .dropdown-menu-left {
left: 0;
right: auto;
}
}
.btn-group,
.btn-group-vertical {
position: relative;
display: inline-block;
vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
position: relative;
float: left;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover,
.btn-group > .btn:focus,
.btn-group-vertical > .btn:focus,
.btn-group > .btn:active,
.btn-group-vertical > .btn:active,
.btn-group > .btn.active,
.btn-group-vertical > .btn.active {
z-index: 2;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
margin-left: -1px;
}
.btn-toolbar {
margin-left: -5px;
}
.btn-toolbar .btn,
.btn-toolbar .btn-group,
.btn-toolbar .input-group {
float: left;
}
.btn-toolbar > .btn,
.btn-toolbar > .btn-group,
.btn-toolbar > .input-group {
margin-left: 5px;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0;
}
.btn-group > .btn:first-child {
margin-left: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn-group {
float: left;
}
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
<API key>: 0;
<API key>: 0;
}
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
.btn-group > .btn + .dropdown-toggle {
padding-left: 8px;
padding-right: 8px;
}
.btn-group > .btn-lg + .dropdown-toggle {
padding-left: 12px;
padding-right: 12px;
}
.btn-group.open .dropdown-toggle {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-group.open .dropdown-toggle.btn-link {
-webkit-box-shadow: none;
box-shadow: none;
}
.btn .caret {
margin-left: 0;
}
.btn-lg .caret {
border-width: 5px 5px 0;
border-bottom-width: 0;
}
.dropup .btn-lg .caret {
border-width: 0 5px 5px;
}
.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group,
.btn-group-vertical > .btn-group > .btn {
display: block;
float: none;
width: 100%;
max-width: 100%;
}
.btn-group-vertical > .btn-group > .btn {
float: none;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: -1px;
margin-left: 0;
}
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
<API key>: 3px;
<API key>: 3px;
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
<API key>: 0;
<API key>: 0;
<API key>: 3px;
<API key>: 3px;
}
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
<API key>: 0;
<API key>: 0;
}
.btn-group-justified {
display: table;
width: 100%;
table-layout: fixed;
border-collapse: separate;
}
.btn-group-justified > .btn,
.btn-group-justified > .btn-group {
float: none;
display: table-cell;
width: 1%;
}
.btn-group-justified > .btn-group .btn {
width: 100%;
}
.btn-group-justified > .btn-group .dropdown-menu {
left: auto;
}
[data-toggle="buttons"] > .btn input[type="radio"],
[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
[data-toggle="buttons"] > .btn input[type="checkbox"],
[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
.input-group {
position: relative;
display: table;
border-collapse: separate;
}
.input-group[class*="col-"] {
float: none;
padding-left: 0;
padding-right: 0;
}
.input-group .form-control {
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0;
}
.input-group .form-control:focus {
z-index: 3;
}
.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
height: 45px;
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
select.input-group-lg > .form-control,
select.input-group-lg > .input-group-addon,
select.input-group-lg > .input-group-btn > .btn {
height: 45px;
line-height: 45px;
}
textarea.input-group-lg > .form-control,
textarea.input-group-lg > .input-group-addon,
textarea.input-group-lg > .input-group-btn > .btn,
select[multiple].input-group-lg > .form-control,
select[multiple].input-group-lg > .input-group-addon,
select[multiple].input-group-lg > .input-group-btn > .btn {
height: auto;
}
.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
select.input-group-sm > .form-control,
select.input-group-sm > .input-group-addon,
select.input-group-sm > .input-group-btn > .btn {
height: 30px;
line-height: 30px;
}
textarea.input-group-sm > .form-control,
textarea.input-group-sm > .input-group-addon,
textarea.input-group-sm > .input-group-btn > .btn,
select[multiple].input-group-sm > .form-control,
select[multiple].input-group-sm > .input-group-addon,
select[multiple].input-group-sm > .input-group-btn > .btn {
height: auto;
}
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: table-cell;
}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0;
}
.input-group-addon,
.input-group-btn {
width: 1%;
white-space: nowrap;
vertical-align: middle;
}
.input-group-addon {
padding: 6px 16px;
font-size: 13px;
font-weight: normal;
line-height: 1;
color: #666666;
text-align: center;
background-color: transparent;
border: 1px solid transparent;
border-radius: 3px;
}
.input-group-addon.input-sm {
padding: 5px 10px;
font-size: 12px;
border-radius: 3px;
}
.input-group-addon.input-lg {
padding: 10px 16px;
font-size: 17px;
border-radius: 3px;
}
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0;
}
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group > .btn,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
<API key>: 0;
<API key>: 0;
}
.input-group-addon:first-child {
border-right: 0;
}
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
<API key>: 0;
<API key>: 0;
}
.input-group-addon:last-child {
border-left: 0;
}
.input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap;
}
.input-group-btn > .btn {
position: relative;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:hover,
.input-group-btn > .btn:focus,
.input-group-btn > .btn:active {
z-index: 2;
}
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group {
margin-right: -1px;
}
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
z-index: 2;
margin-left: -1px;
}
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.nav > li {
position: relative;
display: block;
}
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.nav > li.disabled > a {
color: #bbbbbb;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #bbbbbb;
text-decoration: none;
background-color: transparent;
cursor: not-allowed;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: #eeeeee;
border-color: #2196f3;
}
.nav .nav-divider {
height: 1px;
margin: 10.5px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.nav > li > a > img {
max-width: none;
}
.nav-tabs {
border-bottom: 1px solid transparent;
}
.nav-tabs > li {
float: left;
margin-bottom: -1px;
}
.nav-tabs > li > a {
margin-right: 2px;
line-height: 1.846;
border: 1px solid transparent;
border-radius: 3px 3px 0 0;
}
.nav-tabs > li > a:hover {
border-color: #eeeeee #eeeeee transparent;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #666666;
background-color: transparent;
border: 1px solid transparent;
border-bottom-color: transparent;
cursor: default;
}
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;
}
.nav-tabs.nav-justified > li {
float: none;
}
.nav-tabs.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
@media (min-width: 768px) {
.nav-tabs.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs.nav-justified > li > a {
margin-right: 0;
border-radius: 3px;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border: 1px solid transparent;
}
@media (min-width: 768px) {
.nav-tabs.nav-justified > li > a {
border-bottom: 1px solid transparent;
border-radius: 3px 3px 0 0;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.nav-pills > li {
float: left;
}
.nav-pills > li > a {
border-radius: 3px;
}
.nav-pills > li + li {
margin-left: 2px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
color: #ffffff;
background-color: #2196f3;
}
.nav-stacked > li {
float: none;
}
.nav-stacked > li + li {
margin-top: 2px;
margin-left: 0;
}
.nav-justified {
width: 100%;
}
.nav-justified > li {
float: none;
}
.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
@media (min-width: 768px) {
.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs-justified {
border-bottom: 0;
}
.nav-tabs-justified > li > a {
margin-right: 0;
border-radius: 3px;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border: 1px solid transparent;
}
@media (min-width: 768px) {
.nav-tabs-justified > li > a {
border-bottom: 1px solid transparent;
border-radius: 3px 3px 0 0;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
<API key>: 0;
<API key>: 0;
}
.navbar {
position: relative;
min-height: 64px;
margin-bottom: 23px;
border: 1px solid transparent;
}
@media (min-width: 768px) {
.navbar {
border-radius: 3px;
}
}
@media (min-width: 768px) {
.navbar-header {
float: left;
}
}
.navbar-collapse {
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-<API key>: touch;
}
.navbar-collapse.in {
overflow-y: auto;
}
@media (min-width: 768px) {
.navbar-collapse {
width: auto;
border-top: 0;
box-shadow: none;
}
.navbar-collapse.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.navbar-collapse.in {
overflow-y: visible;
}
.navbar-fixed-top .navbar-collapse,
.navbar-static-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
padding-left: 0;
padding-right: 0;
}
}
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 340px;
}
@media (max-device-width: 480px) and (orientation: landscape) {
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 200px;
}
}
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
@media (min-width: 768px) {
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: 0;
margin-left: 0;
}
}
.navbar-static-top {
z-index: 1000;
border-width: 0 0 1px;
}
@media (min-width: 768px) {
.navbar-static-top {
border-radius: 0;
}
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030;
}
@media (min-width: 768px) {
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0;
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
border-width: 1px 0 0;
}
.navbar-brand {
float: left;
padding: 20.5px 15px;
font-size: 17px;
line-height: 23px;
height: 64px;
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none;
}
.navbar-brand > img {
display: block;
}
@media (min-width: 768px) {
.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
margin-left: -15px;
}
}
.navbar-toggle {
position: relative;
float: right;
margin-right: 15px;
padding: 9px 10px;
margin-top: 15px;
margin-bottom: 15px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 3px;
}
.navbar-toggle:focus {
outline: 0;
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
margin-top: 4px;
}
@media (min-width: 768px) {
.navbar-toggle {
display: none;
}
}
.navbar-nav {
margin: 10.25px -15px;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 23px;
}
@media (max-width: 767px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 23px;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
@media (min-width: 768px) {
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li {
float: left;
}
.navbar-nav > li > a {
padding-top: 20.5px;
padding-bottom: 20.5px;
}
}
.navbar-form {
margin-left: -15px;
margin-right: -15px;
padding: 10px 15px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
margin-top: 13.5px;
margin-bottom: 13.5px;
}
@media (min-width: 768px) {
.navbar-form .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.navbar-form .form-control-static {
display: inline-block;
}
.navbar-form .input-group {
display: inline-table;
vertical-align: middle;
}
.navbar-form .input-group .input-group-addon,
.navbar-form .input-group .input-group-btn,
.navbar-form .input-group .form-control {
width: auto;
}
.navbar-form .input-group > .form-control {
width: 100%;
}
.navbar-form .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio,
.navbar-form .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio label,
.navbar-form .checkbox label {
padding-left: 0;
}
.navbar-form .radio input[type="radio"],
.navbar-form .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.navbar-form .has-feedback .<API key> {
top: 0;
}
}
@media (max-width: 767px) {
.navbar-form .form-group {
margin-bottom: 5px;
}
.navbar-form .form-group:last-child {
margin-bottom: 0;
}
}
@media (min-width: 768px) {
.navbar-form {
width: auto;
border: 0;
margin-left: 0;
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
}
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
<API key>: 0;
<API key>: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
margin-bottom: 0;
<API key>: 3px;
<API key>: 3px;
<API key>: 0;
<API key>: 0;
}
.navbar-btn {
margin-top: 13.5px;
margin-bottom: 13.5px;
}
.navbar-btn.btn-sm {
margin-top: 17px;
margin-bottom: 17px;
}
.navbar-btn.btn-xs {
margin-top: 21px;
margin-bottom: 21px;
}
.navbar-text {
margin-top: 20.5px;
margin-bottom: 20.5px;
}
@media (min-width: 768px) {
.navbar-text {
float: left;
margin-left: 15px;
margin-right: 15px;
}
}
@media (min-width: 768px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right !important;
margin-right: -15px;
}
.navbar-right ~ .navbar-right {
margin-right: 0;
}
}
.navbar-default {
background-color: #ffffff;
border-color: transparent;
}
.navbar-default .navbar-brand {
color: #666666;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #212121;
background-color: transparent;
}
.navbar-default .navbar-text {
color: #bbbbbb;
}
.navbar-default .navbar-nav > li > a {
color: #666666;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #212121;
background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #212121;
background-color: #eeeeee;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
.navbar-default .navbar-toggle {
border-color: transparent;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: transparent;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: rgba(0, 0, 0, 0.5);
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: transparent;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
background-color: #eeeeee;
color: #212121;
}
@media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #666666;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #212121;
background-color: transparent;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #212121;
background-color: #eeeeee;
}
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
}
.navbar-default .navbar-link {
color: #666666;
}
.navbar-default .navbar-link:hover {
color: #212121;
}
.navbar-default .btn-link {
color: #666666;
}
.navbar-default .btn-link:hover,
.navbar-default .btn-link:focus {
color: #212121;
}
.navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .navbar-default .btn-link:hover,
.navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .navbar-default .btn-link:focus {
color: #cccccc;
}
.navbar-inverse {
background-color: #2196f3;
border-color: transparent;
}
.navbar-inverse .navbar-brand {
color: #b2dbfb;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-text {
color: #bbbbbb;
}
.navbar-inverse .navbar-nav > li > a {
color: #b2dbfb;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #ffffff;
background-color: #0c7cd5;
}
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
.navbar-inverse .navbar-toggle {
border-color: transparent;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
background-color: transparent;
}
.navbar-inverse .navbar-toggle .icon-bar {
background-color: rgba(0, 0, 0, 0.5);
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
border-color: #0c84e4;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
background-color: #0c7cd5;
color: #ffffff;
}
@media (max-width: 767px) {
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
border-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
color: #b2dbfb;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #0c7cd5;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
}
.navbar-inverse .navbar-link {
color: #b2dbfb;
}
.navbar-inverse .navbar-link:hover {
color: #ffffff;
}
.navbar-inverse .btn-link {
color: #b2dbfb;
}
.navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link:focus {
color: #ffffff;
}
.navbar-inverse .btn-link[disabled]:hover,
fieldset[disabled] .navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link[disabled]:focus,
fieldset[disabled] .navbar-inverse .btn-link:focus {
color: #444444;
}
.breadcrumb {
padding: 8px 15px;
margin-bottom: 23px;
list-style: none;
background-color: #f5f5f5;
border-radius: 3px;
}
.breadcrumb > li {
display: inline-block;
}
.breadcrumb > li + li:before {
content: "/\00a0";
padding: 0 5px;
color: #cccccc;
}
.breadcrumb > .active {
color: #bbbbbb;
}
.pagination {
display: inline-block;
padding-left: 0;
margin: 23px 0;
border-radius: 3px;
}
.pagination > li {
display: inline;
}
.pagination > li > a,
.pagination > li > span {
position: relative;
float: left;
padding: 6px 16px;
line-height: 1.846;
text-decoration: none;
color: #2196f3;
background-color: #ffffff;
border: 1px solid #dddddd;
margin-left: -1px;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
margin-left: 0;
<API key>: 3px;
<API key>: 3px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
z-index: 2;
color: #0a6ebd;
background-color: #eeeeee;
border-color: #dddddd;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
z-index: 3;
color: #ffffff;
background-color: #2196f3;
border-color: #2196f3;
cursor: default;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
color: #bbbbbb;
background-color: #ffffff;
border-color: #dddddd;
cursor: not-allowed;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pager {
padding-left: 0;
margin: 23px 0;
list-style: none;
text-align: center;
}
.pager li {
display: inline;
}
.pager li > a,
.pager li > span {
display: inline-block;
padding: 5px 14px;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 15px;
}
.pager li > a:hover,
.pager li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.pager .next > a,
.pager .next > span {
float: right;
}
.pager .previous > a,
.pager .previous > span {
float: left;
}
.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
color: #bbbbbb;
background-color: #ffffff;
cursor: not-allowed;
}
.label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #ffffff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
a.label:hover,
a.label:focus {
color: #ffffff;
text-decoration: none;
cursor: pointer;
}
.label:empty {
display: none;
}
.btn .label {
position: relative;
top: -1px;
}
.label-default {
background-color: #bbbbbb;
}
.label-default[href]:hover,
.label-default[href]:focus {
background-color: #a2a2a2;
}
.label-primary {
background-color: #2196f3;
}
.label-primary[href]:hover,
.label-primary[href]:focus {
background-color: #0c7cd5;
}
.label-success {
background-color: #4caf50;
}
.label-success[href]:hover,
.label-success[href]:focus {
background-color: #3d8b40;
}
.label-info {
background-color: #9c27b0;
}
.label-info[href]:hover,
.label-info[href]:focus {
background-color: #771e86;
}
.label-warning {
background-color: #ff9800;
}
.label-warning[href]:hover,
.label-warning[href]:focus {
background-color: #cc7a00;
}
.label-danger {
background-color: #e51c23;
}
.label-danger[href]:hover,
.label-danger[href]:focus {
background-color: #b9151b;
}
.badge {
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: normal;
color: #ffffff;
line-height: 1;
vertical-align: middle;
white-space: nowrap;
text-align: center;
background-color: #bbbbbb;
border-radius: 10px;
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
.btn-xs .badge,
.btn-group-xs > .btn .badge {
top: 0;
padding: 1px 5px;
}
a.badge:hover,
a.badge:focus {
color: #ffffff;
text-decoration: none;
cursor: pointer;
}
.list-group-item.active > .badge,
.nav-pills > .active > a > .badge {
color: #2196f3;
background-color: #ffffff;
}
.list-group-item > .badge {
float: right;
}
.list-group-item > .badge + .badge {
margin-right: 5px;
}
.nav-pills > li > a > .badge {
margin-left: 3px;
}
.jumbotron {
padding-top: 30px;
padding-bottom: 30px;
margin-bottom: 30px;
color: inherit;
background-color: #f9f9f9;
}
.jumbotron h1,
.jumbotron .h1 {
color: #444444;
}
.jumbotron p {
margin-bottom: 15px;
font-size: 20px;
font-weight: 200;
}
.jumbotron > hr {
border-top-color: #e0e0e0;
}
.container .jumbotron,
.container-fluid .jumbotron {
border-radius: 3px;
padding-left: 15px;
padding-right: 15px;
}
.jumbotron .container {
max-width: 100%;
}
@media screen and (min-width: 768px) {
.jumbotron {
padding-top: 48px;
padding-bottom: 48px;
}
.container .jumbotron,
.container-fluid .jumbotron {
padding-left: 60px;
padding-right: 60px;
}
.jumbotron h1,
.jumbotron .h1 {
font-size: 59px;
}
}
.thumbnail {
display: block;
padding: 4px;
margin-bottom: 23px;
line-height: 1.846;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 3px;
-webkit-transition: border 0.2s ease-in-out;
-o-transition: border 0.2s ease-in-out;
transition: border 0.2s ease-in-out;
}
.thumbnail > img,
.thumbnail a > img {
margin-left: auto;
margin-right: auto;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
border-color: #2196f3;
}
.thumbnail .caption {
padding: 9px;
color: #666666;
}
.alert {
padding: 15px;
margin-bottom: 23px;
border: 1px solid transparent;
border-radius: 3px;
}
.alert h4 {
margin-top: 0;
color: inherit;
}
.alert .alert-link {
font-weight: bold;
}
.alert > p,
.alert > ul {
margin-bottom: 0;
}
.alert > p + p {
margin-top: 5px;
}
.alert-dismissable,
.alert-dismissible {
padding-right: 35px;
}
.alert-dismissable .close,
.alert-dismissible .close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
.alert-success {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #4caf50;
}
.alert-success hr {
border-top-color: #c9e2b3;
}
.alert-success .alert-link {
color: #3d8b40;
}
.alert-info {
background-color: #e1bee7;
border-color: #cba4dd;
color: #9c27b0;
}
.alert-info hr {
border-top-color: #c191d6;
}
.alert-info .alert-link {
color: #771e86;
}
.alert-warning {
background-color: #ffe0b2;
border-color: #ffc599;
color: #ff9800;
}
.alert-warning hr {
border-top-color: #ffb67f;
}
.alert-warning .alert-link {
color: #cc7a00;
}
.alert-danger {
background-color: #f9bdbb;
border-color: #f7a4af;
color: #e51c23;
}
.alert-danger hr {
border-top-color: #f58c9a;
}
.alert-danger .alert-link {
color: #b9151b;
}
@-webkit-keyframes <API key> {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
@keyframes <API key> {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
.progress {
overflow: hidden;
height: 23px;
margin-bottom: 23px;
background-color: #f5f5f5;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-bar {
float: left;
width: 0%;
height: 100%;
font-size: 12px;
line-height: 23px;
color: #ffffff;
text-align: center;
background-color: #2196f3;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
-webkit-transition: width 0.6s ease;
-o-transition: width 0.6s ease;
transition: width 0.6s ease;
}
.progress-striped .progress-bar,
.<API key> {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-size: 40px 40px;
}
.progress.active .progress-bar,
.progress-bar.active {
-webkit-animation: <API key> 2s linear infinite;
-o-animation: <API key> 2s linear infinite;
animation: <API key> 2s linear infinite;
}
.<API key> {
background-color: #4caf50;
}
.progress-striped .<API key> {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-info {
background-color: #9c27b0;
}
.progress-striped .progress-bar-info {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.<API key> {
background-color: #ff9800;
}
.progress-striped .<API key> {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-danger {
background-color: #e51c23;
}
.progress-striped .progress-bar-danger {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.media {
margin-top: 15px;
}
.media:first-child {
margin-top: 0;
}
.media,
.media-body {
zoom: 1;
overflow: hidden;
}
.media-body {
width: 10000px;
}
.media-object {
display: block;
}
.media-object.img-thumbnail {
max-width: none;
}
.media-right,
.media > .pull-right {
padding-left: 10px;
}
.media-left,
.media > .pull-left {
padding-right: 10px;
}
.media-left,
.media-right,
.media-body {
display: table-cell;
vertical-align: top;
}
.media-middle {
vertical-align: middle;
}
.media-bottom {
vertical-align: bottom;
}
.media-heading {
margin-top: 0;
margin-bottom: 5px;
}
.media-list {
padding-left: 0;
list-style: none;
}
.list-group {
margin-bottom: 20px;
padding-left: 0;
}
.list-group-item {
position: relative;
display: block;
padding: 10px 15px;
margin-bottom: -1px;
background-color: #ffffff;
border: 1px solid #dddddd;
}
.list-group-item:first-child {
<API key>: 3px;
<API key>: 3px;
}
.list-group-item:last-child {
margin-bottom: 0;
<API key>: 3px;
<API key>: 3px;
}
a.list-group-item,
button.list-group-item {
color: #555555;
}
a.list-group-item .<API key>,
button.list-group-item .<API key> {
color: #333333;
}
a.list-group-item:hover,
button.list-group-item:hover,
a.list-group-item:focus,
button.list-group-item:focus {
text-decoration: none;
color: #555555;
background-color: #f5f5f5;
}
button.list-group-item {
width: 100%;
text-align: left;
}
.list-group-item.disabled,
.list-group-item.disabled:hover,
.list-group-item.disabled:focus {
background-color: #eeeeee;
color: #bbbbbb;
cursor: not-allowed;
}
.list-group-item.disabled .<API key>,
.list-group-item.disabled:hover .<API key>,
.list-group-item.disabled:focus .<API key> {
color: inherit;
}
.list-group-item.disabled .<API key>,
.list-group-item.disabled:hover .<API key>,
.list-group-item.disabled:focus .<API key> {
color: #bbbbbb;
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
z-index: 2;
color: #ffffff;
background-color: #2196f3;
border-color: #2196f3;
}
.list-group-item.active .<API key>,
.list-group-item.active:hover .<API key>,
.list-group-item.active:focus .<API key>,
.list-group-item.active .<API key> > small,
.list-group-item.active:hover .<API key> > small,
.list-group-item.active:focus .<API key> > small,
.list-group-item.active .<API key> > .small,
.list-group-item.active:hover .<API key> > .small,
.list-group-item.active:focus .<API key> > .small {
color: inherit;
}
.list-group-item.active .<API key>,
.list-group-item.active:hover .<API key>,
.list-group-item.active:focus .<API key> {
color: #e3f2fd;
}
.<API key> {
color: #4caf50;
background-color: #dff0d8;
}
a.<API key>,
button.<API key> {
color: #4caf50;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
button.<API key>:hover,
a.<API key>:focus,
button.<API key>:focus {
color: #4caf50;
background-color: #d0e9c6;
}
a.<API key>.active,
button.<API key>.active,
a.<API key>.active:hover,
button.<API key>.active:hover,
a.<API key>.active:focus,
button.<API key>.active:focus {
color: #fff;
background-color: #4caf50;
border-color: #4caf50;
}
.<API key> {
color: #9c27b0;
background-color: #e1bee7;
}
a.<API key>,
button.<API key> {
color: #9c27b0;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
button.<API key>:hover,
a.<API key>:focus,
button.<API key>:focus {
color: #9c27b0;
background-color: #d8abe0;
}
a.<API key>.active,
button.<API key>.active,
a.<API key>.active:hover,
button.<API key>.active:hover,
a.<API key>.active:focus,
button.<API key>.active:focus {
color: #fff;
background-color: #9c27b0;
border-color: #9c27b0;
}
.<API key> {
color: #ff9800;
background-color: #ffe0b2;
}
a.<API key>,
button.<API key> {
color: #ff9800;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
button.<API key>:hover,
a.<API key>:focus,
button.<API key>:focus {
color: #ff9800;
background-color: #ffd699;
}
a.<API key>.active,
button.<API key>.active,
a.<API key>.active:hover,
button.<API key>.active:hover,
a.<API key>.active:focus,
button.<API key>.active:focus {
color: #fff;
background-color: #ff9800;
border-color: #ff9800;
}
.<API key> {
color: #e51c23;
background-color: #f9bdbb;
}
a.<API key>,
button.<API key> {
color: #e51c23;
}
a.<API key> .<API key>,
button.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
button.<API key>:hover,
a.<API key>:focus,
button.<API key>:focus {
color: #e51c23;
background-color: #f7a6a4;
}
a.<API key>.active,
button.<API key>.active,
a.<API key>.active:hover,
button.<API key>.active:hover,
a.<API key>.active:focus,
button.<API key>.active:focus {
color: #fff;
background-color: #e51c23;
border-color: #e51c23;
}
.<API key> {
margin-top: 0;
margin-bottom: 5px;
}
.<API key> {
margin-bottom: 0;
line-height: 1.3;
}
.panel {
margin-bottom: 23px;
background-color: #ffffff;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.panel-body {
padding: 15px;
}
.panel-heading {
padding: 10px 15px;
border-bottom: 1px solid transparent;
<API key>: 2px;
<API key>: 2px;
}
.panel-heading > .dropdown .dropdown-toggle {
color: inherit;
}
.panel-title {
margin-top: 0;
margin-bottom: 0;
font-size: 15px;
color: inherit;
}
.panel-title > a,
.panel-title > small,
.panel-title > .small,
.panel-title > small > a,
.panel-title > .small > a {
color: inherit;
}
.panel-footer {
padding: 10px 15px;
background-color: #f5f5f5;
border-top: 1px solid #dddddd;
<API key>: 2px;
<API key>: 2px;
}
.panel > .list-group,
.panel > .panel-collapse > .list-group {
margin-bottom: 0;
}
.panel > .list-group .list-group-item,
.panel > .panel-collapse > .list-group .list-group-item {
border-width: 1px 0;
border-radius: 0;
}
.panel > .list-group:first-child .list-group-item:first-child,
.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
border-top: 0;
<API key>: 2px;
<API key>: 2px;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
border-bottom: 0;
<API key>: 2px;
<API key>: 2px;
}
.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child {
<API key>: 0;
<API key>: 0;
}
.panel-heading + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.list-group + .panel-footer {
border-top-width: 0;
}
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table {
margin-bottom: 0;
}
.panel > .table caption,
.panel > .table-responsive > .table caption,
.panel > .panel-collapse > .table caption {
padding-left: 15px;
padding-right: 15px;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
<API key>: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
<API key>: 2px;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
<API key>: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
<API key>: 2px;
}
.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive,
.panel > .table + .panel-body,
.panel > .table-responsive + .panel-body {
border-top: 1px solid #dddddd;
}
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td {
border-top: 0;
}
.panel > .table-bordered,
.panel > .table-responsive > .table-bordered {
border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
border-bottom: 0;
}
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
border-bottom: 0;
}
.panel > .table-responsive {
border: 0;
margin-bottom: 0;
}
.panel-group {
margin-bottom: 23px;
}
.panel-group .panel {
margin-bottom: 0;
border-radius: 3px;
}
.panel-group .panel + .panel {
margin-top: 5px;
}
.panel-group .panel-heading {
border-bottom: 0;
}
.panel-group .panel-heading + .panel-collapse > .panel-body,
.panel-group .panel-heading + .panel-collapse > .list-group {
border-top: 1px solid #dddddd;
}
.panel-group .panel-footer {
border-top: 0;
}
.panel-group .panel-footer + .panel-collapse .panel-body {
border-bottom: 1px solid #dddddd;
}
.panel-default {
border-color: #dddddd;
}
.panel-default > .panel-heading {
color: #212121;
background-color: #f5f5f5;
border-color: #dddddd;
}
.panel-default > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #dddddd;
}
.panel-default > .panel-heading .badge {
color: #f5f5f5;
background-color: #212121;
}
.panel-default > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #dddddd;
}
.panel-primary {
border-color: #2196f3;
}
.panel-primary > .panel-heading {
color: #ffffff;
background-color: #2196f3;
border-color: #2196f3;
}
.panel-primary > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #2196f3;
}
.panel-primary > .panel-heading .badge {
color: #2196f3;
background-color: #ffffff;
}
.panel-primary > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #2196f3;
}
.panel-success {
border-color: #d6e9c6;
}
.panel-success > .panel-heading {
color: #ffffff;
background-color: #4caf50;
border-color: #d6e9c6;
}
.panel-success > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #d6e9c6;
}
.panel-success > .panel-heading .badge {
color: #4caf50;
background-color: #ffffff;
}
.panel-success > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #d6e9c6;
}
.panel-info {
border-color: #cba4dd;
}
.panel-info > .panel-heading {
color: #ffffff;
background-color: #9c27b0;
border-color: #cba4dd;
}
.panel-info > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #cba4dd;
}
.panel-info > .panel-heading .badge {
color: #9c27b0;
background-color: #ffffff;
}
.panel-info > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #cba4dd;
}
.panel-warning {
border-color: #ffc599;
}
.panel-warning > .panel-heading {
color: #ffffff;
background-color: #ff9800;
border-color: #ffc599;
}
.panel-warning > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #ffc599;
}
.panel-warning > .panel-heading .badge {
color: #ff9800;
background-color: #ffffff;
}
.panel-warning > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #ffc599;
}
.panel-danger {
border-color: #f7a4af;
}
.panel-danger > .panel-heading {
color: #ffffff;
background-color: #e51c23;
border-color: #f7a4af;
}
.panel-danger > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #f7a4af;
}
.panel-danger > .panel-heading .badge {
color: #e51c23;
background-color: #ffffff;
}
.panel-danger > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #f7a4af;
}
.embed-responsive {
position: relative;
display: block;
height: 0;
padding: 0;
overflow: hidden;
}
.embed-responsive .<API key>,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
position: absolute;
top: 0;
left: 0;
bottom: 0;
height: 100%;
width: 100%;
border: 0;
}
.<API key> {
padding-bottom: 56.25%;
}
.<API key> {
padding-bottom: 75%;
}
.well {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
background-color: #f9f9f9;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.well blockquote {
border-color: #ddd;
border-color: rgba(0, 0, 0, 0.15);
}
.well-lg {
padding: 24px;
border-radius: 3px;
}
.well-sm {
padding: 9px;
border-radius: 3px;
}
.close {
float: right;
font-size: 19.5px;
font-weight: normal;
line-height: 1;
color: #000000;
text-shadow: none;
opacity: 0.2;
filter: alpha(opacity=20);
}
.close:hover,
.close:focus {
color: #000000;
text-decoration: none;
cursor: pointer;
opacity: 0.5;
filter: alpha(opacity=50);
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.modal-open {
overflow: hidden;
}
.modal {
display: none;
overflow: hidden;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050;
-<API key>: touch;
outline: 0;
}
.modal.fade .modal-dialog {
-webkit-transform: translate(0, -25%);
-ms-transform: translate(0, -25%);
-o-transform: translate(0, -25%);
transform: translate(0, -25%);
-webkit-transition: -webkit-transform 0.3s ease-out;
-moz-transition: -moz-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
.modal.in .modal-dialog {
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.modal-open .modal {
overflow-x: hidden;
overflow-y: auto;
}
.modal-dialog {
position: relative;
width: auto;
margin: 10px;
}
.modal-content {
position: relative;
background-color: #ffffff;
border: 1px solid #999999;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
outline: 0;
}
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1040;
background-color: #000000;
}
.modal-backdrop.fade {
opacity: 0;
filter: alpha(opacity=0);
}
.modal-backdrop.in {
opacity: 0.5;
filter: alpha(opacity=50);
}
.modal-header {
padding: 15px;
border-bottom: 1px solid transparent;
}
.modal-header .close {
margin-top: -2px;
}
.modal-title {
margin: 0;
line-height: 1.846;
}
.modal-body {
position: relative;
padding: 15px;
}
.modal-footer {
padding: 15px;
text-align: right;
border-top: 1px solid transparent;
}
.modal-footer .btn + .btn {
margin-left: 5px;
margin-bottom: 0;
}
.modal-footer .btn-group .btn + .btn {
margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
margin-left: 0;
}
.<API key> {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
@media (min-width: 768px) {
.modal-dialog {
width: 600px;
margin: 30px auto;
}
.modal-content {
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.modal-sm {
width: 300px;
}
}
@media (min-width: 992px) {
.modal-lg {
width: 900px;
}
}
.tooltip {
position: absolute;
z-index: 1070;
display: block;
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-break: auto;
line-height: 1.846;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
word-wrap: normal;
font-size: 12px;
opacity: 0;
filter: alpha(opacity=0);
}
.tooltip.in {
opacity: 0.9;
filter: alpha(opacity=90);
}
.tooltip.top {
margin-top: -3px;
padding: 5px 0;
}
.tooltip.right {
margin-left: 3px;
padding: 0 5px;
}
.tooltip.bottom {
margin-top: 3px;
padding: 5px 0;
}
.tooltip.left {
margin-left: -3px;
padding: 0 5px;
}
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: #ffffff;
text-align: center;
background-color: #727272;
border-radius: 3px;
}
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.tooltip.top .tooltip-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-width: 5px 5px 0;
border-top-color: #727272;
}
.tooltip.top-left .tooltip-arrow {
bottom: 0;
right: 5px;
margin-bottom: -5px;
border-width: 5px 5px 0;
border-top-color: #727272;
}
.tooltip.top-right .tooltip-arrow {
bottom: 0;
left: 5px;
margin-bottom: -5px;
border-width: 5px 5px 0;
border-top-color: #727272;
}
.tooltip.right .tooltip-arrow {
top: 50%;
left: 0;
margin-top: -5px;
border-width: 5px 5px 5px 0;
border-right-color: #727272;
}
.tooltip.left .tooltip-arrow {
top: 50%;
right: 0;
margin-top: -5px;
border-width: 5px 0 5px 5px;
border-left-color: #727272;
}
.tooltip.bottom .tooltip-arrow {
top: 0;
left: 50%;
margin-left: -5px;
border-width: 0 5px 5px;
border-bottom-color: #727272;
}
.tooltip.bottom-left .tooltip-arrow {
top: 0;
right: 5px;
margin-top: -5px;
border-width: 0 5px 5px;
border-bottom-color: #727272;
}
.tooltip.bottom-right .tooltip-arrow {
top: 0;
left: 5px;
margin-top: -5px;
border-width: 0 5px 5px;
border-bottom-color: #727272;
}
.popover {
position: absolute;
top: 0;
left: 0;
z-index: 1060;
display: none;
max-width: 276px;
padding: 1px;
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-break: auto;
line-height: 1.846;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
word-wrap: normal;
font-size: 13px;
background-color: #ffffff;
background-clip: padding-box;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.popover.top {
margin-top: -10px;
}
.popover.right {
margin-left: 10px;
}
.popover.bottom {
margin-top: 10px;
}
.popover.left {
margin-left: -10px;
}
.popover-title {
margin: 0;
padding: 8px 14px;
font-size: 13px;
background-color: #f7f7f7;
border-bottom: 1px solid #ebebeb;
border-radius: 2px 2px 0 0;
}
.popover-content {
padding: 9px 14px;
}
.popover > .arrow,
.popover > .arrow:after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover > .arrow {
border-width: 11px;
}
.popover > .arrow:after {
border-width: 10px;
content: "";
}
.popover.top > .arrow {
left: 50%;
margin-left: -11px;
border-bottom-width: 0;
border-top-color: rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.075);
bottom: -11px;
}
.popover.top > .arrow:after {
content: " ";
bottom: 1px;
margin-left: -10px;
border-bottom-width: 0;
border-top-color: #ffffff;
}
.popover.right > .arrow {
top: 50%;
left: -11px;
margin-top: -11px;
border-left-width: 0;
border-right-color: rgba(0, 0, 0, 0);
border-right-color: rgba(0, 0, 0, 0.075);
}
.popover.right > .arrow:after {
content: " ";
left: 1px;
bottom: -10px;
border-left-width: 0;
border-right-color: #ffffff;
}
.popover.bottom > .arrow {
left: 50%;
margin-left: -11px;
border-top-width: 0;
border-bottom-color: rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.075);
top: -11px;
}
.popover.bottom > .arrow:after {
content: " ";
top: 1px;
margin-left: -10px;
border-top-width: 0;
border-bottom-color: #ffffff;
}
.popover.left > .arrow {
top: 50%;
right: -11px;
margin-top: -11px;
border-right-width: 0;
border-left-color: rgba(0, 0, 0, 0);
border-left-color: rgba(0, 0, 0, 0.075);
}
.popover.left > .arrow:after {
content: " ";
right: 1px;
border-right-width: 0;
border-left-color: #ffffff;
bottom: -10px;
}
.carousel {
position: relative;
}
.carousel-inner {
position: relative;
overflow: hidden;
width: 100%;
}
.carousel-inner > .item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
-o-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left;
}
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
line-height: 1;
}
@media all and (transform-3d), (-webkit-transform-3d) {
.carousel-inner > .item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
-moz-transition: -moz-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
-<API key>: hidden;
-<API key>: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000px;
-moz-perspective: 1000px;
perspective: 1000px;
}
.carousel-inner > .item.next,
.carousel-inner > .item.active.right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
left: 0;
}
.carousel-inner > .item.prev,
.carousel-inner > .item.active.left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
left: 0;
}
.carousel-inner > .item.next.left,
.carousel-inner > .item.prev.right,
.carousel-inner > .item.active {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
left: 0;
}
}
.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
display: block;
}
.carousel-inner > .active {
left: 0;
}
.carousel-inner > .next,
.carousel-inner > .prev {
position: absolute;
top: 0;
width: 100%;
}
.carousel-inner > .next {
left: 100%;
}
.carousel-inner > .prev {
left: -100%;
}
.carousel-inner > .next.left,
.carousel-inner > .prev.right {
left: 0;
}
.carousel-inner > .active.left {
left: -100%;
}
.carousel-inner > .active.right {
left: 100%;
}
.carousel-control {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 15%;
opacity: 0.5;
filter: alpha(opacity=50);
font-size: 20px;
color: #ffffff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
background-color: rgba(0, 0, 0, 0);
}
.carousel-control.left {
background-image: -<API key>(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
}
.carousel-control.right {
left: auto;
right: 0;
background-image: -<API key>(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
}
.carousel-control:hover,
.carousel-control:focus {
outline: 0;
color: #ffffff;
text-decoration: none;
opacity: 0.9;
filter: alpha(opacity=90);
}
.carousel-control .icon-prev,
.carousel-control .icon-next,
.carousel-control .<API key>,
.carousel-control .<API key> {
position: absolute;
top: 50%;
margin-top: -10px;
z-index: 5;
display: inline-block;
}
.carousel-control .icon-prev,
.carousel-control .<API key> {
left: 50%;
margin-left: -10px;
}
.carousel-control .icon-next,
.carousel-control .<API key> {
right: 50%;
margin-right: -10px;
}
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 20px;
height: 20px;
line-height: 1;
font-family: serif;
}
.carousel-control .icon-prev:before {
content: '\2039';
}
.carousel-control .icon-next:before {
content: '\203a';
}
.carousel-indicators {
position: absolute;
bottom: 10px;
left: 50%;
z-index: 15;
width: 60%;
margin-left: -30%;
padding-left: 0;
list-style: none;
text-align: center;
}
.carousel-indicators li {
display: inline-block;
width: 10px;
height: 10px;
margin: 1px;
text-indent: -999px;
border: 1px solid #ffffff;
border-radius: 10px;
cursor: pointer;
background-color: #000 \9;
background-color: rgba(0, 0, 0, 0);
}
.carousel-indicators .active {
margin: 0;
width: 12px;
height: 12px;
background-color: #ffffff;
}
.carousel-caption {
position: absolute;
left: 15%;
right: 15%;
bottom: 20px;
z-index: 10;
padding-top: 20px;
padding-bottom: 20px;
color: #ffffff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.carousel-caption .btn {
text-shadow: none;
}
@media screen and (min-width: 768px) {
.carousel-control .<API key>,
.carousel-control .<API key>,
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 30px;
height: 30px;
margin-top: -10px;
font-size: 30px;
}
.carousel-control .<API key>,
.carousel-control .icon-prev {
margin-left: -10px;
}
.carousel-control .<API key>,
.carousel-control .icon-next {
margin-right: -10px;
}
.carousel-caption {
left: 20%;
right: 20%;
padding-bottom: 30px;
}
.carousel-indicators {
bottom: 20px;
}
}
.clearfix:before,
.clearfix:after,
.dl-horizontal dd:before,
.dl-horizontal dd:after,
.container:before,
.container:after,
.container-fluid:before,
.container-fluid:after,
.row:before,
.row:after,
.form-horizontal .form-group:before,
.form-horizontal .form-group:after,
.btn-toolbar:before,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:before,
.btn-group-vertical > .btn-group:after,
.nav:before,
.nav:after,
.navbar:before,
.navbar:after,
.navbar-header:before,
.navbar-header:after,
.navbar-collapse:before,
.navbar-collapse:after,
.pager:before,
.pager:after,
.panel-body:before,
.panel-body:after,
.modal-header:before,
.modal-header:after,
.modal-footer:before,
.modal-footer:after {
content: " ";
display: table;
}
.clearfix:after,
.dl-horizontal dd:after,
.container:after,
.container-fluid:after,
.row:after,
.form-horizontal .form-group:after,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:after,
.nav:after,
.navbar:after,
.navbar-header:after,
.navbar-collapse:after,
.pager:after,
.panel-body:after,
.modal-header:after,
.modal-footer:after {
clear: both;
}
.center-block {
display: block;
margin-left: auto;
margin-right: auto;
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;
}
.hide {
display: none !important;
}
.show {
display: block !important;
}
.invisible {
visibility: hidden;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.hidden {
display: none !important;
}
.affix {
position: fixed;
}
@-ms-viewport {
width: device-width;
}
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
display: none !important;
}
.visible-xs-block,
.visible-xs-inline,
.<API key>,
.visible-sm-block,
.visible-sm-inline,
.<API key>,
.visible-md-block,
.visible-md-inline,
.<API key>,
.visible-lg-block,
.visible-lg-inline,
.<API key> {
display: none !important;
}
@media (max-width: 767px) {
.visible-xs {
display: block !important;
}
table.visible-xs {
display: table !important;
}
tr.visible-xs {
display: table-row !important;
}
th.visible-xs,
td.visible-xs {
display: table-cell !important;
}
}
@media (max-width: 767px) {
.visible-xs-block {
display: block !important;
}
}
@media (max-width: 767px) {
.visible-xs-inline {
display: inline !important;
}
}
@media (max-width: 767px) {
.<API key> {
display: inline-block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm {
display: block !important;
}
table.visible-sm {
display: table !important;
}
tr.visible-sm {
display: table-row !important;
}
th.visible-sm,
td.visible-sm {
display: table-cell !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm-block {
display: block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm-inline {
display: inline !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.<API key> {
display: inline-block !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md {
display: block !important;
}
table.visible-md {
display: table !important;
}
tr.visible-md {
display: table-row !important;
}
th.visible-md,
td.visible-md {
display: table-cell !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md-block {
display: block !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md-inline {
display: inline !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.<API key> {
display: inline-block !important;
}
}
@media (min-width: 1200px) {
.visible-lg {
display: block !important;
}
table.visible-lg {
display: table !important;
}
tr.visible-lg {
display: table-row !important;
}
th.visible-lg,
td.visible-lg {
display: table-cell !important;
}
}
@media (min-width: 1200px) {
.visible-lg-block {
display: block !important;
}
}
@media (min-width: 1200px) {
.visible-lg-inline {
display: inline !important;
}
}
@media (min-width: 1200px) {
.<API key> {
display: inline-block !important;
}
}
@media (max-width: 767px) {
.hidden-xs {
display: none !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.hidden-sm {
display: none !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.hidden-md {
display: none !important;
}
}
@media (min-width: 1200px) {
.hidden-lg {
display: none !important;
}
}
.visible-print {
display: none !important;
}
@media print {
.visible-print {
display: block !important;
}
table.visible-print {
display: table !important;
}
tr.visible-print {
display: table-row !important;
}
th.visible-print,
td.visible-print {
display: table-cell !important;
}
}
.visible-print-block {
display: none !important;
}
@media print {
.visible-print-block {
display: block !important;
}
}
.<API key> {
display: none !important;
}
@media print {
.<API key> {
display: inline !important;
}
}
.<API key> {
display: none !important;
}
@media print {
.<API key> {
display: inline-block !important;
}
}
@media print {
.hidden-print {
display: none !important;
}
}
header.page-header::before,
.layout_social > .container:before {
content: none;
}
.topbar {
margin-bottom: 20px;
}
.cssmenu_horiz li ul,
.cssmenu_vert li ul {
padding: 0;
margin: 2px 0 0;
background-color: #ffffff;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 3px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
-<API key>: padding-box;
background-clip: padding-box;
}
.cssmenu_horiz li ul > li > a,
.cssmenu_vert li ul > li > a {
padding: 3px 20px;
font-weight: normal;
line-height: 1.846;
color: #666666;
}
.cssmenu_horiz > li > ul {
<API key>: 0;
<API key>: 0;
margin: 0;
}
.cssmenu_horiz > li > a:hover,
.cssmenu_vert > li > a:hover,
.cssmenu_horiz ul > li > a:hover,
.cssmenu_vert ul > li > a:hover,
.cssmenu_horiz > li > a:focus,
.cssmenu_vert > li > a:focus,
.cssmenu_horiz ul > li > a:focus,
.cssmenu_vert ul > li > a:focus {
text-decoration: none;
color: #141414;
background-color: #eeeeee;
}
.topbar .nav > li.selected > a,
.topbar .nav > li.selected > a:hover {
background: #eeeeee;
}
.sf-arrows .sf-with-ul:after {
border: 5px solid transparent;
border-top-color: #666666;
}
.sf-arrows ul .sf-with-ul:after,
.cssmenu_vert.sf-arrows > li > .sf-with-ul:after {
border-color: transparent;
border-left-color: #666666;
}
.sf-arrows ul li > .sf-with-ul:focus:after,
.sf-arrows ul li:hover > .sf-with-ul:after,
.sf-arrows ul .sfHover > .sf-with-ul:after {
border-color: transparent;
border-left-color: #141414;
}
.cssmenu_vert.sf-arrows li > .sf-with-ul:focus:after,
.cssmenu_vert.sf-arrows li:hover > .sf-with-ul:after,
.cssmenu_vert.sf-arrows .sfHover > .sf-with-ul:after {
border-color: transparent;
border-left-color: #141414;
}
.dropdown-menu li {
background-color: #ffffff;
color: #666666;
}
.dropdown-menu li:hover,
.dropdown-menu li:focus {
background-color: #eeeeee;
color: #141414;
}
.navbar {
border: none;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.navbar-brand {
font-size: 24px;
}
.navbar-inverse .navbar-form input[type=text],
.navbar-inverse .navbar-form input[type=password] {
color: #ffffff;
-webkit-box-shadow: inset 0 -1px 0 #b2dbfb;
box-shadow: inset 0 -1px 0 #b2dbfb;
}
.navbar-inverse .navbar-form input[type=text]::-moz-placeholder,
.navbar-inverse .navbar-form input[type=password]::-moz-placeholder {
color: #b2dbfb;
opacity: 1;
}
.navbar-inverse .navbar-form input[type=text]:-<API key>,
.navbar-inverse .navbar-form input[type=password]:-<API key> {
color: #b2dbfb;
}
.navbar-inverse .navbar-form input[type=text]::-<API key>,
.navbar-inverse .navbar-form input[type=password]::-<API key> {
color: #b2dbfb;
}
.navbar-inverse .navbar-form input[type=text]:focus,
.navbar-inverse .navbar-form input[type=password]:focus {
-webkit-box-shadow: inset 0 -2px 0 #ffffff;
box-shadow: inset 0 -2px 0 #ffffff;
}
.btn-default {
background-size: 200%;
background-position: 50%;
}
.btn-default:focus {
background-color: #ffffff;
}
.btn-default:hover,
.btn-default:active:hover {
background-color: #f0f0f0;
}
.btn-default:active {
background-color: #e0e0e0;
background-image: -<API key>(circle, #e0e0e0 10%, #ffffff 11%);
background-image: radial-gradient(circle, #e0e0e0 10%, #ffffff 11%);
background-repeat: no-repeat;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.btn-primary {
background-size: 200%;
background-position: 50%;
}
.btn-primary:focus {
background-color: #2196f3;
}
.btn-primary:hover,
.btn-primary:active:hover {
background-color: #0d87e9;
}
.btn-primary:active {
background-color: #0b76cc;
background-image: -<API key>(circle, #0b76cc 10%, #2196f3 11%);
background-image: radial-gradient(circle, #0b76cc 10%, #2196f3 11%);
background-repeat: no-repeat;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.btn-success {
background-size: 200%;
background-position: 50%;
}
.btn-success:focus {
background-color: #4caf50;
}
.btn-success:hover,
.btn-success:active:hover {
background-color: #439a46;
}
.btn-success:active {
background-color: #39843c;
background-image: -<API key>(circle, #39843c 10%, #4caf50 11%);
background-image: radial-gradient(circle, #39843c 10%, #4caf50 11%);
background-repeat: no-repeat;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.btn-info {
background-size: 200%;
background-position: 50%;
}
.btn-info:focus {
background-color: #9c27b0;
}
.btn-info:hover,
.btn-info:active:hover {
background-color: #862197;
}
.btn-info:active {
background-color: #701c7e;
background-image: -<API key>(circle, #701c7e 10%, #9c27b0 11%);
background-image: radial-gradient(circle, #701c7e 10%, #9c27b0 11%);
background-repeat: no-repeat;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.btn-warning {
background-size: 200%;
background-position: 50%;
}
.btn-warning:focus {
background-color: #ff9800;
}
.btn-warning:hover,
.btn-warning:active:hover {
background-color: #e08600;
}
.btn-warning:active {
background-color: #c27400;
background-image: -<API key>(circle, #c27400 10%, #ff9800 11%);
background-image: radial-gradient(circle, #c27400 10%, #ff9800 11%);
background-repeat: no-repeat;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.btn-danger {
background-size: 200%;
background-position: 50%;
}
.btn-danger:focus {
background-color: #e51c23;
}
.btn-danger:hover,
.btn-danger:active:hover {
background-color: #cb171e;
}
.btn-danger:active {
background-color: #b0141a;
background-image: -<API key>(circle, #b0141a 10%, #e51c23 11%);
background-image: radial-gradient(circle, #b0141a 10%, #e51c23 11%);
background-repeat: no-repeat;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.btn-link {
background-size: 200%;
background-position: 50%;
}
.btn-link:focus {
background-color: #ffffff;
}
.btn-link:hover,
.btn-link:active:hover {
background-color: #f0f0f0;
}
.btn-link:active {
background-color: #e0e0e0;
background-image: -<API key>(circle, #e0e0e0 10%, #ffffff 11%);
background-image: radial-gradient(circle, #e0e0e0 10%, #ffffff 11%);
background-repeat: no-repeat;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.btn {
text-transform: uppercase;
border: none;
-webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
.btn-link {
border-radius: 3px;
-webkit-box-shadow: none;
box-shadow: none;
color: #444444;
}
.btn-link:hover,
.btn-link:focus {
-webkit-box-shadow: none;
box-shadow: none;
color: #444444;
text-decoration: none;
}
.btn-default.disabled {
background-color: rgba(0, 0, 0, 0.1);
color: rgba(0, 0, 0, 0.4);
opacity: 1;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
margin-left: 0;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: 0;
}
body {
-<API key>: antialiased;
letter-spacing: .1px;
}
p {
margin: 0 0 1em;
}
input,
button {
-<API key>: antialiased;
letter-spacing: .1px;
}
a {
-webkit-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
.table-hover > tbody > tr,
.table-hover > tbody > tr > th,
.table-hover > tbody > tr > td {
-webkit-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
label {
font-weight: normal;
}
textarea,
textarea.form-control,
input.form-control,
input[type=text],
input[type=password],
input[type=email],
input[type=number],
[type=text].form-control,
[type=password].form-control,
[type=email].form-control,
[type=tel].form-control,
[contenteditable].form-control {
padding: 0;
border: none;
border-radius: 0;
-webkit-appearance: none;
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
font-size: 16px;
}
textarea:focus,
textarea.form-control:focus,
input.form-control:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
[type=text].form-control:focus,
[type=password].form-control:focus,
[type=email].form-control:focus,
[type=tel].form-control:focus,
[contenteditable].form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
}
textarea[disabled],
textarea.form-control[disabled],
input.form-control[disabled],
input[type=text][disabled],
input[type=password][disabled],
input[type=email][disabled],
input[type=number][disabled],
[type=text].form-control[disabled],
[type=password].form-control[disabled],
[type=email].form-control[disabled],
[type=tel].form-control[disabled],
[contenteditable].form-control[disabled],
textarea[readonly],
textarea.form-control[readonly],
input.form-control[readonly],
input[type=text][readonly],
input[type=password][readonly],
input[type=email][readonly],
input[type=number][readonly],
[type=text].form-control[readonly],
[type=password].form-control[readonly],
[type=email].form-control[readonly],
[type=tel].form-control[readonly],
[contenteditable].form-control[readonly] {
-webkit-box-shadow: none;
box-shadow: none;
border-bottom: 1px dotted #dddddd;
}
textarea.input-sm,
textarea.form-control.input-sm,
input.form-control.input-sm,
input[type=text].input-sm,
input[type=password].input-sm,
input[type=email].input-sm,
input[type=number].input-sm,
[type=text].form-control.input-sm,
[type=password].form-control.input-sm,
[type=email].form-control.input-sm,
[type=tel].form-control.input-sm,
[contenteditable].form-control.input-sm {
font-size: 12px;
}
textarea.input-lg,
textarea.form-control.input-lg,
input.form-control.input-lg,
input[type=text].input-lg,
input[type=password].input-lg,
input[type=email].input-lg,
input[type=number].input-lg,
[type=text].form-control.input-lg,
[type=password].form-control.input-lg,
[type=email].form-control.input-lg,
[type=tel].form-control.input-lg,
[contenteditable].form-control.input-lg {
font-size: 17px;
}
select,
select.form-control {
border: 0;
border-radius: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding-left: 0;
padding-right: 0\9;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+<API key>=);
background-size: 13px;
background-repeat: no-repeat;
background-position: right center;
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
font-size: 16px;
line-height: 1.5;
}
select::-ms-expand,
select.form-control::-ms-expand {
display: none;
}
select.input-sm,
select.form-control.input-sm {
font-size: 12px;
}
select.input-lg,
select.form-control.input-lg {
font-size: 17px;
}
select:focus,
select.form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+<API key>=);
}
select[multiple],
select.form-control[multiple] {
background: none;
}
.radio label,
.radio-inline label,
.checkbox label,
.checkbox-inline label {
padding-left: 25px;
}
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="radio"],
.checkbox-inline input[type="radio"],
.radio input[type="checkbox"],
.radio-inline input[type="checkbox"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
margin-left: -25px;
}
input[type="radio"],
.radio input[type="radio"],
.radio-inline input[type="radio"] {
position: relative;
margin-top: 6px;
margin-right: 4px;
vertical-align: top;
border: none;
background-color: transparent;
-webkit-appearance: none;
appearance: none;
cursor: pointer;
}
input[type="radio"]:focus,
.radio input[type="radio"]:focus,
.radio-inline input[type="radio"]:focus {
outline: none;
}
input[type="radio"]:before,
.radio input[type="radio"]:before,
.radio-inline input[type="radio"]:before,
input[type="radio"]:after,
.radio input[type="radio"]:after,
.radio-inline input[type="radio"]:after {
content: "";
display: block;
width: 18px;
height: 18px;
border-radius: 50%;
-webkit-transition: 240ms;
-o-transition: 240ms;
transition: 240ms;
}
input[type="radio"]:before,
.radio input[type="radio"]:before,
.radio-inline input[type="radio"]:before {
position: absolute;
left: 0;
top: -3px;
background-color: #2196f3;
-webkit-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
}
input[type="radio"]:after,
.radio input[type="radio"]:after,
.radio-inline input[type="radio"]:after {
position: relative;
top: -3px;
border: 2px solid #666666;
}
input[type="radio"]:checked:before,
.radio input[type="radio"]:checked:before,
.radio-inline input[type="radio"]:checked:before {
-webkit-transform: scale(0.5);
-ms-transform: scale(0.5);
-o-transform: scale(0.5);
transform: scale(0.5);
}
input[type="radio"]:disabled:checked:before,
.radio input[type="radio"]:disabled:checked:before,
.radio-inline input[type="radio"]:disabled:checked:before {
background-color: #bbbbbb;
}
input[type="radio"]:checked:after,
.radio input[type="radio"]:checked:after,
.radio-inline input[type="radio"]:checked:after {
border-color: #2196f3;
}
input[type="radio"]:disabled:after,
.radio input[type="radio"]:disabled:after,
.radio-inline input[type="radio"]:disabled:after,
input[type="radio"]:disabled:checked:after,
.radio input[type="radio"]:disabled:checked:after,
.radio-inline input[type="radio"]:disabled:checked:after {
border-color: #bbbbbb;
}
input[type="checkbox"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
position: relative;
border: none;
margin-bottom: -4px;
-webkit-appearance: none;
appearance: none;
cursor: pointer;
}
input[type="checkbox"]:focus,
.checkbox input[type="checkbox"]:focus,
.checkbox-inline input[type="checkbox"]:focus {
outline: none;
}
input[type="checkbox"]:focus:after,
.checkbox input[type="checkbox"]:focus:after,
.checkbox-inline input[type="checkbox"]:focus:after {
border-color: #2196f3;
}
input[type="checkbox"]:after,
.checkbox input[type="checkbox"]:after,
.checkbox-inline input[type="checkbox"]:after {
content: "";
display: block;
width: 18px;
height: 18px;
margin-top: -2px;
margin-right: 5px;
border: 2px solid #666666;
border-radius: 2px;
-webkit-transition: 240ms;
-o-transition: 240ms;
transition: 240ms;
}
input[type="checkbox"]:checked:before,
.checkbox input[type="checkbox"]:checked:before,
.checkbox-inline input[type="checkbox"]:checked:before {
content: "";
position: absolute;
top: 0;
left: 6px;
display: table;
width: 6px;
height: 12px;
border: 2px solid #ffffff;
border-top-width: 0;
border-left-width: 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
input[type="checkbox"]:checked:after,
.checkbox input[type="checkbox"]:checked:after,
.checkbox-inline input[type="checkbox"]:checked:after {
background-color: #2196f3;
border-color: #2196f3;
}
input[type="checkbox"]:disabled:after,
.checkbox input[type="checkbox"]:disabled:after,
.checkbox-inline input[type="checkbox"]:disabled:after {
border-color: #bbbbbb;
}
input[type="checkbox"]:disabled:checked:after,
.checkbox input[type="checkbox"]:disabled:checked:after,
.checkbox-inline input[type="checkbox"]:disabled:checked:after {
background-color: #bbbbbb;
border-color: transparent;
}
.has-warning input:not([type=checkbox]),
.has-warning .form-control,
.has-warning input.form-control[readonly],
.has-warning input[type=text][readonly],
.has-warning [type=text].form-control[readonly],
.has-warning input:not([type=checkbox]):focus,
.has-warning .form-control:focus {
border-bottom: none;
-webkit-box-shadow: inset 0 -2px 0 #ff9800;
box-shadow: inset 0 -2px 0 #ff9800;
}
.has-error input:not([type=checkbox]),
.has-error .form-control,
.has-error input.form-control[readonly],
.has-error input[type=text][readonly],
.has-error [type=text].form-control[readonly],
.has-error input:not([type=checkbox]):focus,
.has-error .form-control:focus {
border-bottom: none;
-webkit-box-shadow: inset 0 -2px 0 #e51c23;
box-shadow: inset 0 -2px 0 #e51c23;
}
.has-success input:not([type=checkbox]),
.has-success .form-control,
.has-success input.form-control[readonly],
.has-success input[type=text][readonly],
.has-success [type=text].form-control[readonly],
.has-success input:not([type=checkbox]):focus,
.has-success .form-control:focus {
border-bottom: none;
-webkit-box-shadow: inset 0 -2px 0 #4caf50;
box-shadow: inset 0 -2px 0 #4caf50;
}
.has-warning .input-group-addon,
.has-error .input-group-addon,
.has-success .input-group-addon {
color: #666666;
border-color: transparent;
background-color: transparent;
}
.nav-tabs > li > a,
.nav-tabs > li > a:focus {
margin-right: 0;
background-color: transparent;
border: none;
color: #666666;
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
-webkit-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus:hover {
background-color: transparent;
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
color: #2196f3;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus {
border: none;
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
color: #2196f3;
}
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus:hover {
border: none;
color: #2196f3;
}
.nav-tabs > li.disabled > a {
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
}
.nav-tabs.nav-justified > li > a,
.nav-tabs.nav-justified > li > a:hover,
.nav-tabs.nav-justified > li > a:focus,
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border: none;
}
.nav-tabs .dropdown-menu {
margin-top: 0;
}
.dropdown-menu {
margin-top: 0;
border: none;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.alert {
border: none;
color: #ffffff;
}
.alert-success {
background-color: #4caf50;
}
.alert-info {
background-color: #9c27b0;
}
.alert-warning {
background-color: #ff9800;
}
.alert-danger {
background-color: #e51c23;
}
.alert a:not(.close),
.alert .alert-link {
color: #ffffff;
font-weight: bold;
}
.alert .close {
color: #ffffff;
}
.badge {
padding: 4px 6px 4px;
}
.progress {
position: relative;
z-index: 1;
height: 6px;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.progress-bar {
-webkit-box-shadow: none;
box-shadow: none;
}
.progress-bar:last-child {
border-radius: 0 3px 3px 0;
}
.progress-bar:last-child:before {
display: block;
content: "";
position: absolute;
width: 100%;
height: 100%;
left: 0;
right: 0;
z-index: -1;
background-color: #cae6fc;
}
.<API key>:last-child.progress-bar:before {
background-color: #c7e7c8;
}
.progress-bar-info:last-child.progress-bar:before {
background-color: #edc9f3;
}
.<API key>:last-child.progress-bar:before {
background-color: #ffe0b3;
}
.progress-bar-danger:last-child.progress-bar:before {
background-color: #f28e92;
}
.close {
font-size: 34px;
font-weight: 300;
line-height: 24px;
opacity: 0.6;
-webkit-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
.close:hover {
opacity: 1;
}
.list-group-item {
padding: 15px;
}
.<API key> {
color: #bbbbbb;
}
.well {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.panel {
border: none;
border-radius: 2px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.panel-heading {
border-bottom: none;
}
.panel-footer {
border-top: none;
}
.popover {
border: none;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h4,
.carousel-caption h5,
.carousel-caption h6 {
color: inherit;
}
.margin-bottom-xs {
margin-bottom: 6px;
}
.margin-bottom-sm {
margin-bottom: 12px;
}
.margin-bottom-md {
margin-bottom: 23px;
}
.margin-bottom-lg {
margin-bottom: 46px;
}
.navbar-collapse.collapse.in {
background: #ffffff;
}
.warning a,
.warning a:link,
.warning a:visited {
color: #ff9800;
}
.calhighlight {
color: #9c27b0;
background: #e1bee7;
}
a.fc-event:hover {
color: #ffffff;
}
.filter .fancyfilter {
border: thin solid transparent /*black*/;
}
.filter .fancyfilter .token {
background: #ffffff;
border: 1px solid #bbbbbb;
font-size: 11px;
padding: 3px;
}
.note-list .postbody-title {
background: #ffffff;
color: #212121;
}
.post-approved-n {
border-left: 3px dotted #4caf50;
}
.post-approved-r {
border-left: 3px double #ff9800;
}
.post-approved-r .content * {
background: url('../../../img/icons/dots.gif');
}
.dropdown-menu {
color: #bbbbbb;
}
.cssmenu_horiz > li:hover,
.cssmenu_horiz > li.sfHover,
.cssmenu_vert > li:hover,
.cssmenu_vert > li.sfHover {
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
}
.topbar .nav > li > a:hover,
.topbar .nav > li > a:focus {
background: transparent;
}
.cssmenu_horiz ul,
.cssmenu_vert ul {
border: rgba(0, 0, 0, 0.15);
}
.cssmenu_horiz ul li a,
.cssmenu_vert ul li a {
background: #ffffff;
color: #666666;
}
.cssmenu_horiz > ul > li:hover > a,
.cssmenu_vert > ul > li:hover > a {
color: #141414;
background: #eeeeee;
}
.sf-arrows .sf-with-ul:after {
border: 5px solid transparent;
border-top-color: #2196f3;
}
.cssmenu_vert.sf-arrows li > .sf-with-ul:after {
border-color: transparent;
border-left-color: #2196f3;
/* edit this to suit design (no rgba in IE8) */
}
.sf-arrows ul .sf-with-ul:after,
.cssmenu_vert.sf-arrows ul > li > .sf-with-ul:after {
border-color: transparent;
border-left-color: #666666;
/* edit this to suit design (no rgba in IE8) */
}
.sf-arrows ul li > .sf-with-ul:focus:after,
.sf-arrows ul li:hover > .sf-with-ul:after,
.sf-arrows ul .sfHover > .sf-with-ul:after {
border-color: transparent;
border-left-color: #141414;
}
.cssmenu_vert.sf-arrows li > .sf-with-ul:focus:after,
.cssmenu_vert.sf-arrows li:hover > .sf-with-ul:after,
.cssmenu_vert.sf-arrows .sfHover > .sf-with-ul:after {
border-color: transparent;
border-left-color: #141414;
}
.topbar,
.topbar .navbar-default .navbar-nav > li,
.topbar .nav > li {
background: #ffffff;
color: #bbbbbb;
}
.topbar > a,
.topbar .navbar-default .navbar-nav > li > a,
.topbar .nav > li > a {
color: #666666;
padding-top: 20.5px;
padding-bottom: 20.5px;
}
.topbar > a:hover,
.topbar .navbar-default .navbar-nav > li > a:hover,
.topbar .nav > li > a:hover,
.topbar > a:focus,
.topbar .navbar-default .navbar-nav > li > a:focus,
.topbar .nav > li > a:focus {
color: #212121;
}
.topbar .cssmenu_horiz ul {
background: #ffffff;
}
.topbar .cssmenu_horiz.sf-arrows > .menuSection0 > .sf-with-ul:after {
border: 5px solid transparent;
border-top-color: #666666;
}
.topbar .cssmenu_horiz.sf-arrows > .menuSection0:hover > .sf-with-ul:after,
.topbar .cssmenu_horiz.sf-arrows > .menuSection0.sfhover > .sf-with-ul:after {
border-top-color: #212121;
}
/* order of following 3 rules important for fallbacks to work */
.dropdown-menu .dropdown-title,
.dropdown-menu li label {
color: #666666;
}
.thumbinfosothers {
color: #eeeeee;
}
table.treetable.objectperms td.added {
background-color: #dff0d8;
}
table.treetable.objectperms td.removed {
background-color: #ffe0b2;
}
.<API key> {
background-color: #9c27b0;
color: #e1bee7;
}
.progressBarComplete {
background-color: #4caf50;
color: #dff0d8;
}
.progressBarError {
background-color: #ff9800;
color: #ffe0b2;
}
.progressContainer {
border: solid 1px transparent;
background-color: #ffffff;
}
.<API key> a:after {
color: #666666;
}
.<API key> {
background: rgba(0, 0, 0, 0.75);
color: #ffffff;
}
.<API key>,
.<API key> {
background-color: rgba(255, 255, 255, 0.5);
}
.ui-selectmenu-icon {
background-color: inherit;
border: solid 5px transparent !important;
-webkit-box-shadow: -5px 0 5px 2px rgba(0, 0, 0, 0.1), -1px 0 0 rgba(0, 0, 0, 0.1), -2px 0 0 rgba(255, 255, 255, 0.25);
box-shadow: -5px 0 5px 2px rgba(0, 0, 0, 0.1), -1px 0 0 rgba(0, 0, 0, 0.1), -2px 0 0 rgba(255, 255, 255, 0.25);
}
.dirsitetrail {
color: #f5f5f5;
}
.dirsitecats {
color: #f5f5f5;
}
#resultzone > div:hover {
background: #4caf50;
}
.searchresults blockquote em,
.highlight,
.btn-default.highlight a,
.btn-default a.highlight {
background: #f9bdbb;
color: #e51c23;
border-color: #f7a4af;
}
.btn-default.highlight:hover {
background: #f37975;
}
.btn-default.btn-link,
.btn-default.btn-link:hover {
background: transparent;
border: none;
}
#ajaxLoadingBG {
background: transparent url('../../../img/overlay-light.png');
}
#ajaxLoading {
color: #eeeeee;
background: transparent url('../../../img/loading-light.gif') no-repeat 50% 50%;
}
#cookie_consent_div {
padding: 15px;
border: 1px solid #cba4dd;
color: #9c27b0;
background-color: #e1bee7;
}
#cookie_consent_div.banner {
padding: 15px;
border: 1px solid #cba4dd;
}
html#print,
body.print * {
background: #ffffff;
color: #000000;
}
body.fullscreen {
background: #ffffff;
}
.attention {
color: #e51c23;
}
#debugconsole {
background: #2196f3;
color: #b2dbfb;
border: 2px solid transparent;
}
#debugconsole form {
color: #bbbbbb;
}
#debugconsole a {
color: #ffffff;
}
#debugconsole a.btn {
color: #666666;
}
a.icon,
img.icon {
background: transparent;
}
div #metadata fieldset.tabcontent,
div #metadata div.tabs {
background-color: transparent;
}
.openid_url {
background: #ffffff url('../../../img/icons/login-OpenID-bg.gif') 1px 1px no-repeat;
}
input:-webkit-autofill {
background-color: transparent !important;
/* needs important because Chrome has it already important */
background-image: none !important;
color: #666666 !important;
/* the Google guys forgot the number-one rule... when they specify background they should specify forgeround color too ;) */
}
#cboxTitle {
background-color: #ffffff;
}
#captchaImg {
border: 1px solid #dddddd;
}
form.simple label.error {
background: url('../../../img/icons/error.png') no-repeat 0 4px;
color: #e51c23;
}
form.simple label .warning {
color: #e51c23;
}
.tiki-modal .mask {
background-color: #ffffff;
}
.ui-dialog {
background: #ffffff;
color: #666666;
}
.cssmenu_horiz ul li.selected a,
.cssmenu_vert ul li.selected a,
.cssmenu_horiz ul li a:hover,
.cssmenu_vert ul li a:hover {
text-decoration: none;
color: #141414;
background-color: #eeeeee;
}
.box-quickadmin .cssmenu_horiz ul li {
background-color: #ffffff;
}
.box-switch_lang .box-data img.highlight {
border: 0.1em solid #f7a4af;
}
.box-switch_lang .box-data .highlight {
border: 0.1em solid #f7a4af;
}
div.cvsup {
color: #bbbbbb;
}
.layout_social .topbar_modules h1.sitetitle,
.<API key> .topbar_modules h1.sitetitle,
.<API key> #top_modules h1.sitetitle {
color: #666666;
}
.layout_social .topbar_modules .navbar-inverse .navbar-collapse,
.<API key> .topbar_modules .navbar-inverse .navbar-collapse,
.<API key> #top_modules .navbar-inverse .navbar-collapse,
.layout_social .topbar_modules .navbar-inverse .navbar-form,
.<API key> .topbar_modules .navbar-inverse .navbar-form,
.<API key> #top_modules .navbar-inverse .navbar-form,
.layout_social .topbar_modules .navbar-inverse,
.<API key> .topbar_modules .navbar-inverse,
.<API key> #top_modules .navbar-inverse {
border-color: transparent;
}
.prio1 {
background: inherit;
}
.prio2 {
background: #dff0d8;
color: #4caf50;
border: #d6e9c6;
}
.prio2 a {
color: #4caf50;
}
.prio3 {
background: #e1bee7;
color: #9c27b0;
border: #cba4dd;
}
.prio3 a {
color: #9c27b0;
}
.prio4 {
background: #ffe0b2;
color: #ff9800;
border: #ffc599;
}
.prio4 a {
color: #ff9800;
}
.prio5 {
background: #f9bdbb;
color: #e51c23;
border: #f7a4af;
}
.prio5 a {
color: #e51c23;
}
.messureadflag {
background: #666666;
}
.messureadhead {
background: #bbbbbb;
}
.messureadbody {
background: #eeeeee;
}
.readlink {
color: #666666;
}
.webmail_item {
border: 1px solid #dddddd;
}
.webmail_list .odd {
background: #f9f9f9;
}
.webmail_list .button {
background: #ffffff;
border: 1px solid #2196f3;
}
.webmail_list .webmail_read {
background: #e1bee7;
}
.webmail_list .webmail_replied {
background: #dff0d8;
}
.webmail_list .webmail_taken {
border: #ffc599;
color: #ff9800;
}
.webmail_message {
background: #ffffff;
}
.<API key> {
background: #ffffff;
}
.<API key> th {
background: transparent;
}
.tiki_sheet table td {
border: 1px solid #dddddd;
}
.odd {
background: transparent;
color: #666666;
}
.even {
background: #f9f9f9;
color: #666666;
}
.objectperms .checkBoxHeader:nth-of-type(odd) > div > label,
.objectperms td.checkBoxCell:nth-of-type(odd),
.objectperms .checkBoxHeader:nth-of-type(odd) > .checkBoxLabel {
background: #ececec;
}
.helptool-admin {
border-left: medium double #bbbbbb;
}
.toolbar-list {
border-left: medium double #bbbbbb;
}
.toolbars-picker {
background: #ffffff;
border: thin solid #666666;
color: #666666;
}
.toolbars-picker a {
border: 1px solid #ffffff;
color: #666666;
}
.toolbars-picker a:hover {
border: 1px solid #e51c23;
background: #bbbbbb;
color: #666666;
}
.textarea-toolbar > div {
background-color: #eeeeee;
border: outset 1px #eeeeee;
}
#<API key> {
background-color: #dff0d8;
color: #4caf50;
}
#intertrans-form {
background-color: #ffffff;
border: 1px solid #dddddd;
color: #212121;
}
#edit_translations tr.last {
border-bottom: 2px solid #d6e9c6;
}
ul.all_languages > li {
border: 1px solid #d6e9c6;
}
.plugin-mouseover {
background: #ffffff;
border: 1px solid transparent;
}
.mandatory_note {
color: #e51c23;
}
.author0 {
color: #ffffff;
}
.author1 {
color: #ffffff;
}
.author2 {
color: #ffffff;
}
.author3 {
color: #ffffff;
}
.author4 {
color: #ffffff;
}
.author5 {
color: #ffffff;
}
.author6 {
color: #ffffff;
}
.author7 {
color: #ffffff;
}
.author8 {
color: #ffffff;
}
.author9 {
color: #ffffff;
}
.author10 {
color: #ffffff;
}
.author11 {
color: #ffffff;
}
.author12 {
color: #ffffff;
}
.author13 {
color: #ffffff;
}
.author14 {
color: #ffffff;
}
.author15 {
color: #ffffff;
}
.structuremenu .menuSection {
border-left: 1px dotted #666666;
}
.cke_editable:hover {
outline: #666666 dotted 1px;
}
.tiki .cke_wysiwyg_frame,
.tiki .cke_wysiwyg_div {
background: #ffffff;
color: #666666;
}
.tiki_plugin {
background-color: transparent;
border: 1px solid #bbbbbb;
}
.<API key> {
border: 1px solid;
border-color: #ffc599;
}
.autotoc > .nav {
background: #ffffff;
border: 1px solid #dddddd;
border-radius: 3px;
}
.autotoc * {
color: #2196f3;
}
.autotoc .nav > li > a:hover,
.autotoc .nav .nav > li > a:hover {
color: #0a6ebd;
}
.plugin-form-float {
background: #ffffff;
color: #666666;
border: solid 2px #666666;
}
body.wikitext {
background: #ffffff;
color: #666666;
}
.editable-inline {
background: transparent url('../../../img/icons/database_lightning.png') no-repeat top right;
padding-right: 20px;
display: inline-block;
}
.editable-inline.loaded {
background: #ffffff;
padding: 6px;
border: 1px solid #eee;
border-radius: 4px;
z-index: 2;
}
.editable-inline.failure {
background: transparent url('../../../img/icons/lock_gray.png') no-repeat top right;
}
.editable-inline.modified {
border: solid 2px transparent;
padding: 2px;
}
.editable-inline.unsaved {
border: solid 2px transparent;
}
.structure_select .cssmenu_horiz ul li {
border: 1px solid #666666;
}
.admintoclevel .actions input {
border: solid 1px #666666;
}
.TextArea-fullscreen {
background-color: #666666;
}
.TextArea-fullscreen .actions,
.<API key> .actions {
background-color: #ffffff;
border-top: #eeeeee 1px solid;
}
#autosave_preview {
background-color: #ffffff;
color: #666666;
}
#<API key> {
background-color: #eeeeee;
background-image: url('../../../img/icons/shading.png');
}
h1:hover a.tiki_anchor,
h2:hover a.tiki_anchor,
h3:hover a.tiki_anchor,
h4:hover a.tiki_anchor,
h5:hover a.tiki_anchor,
h6:hover a.tiki_anchor {
color: #eeeeee;
}
h1 a.tiki_anchor:hover,
h2 a.tiki_anchor:hover,
h3 a.tiki_anchor:hover,
h4 a.tiki_anchor:hover,
h5 a.tiki_anchor:hover,
h6 a.tiki_anchor:hover {
color: #666666;
}
.wiki .namespace {
background: #eeeeee;
}
.site_report a {
border-left: 1px solid #666666;
border-right: 1px solid #666666;
}
.quotebody {
border-left: 2px solid #bbbbbb;
}
.mandatory_star {
color: #e51c23;
font-size: 120%;
}
.trackerplugindesc {
color: #212121;
}
.charCount {
color: #212121;
}
.imgbox {
border: 1px solid transparent;
background-color: #ffffff;
}
.ic_button {
border: 2px solid #dddddd;
}
.ic_active {
border: 2px solid #2196f3;
}
.ic_caption {
background: #2196f3;
color: #bbbbbb;
}
.<API key> {
color: #e51c23;
}
.wp-sign {
color: #ffffff;
background-color: #727272;
}
.wp-sign a,
.wp-sign a:visited {
color: #ffffff;
}
.wp-sign a:hover,
.wp-sign a:visited:hover {
color: #ffffff;
text-decoration: none;
}
.toc {
border-top: 1px dotted #bbbbbb;
border-bottom: 1px dotted #bbbbbb;
}
.diff td {
border: 1px solid #212121;
}
.diff div {
border-top: 1px solid #bbbbbb;
}
.diffadded {
background: #dff0d8;
color: #4caf50;
}
.diffdeleted {
background: #f9bdbb;
color: #e51c23;
}
.diffinldel {
background: #ffe0b2;
}
.diffbody {
background: #eeeeee;
color: #222222;
}
.diffchar {
color: #ea4a4f;
}
.diffadded .diffchar {
color: #6ec071;
}
.searchresults blockquote em.hlt1,
.searchresults blockquote em.hlt6,
.highlight_word_0 {
color: #ffffff;
background: #4caf50;
}
.searchresults blockquote em.hlt2,
.searchresults blockquote em.hlt7,
.highlight_word_1 {
color: #ffffff;
background: #9c27b0;
}
.searchresults blockquote em.hlt3,
.searchresults blockquote em.hlt8,
.highlight_word_2 {
color: #ffffff;
background: #ff9800;
}
.searchresults blockquote em.hlt4,
.searchresults blockquote em.hlt9,
.highlight_word_3 {
color: #ffffff;
background: #e51c23;
}
.searchresults blockquote em.hlt5,
.searchresults blockquote em.hlt10,
.highlight_word_4 {
color: #ffffff;
background: #e5581c;
}
/* Structures drill-down menu */
div.drillshow {
border: 1px solid #bbbbbb;
}
.tiki .<API key> .chosen-single {
height: 37px;
padding: 6px 6px;
font-size: 13px;
line-height: 1.846;
}
.<API key> .chosen-choices {
background-color: rgba(26, 26, 26, 0);
color: #666666;
border: 1px solid transparent;
}
.<API key> .chosen-single,
.<API key>.chosen-with-drop .chosen-single,
.chosen-container .chosen-drop,
.<API key> .chosen-choices .search-choice {
background-color: transparent;
color: #666666;
border: 1px solid transparent;
}
.<API key> .chosen-search input[type="text"] {
background-color: transparent;
border: 1px solid transparent;
}
.chosen-container .chosen-results li.highlighted {
background-color: #eeeeee;
color: #141414;
}
.tiki .chosen-container .active-result {
color: #666666;
}
.breadcrumb {
font-style: normal;
font-size: 90%;
display: block;
}
a.admbox.off {
border: 1px solid rgba(0, 0, 0, 0);
color: #999999;
}
a.admbox.off:hover,
a.admbox.off:focus,
a.admbox.off:active {
border: 1px solid rgba(0, 0, 0, 0);
color: #999999;
}
.tiki .ui-widget-content,
span.plugin-mouseover {
background: #ffffff;
color: #666666;
border: 1px solid transparent;
}
.tiki .ui-widget-header {
background: #ffffff;
color: #666666;
border: 1px solid transparent;
}
.tiki .ui-dialog-content {
background: #ffffff;
color: #666666;
}
.tiki .ui-dialog-content select,
.tiki .ui-dialog-content input,
.tiki .ui-dialog-content optgroup,
.tiki .ui-dialog-content textarea {
background: transparent;
color: #666666;
}
.tiki .ui-widget button {
background: #ffffff;
color: #444444;
}
.tiki .modal-content .ui-state-default {
color: #2196f3;
}
.tiki .modal-content .ui-state-hover:hover {
color: #0a6ebd;
}
.dropdown-menu {
color: #666666;
}
.tiki .col1 .table-responsive {
border: 1px solid #dddddd;
}
.codecaption {
display: inline-block;
color: #444444;
background: #f8f8f8;
border: 1px solid #dddddd;
border-bottom: none;
padding: 2px 9.5px;
font-size: 0.8em;
font-weight: bold;
}
code,
pre.codelisting {
color: #444444;
background: #f8f8f8;
border: 1px solid #dddddd;
border-radius: 1px;
}
.edit-menu {
position: absolute;
top: 6px;
right: 2px;
}
@media (min-width: 992px) {
.edit-menu {
display: none;
}
.navbar-default:hover .edit-menu {
display: block;
}
}
@media (max-width: 767px) {
.navbar-default .edit-menu {
top: 48px;
}
}
.adminoptionboxchild {
border-bottom: 1px solid #eeeeee;
}
.adminoptionboxchild legend {
font-size: 18px;
}
input[type="checkbox"].<API key> + label {
background-color: #bbbbbb;
}
input[type="checkbox"].<API key> + label:before {
color: #444444;
background-color: #ffffff;
border-color: transparent;
}
input[type="checkbox"].<API key>:checked + label:before {
color: #ffffff;
background-color: #2196f3;
border-color: transparent;
}
.tiki .<API key> .chosen-single,
.tiki .<API key>.chosen-with-drop .chosen-single,
.tiki .chosen-container .chosen-drop,
.tiki .<API key> .chosen-choices .search-choice {
background-color: #ffffff;
border: 1px solid transparent;
color: #666666;
}
.topbar {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.topbar .navbar {
box-shadow: none;
}
.cssmenu_horiz ul li a:hover,
.cssmenu_vert ul li a:hover {
color: #141414;
background-color: #eeeeee;
}
.cssmenu_horiz ul li.selected a,
.cssmenu_vert ul li.selected a {
text-decoration: none;
color: #ffffff;
background-color: #2196f3;
}
/* black */
/* white */
/* automatically choose the correct arrow/text color */
.tsFilterInput {
border: none;
background-color: #f7f7f7;
}
table.tablesorter {
/* style header */
}
table.tablesorter thead tr.<API key> th.<API key>:not(.sorter-false) {
background-image: url(data:image/gif;base64,<API key>///<API key>+<API key>==);
}
table.tablesorter thead tr.<API key> th.<API key> {
background-image: url(data:image/gif;base64,<API key>///<API key>);
}
table.tablesorter thead tr.<API key> th.<API key> {
background-image: url(data:image/gif;base64,<API key>///<API key>+gC+jP2ptn0WskLQA7);
}
table.tablesorter thead tr.<API key> input.tablesorter-filter {
border: none;
background-color: #f7f7f7;
}
table.tablesorter thead tr.<API key> input.dateFrom,
table.tablesorter thead tr.<API key> input.dateTo {
border: none;
background-color: #f7f7f7;
}
table.tablesorter thead tr.<API key>,
table.tablesorter thead tr.<API key> {
background-color: #ffffff;
}
.tiki .pvtUi {
color: #666666;
}
.tiki table.pvtTable {
font-size: 13px;
}
.tiki table.pvtTable tr th {
background-color: #9c27b0;
color: #ffffff;
border: 1px solid #dddddd;
font-size: 13px;
padding: 5px;
}
.tiki table.pvtTable tr td {
color: #666666;
background-color: transparent;
border-color: #dddddd;
}
.tiki .pvtTotal,
.tiki .pvtGrandTotal {
font-weight: bold;
}
.tiki .pvtVals {
text-align: center;
}
.tiki .pvtAggregator,
.tiki .pvtRenderer,
.tiki .pvtSearch,
.tiki .pvtAttrDropdown {
margin-bottom: 5px;
background: transparent;
color: #666666;
border: 1px solid transparent;
border-radius: 3px;
}
.tiki .pvtAxisContainer,
.tiki .pvtVals {
border-color: #dddddd;
background: #ffffff;
padding: 5px;
}
.tiki .pvtAxisContainer li.pvtPlaceholder {
padding: 3px 15px;
border-radius: 5px;
border: 1px dashed #dddddd;
}
.tiki .pvtAxisContainer li span.pvtAttr {
-<API key>: 100%;
padding: 2px 5px;
white-space: nowrap;
background: #ffffff;
border: 1px solid transparent;
border-radius: 3px;
color: #444444;
}
.tiki .pvtTriangle {
cursor: pointer;
color: grey;
}
.tiki .pvtHorizList li {
display: inline;
}
.tiki .pvtVertList {
vertical-align: top;
}
.tiki .<API key> {
font-style: italic;
}
.tiki .pvtFilterBox {
z-index: 100;
width: 280px;
border: 1px solid #dddddd;
background-color: #ffffff;
position: absolute;
padding: 20px;
text-align: center;
}
.tiki .pvtFilterBox h4 {
margin: 0;
}
.tiki .pvtFilterBox p {
margin: 1em auto;
}
.tiki .pvtFilterBox label {
font-weight: normal;
}
.tiki .pvtFilterBox input[type='checkbox'] {
margin-right: 5px;
}
.tiki .pvtCheckContainer {
text-align: left;
overflow: auto;
width: 100%;
max-height: 200px;
}
.tiki .pvtCheckContainer p {
margin: 5px;
}
.tiki .pvtRendererArea {
padding: 5px;
}
.tiki .pvtFilterBox button {
background: #ffffff;
border: 1px solid transparent;
border-radius: 3px;
color: #444444;
}
.tiki .pvtFilterBox button:hover {
background: #ffffff;
}
.tiki .pvtFilterBox button + button {
margin-left: 4px;
margin-bottom: 4px;
}
.tiki .c3 line,
.tiki .c3 path,
.tiki .c3 svg {
fill: none;
stroke: #666666;
}
.tiki select {
font-size: 13px;
}
.tiki .ui-state-default,
.tiki .ui-widget-content .ui-state-default,
.tiki .ui-widget-header .ui-state-default,
.tiki .ui-button,
.tiki html .ui-button.ui-state-disabled:hover,
.tiki html .ui-button.ui-state-disabled:active {
border: 1px solid transparent;
background: #ffffff;
font-weight: normal;
color: #444444;
font-size: 13px;
}
.tiki .ui-state-hover,
.tiki .ui-widget-content .ui-state-hover,
.tiki .ui-widget-header .ui-state-hover,
.tiki .ui-state-focus,
.tiki .ui-widget-content .ui-state-focus,
.tiki .ui-widget-header .ui-state-focus,
.tiki .ui-button:hover,
.tiki .ui-button:focus {
border: 1px solid transparent;
background: #ffffff;
font-weight: normal;
color: #444444;
}
.tiki .ui-widget-header a {
color: #2196f3;
}
.tiki #<API key>,
.tiki #conversejs {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #666666;
}
.tiki #<API key> a,
.tiki #conversejs a,
.tiki #<API key> a:visited,
.tiki #conversejs a:visited {
color: #2196f3;
}
.tiki #<API key> input[type=text],
.tiki #conversejs input[type=text],
.tiki #<API key> textarea,
.tiki #conversejs textarea,
.tiki #<API key> select,
.tiki #conversejs select {
background-color: transparent;
color: #666666;
border-color: transparent;
}
.tiki #<API key> form.pure-form input[type=text],
.tiki #conversejs form.pure-form input[type=text],
.tiki #<API key> form.pure-form textarea,
.tiki #conversejs form.pure-form textarea,
.tiki #<API key> form.pure-form select,
.tiki #conversejs form.pure-form select {
background-color: transparent;
color: #666666;
border-color: transparent;
}
.tiki #<API key> form.pure-form.converse-form,
.tiki #conversejs form.pure-form.converse-form {
background-color: inherit;
}
.tiki #<API key> form.pure-form.converse-form .form-help,
.tiki #conversejs form.pure-form.converse-form .form-help,
.tiki #<API key> form.pure-form.converse-form .form-help:hover,
.tiki #conversejs form.pure-form.converse-form .form-help:hover {
color: #666666;
}
.tiki #<API key> .button-primary,
.tiki #conversejs .button-primary {
color: #ffffff;
background-color: #2196f3;
border-color: transparent;
}
.tiki #<API key> .button-primary:focus,
.tiki #conversejs .button-primary:focus,
.tiki #<API key> .button-primary.focus,
.tiki #conversejs .button-primary.focus {
color: #ffffff;
background-color: #0c7cd5;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-primary:hover,
.tiki #conversejs .button-primary:hover {
color: #ffffff;
background-color: #0c7cd5;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-primary:active,
.tiki #conversejs .button-primary:active,
.tiki #<API key> .button-primary.active,
.tiki #conversejs .button-primary.active,
.open > .dropdown-toggle.tiki #<API key> .button-primary,
.open > .dropdown-toggle.tiki #conversejs .button-primary {
color: #ffffff;
background-color: #0c7cd5;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-primary:active:hover,
.tiki #conversejs .button-primary:active:hover,
.tiki #<API key> .button-primary.active:hover,
.tiki #conversejs .button-primary.active:hover,
.open > .dropdown-toggle.tiki #<API key> .button-primary:hover,
.open > .dropdown-toggle.tiki #conversejs .button-primary:hover,
.tiki #<API key> .button-primary:active:focus,
.tiki #conversejs .button-primary:active:focus,
.tiki #<API key> .button-primary.active:focus,
.tiki #conversejs .button-primary.active:focus,
.open > .dropdown-toggle.tiki #<API key> .button-primary:focus,
.open > .dropdown-toggle.tiki #conversejs .button-primary:focus,
.tiki #<API key> .button-primary:active.focus,
.tiki #conversejs .button-primary:active.focus,
.tiki #<API key> .button-primary.active.focus,
.tiki #conversejs .button-primary.active.focus,
.open > .dropdown-toggle.tiki #<API key> .button-primary.focus,
.open > .dropdown-toggle.tiki #conversejs .button-primary.focus {
color: #ffffff;
background-color: #0a68b4;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-primary:active,
.tiki #conversejs .button-primary:active,
.tiki #<API key> .button-primary.active,
.tiki #conversejs .button-primary.active,
.open > .dropdown-toggle.tiki #<API key> .button-primary,
.open > .dropdown-toggle.tiki #conversejs .button-primary {
background-image: none;
}
.tiki #<API key> .button-primary.disabled:hover,
.tiki #conversejs .button-primary.disabled:hover,
.tiki #<API key> .button-primary[disabled]:hover,
.tiki #conversejs .button-primary[disabled]:hover,
fieldset[disabled] .tiki #<API key> .button-primary:hover,
fieldset[disabled] .tiki #conversejs .button-primary:hover,
.tiki #<API key> .button-primary.disabled:focus,
.tiki #conversejs .button-primary.disabled:focus,
.tiki #<API key> .button-primary[disabled]:focus,
.tiki #conversejs .button-primary[disabled]:focus,
fieldset[disabled] .tiki #<API key> .button-primary:focus,
fieldset[disabled] .tiki #conversejs .button-primary:focus,
.tiki #<API key> .button-primary.disabled.focus,
.tiki #conversejs .button-primary.disabled.focus,
.tiki #<API key> .button-primary[disabled].focus,
.tiki #conversejs .button-primary[disabled].focus,
fieldset[disabled] .tiki #<API key> .button-primary.focus,
fieldset[disabled] .tiki #conversejs .button-primary.focus {
background-color: #2196f3;
border-color: transparent;
}
.tiki #<API key> .button-primary .badge,
.tiki #conversejs .button-primary .badge {
color: #2196f3;
background-color: #ffffff;
}
.tiki #<API key> .button-secondary,
.tiki #conversejs .button-secondary {
color: #ffffff;
background-color: #9c27b0;
border-color: transparent;
}
.tiki #<API key> .button-secondary:focus,
.tiki #conversejs .button-secondary:focus,
.tiki #<API key> .button-secondary.focus,
.tiki #conversejs .button-secondary.focus {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-secondary:hover,
.tiki #conversejs .button-secondary:hover {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-secondary:active,
.tiki #conversejs .button-secondary:active,
.tiki #<API key> .button-secondary.active,
.tiki #conversejs .button-secondary.active,
.open > .dropdown-toggle.tiki #<API key> .button-secondary,
.open > .dropdown-toggle.tiki #conversejs .button-secondary {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-secondary:active:hover,
.tiki #conversejs .button-secondary:active:hover,
.tiki #<API key> .button-secondary.active:hover,
.tiki #conversejs .button-secondary.active:hover,
.open > .dropdown-toggle.tiki #<API key> .button-secondary:hover,
.open > .dropdown-toggle.tiki #conversejs .button-secondary:hover,
.tiki #<API key> .button-secondary:active:focus,
.tiki #conversejs .button-secondary:active:focus,
.tiki #<API key> .button-secondary.active:focus,
.tiki #conversejs .button-secondary.active:focus,
.open > .dropdown-toggle.tiki #<API key> .button-secondary:focus,
.open > .dropdown-toggle.tiki #conversejs .button-secondary:focus,
.tiki #<API key> .button-secondary:active.focus,
.tiki #conversejs .button-secondary:active.focus,
.tiki #<API key> .button-secondary.active.focus,
.tiki #conversejs .button-secondary.active.focus,
.open > .dropdown-toggle.tiki #<API key> .button-secondary.focus,
.open > .dropdown-toggle.tiki #conversejs .button-secondary.focus {
color: #ffffff;
background-color: #5d1769;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> .button-secondary:active,
.tiki #conversejs .button-secondary:active,
.tiki #<API key> .button-secondary.active,
.tiki #conversejs .button-secondary.active,
.open > .dropdown-toggle.tiki #<API key> .button-secondary,
.open > .dropdown-toggle.tiki #conversejs .button-secondary {
background-image: none;
}
.tiki #<API key> .button-secondary.disabled:hover,
.tiki #conversejs .button-secondary.disabled:hover,
.tiki #<API key> .button-secondary[disabled]:hover,
.tiki #conversejs .button-secondary[disabled]:hover,
fieldset[disabled] .tiki #<API key> .button-secondary:hover,
fieldset[disabled] .tiki #conversejs .button-secondary:hover,
.tiki #<API key> .button-secondary.disabled:focus,
.tiki #conversejs .button-secondary.disabled:focus,
.tiki #<API key> .button-secondary[disabled]:focus,
.tiki #conversejs .button-secondary[disabled]:focus,
fieldset[disabled] .tiki #<API key> .button-secondary:focus,
fieldset[disabled] .tiki #conversejs .button-secondary:focus,
.tiki #<API key> .button-secondary.disabled.focus,
.tiki #conversejs .button-secondary.disabled.focus,
.tiki #<API key> .button-secondary[disabled].focus,
.tiki #conversejs .button-secondary[disabled].focus,
fieldset[disabled] .tiki #<API key> .button-secondary.focus,
fieldset[disabled] .tiki #conversejs .button-secondary.focus {
background-color: #9c27b0;
border-color: transparent;
}
.tiki #<API key> .button-secondary .badge,
.tiki #conversejs .button-secondary .badge {
color: #9c27b0;
background-color: #ffffff;
}
.tiki #<API key> .toggle-controlbox,
.tiki #conversejs .toggle-controlbox {
background-color: #2196f3;
padding: 8px 10px 0 10px;
}
.tiki #<API key> .toggle-controlbox span,
.tiki #conversejs .toggle-controlbox span {
color: #ffffff;
}
.tiki #<API key> #minimized-chats .chat-head-chatbox,
.tiki #conversejs #minimized-chats .chat-head-chatbox {
background-color: #2196f3;
}
.tiki #<API key> #minimized-chats .chat-head-chatbox .restore-chat,
.tiki #conversejs #minimized-chats .chat-head-chatbox .restore-chat,
.tiki #<API key> #minimized-chats .chat-head-chatbox .chatbox-btn,
.tiki #conversejs #minimized-chats .chat-head-chatbox .chatbox-btn {
color: #ffffff;
}
.tiki #<API key> #minimized-chats .chat-head-chatroom,
.tiki #conversejs #minimized-chats .chat-head-chatroom {
background-color: #9c27b0;
}
.tiki #<API key> #minimized-chats .chat-head-chatroom .restore-chat,
.tiki #conversejs #minimized-chats .chat-head-chatroom .restore-chat,
.tiki #<API key> #minimized-chats .chat-head-chatroom .chatbox-btn,
.tiki #conversejs #minimized-chats .chat-head-chatroom .chatbox-btn {
color: #ffffff;
}
.tiki #<API key> #controlbox .box-flyout,
.tiki #conversejs #controlbox .box-flyout,
.tiki #<API key> .chatbox .box-flyout,
.tiki #conversejs .chatbox .box-flyout {
background-color: #ffffff;
}
.tiki #<API key> #controlbox .controlbox-head,
.tiki #conversejs #controlbox .controlbox-head,
.tiki #<API key> #controlbox .controlbox-panes,
.tiki #conversejs #controlbox .controlbox-panes,
.tiki #<API key> #controlbox .controlbox-pane,
.tiki #conversejs #controlbox .controlbox-pane {
background-color: inherit;
}
.tiki #<API key> #controlbox .controlbox-head,
.tiki #conversejs #controlbox .controlbox-head {
border-bottom: 1px solid transparent;
}
.tiki #<API key> #controlbox .controlbox-head .chatbox-btn,
.tiki #conversejs #controlbox .controlbox-head .chatbox-btn {
color: #666666;
}
.tiki #<API key> #controlbox #controlbox-tabs,
.tiki #conversejs #controlbox #controlbox-tabs {
border-bottom: 1px solid transparent;
}
.tiki #<API key> #controlbox #controlbox-tabs li a,
.tiki #conversejs #controlbox #controlbox-tabs li a {
margin-left: 2px;
height: 48px;
line-height: 48px;
color: #2196f3;
border: 1px solid transparent;
box-shadow: none;
background-color: transparent;
}
.tiki #<API key> #controlbox #controlbox-tabs li a:hover,
.tiki #conversejs #controlbox #controlbox-tabs li a:hover {
color: #2196f3;
}
.tiki #<API key> #controlbox #controlbox-tabs li a.current,
.tiki #conversejs #controlbox #controlbox-tabs li a.current,
.tiki #<API key> #controlbox #controlbox-tabs li a.current:hover,
.tiki #conversejs #controlbox #controlbox-tabs li a.current:hover,
.tiki #<API key> #controlbox #controlbox-tabs li a.current:focus,
.tiki #conversejs #controlbox #controlbox-tabs li a.current:focus {
color: #666666;
background-color: transparent;
border: 1px solid transparent;
border-bottom-color: transparent;
height: 48px;
}
.tiki #<API key> #controlbox #chatrooms dl.rooms-list dt,
.tiki #conversejs #controlbox #chatrooms dl.rooms-list dt {
color: #666666;
text-shadow: none;
}
.tiki #<API key> #controlbox #chatrooms dl.rooms-list dd.available-chatroom:hover,
.tiki #conversejs #controlbox #chatrooms dl.rooms-list dd.available-chatroom:hover {
background-color: inherit;
}
.tiki #<API key> #controlbox #chatrooms dl.rooms-list dd.available-chatroom:hover a,
.tiki #conversejs #controlbox #chatrooms dl.rooms-list dd.available-chatroom:hover a {
color: #666666;
}
.tiki #<API key> #controlbox #chatrooms dl.rooms-list dd.available-chatroom a.room-info,
.tiki #conversejs #controlbox #chatrooms dl.rooms-list dd.available-chatroom a.room-info {
margin-top: 2px;
}
.tiki #<API key> #controlbox #<API key>,
.tiki #conversejs #controlbox #<API key>,
.tiki #<API key> #controlbox .fancy-dropdown,
.tiki #conversejs #controlbox .fancy-dropdown {
color: #ffffff;
background-color: #9c27b0;
border-color: transparent;
}
.tiki #<API key> #controlbox #<API key>:focus,
.tiki #conversejs #controlbox #<API key>:focus,
.tiki #<API key> #controlbox .fancy-dropdown:focus,
.tiki #conversejs #controlbox .fancy-dropdown:focus,
.tiki #<API key> #controlbox #<API key>.focus,
.tiki #conversejs #controlbox #<API key>.focus,
.tiki #<API key> #controlbox .fancy-dropdown.focus,
.tiki #conversejs #controlbox .fancy-dropdown.focus {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> #controlbox #<API key>:hover,
.tiki #conversejs #controlbox #<API key>:hover,
.tiki #<API key> #controlbox .fancy-dropdown:hover,
.tiki #conversejs #controlbox .fancy-dropdown:hover {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> #controlbox #<API key>:active,
.tiki #conversejs #controlbox #<API key>:active,
.tiki #<API key> #controlbox .fancy-dropdown:active,
.tiki #conversejs #controlbox .fancy-dropdown:active,
.tiki #<API key> #controlbox #<API key>.active,
.tiki #conversejs #controlbox #<API key>.active,
.tiki #<API key> #controlbox .fancy-dropdown.active,
.tiki #conversejs #controlbox .fancy-dropdown.active,
.open > .dropdown-toggle.tiki #<API key> #controlbox #<API key>,
.open > .dropdown-toggle.tiki #conversejs #controlbox #<API key>,
.open > .dropdown-toggle.tiki #<API key> #controlbox .fancy-dropdown,
.open > .dropdown-toggle.tiki #conversejs #controlbox .fancy-dropdown {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> #controlbox #<API key>:active:hover,
.tiki #conversejs #controlbox #<API key>:active:hover,
.tiki #<API key> #controlbox .fancy-dropdown:active:hover,
.tiki #conversejs #controlbox .fancy-dropdown:active:hover,
.tiki #<API key> #controlbox #<API key>.active:hover,
.tiki #conversejs #controlbox #<API key>.active:hover,
.tiki #<API key> #controlbox .fancy-dropdown.active:hover,
.tiki #conversejs #controlbox .fancy-dropdown.active:hover,
.open > .dropdown-toggle.tiki #<API key> #controlbox #<API key>:hover,
.open > .dropdown-toggle.tiki #conversejs #controlbox #<API key>:hover,
.open > .dropdown-toggle.tiki #<API key> #controlbox .fancy-dropdown:hover,
.open > .dropdown-toggle.tiki #conversejs #controlbox .fancy-dropdown:hover,
.tiki #<API key> #controlbox #<API key>:active:focus,
.tiki #conversejs #controlbox #<API key>:active:focus,
.tiki #<API key> #controlbox .fancy-dropdown:active:focus,
.tiki #conversejs #controlbox .fancy-dropdown:active:focus,
.tiki #<API key> #controlbox #<API key>.active:focus,
.tiki #conversejs #controlbox #<API key>.active:focus,
.tiki #<API key> #controlbox .fancy-dropdown.active:focus,
.tiki #conversejs #controlbox .fancy-dropdown.active:focus,
.open > .dropdown-toggle.tiki #<API key> #controlbox #<API key>:focus,
.open > .dropdown-toggle.tiki #conversejs #controlbox #<API key>:focus,
.open > .dropdown-toggle.tiki #<API key> #controlbox .fancy-dropdown:focus,
.open > .dropdown-toggle.tiki #conversejs #controlbox .fancy-dropdown:focus,
.tiki #<API key> #controlbox #<API key>:active.focus,
.tiki #conversejs #controlbox #<API key>:active.focus,
.tiki #<API key> #controlbox .fancy-dropdown:active.focus,
.tiki #conversejs #controlbox .fancy-dropdown:active.focus,
.tiki #<API key> #controlbox #<API key>.active.focus,
.tiki #conversejs #controlbox #<API key>.active.focus,
.tiki #<API key> #controlbox .fancy-dropdown.active.focus,
.tiki #conversejs #controlbox .fancy-dropdown.active.focus,
.open > .dropdown-toggle.tiki #<API key> #controlbox #<API key>.focus,
.open > .dropdown-toggle.tiki #conversejs #controlbox #<API key>.focus,
.open > .dropdown-toggle.tiki #<API key> #controlbox .fancy-dropdown.focus,
.open > .dropdown-toggle.tiki #conversejs #controlbox .fancy-dropdown.focus {
color: #ffffff;
background-color: #5d1769;
border-color: rgba(0, 0, 0, 0);
}
.tiki #<API key> #controlbox #<API key>:active,
.tiki #conversejs #controlbox #<API key>:active,
.tiki #<API key> #controlbox .fancy-dropdown:active,
.tiki #conversejs #controlbox .fancy-dropdown:active,
.tiki #<API key> #controlbox #<API key>.active,
.tiki #conversejs #controlbox #<API key>.active,
.tiki #<API key> #controlbox .fancy-dropdown.active,
.tiki #conversejs #controlbox .fancy-dropdown.active,
.open > .dropdown-toggle.tiki #<API key> #controlbox #<API key>,
.open > .dropdown-toggle.tiki #conversejs #controlbox #<API key>,
.open > .dropdown-toggle.tiki #<API key> #controlbox .fancy-dropdown,
.open > .dropdown-toggle.tiki #conversejs #controlbox .fancy-dropdown {
background-image: none;
}
.tiki #<API key> #controlbox #<API key>.disabled:hover,
.tiki #conversejs #controlbox #<API key>.disabled:hover,
.tiki #<API key> #controlbox .fancy-dropdown.disabled:hover,
.tiki #conversejs #controlbox .fancy-dropdown.disabled:hover,
.tiki #<API key> #controlbox #<API key>[disabled]:hover,
.tiki #conversejs #controlbox #<API key>[disabled]:hover,
.tiki #<API key> #controlbox .fancy-dropdown[disabled]:hover,
.tiki #conversejs #controlbox .fancy-dropdown[disabled]:hover,
fieldset[disabled] .tiki #<API key> #controlbox #<API key>:hover,
fieldset[disabled] .tiki #conversejs #controlbox #<API key>:hover,
fieldset[disabled] .tiki #<API key> #controlbox .fancy-dropdown:hover,
fieldset[disabled] .tiki #conversejs #controlbox .fancy-dropdown:hover,
.tiki #<API key> #controlbox #<API key>.disabled:focus,
.tiki #conversejs #controlbox #<API key>.disabled:focus,
.tiki #<API key> #controlbox .fancy-dropdown.disabled:focus,
.tiki #conversejs #controlbox .fancy-dropdown.disabled:focus,
.tiki #<API key> #controlbox #<API key>[disabled]:focus,
.tiki #conversejs #controlbox #<API key>[disabled]:focus,
.tiki #<API key> #controlbox .fancy-dropdown[disabled]:focus,
.tiki #conversejs #controlbox .fancy-dropdown[disabled]:focus,
fieldset[disabled] .tiki #<API key> #controlbox #<API key>:focus,
fieldset[disabled] .tiki #conversejs #controlbox #<API key>:focus,
fieldset[disabled] .tiki #<API key> #controlbox .fancy-dropdown:focus,
fieldset[disabled] .tiki #conversejs #controlbox .fancy-dropdown:focus,
.tiki #<API key> #controlbox #<API key>.disabled.focus,
.tiki #conversejs #controlbox #<API key>.disabled.focus,
.tiki #<API key> #controlbox .fancy-dropdown.disabled.focus,
.tiki #conversejs #controlbox .fancy-dropdown.disabled.focus,
.tiki #<API key> #controlbox #<API key>[disabled].focus,
.tiki #conversejs #controlbox #<API key>[disabled].focus,
.tiki #<API key> #controlbox .fancy-dropdown[disabled].focus,
.tiki #conversejs #controlbox .fancy-dropdown[disabled].focus,
fieldset[disabled] .tiki #<API key> #controlbox #<API key>.focus,
fieldset[disabled] .tiki #conversejs #controlbox #<API key>.focus,
fieldset[disabled] .tiki #<API key> #controlbox .fancy-dropdown.focus,
fieldset[disabled] .tiki #conversejs #controlbox .fancy-dropdown.focus {
background-color: #9c27b0;
border-color: transparent;
}
.tiki #<API key> #controlbox #<API key> .badge,
.tiki #conversejs #controlbox #<API key> .badge,
.tiki #<API key> #controlbox .fancy-dropdown .badge,
.tiki #conversejs #controlbox .fancy-dropdown .badge {
color: #9c27b0;
background-color: #ffffff;
}
.tiki #<API key> #controlbox #<API key> .choose-xmpp-status,
.tiki #conversejs #controlbox #<API key> .choose-xmpp-status,
.tiki #<API key> #controlbox .fancy-dropdown .choose-xmpp-status,
.tiki #conversejs #controlbox .fancy-dropdown .choose-xmpp-status,
.tiki #<API key> #controlbox #<API key> .<API key>,
.tiki #conversejs #controlbox #<API key> .<API key>,
.tiki #<API key> #controlbox .fancy-dropdown .<API key>,
.tiki #conversejs #controlbox .fancy-dropdown .<API key>,
.tiki #<API key> #controlbox #<API key> a.<API key>,
.tiki #conversejs #controlbox #<API key> a.<API key>,
.tiki #<API key> #controlbox .fancy-dropdown a.<API key>,
.tiki #conversejs #controlbox .fancy-dropdown a.<API key> {
color: inherit;
text-shadow: none;
}
.tiki #<API key> #controlbox .xmpp-status-menu li a.online,
.tiki #conversejs #controlbox .xmpp-status-menu li a.online,
.tiki #<API key> #controlbox .xmpp-status-menu li a.dnd,
.tiki #conversejs #controlbox .xmpp-status-menu li a.dnd,
.tiki #<API key> #controlbox .xmpp-status-menu li a.away,
.tiki #conversejs #controlbox .xmpp-status-menu li a.away {
color: #1f7e9a;
}
.tiki #<API key> #controlbox #converse-roster .roster-filter-form .filter-type,
.tiki #conversejs #controlbox #converse-roster .roster-filter-form .filter-type {
border-color: transparent;
}
.tiki #<API key> #controlbox #converse-roster .roster-filter-form .roster-filter,
.tiki #conversejs #controlbox #converse-roster .roster-filter-form .roster-filter {
background-color: transparent;
color: #666666;
border-color: transparent;
}
.tiki #<API key> #controlbox #converse-roster .roster-contacts dt,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dt {
color: #666666;
}
.tiki #<API key> #controlbox #converse-roster .roster-contacts dt a,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dt a {
color: inherit;
}
.tiki #<API key> #controlbox #converse-roster .roster-contacts dt:hover,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dt:hover {
background-color: transparent;
}
.tiki #<API key> #controlbox #converse-roster .roster-contacts dd,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dd {
color: #2196f3;
background-color: transparent;
}
.tiki #<API key> #controlbox #converse-roster .roster-contacts dd a,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dd a,
.tiki #<API key> #controlbox #converse-roster .roster-contacts dd span,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dd span {
color: inherit;
text-shadow: none;
}
.tiki #<API key> #controlbox #converse-roster .roster-contacts dd a:hover,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dd a:hover,
.tiki #<API key> #controlbox #converse-roster .roster-contacts dd span:hover,
.tiki #conversejs #controlbox #converse-roster .roster-contacts dd span:hover {
color: #666666;
}
.tiki #<API key> #controlbox #converse-register,
.tiki #conversejs #controlbox #converse-register {
background-color: transparent;
}
.tiki #<API key> #controlbox #converse-register .form-help .url,
.tiki #conversejs #controlbox #converse-register .form-help .url {
color: #2196f3;
}
.tiki #<API key> #controlbox #converse-register .form-help .url:hover,
.tiki #conversejs #controlbox #converse-register .form-help .url:hover {
color: #0a6ebd;
}
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar {
background-color: #2196f3;
}
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar ul,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar ul {
background-color: #2196f3;
}
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar > li,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar > li {
margin: -2px;
}
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar a,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar a,
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar .toggle-smiley,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-smiley,
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar .unencrypted,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .unencrypted {
color: #ffffff;
}
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar .toggle-smiley ul li:hover,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-smiley ul li:hover {
background-color: #ffffff;
}
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar .toggle-smiley ul li:hover a,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .toggle-smiley ul li:hover a {
color: #2196f3;
}
.tiki #<API key> .chatbox form.sendXMPPMessage .chat-toolbar .chat-toolbar-text,
.tiki #conversejs .chatbox form.sendXMPPMessage .chat-toolbar .chat-toolbar-text {
text-shadow: none;
}
.tiki #<API key> .chatbox .dropdown,
.tiki #conversejs .chatbox .dropdown {
background-color: transparent;
}
.tiki #<API key> .chatbox .chat-head,
.tiki #conversejs .chatbox .chat-head {
border-bottom: 1px solid #666666;
}
.tiki #<API key> .chatbox .chat-head.chat-head-chatbox,
.tiki #conversejs .chatbox .chat-head.chat-head-chatbox {
background-color: #2196f3;
}
.tiki #<API key> .chatbox .chat-head .chat-title,
.tiki #conversejs .chatbox .chat-head .chat-title,
.tiki #<API key> .chatbox .chat-head .<API key>,
.tiki #conversejs .chatbox .chat-head .<API key>,
.tiki #<API key> .chatbox .chat-head .<API key>,
.tiki #conversejs .chatbox .chat-head .<API key> {
color: #ffffff;
}
.tiki #<API key> .chatbox .chat-body,
.tiki #conversejs .chatbox .chat-body {
background-color: inherit;
}
.tiki #<API key> .chatbox .chat-body .chat-content,
.tiki #conversejs .chatbox .chat-body .chat-content {
height: calc(100% - 95px);
color: #666666;
background-color: inherit;
}
.tiki #<API key> .chatbox .chat-body .chat-info,
.tiki #conversejs .chatbox .chat-body .chat-info {
color: #2196f3;
}
.tiki #<API key> .chatbox .chat-body .chat-message span.chat-msg-me,
.tiki #conversejs .chatbox .chat-body .chat-message span.chat-msg-me {
color: #9c27b0;
}
.tiki #<API key> .chatbox .chat-body .chat-message span.chat-msg-them,
.tiki #conversejs .chatbox .chat-body .chat-message span.chat-msg-them {
color: #2196f3;
}
.tiki #<API key> .chatroom .box-flyout .chat-head-chatroom,
.tiki #conversejs .chatroom .box-flyout .chat-head-chatroom {
background-color: #9c27b0;
}
.tiki #<API key> .chatroom .box-flyout .chat-head-chatroom .<API key>,
.tiki #conversejs .chatroom .box-flyout .chat-head-chatroom .<API key>,
.tiki #<API key> .chatroom .box-flyout .chat-head-chatroom .<API key>,
.tiki #conversejs .chatroom .box-flyout .chat-head-chatroom .<API key>,
.tiki #<API key> .chatroom .box-flyout .chat-head-chatroom .toggle-bookmark,
.tiki #conversejs .chatroom .box-flyout .chat-head-chatroom .toggle-bookmark,
.tiki #<API key> .chatroom .box-flyout .chat-head-chatroom .chat-title,
.tiki #conversejs .chatroom .box-flyout .chat-head-chatroom .chat-title,
.tiki #<API key> .chatroom .box-flyout .chat-head-chatroom .<API key>,
.tiki #conversejs .chatroom .box-flyout .chat-head-chatroom .<API key>,
.tiki #<API key> .chatroom .box-flyout .chat-head-chatroom .<API key>,
.tiki #conversejs .chatroom .box-flyout .chat-head-chatroom .<API key> {
color: #ffffff;
}
.tiki #<API key> .chatroom .box-flyout .chatroom-body p,
.tiki #conversejs .chatroom .box-flyout .chatroom-body p {
color: #666666;
}
.tiki #<API key> .chatroom .box-flyout .chatroom-body .occupants,
.tiki #conversejs .chatroom .box-flyout .chatroom-body .occupants {
background-color: inherit;
border-left-color: #666666;
}
.tiki #<API key> .chatroom .box-flyout .chatroom-body .occupants ul li.moderator,
.tiki #conversejs .chatroom .box-flyout .chatroom-body .occupants ul li.moderator {
color: #2196f3;
}
.tiki #<API key> .chatroom .box-flyout .chatroom-body .occupants ul li.occupant .occupant-status,
.tiki #conversejs .chatroom .box-flyout .chatroom-body .occupants ul li.occupant .occupant-status {
margin-left: 1px;
box-shadow: 0px 0px 1px 1px #444;
}
.tiki #<API key> .chatroom .box-flyout .chatroom-body .<API key>,
.tiki #conversejs .chatroom .box-flyout .chatroom-body .<API key> {
background-color: inherit;
color: #666666;
}
.tiki #<API key> .chatroom .box-flyout .chatroom-body .room-invite .invited-contact,
.tiki #conversejs .chatroom .box-flyout .chatroom-body .room-invite .invited-contact {
border-color: transparent;
}
|
package org.meteornetwork.meteor.common.abstraction.index;
import org.meteornetwork.meteor.common.xml.indexresponse.DataProvider;
import org.meteornetwork.meteor.common.xml.indexresponse.DataProviders;
import org.meteornetwork.meteor.common.xml.indexresponse.IndexProviderData;
import org.meteornetwork.meteor.common.xml.indexresponse.<API key>;
import org.meteornetwork.meteor.common.xml.indexresponse.Message;
import org.meteornetwork.meteor.common.xml.indexresponse.MeteorIndexResponse;
import org.meteornetwork.meteor.common.xml.indexresponse.types.RsMsgLevelEnum;
public class <API key> {
private final MeteorIndexResponse response;
public <API key>() {
response = new MeteorIndexResponse();
response.setDataProviders(new DataProviders());
}
/**
* Add index provider information to the response.
*
* @param id
* the ID of this index provider
* @param name
* the name of this index provider
* @param url
* the contact URL of this index provider
*/
public void <API key>(String id, String name, String url) {
IndexProviderData data = new IndexProviderData();
data.setEntityID(id);
data.setEntityName(name);
data.setEntityURL(url);
response.<API key>(data);
}
/**
* Add a message to this response
*
* @param messageText
* the text of the message
* @param level
* the severity level of the message
*/
public void addMessage(String messageText, RsMsgLevelEnum level) {
Message message = new Message();
message.setRsMsg(messageText);
message.setRsMsgLevel(level.name());
if (response.<API key>() == null) {
response.<API key>(new <API key>());
}
response.<API key>().addMessage(message);
}
/**
* Add one or more Data Provider objects to the response
*
* @param dataProviders
* the data providers to add to the response
*/
public void addDataProviders(DataProvider... dataProviders) {
for (DataProvider dataProvider : dataProviders) {
response.getDataProviders().addDataProvider(dataProvider);
}
}
/**
* Add Data Provider objects to the response
*
* @param dataProviders
* an iterable collection of Data Providers to add to the
* response
*/
public void addDataProviders(Iterable<DataProvider> dataProviders) {
for (DataProvider dataProvider : dataProviders) {
response.getDataProviders().addDataProvider(dataProvider);
}
}
/**
* Access a mutable version of the response.
*
* @return A mutable version of the internal MeteorIndexResponse object
*/
public MeteorIndexResponse getResponse() {
return response;
}
}
|
// The libMesh Finite Element Library.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should have received a copy of the GNU Lesser General Public
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// Local includes
#include "libmesh/side.h"
#include "libmesh/edge_edge3.h"
#include "libmesh/face_quad9.h"
#include "libmesh/enum_io_package.h"
#include "libmesh/enum_order.h"
namespace libMesh
{
// Quad9 class static member initializations
const int Quad9::num_nodes;
const int Quad9::num_sides;
const int Quad9::num_children;
const int Quad9::nodes_per_side;
const unsigned int Quad9::side_nodes_map[Quad9::num_sides][Quad9::nodes_per_side] =
{
{0, 1, 4}, // Side 0
{1, 2, 5}, // Side 1
{2, 3, 6}, // Side 2
{3, 0, 7} // Side 3
};
#ifdef LIBMESH_ENABLE_AMR
const float Quad9::_embedding_matrix[Quad9::num_children][Quad9::num_nodes][Quad9::num_nodes] =
{
// embedding matrix for child 0
{
// 0 1 2 3 4 5 6 7 8
{ 1.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000 },
{ 0.375000, -0.125000, 0.00000, 0.00000, 0.750000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.375000, 0.00000, -0.125000, 0.00000, 0.750000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, -0.125000, 0.00000, 0.375000, 0.750000 },
{ 0.375000, 0.00000, 0.00000, -0.125000, 0.00000, 0.00000, 0.00000, 0.750000, 0.00000 },
{ 0.140625, -0.0468750, 0.0156250, -0.0468750, 0.281250, -0.0937500, -0.0937500, 0.281250, 0.562500 }
},
// embedding matrix for child 1
{
// 0 1 2 3 4 5 6 7 8
{ 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 1.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000 },
{ -0.125000, 0.375000, 0.00000, 0.00000, 0.750000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.375000, -0.125000, 0.00000, 0.00000, 0.750000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.375000, 0.00000, -0.125000, 0.750000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.375000, 0.00000, -0.125000, 0.00000, 0.750000 },
{ -0.0468750, 0.140625, -0.0468750, 0.0156250, 0.281250, 0.281250, -0.0937500, -0.0937500, 0.562500 }
},
// embedding matrix for child 2
{
// 0 1 2 3 4 5 6 7 8
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 1.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, -0.125000, 0.00000, 0.375000, 0.750000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, -0.125000, 0.00000, 0.375000, 0.00000, 0.750000 },
{ 0.00000, 0.00000, -0.125000, 0.375000, 0.00000, 0.00000, 0.750000, 0.00000, 0.00000 },
{ -0.125000, 0.00000, 0.00000, 0.375000, 0.00000, 0.00000, 0.00000, 0.750000, 0.00000 },
{ -0.0468750, 0.0156250, -0.0468750, 0.140625, -0.0937500, -0.0937500, 0.281250, 0.281250, 0.562500 }
},
// embedding matrix for child 3
{
// 0 1 2 3 4 5 6 7 8
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 1.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 1.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.375000, 0.00000, -0.125000, 0.750000 },
{ 0.00000, -0.125000, 0.375000, 0.00000, 0.00000, 0.750000, 0.00000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.375000, -0.125000, 0.00000, 0.00000, 0.750000, 0.00000, 0.00000 },
{ 0.00000, 0.00000, 0.00000, 0.00000, -0.125000, 0.00000, 0.375000, 0.00000, 0.750000 },
{ 0.0156250, -0.0468750, 0.140625, -0.0468750, -0.0937500, 0.281250, 0.281250, -0.0937500, 0.562500 }
}
};
#endif
// Quad9 class member functions
bool Quad9::is_vertex(const unsigned int i) const
{
if (i < 4)
return true;
return false;
}
bool Quad9::is_edge(const unsigned int i) const
{
if (i < 4)
return false;
if (i > 7)
return false;
return true;
}
bool Quad9::is_face(const unsigned int i) const
{
if (i > 7)
return true;
return false;
}
bool Quad9::is_node_on_side(const unsigned int n,
const unsigned int s) const
{
libmesh_assert_less (s, n_sides());
return std::find(std::begin(side_nodes_map[s]),
std::end(side_nodes_map[s]),
n) != std::end(side_nodes_map[s]);
}
std::vector<unsigned>
Quad9::nodes_on_side(const unsigned int s) const
{
libmesh_assert_less(s, n_sides());
return {std::begin(side_nodes_map[s]), std::end(side_nodes_map[s])};
}
bool Quad9::has_affine_map() const
{
// make sure corners form a parallelogram
Point v = this->point(1) - this->point(0);
if (!v.<API key>(this->point(2) - this->point(3)))
return false;
// make sure "horizontal" sides are straight
v /= 2;
if (!v.<API key>(this->point(4) - this->point(0)) ||
!v.<API key>(this->point(6) - this->point(3)))
return false;
// make sure "vertical" sides are straight
// and the center node is centered
v = (this->point(3) - this->point(0))/2;
if (!v.<API key>(this->point(7) - this->point(0)) ||
!v.<API key>(this->point(5) - this->point(1)) ||
!v.<API key>(this->point(8) - this->point(4)))
return false;
return true;
}
Order Quad9::default_order() const
{
return SECOND;
}
dof_id_type Quad9::key (const unsigned int s) const
{
libmesh_assert_less (s, this->n_sides());
switch (s)
{
case 0:
return
this->compute_key (this->node_id(4));
case 1:
return
this->compute_key (this->node_id(5));
case 2:
return
this->compute_key (this->node_id(6));
case 3:
return
this->compute_key (this->node_id(7));
default:
libmesh_error_msg("Invalid side s = " << s);
}
}
dof_id_type Quad9::key () const
{
return this->compute_key(this->node_id(8));
}
unsigned int Quad9::which_node_am_i(unsigned int side,
unsigned int side_node) const
{
libmesh_assert_less (side, this->n_sides());
libmesh_assert_less (side_node, Quad9::nodes_per_side);
return Quad9::side_nodes_map[side][side_node];
}
std::unique_ptr<Elem> Quad9::build_side_ptr (const unsigned int i,
bool proxy)
{
libmesh_assert_less (i, this->n_sides());
if (proxy)
return libmesh_make_unique<Side<Edge3,Quad9>>(this,i);
else
{
std::unique_ptr<Elem> edge = libmesh_make_unique<Edge3>();
edge->subdomain_id() = this->subdomain_id();
// Set the nodes
for (unsigned n=0; n<edge->n_nodes(); ++n)
edge->set_node(n) = this->node_ptr(Quad9::side_nodes_map[i][n]);
return edge;
}
}
void Quad9::connectivity(const unsigned int sf,
const IOPackage iop,
std::vector<dof_id_type> & conn) const
{
libmesh_assert_less (sf, this->n_sub_elem());
<API key> (iop, INVALID_IO_PACKAGE);
conn.resize(4);
switch (iop)
{
case TECPLOT:
{
switch(sf)
{
case 0:
// linear sub-quad 0
conn[0] = this->node_id(0)+1;
conn[1] = this->node_id(4)+1;
conn[2] = this->node_id(8)+1;
conn[3] = this->node_id(7)+1;
return;
case 1:
// linear sub-quad 1
conn[0] = this->node_id(4)+1;
conn[1] = this->node_id(1)+1;
conn[2] = this->node_id(5)+1;
conn[3] = this->node_id(8)+1;
return;
case 2:
// linear sub-quad 2
conn[0] = this->node_id(7)+1;
conn[1] = this->node_id(8)+1;
conn[2] = this->node_id(6)+1;
conn[3] = this->node_id(3)+1;
return;
case 3:
// linear sub-quad 3
conn[0] = this->node_id(8)+1;
conn[1] = this->node_id(5)+1;
conn[2] = this->node_id(2)+1;
conn[3] = this->node_id(6)+1;
return;
default:
libmesh_error_msg("Invalid sf = " << sf);
}
}
case VTK:
{
conn.resize(9);
conn[0] = this->node_id(0);
conn[1] = this->node_id(1);
conn[2] = this->node_id(2);
conn[3] = this->node_id(3);
conn[4] = this->node_id(4);
conn[5] = this->node_id(5);
conn[6] = this->node_id(6);
conn[7] = this->node_id(7);
conn[8] = this->node_id(8);
return;
/*
switch(sf)
{
case 0:
// linear sub-quad 0
conn[0] = this->node_id(0);
conn[1] = this->node_id(4);
conn[2] = this->node_id(8);
conn[3] = this->node_id(7);
return;
case 1:
// linear sub-quad 1
conn[0] = this->node_id(4);
conn[1] = this->node_id(1);
conn[2] = this->node_id(5);
conn[3] = this->node_id(8);
return;
case 2:
// linear sub-quad 2
conn[0] = this->node_id(7);
conn[1] = this->node_id(8);
conn[2] = this->node_id(6);
conn[3] = this->node_id(3);
return;
case 3:
// linear sub-quad 3
conn[0] = this->node_id(8);
conn[1] = this->node_id(5);
conn[2] = this->node_id(2);
conn[3] = this->node_id(6);
return;
default:
libmesh_error_msg("Invalid sf = " << sf);
}*/
}
default:
libmesh_error_msg("Unsupported IO package " << iop);
}
}
BoundingBox Quad9::loose_bounding_box () const
{
// This might have curved edges, or might be a curved surface in
// 3-space, in which case the full bounding box can be larger than
// the bounding box of just the nodes.
// FIXME - I haven't yet proven the formula below to be correct for
// biquadratics - RHS
Point pmin, pmax;
for (unsigned d=0; d<LIBMESH_DIM; ++d)
{
const Real center = this->point(8)(d);
Real hd = std::abs(center - this->point(0)(d));
for (unsigned int p=0; p != 8; ++p)
hd = std::max(hd, std::abs(center - this->point(p)(d)));
pmin(d) = center - hd;
pmax(d) = center + hd;
}
return BoundingBox(pmin, pmax);
}
Real Quad9::volume () const
{
// Make copies of our points. It makes the subsequent calculations a bit
// shorter and avoids dereferencing the same pointer multiple times.
Point
x0 = point(0), x1 = point(1), x2 = point(2),
x3 = point(3), x4 = point(4), x5 = point(5),
x6 = point(6), x7 = point(7), x8 = point(8);
// Construct constant data vectors.
// \vec{x}_{\xi} = \vec{a1}*xi*eta^2 + \vec{b1}*eta**2 + \vec{c1}*xi*eta + \vec{d1}*xi + \vec{e1}*eta + \vec{f1}
// \vec{x}_{\eta} = \vec{a2}*xi^2*eta + \vec{b2}*xi**2 + \vec{c2}*xi*eta + \vec{d2}*xi + \vec{e2}*eta + \vec{f2}
// This is copy-pasted directly from the output of a Python script.
Point
a1 = x0/2 + x1/2 + x2/2 + x3/2 - x4 - x5 - x6 - x7 + 2*x8,
b1 = -x0/4 + x1/4 + x2/4 - x3/4 - x5/2 + x7/2,
c1 = -x0/2 - x1/2 + x2/2 + x3/2 + x4 - x6,
d1 = x5 + x7 - 2*x8,
e1 = x0/4 - x1/4 + x2/4 - x3/4,
f1 = x5/2 - x7/2,
a2 = a1,
b2 = -x0/4 - x1/4 + x2/4 + x3/4 + x4/2 - x6/2,
c2 = -x0/2 + x1/2 + x2/2 - x3/2 - x5 + x7,
d2 = x0/4 - x1/4 + x2/4 - x3/4,
e2 = x4 + x6 - 2*x8,
f2 = -x4/2 + x6/2;
// 3x3 quadrature, exact for bi-quintics
const unsigned int N = 3;
const Real q[N] = {-std::sqrt(15)/5., 0., std::sqrt(15)/5.};
const Real w[N] = {5./9, 8./9, 5./9};
Real vol=0.;
for (unsigned int i=0; i<N; ++i)
for (unsigned int j=0; j<N; ++j)
vol += w[i] * w[j] *
cross_norm(q[i]*q[j]*q[j]*a1 + q[j]*q[j]*b1 + q[j]*q[i]*c1 + q[i]*d1 + q[j]*e1 + f1,
q[i]*q[i]*q[j]*a2 + q[i]*q[i]*b2 + q[j]*q[i]*c2 + q[i]*d2 + q[j]*e2 + f2);
return vol;
}
unsigned int Quad9::<API key> (const unsigned int n) const
{
switch (n)
{
case 4:
case 5:
case 6:
case 7:
return 2;
case 8:
return 4;
default:
libmesh_error_msg("Invalid n = " << n);
}
}
unsigned short int Quad9::<API key> (const unsigned int n,
const unsigned int v) const
{
<API key> (n, this->n_vertices());
libmesh_assert_less (n, this->n_nodes());
switch (n)
{
case 8:
{
libmesh_assert_less (v, 4);
return static_cast<unsigned short int>(v);
}
default:
{
libmesh_assert_less (v, 2);
// use the matrix that we inherited from \p Quad
return <API key>[n-this->n_vertices()][v];
}
}
}
std::pair<unsigned short int, unsigned short int>
Quad9::<API key> (const unsigned int n) const
{
<API key> (n, this->n_vertices());
libmesh_assert_less (n, this->n_nodes());
/*
* the <API key>* vectors are
* stored in face_quad.C, since they are identical
* for Quad8 and Quad9 (for the first 4 higher-order nodes)
*/
return std::pair<unsigned short int, unsigned short int>
(<API key>[n],
<API key>[n]);
}
} // namespace libMesh
|
package jolie.runtime.typing;
import jolie.lang.Constants;
/**
*
* @author Fabrizio Montesi
*/
public class <API key> extends Exception {
public final static long serialVersionUID = Constants.serialVersionUID();
public <API key>() {
super();
}
public <API key>( String message ) {
super( message );
}
/*
* @Override public Throwable fillInStackTrace() { return this; }
*/
}
|
#include <stdlib.h>
#include <stdio.h>
#include <bsb.h>
#include <png.h>
static void copy_bsb_to_png(BSBImage *image, png_structp png_ptr)
{
int row, bp, pp;
uint8_t *bsb_row, *png_row;
bsb_row = (uint8_t *)malloc(image->height * sizeof(uint8_t *));
png_row = (uint8_t *)malloc(image->height * sizeof(uint8_t *) * image->depth);
/* Copy row by row */
for (row = 0; row < image->height; row++)
{
bsb_seek_to_row(image, row);
bsb_read_row(image, bsb_row);
for (bp = 0, pp = 0; bp < image->width; bp++)
{
png_row[pp++] = image->red[bsb_row[bp]];
png_row[pp++] = image->green[bsb_row[bp]];
png_row[pp++] = image->blue[bsb_row[bp]];
}
png_write_row(png_ptr, png_row);
}
free(bsb_row);
free(png_row);
} /* copy_bsb_to_png */
int main(int argc, char *argv[])
{
BSBImage image;
FILE *png_fd;
png_structp png_ptr;
png_infop info_ptr;
png_text text[2];
if (argc != 3) {
fprintf(stderr, "Usage:\n\tbsb2png input.kap output.png\n");
exit(1);
}
png_ptr = <API key>(<API key>, NULL, NULL, NULL);
if (png_ptr == NULL) {
fprintf(stderr, "png_ptr == NULL\n");
exit(1);
}
info_ptr = <API key>(png_ptr);
if (info_ptr == NULL) {
fprintf(stderr, "info_ptr == NULL\n");
<API key>(&png_ptr, (png_infopp)NULL);
exit(1);
}
if ((png_fd = fopen(argv[2], "wb")) == NULL) {
perror("fopen");
exit(1);
}
png_init_io(png_ptr, png_fd);
if (! bsb_open_header(argv[1], &image)) {
exit(1);
}
png_set_IHDR(png_ptr, info_ptr, image.width, image.height, 8,
PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE,
<API key>, <API key>);
/* Some text to go with the png image */
text[0].key = "Title";
text[0].text = argv[2];
text[0].compression = <API key>;
text[1].key = "Generator";
text[1].text = "bsb2png";
text[1].compression = <API key>;
png_set_text(png_ptr, info_ptr, text, 2);
/* Write header data */
png_write_info(png_ptr, info_ptr);
/* Copy the image in itself */
copy_bsb_to_png(&image, png_ptr);
png_write_end(png_ptr, NULL);
fclose(png_fd);
<API key>(&png_ptr, &info_ptr);
bsb_close(&image);
return 0;
}
|
#include "config.h"
#include "logging.h"
#include "mem_util.h"
#include <stdio.h>
#include <stdlib.h>
#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#include <string.h>
/* Our log file */
static FILE *mcell_log_file = NULL;
/* Our warning/error file */
static FILE *mcell_error_file = NULL;
/* Get the log file. */
FILE *mcell_get_log_file(void) {
if (mcell_log_file == NULL) {
#ifdef DEBUG
setvbuf(stdout, NULL, _IONBF, 0);
#endif
mcell_log_file = stdout;
}
return mcell_log_file;
}
/* Get the error file. */
FILE *<API key>(void) {
if (mcell_error_file == NULL) {
#ifdef DEBUG
setvbuf(stderr, NULL, _IONBF, 0);
#endif
mcell_error_file = stderr;
}
return mcell_error_file;
}
/* Set the log file. */
void mcell_set_log_file(FILE *f) {
if (mcell_log_file != NULL && mcell_log_file != stdout &&
mcell_log_file != stderr)
fclose(mcell_log_file);
mcell_log_file = f;
#ifdef DEBUG
setvbuf(mcell_log_file, NULL, _IONBF, 0);
#else
setvbuf(mcell_log_file, NULL, _IOLBF, 128);
#endif
}
/* Set the error file. */
void <API key>(FILE *f) {
if (mcell_error_file != NULL && mcell_error_file != stdout &&
mcell_error_file != stderr)
fclose(mcell_error_file);
mcell_error_file = f;
#ifdef DEBUG
setvbuf(mcell_error_file, NULL, _IONBF, 0);
#else
setvbuf(mcell_error_file, NULL, _IOLBF, 128);
#endif
}
/* Log a message. */
void mcell_log_raw(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_logv_raw(fmt, args);
va_end(args);
}
/* Log a message (va_list version). */
void mcell_logv_raw(char const *fmt, va_list args) {
vfprintf(mcell_get_log_file(), fmt, args);
}
/* Log a message. */
void mcell_error_raw(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_errorv_raw(fmt, args);
va_end(args);
}
/* Log a message (va_list version). */
void mcell_errorv_raw(char const *fmt, va_list args) {
vfprintf(<API key>(), fmt, args);
}
/* Log a message. */
void mcell_log(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_logv(fmt, args);
va_end(args);
}
/* Log a message (va_list version). */
void mcell_logv(char const *fmt, va_list args) {
mcell_logv_raw(fmt, args);
fprintf(mcell_get_log_file(), "\n");
}
/* Log a warning. */
void mcell_warn(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_warnv(fmt, args);
va_end(args);
}
/* Log a warning (va_list version). */
void mcell_warnv(char const *fmt, va_list args) {
fprintf(<API key>(), "Warning: ");
mcell_errorv_raw(fmt, args);
fprintf(<API key>(), "\n");
}
/* Log an error and carry on. */
void mcell_error_nodie(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_errorv_nodie(fmt, args);
va_end(args);
}
/* Log an error and carry on (va_list version). */
void mcell_errorv_nodie(char const *fmt, va_list args) {
fprintf(<API key>(), "Fatal error: ");
mcell_errorv_raw(fmt, args);
fprintf(<API key>(), "\n");
}
/* Log an error and exit. */
void mcell_error(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_errorv(fmt, args);
va_end(args);
}
/* Log an error and exit (va_list version). */
void mcell_errorv(char const *fmt, va_list args) {
mcell_errorv_nodie(fmt, args);
mcell_die();
}
/* Log an internal error and exit. */
void <API key>(char const *file, unsigned int line,
char const *func, char const *fmt, ...) {
va_list args;
va_start(args, fmt);
<API key>(file, line, func, fmt, args);
va_end(args);
}
/* Log an error and exit (va_list version). */
void <API key>(char const *file, unsigned int line,
char const *func, char const *fmt, va_list args) {
fprintf(<API key>(), "****************\n");
fprintf(<API key>(), "INTERNAL ERROR at %s:%u [%s]: ", file, line,
func);
mcell_errorv_raw(fmt, args);
fprintf(<API key>(), "\n");
fprintf(<API key>(),
"MCell has detected an internal program error.\n");
fprintf(<API key>(),
"Please report this error to the MCell developers at <%s>.\n",
PACKAGE_BUGREPORT);
fprintf(<API key>(), "****************\n");
mcell_die();
}
/* Get a copy of a string giving an error message. */
char *mcell_strerror(int err) {
char buffer[2048];
#ifdef STRERROR_R_CHAR_P
char *pbuf = strerror_r(err, buffer, sizeof(buffer));
if (pbuf != NULL)
return CHECKED_STRDUP(pbuf, "error description");
else
return CHECKED_SPRINTF("UNIX error code %d.", err);
#else
if (strerror_r(err, buffer, sizeof(buffer)) == 0)
return CHECKED_STRDUP(buffer, "error description");
else
return CHECKED_SPRINTF("UNIX error code %d.", err);
#endif
}
/* Log an error due to a failed standard library call, and exit. */
void mcell_perror_nodie(int err, char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_perrorv_nodie(err, fmt, args);
va_end(args);
}
/* Log an error due to a failed standard library call, and exit (va_list
* version). */
void mcell_perrorv_nodie(int err, char const *fmt, va_list args) {
char buffer[2048];
fprintf(<API key>(), "Fatal error: ");
mcell_errorv_raw(fmt, args);
#ifdef STRERROR_R_CHAR_P
fprintf(<API key>(), ": %s\n",
strerror_r(err, buffer, sizeof(buffer)));
#else
if (strerror_r(err, buffer, sizeof(buffer)) == 0)
fprintf(<API key>(), ": %s\n", buffer);
else
fprintf(<API key>(), "\n");
#endif
}
/* Log an error due to a failed standard library call, and exit. */
void mcell_perror(int err, char const *fmt, ...) {
va_list args;
va_start(args, fmt);
mcell_perrorv(err, fmt, args);
va_end(args);
}
/* Log an error due to a failed standard library call, and exit (va_list
* version). */
void mcell_perrorv(int err, char const *fmt, va_list args) {
mcell_perrorv_nodie(err, fmt, args);
mcell_die();
}
/* Log an error due to failed memory allocation, but do not exit. */
void <API key>(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
<API key>(fmt, args);
va_end(args);
}
/* Log an error due to failed memory allocation, but do not exit (va_list
* version). */
void <API key>(char const *fmt, va_list args) {
fprintf(<API key>(), "Fatal error: ");
mcell_errorv_raw(fmt, args);
fprintf(<API key>(), "\n");
fprintf(<API key>(), "Fatal error: Out of memory\n\n");
mem_dump_stats(<API key>());
}
/* Log an error due to failed memory allocation, and exit. */
void mcell_allocfailed(char const *fmt, ...) {
va_list args;
va_start(args, fmt);
<API key>(fmt, args);
va_end(args);
mcell_die();
}
/* Log an error due to failed memory allocation, and exit (va_list version). */
void mcell_allocfailedv(char const *fmt, va_list args) {
<API key>(fmt, args);
mcell_die();
}
/* Terminate program execution due to an error. */
void mcell_die(void) { exit(EXIT_FAILURE); }
|
#include <ndebug.h>
#include <posigs.h> /* use atomic PSG kill flag as a global error flag */
#include <pcg_rand.h>
#include <messenger.h>
#include <pthread.h>
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
#define THREAD_CNT 2
#define ITERS 2 /* How many messages each thread should send.
* TODO: increase once registration/rcu issue is resolved.
*/
/* thread()
*/
void *thread(void* arg)
{
struct mgrp *group = arg;
int pvc[2] = { 0, 0 };
size_t rx_sum = 0, rx_i = 0;
size_t message;
NB_die_if(
pipe(pvc)
|| fcntl(pvc[0], F_SETFL, fcntl(pvc[0], F_GETFL) | O_NONBLOCK)
, "");
NB_die_if(
mgrp_subscribe(group, pvc[1])
, "");
/* Don't start broadcasting until everyone is subscribed.
* We could use pthread_barrier_t but that's not implemented on macOS,
* and anyways messenger()'s mgrp_count uses acquire/release semantics.
*/
while (mgrp_count(group) != THREAD_CNT && !psg_kill_check())
sched_yield();
/* generate ITERS broadcasts; receive others' broadcasts */
for (size_t i = 0; i < ITERS && !psg_kill_check(); i++) {
NB_die_if(
mgrp_broadcast(group, pvc[1], &i, sizeof(i))
, "");
while ((mg_recv(pvc[0], &message) > 0) && !psg_kill_check()) {
rx_sum += message;
rx_i++;
sched_yield(); /* prevent deadlock: give other threads a chance to write */
}
errno = 0; /* _should_ be EINVAL: don't pollute later prints */
}
/* wait for all other senders */
while (rx_i < ITERS * (THREAD_CNT -1) && !psg_kill_check()) {
if ((mg_recv(pvc[0], &message) > 0)) {
rx_sum += message;
rx_i++;
} else {
sched_yield();
}
}
die:
NB_err_if(
mgrp_unsubscribe(group, pvc[1])
, "fd %d unsubscribe fail", pvc[1]);
if (err_cnt)
psg_kill();
if (pvc[0]) {
close(pvc[1]);
close(pvc[0]);
}
return (void *)rx_sum;
}
/* main()
*/
int main()
{
int err_cnt = 0;
struct mgrp *group = NULL;
pthread_t threads[THREAD_CNT];
NB_die_if(!(
group = mgrp_new()
), "");
/* run all threads */
for (unsigned int i=0; i < THREAD_CNT; i++) {
NB_die_if(pthread_create(&threads[i], NULL, thread, group), "");
}
/* test results */
size_t expected = (ITERS -1) * ITERS * (THREAD_CNT -1) * 0.5;
for (unsigned int i=0; i < THREAD_CNT; i++) {
size_t rx_sum;
NB_die_if(
pthread_join(threads[i], (void **)&rx_sum)
, "");
NB_err_if(rx_sum != expected,
"thread %zu != expected %zu", rx_sum, expected);
}
die:
mgrp_free(group);
err_cnt += psg_kill_check(); /* return any error from any thread */
return err_cnt;
}
|
/**
* SECTION: logging-event
* @short_description: The internal representation of logging events
*
* Once an affirmative decision is made to log an event a logging event
* instance is created. This instance is passed to appenders and filters to
* perform actual logging.
*
* <note><para>
* This class is only useful to those wishing to extend Log4g.
* </para></note>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h>
#include "log4g/helpers/thread.h"
#include "log4g/logging-event.h"
#include "log4g/mdc.h"
#include "log4g/ndc.h"
G_DEFINE_TYPE(Log4gLoggingEvent, log4g_logging_event, G_TYPE_OBJECT)
#define ASSIGN_PRIVATE(instance) \
(<API key>(instance, <API key>, \
struct Private))
#define GET_PRIVATE(instance) \
((struct Private *)((Log4gLoggingEvent *)instance)->priv)
struct Private {
gchar *logger;
Log4gLevel *level;
gchar *message;
GTimeVal timestamp;
gboolean <API key>;
gchar *thread;
gboolean ndc_lookup_required;
gchar *ndc;
gboolean mdc_lookup_required;
GHashTable *mdc;
const gchar *function;
const gchar *file;
const gchar *line;
gchar *fullinfo;
GArray *keys;
};
static void
<API key>(Log4gLoggingEvent *self)
{
self->priv = ASSIGN_PRIVATE(self);
struct Private *priv = GET_PRIVATE(self);
priv-><API key> = TRUE;
priv->ndc_lookup_required = TRUE;
priv->mdc_lookup_required = TRUE;
}
static void
dispose(GObject *base)
{
struct Private *priv = GET_PRIVATE(base);
if (priv->level) {
g_object_unref(priv->level);
priv->level = NULL;
}
G_OBJECT_CLASS(<API key>)->dispose(base);
}
static void
finalize(GObject *base)
{
struct Private *priv = GET_PRIVATE(base);
g_free(priv->logger);
g_free(priv->message);
g_free(priv->ndc);
g_free(priv->fullinfo);
g_free(priv->thread);
if (priv->mdc) {
<API key>(priv->mdc);
}
if (priv->keys) {
g_array_free(priv->keys, TRUE);
}
G_OBJECT_CLASS(<API key>)->finalize(base);
}
static void
<API key>(<API key> *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS(klass);
object_class->dispose = dispose;
object_class->finalize = finalize;
GTimeVal start;
g_get_current_time(&start);
klass->start = (start.tv_sec * 1000) + (start.tv_usec * 0.001);
<API key>(klass, sizeof(struct Private));
}
/**
* <API key>:
* @logger: The name of the logger that is creating this event.
* @level: The log level of this event.
* @function: The function where this event was logged.
* @file: The file where this event was logged.
* @line: The line in @file where this event was logged.
* @message: A printf formatted log message.
* @ap: Format parameters.
*
* Create a new logging event.
*
* Returns: A new logging event object.
* Since: 0.1
*/
Log4gLoggingEvent *
<API key>(const gchar *logger, Log4gLevel *level,
const gchar *function, const gchar *file, const gchar *line,
const gchar *message, va_list ap)
{
Log4gLoggingEvent *self = g_object_new(<API key>, NULL);
if (!self) {
return NULL;
}
struct Private *priv = GET_PRIVATE(self);
if (logger) {
priv->logger = g_strdup(logger);
if (!priv->logger) {
goto error;
}
}
if (level) {
g_object_ref(level);
priv->level = level;
}
if (message) {
priv->message = g_strdup_vprintf(message, ap);
if (!priv->message) {
goto error;
}
}
priv->function = function;
priv->file = file;
priv->line = line;
g_get_current_time(&priv->timestamp);
return self;
error:
g_object_unref(self);
return NULL;
}
/**
* <API key>:
* @self: A logging event object.
*
* Calls the @get_level function from the #<API key> of @self.
*
* Returns: (transfer none): The log level of @self.
* Since: 0.1
*/
Log4gLevel *
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
return priv->level;
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the name of the logger that created a logging event.
*
* Returns: The name of the logger that created @self.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
return GET_PRIVATE(self)->logger;
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the rendered logging message.
*
* See: <API key>()
*
* Returns: The rendered logging message.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
return GET_PRIVATE(self)->message;
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the log message.
*
* This function is equivalent to <API key>().
*
* Returns: The log message.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
return GET_PRIVATE(self)->message;
}
/**
* <API key>:
* @self: A logging event object.
* @key: A mapped data context key.
*
* Retrieve a mapped data context value for a logging event.
*
* See: #Log4gMDC
*
* Returns: The MDC value for @key.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self, const gchar *key)
{
struct Private *priv = GET_PRIVATE(self);
if (priv->mdc) {
const gchar *value = g_hash_table_lookup(priv->mdc, key);
if (value) {
return value;
}
}
if (priv->mdc_lookup_required) {
return log4g_mdc_get(key);
}
return NULL;
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the timestamp of a logging event.
*
* Returns: (transfer none): The timestamp of @self.
* Since: 0.1
*/
const GTimeVal *
<API key>(Log4gLoggingEvent *self)
{
return &GET_PRIVATE(self)->timestamp;
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the name of the thread where a logging event was logged.
*
* Returns: The name of the thread where @self was logged.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
if (priv->thread) {
return priv->thread;
}
if (priv-><API key>) {
return <API key>();
}
return NULL;
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the nested data context for a logging event.
*
* See: #Log4gNDC
*
* Returns: The rendered NDC string for @self.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
if (priv->ndc) {
return priv->ndc;
}
if (priv->ndc_lookup_required) {
return log4g_ndc_get();
}
return NULL;
}
/**
* get_keys_:
* @key: The hash table key.
* @value: The hash table value (unused).
* @user_data: An array to append @key to.
*
* Callback for <API key>().
*/
static void
get_keys_(gpointer key, G_GNUC_UNUSED gpointer value, gpointer user_data)
{
g_array_append_val((GArray *)user_data, key);
}
/**
* <API key>:
* @self: A logging event object.
* @mdc: The hash table to get keys from.
*
* Construct a key set from an MDC hash table.
*/
static void
<API key>(Log4gLoggingEvent *self, GHashTable *mdc)
{
guint size = g_hash_table_size((GHashTable *)mdc);
struct Private *priv = GET_PRIVATE(self);
if (!size) {
return;
}
if (priv->keys) {
g_array_free(priv->keys, TRUE);
}
priv->keys = g_array_sized_new(FALSE, FALSE, sizeof(gchar *), size);
if (!priv->keys) {
return;
}
<API key>(mdc, get_keys_, priv->keys);
}
/**
* <API key>:
* @self: A logging event object.
*
* Get the MDC keys (if any) for this event.
*
* See: #Log4gMDC
*
* Returns: An array of keys, or %NULL if no keys exist.
* Since: 0.1
*/
const GArray *
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
if (priv->mdc) {
if (!priv->keys) {
<API key>(self, priv->mdc);
}
} else {
const GHashTable *mdc = <API key>();
if (mdc) {
<API key>(self, (GHashTable *)mdc);
}
}
return priv->keys;
}
/**
* mdc_copy_:
* @key: The hash table key.
* @value: The hash table value (unused).
* @user_data: A hash table to insert @key & @value into.
*
* Callback for <API key>().
*/
static void
mdc_copy_(gpointer key, gpointer value, gpointer user_data)
{
g_hash_table_insert((GHashTable *)user_data, key, value);
}
/**
* <API key>:
* @self: A logging event object.
*
* Copy the current thread name into a logging object.
*
* Asynchronous appenders should call this function.
*
* See: #Log4gThreadClass
*/
void
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
if (!priv-><API key>) {
return;
}
priv-><API key> = FALSE;
priv->thread = g_strdup(<API key>());
}
/**
* <API key>:
* @self: A logging event object.
*
* Copy the current mapped data context into a logging event.
*
* Asynchronous appenders should call this function.
*
* See #Log4gMDC
*
* Since: 0.1
*/
void
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
if (!priv->mdc_lookup_required) {
return;
}
const GHashTable *mdc;
priv->mdc_lookup_required = FALSE;
mdc = <API key>();
if (!mdc) {
return;
}
priv->mdc = <API key>(g_str_hash, g_str_equal,
g_free, g_free);
if (!priv->mdc) {
return;
}
<API key>((GHashTable *)mdc, mdc_copy_, priv->mdc);
}
/**
* <API key>:
* @self: A logging event object.
*
* Copy the current nested data context into a logging event.
*
* Asynchronous appenders should call this function.
*
* See #Log4gNDC
*
* Since: 0.1
*/
void
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
if (!priv->ndc_lookup_required) {
return;
}
priv->ndc_lookup_required = FALSE;
priv->ndc = g_strdup(log4g_ndc_get());
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the function where a logging event was logged.
*
* Returns: The function where @self was logged.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
const gchar *function = GET_PRIVATE(self)->function;
return (function ? function : "?");
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the file where a logging event was logged.
*
* Returns: The file where @self was logged.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
const gchar *file = GET_PRIVATE(self)->file;
return (file ? file : "?");
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the line number where a logging event was logged.
*
* Returns: The line number where @self was logged.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
const gchar *line = GET_PRIVATE(self)->line;
return (line ? line : "?");
}
/**
* <API key>:
* @self: A logging event object.
*
* Retrieve the full location information where a logging event was logged.
*
* The full location information is in the format:
*
* |[
* function(file:line)
* ]|
*
* Returns: The full log location information for @self.
* Since: 0.1
*/
const gchar *
<API key>(Log4gLoggingEvent *self)
{
struct Private *priv = GET_PRIVATE(self);
if (!priv->fullinfo) {
priv->fullinfo = g_strdup_printf("%s(%s:%s)",
(priv->function ? priv->function : "?"),
(priv->file ? priv->file : "?"),
(priv->line ? priv->line : "?"));
}
return priv->fullinfo;
}
/**
* <API key>:
*
* Retrieve the time when the log system was initialized.
*
* Returns: The number of seconds elapsed since the Unix epoch when the log
* system was initialized
* Since: 0.1
*/
glong
<API key>(void)
{
<API key> *klass =
g_type_class_peek(<API key>);
return klass->start;
}
|
#include "../qimsysimcontext.h"
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include <qimsysdebug.h>
#include <<API key>.h>
#include <<API key>.h>
#include <qimsyskeymanager.h>
#include <<API key>.h>
#include <<API key>.h>
#include <string.h>
#include "../gtk2qt.h"
#define <API key>(obj) (<API key> ((obj), <API key>, <API key>))
struct <API key>
{
GtkIMContext *slave;
<API key> *application_manager;
<API key> *inputmethod_manager;
QimsysKeyManager *key_manager;
<API key> *keyboard_manager;
<API key> *preedit_manager;
QimsysPreeditItem *item;
GdkWindow *client_window;
};
static GType <API key> = 0;
static GtkIMContextClass *<API key> = NULL;
static GtkIMContext *_focus_im_context = NULL;
static void <API key>(<API key> *klass);
static void <API key>(QimsysIMContext *self);
static void <API key>(GObject *object);
static void <API key>(GtkIMContext *context);
static gboolean <API key>(GtkIMContext *context, GdkEventKey *key);
static void <API key>(GtkIMContext *context);
static void <API key>(GtkIMContext *context);
static void <API key>(GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos);
static void <API key>(GtkIMContext *context, GdkWindow *client_window);
static void <API key>(GtkIMContext *context, GdkRectangle *area);
static void <API key>(GtkIMContext *context, gboolean use_preedit);
static void <API key>(GtkIMContext *context, const gchar *text, gint len, gint cursor_index);
static void <API key>(GtkIMContext *context, gchar **text, gint *cursor_index);
static void <API key>(GtkIMContext *context, gint offset, gint n_chars);
static void <API key>(gpointer data, QimsysPreeditItem *item, <API key> *preedit_manager);
static void <API key>(gpointer data, char *text, gulong target, <API key> *preedit_manager);
static void <API key>(GtkIMContext *slave, char *text, QimsysIMContext *master);
static void <API key>(GtkIMContext *slave, QimsysIMContext *master);
static void <API key>(GtkIMContext *slave, QimsysIMContext *master);
static void <API key>(GtkIMContext *slave, QimsysIMContext *master);
static void <API key>(GtkIMContext *slave, QimsysIMContext *master);
static void <API key>(GtkIMContext *slave, gint offset, gint n_chars, QimsysIMContext *master);
void <API key>(GTypeModule *module)
{
static const GTypeInfo <API key> = {
sizeof(<API key>)
, (GBaseInitFunc)NULL
, (GBaseFinalizeFunc)NULL
, (GClassInitFunc)<API key>
, (GClassFinalizeFunc)NULL
, (gconstpointer)NULL
, sizeof(QimsysIMContext)
, 0
, (GInstanceInitFunc)<API key>
, (GTypeValueTable *)NULL
};
qimsys_debug_in();
if (!<API key>()) {
GType type = <API key>(module
, GTK_TYPE_IM_CONTEXT
, "QimsysIMContext"
, &<API key>
, (GTypeFlags)0
);
<API key> = type;
}
qimsys_debug_out();
}
GType <API key>()
{
return <API key>;
}
QimsysIMContext *<API key>()
{
QimsysIMContext *ret;
qimsys_debug_in();
ret = QIMSYS_IM_CONTEXT(g_object_new(<API key>, NULL));
qimsys_debug_out();
return ret;
}
static void <API key>(<API key> *klass)
{
GtkIMContextClass *im_context_class;
GObjectClass *gobject_class;
qimsys_debug_in();
<API key> = (GtkIMContextClass *)<API key>(klass);
im_context_class = <API key>(klass);
im_context_class->reset = <API key>;
im_context_class->focus_in = <API key>;
im_context_class->focus_out = <API key>;
im_context_class->filter_keypress = <API key>;
im_context_class->get_preedit_string = <API key>;
im_context_class->set_client_window = <API key>;
im_context_class->set_cursor_location = <API key>;
im_context_class->set_use_preedit = <API key>;
im_context_class->set_surrounding = <API key>;
im_context_class->get_surrounding = <API key>;
im_context_class->delete_surrounding = <API key>;
gobject_class = G_OBJECT_CLASS(klass);
gobject_class->dispose = <API key>;
<API key>(klass, sizeof(<API key>));
qimsys_debug_out();
}
static void <API key>(QimsysIMContext *self)
{
qimsys_debug_in();
self->d = <API key>(self);
self->d->slave = <API key>();
g_signal_connect(self->d->slave, "commit", G_CALLBACK(<API key>), self);
g_signal_connect(self->d->slave, "preedit-start", G_CALLBACK(<API key>), self);
g_signal_connect(self->d->slave, "preedit-end", G_CALLBACK(<API key>), self);
g_signal_connect(self->d->slave, "preedit-changed", G_CALLBACK(<API key>), self);
g_signal_connect(self->d->slave, "<API key>", G_CALLBACK(<API key>), self);
g_signal_connect(self->d->slave, "delete-surrounding", G_CALLBACK(<API key>), self);
self->d->application_manager = NULL;
self->d->inputmethod_manager = NULL;
self->d->key_manager = NULL;
self->d->keyboard_manager = NULL;
self->d->preedit_manager = NULL;
self->d->item = NULL;
self->d->client_window = NULL;
qimsys_debug_out();
}
static void <API key>(GObject *object)
{
QimsysIMContext *self;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(object);
<API key>(GTK_IM_CONTEXT(self), NULL);
if (self->d->item) {
g_object_unref(self->d->item);
}
G_OBJECT_CLASS(<API key>)->dispose(object);
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context)
{
QimsysIMContext *self;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
if (self->d->application_manager)
<API key>(self->d->application_manager, 0 /* Reset */);
<API key>(self->d->slave);
if (self->d->keyboard_manager) {
<API key>(self->d->keyboard_manager, TRUE);
}
qimsys_debug_out();
}
static gboolean <API key>(GtkIMContext *context, GdkEventKey *event)
{
gboolean ret = FALSE;
QimsysIMContext *self;
int modifiers = 0;
qimsys_debug_in();
qimsys_debug("\ttype = %d\n", event->type);
qimsys_debug("\tsend_event = %d\n", event->send_event);
qimsys_debug("\tstate = %X\n", event->state);
qimsys_debug("\tkeyval = %X(%X)\n", event->keyval, <API key>(event->keyval));
qimsys_debug("\tis_modifier = %d\n", event->is_modifier);
if (event->state & 0x1) modifiers |= 0x02000000;
if (event->state & 0x4) modifiers |= 0x04000000;
if (event->state & 0x8) modifiers |= 0x08000000;
if (event->state & 4000040) modifiers |= 0x10000000;
self = QIMSYS_IM_CONTEXT(context);
if (self->d->key_manager) {
switch (event->type) {
case GDK_KEY_PRESS:
<API key>(self->d->key_manager, event->string, <API key>(event->keyval), modifiers, FALSE, &ret);
break;
case GDK_KEY_RELEASE:
<API key>(self->d->key_manager, event->string, <API key>(event->keyval), modifiers, FALSE, &ret);
break;
default:
break;
}
}
if (!ret) {
ret = <API key>(self->d->slave, event);
}
qimsys_debug_out();
return ret;
}
static void <API key>(GtkIMContext *context)
{
QimsysIMContext *self;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
if (_focus_im_context != NULL && _focus_im_context != GTK_IM_CONTEXT(self)) {
<API key>(_focus_im_context);
}
_focus_im_context = GTK_IM_CONTEXT(self);
g_object_ref(_focus_im_context);
if (!self->d->application_manager) {
self->d->application_manager = <API key>();
}
if (!self->d->inputmethod_manager) {
self->d->inputmethod_manager = <API key>();
}
if (!self->d->key_manager) {
self->d->key_manager = <API key>();
}
if (!self->d->keyboard_manager) {
self->d->keyboard_manager = <API key>();
if (self->d->keyboard_manager) {
<API key>(self->d->keyboard_manager, FALSE);
}
}
if (!self->d->preedit_manager) {
self->d->preedit_manager = <API key>();
if (self->d->preedit_manager) {
<API key>(self->d->preedit_manager, "item-changed", G_CALLBACK(<API key>), self);
<API key>(self->d->preedit_manager, "committed", G_CALLBACK(<API key>), self);
}
}
if (self->d->application_manager) {
if (self->d->client_window) {
<API key>(self->d->application_manager, <API key>(self->d->client_window));
<API key>(self->d->application_manager, <API key>(self->d->client_window));
}
<API key>(self->d->application_manager, TRUE);
}
<API key>(self->d->slave);
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context)
{
QimsysIMContext *self;
gulonglong client_window = 0;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
if (_focus_im_context == GTK_IM_CONTEXT(self)) {
g_object_unref(_focus_im_context);
_focus_im_context = NULL;
}
if (self->d->application_manager) {
<API key>(self->d->application_manager, FALSE);
<API key>(self->d->application_manager, &client_window);
if (self->d->client_window && <API key>(self->d->client_window) == client_window) {
<API key>(self->d->application_manager, 0);
<API key>(self->d->application_manager, 0);
}
g_object_unref(self->d->application_manager);
self->d->application_manager = NULL;
}
if (self->d->inputmethod_manager) {
g_object_unref(self->d->inputmethod_manager);
self->d->inputmethod_manager = NULL;
}
if (self->d->key_manager) {
g_object_unref(self->d->key_manager);
self->d->key_manager = NULL;
}
if (self->d->keyboard_manager) {
<API key>(self->d->keyboard_manager, FALSE);
g_object_unref(self->d->keyboard_manager);
self->d->keyboard_manager = NULL;
}
if (self->d->preedit_manager) {
g_object_unref(self->d->preedit_manager);
self->d->preedit_manager = 0;
}
<API key>(self->d->slave);
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos)
{
gboolean ret;
guint i = 0;
QimsysIMContext *self;
QimsysPreeditItem *item;
char *preedit_string;
char **strv_ptr;
char *buf;
int cursor;
int selection = 0;
int start_index = 0;
int end_index = 0;
PangoAttrList *attr_list;
PangoAttribute *attr;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
preedit_string = g_strdup("");
cursor = 0;
attr_list = pango_attr_list_new();
if (self->d->application_manager) {
<API key>(self->d->application_manager, &ret);
if (ret) {
if (self->d->item) {
item = self->d->item;
if (item->cursor >= 0) {
cursor = g_utf8_strlen(preedit_string, -1) + item->cursor;
if (item->selection != 0) {
selection = item->selection;
}
}
qimsys_debug("%s(%d)\n", __FUNCTION__, __LINE__);
attr = <API key>(<API key>);
qimsys_debug("%s(%d)\n", __FUNCTION__, __LINE__);
attr->start_index = strlen(preedit_string);
attr->end_index = attr->start_index;
qimsys_debug("%s(%d)\n", __FUNCTION__, __LINE__);
for (strv_ptr = item->to; *strv_ptr != NULL; *strv_ptr++) {
qimsys_debug("%s(%d) %x\n", __FUNCTION__, __LINE__, (void*)*strv_ptr);
qimsys_debug("%s(%d) %s\n", __FUNCTION__, __LINE__, *strv_ptr);
attr->end_index += strlen(*strv_ptr);
}
qimsys_debug("%s(%d)\n", __FUNCTION__, __LINE__);
<API key>(attr_list, attr);
qimsys_debug("%s(%d)\n", __FUNCTION__, __LINE__);
for (strv_ptr = item->to; *strv_ptr != NULL; *strv_ptr++) {
buf = g_strconcat(preedit_string, *strv_ptr, NULL);
g_free(preedit_string);
preedit_string = buf;
}
qimsys_debug("\t%d: %s %d %d %d\n", i, preedit_string, item->cursor, item->selection, item->modified);
if (selection != 0) {
buf = g_strdup(preedit_string);
g_utf8_strncpy(buf, preedit_string, cursor);
start_index = strlen(buf);
qimsys_debug("start_index: %d(%d) - %s\n", start_index, cursor, buf);
g_utf8_strncpy(buf, preedit_string, cursor + selection);
end_index = strlen(buf);
g_free(buf);
qimsys_debug("end_index: %d(%d + %d) - %s\n", end_index, cursor, selection, buf);
attr = <API key>(0xffff, 0xffff, 0xffff);
attr->start_index = start_index;
attr->end_index = end_index;
<API key>(attr_list, attr);
attr = <API key>(0, 0, 0x8fff);
attr->start_index = start_index;
attr->end_index = end_index;
<API key>(attr_list, attr);
}
} else {
// <API key>(self->d->preedit_manager, &item);
}
if (str) {
*str = preedit_string;
} else {
g_free(preedit_string);
}
if (cursor_pos) {
*cursor_pos = cursor;
}
if (attrs) {
*attrs = attr_list;
} else {
<API key>(attr_list);
}
} else {
<API key>(self->d->slave, str, attrs, cursor_pos);
}
} else {
<API key>(self->d->slave, str, attrs, cursor_pos);
}
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context, GdkWindow *client_window)
{
QimsysIMContext *self;
self = QIMSYS_IM_CONTEXT(context);
if (self->d->client_window == client_window) return;
qimsys_debug_in();
if (self->d->client_window != NULL)
g_object_unref(self->d->client_window);
self->d->client_window = client_window;
if (client_window != NULL) {
g_object_ref(client_window);
}
<API key>(self->d->slave, client_window);
if (self->d->application_manager) {
if (client_window) {
<API key>(self->d->application_manager, <API key>(client_window));
<API key>(self->d->application_manager, <API key>(client_window));
} else {
<API key>(self->d->application_manager, 0);
<API key>(self->d->application_manager, 0);
}
}
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context, GdkRectangle *area)
{
QimsysIMContext *self;
int x = 0;
int y = 0;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
if (self->d->client_window) {
<API key> (self->d->client_window, &x, &y);
}
if (self->d->preedit_manager) {
<API key>(self->d->preedit_manager, x + area->x, y + area->y, area->width, area->height);
}
<API key>(self->d->slave, area);
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context, gboolean use_preedit)
{
QimsysIMContext *self;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
<API key>(self->d->slave, use_preedit);
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context, const gchar *text, gint len, gint cursor_index)
{
QimsysIMContext *self;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
qimsys_debug("text: %s, len: %d, cursor_index, %d\n", text, len, cursor_index);
<API key>(self->d->preedit_manager, text);
<API key>(self->d->preedit_manager, cursor_index);
// <API key>(self->d->slave, text, len, cursor_index);
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context, gchar **text, gint *cursor_index)
{
QimsysIMContext *self;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
<API key>(self->d->preedit_manager, cursor_index);
<API key>(self->d->preedit_manager, text);
// <API key>(self->d->slave, text, cursor_index);
qimsys_debug_out();
}
static void <API key>(GtkIMContext *context, gint offset, gint n_chars)
{
QimsysIMContext *self;
qimsys_debug_in();
self = QIMSYS_IM_CONTEXT(context);
qimsys_debug("offset: %d, n_chars: %d\n", offset, n_chars);
// <API key>(self->d->preedit, text);
<API key>(self->d->slave, offset, n_chars);
qimsys_debug_out();
}
static void <API key>(gpointer data, QimsysPreeditItem *item, <API key> *preedit_manager)
{
QimsysIMContext *context = QIMSYS_IM_CONTEXT(data);
qimsys_debug_in();
if (_focus_im_context == GTK_IM_CONTEXT(context)) {
if (context->d->item) {
// has preedit
g_object_unref(context->d->item);
if (g_strv_length(item->to) > 0) {
context->d->item = item;
g_object_ref(context->d->item);
<API key>(context, "preedit-changed");
} else {
context->d->item = NULL;
<API key>(context, "preedit-changed");
<API key>(context, "preedit-end");
}
} else {
if (g_strv_length(item->to) > 0) {
context->d->item = item;
g_object_ref(context->d->item);
<API key>(context, "preedit-start");
<API key>(context, "preedit-changed");
} else {
}
}
}
qimsys_debug_out();
}
static void <API key>(gpointer data, char *text, gulong target, <API key> *preedit_manager)
{
QimsysIMContext *context = QIMSYS_IM_CONTEXT(data);
qimsys_debug_in();
if (context->d->client_window && target == <API key>(context->d->client_window)) { // \todo
<API key>(context, "commit", text);
}
qimsys_debug_out();
}
static void <API key>(GtkIMContext *slave, char *text, QimsysIMContext *master)
{
<API key>(master, "commit", text);
}
static void <API key>(GtkIMContext *slave, QimsysIMContext *master)
{
<API key>(master, "preedit-start");
}
static void <API key>(GtkIMContext *slave, QimsysIMContext *master)
{
<API key>(master, "preedit-end");
}
static void <API key>(GtkIMContext *slave, QimsysIMContext *master)
{
<API key>(master, "preedit-changed");
}
static void <API key>(GtkIMContext *slave, QimsysIMContext *master)
{
<API key>(master, "<API key>");
}
static void <API key>(GtkIMContext *slave, gint offset, gint n_chars, QimsysIMContext *master)
{
<API key>(master, "delete-surrounding", offset, n_chars);
}
|
#ifndef OPTIONDIALOG_HPP
#define OPTIONDIALOG_HPP
#include <QDialog>
namespace Ui {
class OptionDialog;
}
class OptionDialog : public QDialog
{
Q_OBJECT
public:
explicit OptionDialog(QWidget *parent = 0);
~OptionDialog();
private:
Ui::OptionDialog *ui;
};
#endif // OPTIONDIALOG_HPP
|
package org.hibernate.test.join;
/**
* @author Chris Jones
*/
public class Thing {
private Employee salesperson;
private String comments;
/**
* @return Returns the salesperson.
*/
public Employee getSalesperson() {
return salesperson;
}
/**
* @param salesperson The salesperson to set.
*/
public void setSalesperson(Employee salesperson) {
this.salesperson = salesperson;
}
/**
* @return Returns the comments.
*/
public String getComments() {
return comments;
}
/**
* @param comments The comments to set.
*/
public void setComments(String comments) {
this.comments = comments;
}
Long id;
String name;
/**
* @return Returns the ID.
*/
public Long getId() {
return id;
}
/**
* @param id The ID to set.
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name The name to set.
*/
public void setName(String name) {
this.name = name;
}
}
|
<?php
/**
* Smarty {tabs}{/tabs} block plugin
*
* Type: block function
* Name: tabs
* Purpose: make tabs with ul / li and css styles
* @param ul_class: string -> class du tag ul
* @param li_class: string -> class du tag li, si non selectionne
* @param li_class_selected: string -> class du tag li, si selectionne
* @param values: string -> url*caption|url*caption, lien et texte de chaque onglet
* @param selected: string -> url de l'onglet selectionne
* @return string -> html du ul / li
*/
function smarty_block_tabs($params, $content, &$me)
{
if (is_null ($content)){
return;
}
if (isset ($params['assign'])){
$me->assign ($params['assign'], _tag ('tabs', $params, $content));
}
return _tag ('tabs', $params, $content);
}
|
package net.gleamynode.netty.channel;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import net.gleamynode.netty.logging.Logger;
public class <API key> implements ChannelFuture {
private static final Logger logger =
Logger.getLogger(<API key>.class);
private static final int <API key> = 5000;
private static final Throwable CANCELLED = new Throwable();
private final Channel channel;
private final boolean cancellable;
private <API key> firstListener;
private List<<API key>> otherListeners;
private boolean done;
private Throwable cause;
private int waiters;
public <API key>(Channel channel, boolean cancellable) {
this.channel = channel;
this.cancellable = cancellable;
}
public Channel getChannel() {
return channel;
}
public synchronized boolean isDone() {
return done;
}
public synchronized boolean isSuccess() {
return cause == null;
}
public synchronized Throwable getCause() {
if (cause != CANCELLED) {
return cause;
} else {
return null;
}
}
public synchronized boolean isCancelled() {
return cause == CANCELLED;
}
public void addListener(<API key> listener) {
if (listener == null) {
throw new <API key>("listener");
}
boolean notifyNow = false;
synchronized (this) {
if (done) {
notifyNow = true;
} else {
if (firstListener == null) {
firstListener = listener;
} else {
if (otherListeners == null) {
otherListeners = new ArrayList<<API key>>(1);
}
otherListeners.add(listener);
}
}
}
if (notifyNow) {
notifyListener(listener);
}
}
public void removeListener(<API key> listener) {
if (listener == null) {
throw new <API key>("listener");
}
synchronized (this) {
if (!done) {
if (listener == firstListener) {
if (otherListeners != null && !otherListeners.isEmpty()) {
firstListener = otherListeners.remove(0);
} else {
firstListener = null;
}
} else if (otherListeners != null) {
otherListeners.remove(listener);
}
}
}
}
public ChannelFuture await() throws <API key> {
synchronized (this) {
while (!done) {
waiters++;
try {
this.wait(<API key>);
checkDeadLock();
} finally {
waiters
}
}
}
return this;
}
public boolean await(long timeout, TimeUnit unit)
throws <API key> {
return await(unit.toMillis(timeout));
}
public boolean await(long timeoutMillis) throws <API key> {
return await0(timeoutMillis, true);
}
public ChannelFuture <API key>() {
synchronized (this) {
while (!done) {
waiters++;
try {
this.wait(<API key>);
} catch (<API key> e) {
// Ignore.
} finally {
waiters
if (!done) {
checkDeadLock();
}
}
}
}
return this;
}
public boolean <API key>(long timeout, TimeUnit unit) {
return <API key>(unit.toMillis(timeout));
}
public boolean <API key>(long timeoutMillis) {
try {
return await0(timeoutMillis, false);
} catch (<API key> e) {
throw new InternalError();
}
}
private boolean await0(long timeoutMillis, boolean interruptable) throws <API key> {
long startTime = timeoutMillis <= 0 ? 0 : System.currentTimeMillis();
long waitTime = timeoutMillis;
synchronized (this) {
if (done) {
return done;
} else if (waitTime <= 0) {
return done;
}
waiters++;
try {
for (;;) {
try {
this.wait(Math.min(waitTime, <API key>));
} catch (<API key> e) {
if (interruptable) {
throw e;
}
}
if (done) {
return true;
} else {
waitTime = timeoutMillis
- (System.currentTimeMillis() - startTime);
if (waitTime <= 0) {
return done;
}
}
}
} finally {
waiters
if (!done) {
checkDeadLock();
}
}
}
}
private void checkDeadLock() {
// <API key> e = new <API key>(
// "DEAD LOCK: " + ChannelFuture.class.getSimpleName() +
// ".await() was invoked from an I/O processor thread. " +
// "Please use " + <API key>.class.getSimpleName() +
// " or configure a proper thread model alternatively.");
// StackTraceElement[] stackTrace = e.getStackTrace();
// // Simple and quick check.
// for (StackTraceElement s: stackTrace) {
// if (<API key>.class.getName().equals(s.getClassName())) {
// throw e;
// // And then more precisely.
// for (StackTraceElement s: stackTrace) {
// try {
// Class<?> cls = <API key>.class.getClassLoader().loadClass(s.getClassName());
// if (IoProcessor.class.isAssignableFrom(cls)) {
// throw e;
// } catch (Exception cnfe) {
// // Ignore
}
public void setSuccess() {
synchronized (this) {
// Allow only once.
if (done) {
return;
}
done = true;
if (waiters > 0) {
this.notifyAll();
}
}
notifyListeners();
}
public void setFailure(Throwable cause) {
synchronized (this) {
// Allow only once.
if (done) {
return;
}
this.cause = cause;
done = true;
if (waiters > 0) {
this.notifyAll();
}
}
notifyListeners();
}
public boolean cancel() {
if (!cancellable) {
return false;
}
synchronized (this) {
// Allow only once.
if (done) {
return false;
}
cause = CANCELLED;
done = true;
if (waiters > 0) {
this.notifyAll();
}
}
notifyListeners();
return true;
}
private void notifyListeners() {
// There won't be any visibility problem or concurrent modification
// because 'ready' flag will be checked against both addListener and
// removeListener calls.
if (firstListener != null) {
notifyListener(firstListener);
firstListener = null;
if (otherListeners != null) {
for (<API key> l: otherListeners) {
notifyListener(l);
}
otherListeners = null;
}
}
}
private void notifyListener(<API key> l) {
try {
l.operationComplete(this);
} catch (Throwable t) {
logger.warn(
"An exception was thrown by " +
<API key>.class.getSimpleName() + ".", t);
}
}
}
|
vti_encoding:SR|utf8-nl
<API key>:TR|02 Jan 2009 17:15:39 -0000
vti_extenderversion:SR|6.0.2.8161
vti_author:SR|EX3\\José Miguel Sánchez
vti_modifiedby:SR|VPCXNAGS20\\EX3
vti_timecreated:TR|24 Jan 2006 03:59:18 -0000
vti_title:SR|dx_Sound_Class: CD_NextTrack
vti_backlinkinfo:VX|dx_Sound_Class.CD_Pause.html dx_Sound_Class.html dx_Sound_Class.CD_GetVolume.html
<API key>:TR|02 Jan 2009 17:12:58 -0000
vti_cacheddtm:TX|02 Jan 2009 17:15:39 -0000
vti_filesize:IR|1831
vti_cachedtitle:SR|dx_Sound_Class: CD_NextTrack
vti_cachedbodystyle:SR|<BODY TOPMARGIN="0">
vti_cachedlinkinfo:VX|S|linkcss.js S|langref.js H|dx_lib32.html H|dx_Sound_Class.html K|dx_Sound_Class.html K|dx_Sound_Class.html H|dx_Sound_Class.CD_GetVolume.html H|dx_Sound_Class.CD_Pause.html H|http://vbdox.sourceforge.net/
<API key>:VX|FSUS|linkcss.js FSUS|langref.js FHUS|dx_lib32.html FHUS|dx_Sound_Class.html FHUS|dx_Sound_Class.html FHUS|dx_Sound_Class.html FHUS|dx_Sound_Class.CD_GetVolume.html FHUS|dx_Sound_Class.CD_Pause.html NHHS|http://vbdox.sourceforge.net/
<API key>:BR|false
vti_cachedhasbots:BR|false
vti_cachedhastheme:BR|false
vti_cachedhasborder:BR|false
vti_metatags:VR|HTTP-EQUIV=Content-Type Text/html;\\ charset=iso-8859-1 Author misho GENERATOR VBDOX\\ [1.0.24]
vti_charset:SR|iso-8859-1
vti_generator:SR|VBDOX [1.0.24]
|
/**
* Contains the service and the class filter required for this bundle.
*/
package org.awb.env.networkModel.classFilter;
|
# Dockerfile for the basic link-grammar source download.
# No compilation is performed.
FROM ubuntu:14.04
MAINTAINER Linas Vepstas linasvepstas@gmail.com
RUN apt-get update
RUN apt-get -y install apt-utils
RUN apt-get -y install gcc g++ make
# Need wget to download link-grammar source
RUN apt-get -y install wget
# Download the current released version of link-grammar.
# The wget tries to guess the correct file to download w/ wildcard
RUN wget -r --no-parent -nH --cut-dirs=2 http:
# Unpack the sources, too.
RUN tar -zxf current/link-grammar-5*.tar.gz
# Need the locales for utf8
RUN apt-get install locales
RUN (echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
echo "ru_RU.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "he_IL.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "lt_LT.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "fa_IR.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "ar_AE.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "kk_KZ.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "tr_TR.UTF-8 UTF-8" >> /etc/locale.gen)
# WTF. In debian wheezy, it is enough to just say locale-gen without
# any arguments. But in trusty, we eneed to be explicit. I'm confused.
# RUN locale-gen
# Note also: under trusty, fa_IR.UTF-8 causes locale-gen to fail,
# must use the naked fa_IR
# Note also: Kazakh is kk_KZ not kz_KZ
RUN locale-gen en_US.UTF-8 ru_RU.UTF-8 he_IL.UTF-8 de_DE.UTF-8 lt_LT.UTF-8 fa_IR ar_AE.UTF-8 kk_KZ.UTF-8 tr_TR.UTF-8
|
# Set the ERL environnement variable if you want to use a specific erl
ERL ?= $(shell which erl)
EJABBERD_DEV ?= ../ejabberd-modules/ejabberd-dev/trunk
all: clean
$(ERL) -pa $(EJABBERD_DEV)/ebin -make
clean:
|
class CfmxCompat
class Version
MAJOR = 0
MINOR = 0
PATCH = 1
PRE = nil
class << self
def to_s
[MAJOR, MINOR, PATCH, PRE].compact.join(".")
end
end
end
end
|
# -*- coding: utf-8 -*-
# This library is free software; you can redistribute it and/or modify it
# option) any later version.
# This library is distributed in the hope that it will be useful, but WITHOUT
# for more details.
# along with this library; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# pylint: disable=<API key>
from __future__ import (print_function, division, unicode_literals,
absolute_import)
from PyQt4.QtCore import QSocketNotifier, QObject, pyqtSignal
from pyudev._util import text_type
from pyudev.core import Device
from pyudev._qt_base import <API key>, <API key>
class MonitorObserver(QObject, <API key>):
"""An observer for device events integrating into the :mod:`PyQt4` mainloop.
This class inherits :class:`~PyQt4.QtCore.QObject` to turn device events
into Qt signals:
from pyudev import Context, Monitor
from pyudev.pyqt4 import MonitorObserver
context = Context()
monitor = Monitor.from_netlink(context)
monitor.filter_by(subsystem='input')
observer = MonitorObserver(monitor)
def device_event(device):
print('event {0} on device {1}'.format(device.action, device))
observer.deviceEvent.connect(device_event)
monitor.start()
This class is a child of :class:`~PyQt4.QtCore.QObject`.
"""
#: emitted upon arbitrary device events
deviceEvent = pyqtSignal(Device)
def __init__(self, monitor, parent=None):
"""
Observe the given ``monitor`` (a :class:`~pyudev.Monitor`):
``parent`` is the parent :class:`~PyQt4.QtCore.QObject` of this
object. It is passed unchanged to the inherited constructor of
:class:`~PyQt4.QtCore.QObject`.
"""
QObject.__init__(self, parent)
self._setup_notifier(monitor, QSocketNotifier)
class <API key>(QObject, <API key>):
"""An observer for device events integrating into the :mod:`PyQt4` mainloop.
.. deprecated:: 0.17
Will be removed in 1.0. Use :class:`MonitorObserver` instead.
"""
#: emitted upon arbitrary device events
deviceEvent = pyqtSignal(text_type, Device)
#: emitted, if a device was added
deviceAdded = pyqtSignal(Device)
#: emitted, if a device was removed
deviceRemoved = pyqtSignal(Device)
#: emitted, if a device was changed
deviceChanged = pyqtSignal(Device)
#: emitted, if a device was moved
deviceMoved = pyqtSignal(Device)
def __init__(self, monitor, parent=None):
"""
Observe the given ``monitor`` (a :class:`~pyudev.Monitor`):
``parent`` is the parent :class:`~PyQt4.QtCore.QObject` of this
object. It is passed unchanged to the inherited constructor of
:class:`~PyQt4.QtCore.QObject`.
"""
QObject.__init__(self, parent)
self._setup_notifier(monitor, QSocketNotifier)
|
#ifndef <API key>
#define <API key>
#include "qgraphicsgeomap.h"
#include <QObject>
#include <QSize>
#include <QPair>
class QLocale;
QTM_BEGIN_NAMESPACE
class QGeoBoundingBox;
class QGeoCoordinate;
class QGeoMapData;
class <API key>;
class <API key>;
class <API key>;
class Q_LOCATION_EXPORT <API key> : public QObject
{
Q_OBJECT
public:
<API key>(const QMap<QString, QVariant> ¶meters, QObject *parent = 0);
virtual ~<API key>();
QString managerName() const;
int managerVersion() const;
virtual QGeoMapData* createMapData() = 0;
QList<QGraphicsGeoMap::MapType> supportedMapTypes() const;
QList<QGraphicsGeoMap::ConnectivityMode> <API key>() const;
qreal minimumZoomLevel() const;
qreal maximumZoomLevel() const;
void setLocale(const QLocale &locale);
QLocale locale() const;
protected:
<API key>(<API key> *dd, QObject *parent = 0);
void <API key>(const QList<QGraphicsGeoMap::MapType> &mapTypes);
void <API key>(const QList<QGraphicsGeoMap::ConnectivityMode> &connectivityModes);
void setMinimumZoomLevel(qreal minimumZoom);
void setMaximumZoomLevel(qreal maximumZoom);
<API key>* d_ptr;
private:
void setManagerName(const QString &managerName);
void setManagerVersion(int managerVersion);
Q_DECLARE_PRIVATE(<API key>)
Q_DISABLE_COPY(<API key>)
friend class QGeoServiceProvider;
};
QTM_END_NAMESPACE
#endif
|
/**
* \file
*/
#ifndef MAX1464_H
#define MAX1464_H
#include "lib/AbstractMAX1464.h"
#include <SPI.h>
/**
* @brief Interface to the Maxim %MAX1464 Multichannel Sensor Signal Processor,
* Arduino SPI library version.
*
* This class makes use of the Arduino SPI library with 4-wire data transfer
* mode.
*/
class MAX1464 : public AbstractMAX1464
{
public:
MAX1464(const int chipSelect);
virtual void begin();
virtual void end();
virtual void byteShiftOut(
const uint8_t b, const char *debugMsg = NULL) const;
virtual uint16_t wordShiftIn() const;
private:
SPISettings settings;
};
#endif // MAX1464_H
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - doc-coverage.info - Cqrs.EventStore/ProjectionReader.cs</title>
<link rel="stylesheet" type="text/css" href="../gcov.css">
</head>
<body>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">Documentation Coverage Report</td></tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="35%" class="headerValue"><a href="../index.html">top level</a> - <a href="index.html">Cqrs.EventStore</a> - ProjectionReader.cs</td>
<td width="5%"></td>
<td width="15%"></td>
<td width="10%" class="headerCovTableHead">Hit</td>
<td width="10%" class="headerCovTableHead">Total</td>
<td width="15%" class="headerCovTableHead">Coverage</td>
</tr>
<tr>
<td class="headerItem">Version:</td>
<td class="headerValue">4.0</td>
<td></td>
<td class="headerItem">Artefacts:</td>
<td class="headerCovTableEntry">4</td>
<td class="headerCovTableEntry">4</td>
<td class="<API key>">100.0 %</td>
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2021-04-11 22:05:22</td>
<td></td>
</tr>
<tr><td><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td><br></td>
</tr>
<tr>
<td>
<pre class="sourceHeading"> Line data Source code</pre>
<pre class="source">
<span class="lineNum"> 1 </span> :
<span class="lineNum"> 2 </span> :
<span class="lineNum"> 3 </span> :
<span class="lineNum"> 4 </span> :
<span class="lineNum"> 5 </span> :
<span class="lineNum"> 6 </span> :
<span class="lineNum"> 7 </span> : #endregion
<span class="lineNum"> 8 </span> :
<span class="lineNum"> 9 </span> : using System;
<span class="lineNum"> 10 </span> : using System.Collections.Generic;
<span class="lineNum"> 11 </span> : using System.Linq;
<span class="lineNum"> 12 </span> : using System.Text;
<span class="lineNum"> 13 </span> : using EventStore.ClientAPI;
<span class="lineNum"> 14 </span> : using Newtonsoft.Json;
<span class="lineNum"> 15 </span> :
<span class="lineNum"> 16 </span> : namespace Cqrs.EventStore
<span class="lineNum"> 17 </span> : {
<span class="lineNum"> 18 </span> : /// <summary>
<span class="lineNum"> 19 </span> : /// Reads projection streams from a Greg Young's Event sTore.
<span class="lineNum"> 20 </span> : /// </summary>
<span class="lineNum"> 21 </span> : /// <typeparam name="<API key>">The <see cref="Type"/> of the authentication token.</typeparam>
<span class="lineNum"> 22 </span> : public abstract class ProjectionReader<<API key>>
<span class="lineNum"> 23 </span><span class="lineCov"> 1 : {</span>
<span class="lineNum"> 24 </span> : /// <summary>
<span class="lineNum"> 25 </span> : /// The <see cref="<API key>"/> used to read and write streams in the Greg Young Event Store.
<span class="lineNum"> 26 </span> : /// </summary>
<span class="lineNum"> 27 </span> : protected <API key> <API key> { get; set; }
<span class="lineNum"> 28 </span> :
<span class="lineNum"> 29 </span> : /// <summary>
<span class="lineNum"> 30 </span> : /// The <see cref="IEventDeserialiser{<API key>}"/> used to deserialise events.
<span class="lineNum"> 31 </span> : /// </summary>
<span class="lineNum"> 32 </span> : protected IEventDeserialiser<<API key>> EventDeserialiser { get; set; }
<span class="lineNum"> 33 </span> :
<span class="lineNum"> 34 </span> : /// <summary>
<span class="lineNum"> 35 </span> : /// Instantiates a new instance of <see cref="ProjectionReader{<API key>}"/>.
<span class="lineNum"> 36 </span> : /// </summary>
<span class="lineNum"> 37 </span><span class="lineCov"> 1 : protected ProjectionReader(<API key> <API key>, IEventDeserialiser<<API key>> eventDeserialiser)</span>
<span class="lineNum"> 38 </span> : {
<span class="lineNum"> 39 </span> : <API key> = <API key>;
<span class="lineNum"> 40 </span> : EventDeserialiser = eventDeserialiser;
<span class="lineNum"> 41 </span> : }
<span class="lineNum"> 42 </span> :
<span class="lineNum"> 43 </span> : /// <summary>
<span class="lineNum"> 44 </span> : /// Get a collection of data objects from a stream with the provided <paramref name="streamName"/>.
<span class="lineNum"> 45 </span> : /// </summary>
<span class="lineNum"> 46 </span> : /// <param name="streamName">The name of the stream to read events from.</param>
<span class="lineNum"> 47 </span><span class="lineCov"> 1 : protected IEnumerable<dynamic> GetDataByStreamName(string streamName)</span>
<span class="lineNum"> 48 </span> : {
<span class="lineNum"> 49 </span> : StreamEventsSlice eventCollection;
<span class="lineNum"> 50 </span> : using (<API key> connection = <API key>.<API key>())
<span class="lineNum"> 51 </span> : {
<span class="lineNum"> 52 </span> : eventCollection = connection.<API key>(streamName, StreamPosition.End, 1, false).Result;
<span class="lineNum"> 53 </span> : }
<span class="lineNum"> 54 </span> : var <API key> = EventDeserialiser.<API key>();
<span class="lineNum"> 55 </span> : var encoder = new UTF8Encoding();
<span class="lineNum"> 56 </span> : return
<span class="lineNum"> 57 </span> : (
<span class="lineNum"> 58 </span> : (
<span class="lineNum"> 59 </span> : (IEnumerable<dynamic>)eventCollection.Events
<span class="lineNum"> 60 </span> : .Select(e => JsonConvert.DeserializeObject(((dynamic)encoder.GetString(e.Event.Data)), <API key>))
<span class="lineNum"> 61 </span> : .SingleOrDefault()
<span class="lineNum"> 62 </span> : )
<span class="lineNum"> 63 </span> : ??
<span class="lineNum"> 64 </span> : (
<span class="lineNum"> 65 </span> : Enumerable.Empty<dynamic>()
<span class="lineNum"> 66 </span> : )
<span class="lineNum"> 67 </span> : )
<span class="lineNum"> 68 </span> : .Select(x => x.Value);
<span class="lineNum"> 69 </span> : }
<span class="lineNum"> 70 </span> :
<span class="lineNum"> 71 </span> : /// <summary>
<span class="lineNum"> 72 </span> : /// Get a collection of <typeparamref name="TData"/> from a stream with the provided <paramref name="streamName"/>.
<span class="lineNum"> 73 </span> : /// </summary>
<span class="lineNum"> 74 </span> : /// <param name="streamName">The name of the stream to read events from.</param>
<span class="lineNum"> 75 </span><span class="lineCov"> 1 : protected IEnumerable<TData> GetDataByStreamName<TData>(string streamName)</span>
<span class="lineNum"> 76 </span> : {
<span class="lineNum"> 77 </span> : IList<TData> data = GetDataByStreamName(streamName)
<span class="lineNum"> 78 </span> : .Select(e => JsonConvert.DeserializeObject<TData>(e.ToString()))
<span class="lineNum"> 79 </span> : .Cast<TData>()
<span class="lineNum"> 80 </span> : .ToList();
<span class="lineNum"> 81 </span> : return data;
<span class="lineNum"> 82 </span> : }
<span class="lineNum"> 83 </span> : }
<span class="lineNum"> 84 </span> : }
</pre>
</td>
</tr>
</table>
<br>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.13</a></td></tr>
</table>
<br>
</body>
</html>
|
// The libMesh Finite Element Library.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should have received a copy of the GNU Lesser General Public
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifndef LIBMESH_NODE_H
#define LIBMESH_NODE_H
// Local includes
#include "libmesh/point.h"
#include "libmesh/dof_object.h"
#include "libmesh/<API key>.h"
#include "libmesh/auto_ptr.h" // libmesh_make_unique
// C++ includes
#include <iostream>
#include <vector>
namespace libMesh
{
// forward declarations
class Node;
class MeshBase;
class MeshRefinement;
/**
* A \p Node is like a \p Point, but with more information. A \p Node
* is located in space and is associated with some \p (x,y,z)
* coordinates. Additionally, a \p Node may be enumerated with a
* global \p id. Finally, a \p Node may have an arbitrary number of
* degrees of freedom associated with it.
*
* \author Benjamin S. Kirk
* \date 2003
* \brief A geometric point in (x,y,z) space associated with a DOF.
*/
class Node : public Point,
public DofObject,
public <API key><Node>
{
public:
/**
* Constructor. By default sets all entries to 0. Gives the point 0 in
* \p LIBMESH_DIM dimensions with an \p id of \p Node::invalid_id.
*/
explicit
Node (const Real x=0,
const Real y=0,
const Real z=0,
const dof_id_type id = invalid_id);
/**
* Copy-constructor.
*
* \deprecated - anyone copying a Node would almost certainly be
* better off copying the much cheaper Point or taking a reference
* to the Node.
*/
#ifdef <API key>
Node (const Node & n);
#endif
/**
* Copy-constructor from a \p Point. Optionally assigned the \p id.
*/
explicit Node (const Point & p,
const dof_id_type id = invalid_id);
/**
* Disambiguate constructing from non-Real scalars
*/
template <typename T,
typename = typename
boostcopy::enable_if_c<ScalarTraits<T>::value,void>::type>
Node (const T x) :
Point (x,0,0)
{ this->set_id() = invalid_id; }
/**
* Destructor.
*/
~Node ();
/**
* Assign to a node from a point.
*/
Node & operator= (const Point & p);
/**
* \returns A \p Node copied from \p n and wrapped in a smart pointer.
*
* \deprecated - anyone copying a Node would almost certainly be
* better off copying the much cheaper Point or taking a reference
* to the Node.
*/
#ifdef <API key>
static std::unique_ptr<Node> build (const Node & n);
#endif
/**
* \returns A \p Node copied from \p p with id == \p id and wrapped in a smart pointer.
*/
static std::unique_ptr<Node> build (const Point & p,
const dof_id_type id);
/**
* \returns A \p Node created from the specified (x,y,z) positions
* with id == \p id and wrapped in a smart pointer.
*/
static std::unique_ptr<Node> build (const Real x,
const Real y,
const Real z,
const dof_id_type id);
/**
* \returns \p true if the node is active. An active node is
* defined as one for which \p id() is not \p Node::invalid_id.
* Inactive nodes are nodes that are in the mesh but are not
* connected to any elements.
*/
bool active () const;
/**
* \returns \p true if this node equals rhs, false otherwise.
*/
bool operator ==(const Node & rhs) const;
/**
* Prints relevant information about the node.
*/
void print_info (std::ostream & os=libMesh::out) const;
/**
* Prints relevant information about the node to a string.
*/
std::string get_info () const;
#ifdef LIBMESH_HAVE_MPI
unsigned int packed_size() const
{
const unsigned int header_size = 2;
// use "(a+b-1)/b" trick to get a/b to round up
static const unsigned int idtypes_per_Real =
(sizeof(Real) + sizeof(largest_id_type) - 1) / sizeof(largest_id_type);
return header_size + LIBMESH_DIM*idtypes_per_Real +
this-><API key>();
}
#endif // #ifdef LIBMESH_HAVE_MPI
/**
* \returns The number of nodes connected with this node.
* Currently, this value is invalid (zero) except for
* subdivision meshes.
*/
unsigned int valence() const
{
#ifdef <API key>
return _valence;
#else
<API key>();
return libMesh::invalid_uint;
#endif
}
/**
* Sets the number of nodes connected with this node.
*/
void set_valence(unsigned int val);
/**
* Return which of pid1 and pid2 would be preferred by the current
* load-balancing heuristic applied to this node.
*/
processor_id_type choose_processor_id(processor_id_type pid1, processor_id_type pid2) const;
private:
/**
* This class need access to the node key information,
* but no one else should be able to mess with it.
*/
friend class MeshRefinement;
friend class Elem;
#ifdef <API key>
/**
* Type used to store node valence.
*/
typedef unsigned char valence_idx_t;
/**
* The number of nodes connected with this node.
* Currently, this value is invalid (zero) except for
* subdivision meshes.
*/
valence_idx_t _valence;
#endif
};
// Global Node functions
inline
std::ostream & operator << (std::ostream & os, const Node & n)
{
n.print_info(os);
return os;
}
// Inline functions
inline
Node::Node (const Real x,
const Real y,
const Real z,
const dof_id_type dofid) :
Point(x,y,z)
#ifdef <API key>
,
_valence(0)
#endif
{
this->set_id() = dofid;
}
#ifdef <API key>
inline
Node::Node (const Node & n) :
Point(n),
DofObject(n),
<API key><Node>()
#ifdef <API key>
,
_valence(n._valence)
#endif
{
libmesh_deprecated();
}
#endif
inline
Node::Node (const Point & p,
const dof_id_type dofid) :
Point(p)
#ifdef <API key>
,
_valence(0)
#endif
{
// optionally assign the id. We have
// to do it like this otherwise
// Node n = Point p would erase
// the id!
if (dofid != invalid_id)
this->set_id() = dofid;
}
inline
Node::~Node ()
{
}
inline
Node & Node::operator= (const Point & p)
{
(*this)(0) = p(0);
#if LIBMESH_DIM > 1
(*this)(1) = p(1);
#endif
#if LIBMESH_DIM > 2
(*this)(2) = p(2);
#endif
return *this;
}
#ifdef <API key>
inline
std::unique_ptr<Node> Node::build(const Node & n)
{
libmesh_deprecated();
return libmesh_make_unique<Node>(n);
}
#endif
inline
std::unique_ptr<Node> Node::build(const Point & p,
const dof_id_type id)
{
return libmesh_make_unique<Node>(p,id);
}
inline
std::unique_ptr<Node> Node::build(const Real x,
const Real y,
const Real z,
const dof_id_type id)
{
return libmesh_make_unique<Node>(x,y,z,id);
}
inline
bool Node::active () const
{
return (this->id() != Node::invalid_id);
}
#ifdef <API key>
inline
void Node::set_valence (unsigned int val)
{
_valence = cast_int<valence_idx_t>(val);
}
#else
inline
void Node::set_valence (unsigned int)
{
<API key>();
}
#endif // #ifdef <API key>
} // namespace libMesh
#endif // LIBMESH_NODE_H
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>GTL: Référence du fichier gtl_image_raw.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<div class="qindex"><a class="qindex" href="index.html">Page principale</a> | <a class="qindex" href="namespaces.html">Liste des namespaces</a> | <a class="qindex" href="hierarchy.html">Hiérarchie des classes</a> | <a class="qindex" href="annotated.html">Liste des classes</a> | <a class="qindex" href="files.html">Liste des fichiers</a> | <a class="qindex" href="namespacemembers.html">Membres de namespace</a> | <a class="qindex" href="functions.html">Membres de classe</a> | <a class="qindex" href="globals.html">Membres de fichier</a></div>
<h1>Référence du fichier gtl_image_raw.h</h1>Classe CImageRAW, pour le chargement des images RAW. <a href="
<p>
<code>#include "<a class="el" href="<API key>.html">gtl_image.h</a>"</code><br>
<code>#include <string></code><br>
<p>
<a href="<API key>.html">Aller au code source de ce fichier.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>namespace </td><td class="memItemRight" valign=bottom><a class="el" href="namespacegtl.html">gtl</a></td></tr>
<tr><td colspan=2><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="<API key>.html">gtl::CImageRAW</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Classe pour le chargement des images RAW. <a href="<API key>.html
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Classe CImageRAW, pour le chargement des images RAW.
<p>
<dl compact><dt><b>Date:</b></dt><dd>02/10/2004</dd></dl>
<p>
Définition dans le fichier <a class="el" href="<API key>.html">gtl_image_raw.h</a>.<hr size="1"><address style="align: right;"><small>Généré le Wed Jan 5 23:28:23 2005 pour GTL par
<a href="http:
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|
using System.Xml.Serialization;
namespace MDFe.Classes.Informacoes
{
public enum tpComp
{
[XmlEnum("01")]
ValePedagio = 01,
[XmlEnum("02")]
<API key> = 02,
[XmlEnum("03")]
<API key> = 03,
[XmlEnum("99")]
Outros = 99
}
}
|
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include "ibuf.h"
/** Set the effective read position. */
int ibuf_seek(ibuf* in, unsigned offset)
{
iobuf* io;
unsigned buf_start;
io = &(in->io);
buf_start = io->offset - io->buflen;
if (offset >= buf_start && offset <= io->offset)
io->bufstart = offset - buf_start;
else {
if (lseek(io->fd, offset, SEEK_SET) != (off_t)offset)
IOBUF_SET_ERROR(io);
io->offset = offset;
io->buflen = 0;
io->bufstart = 0;
}
in->count = 0;
io->flags &= ~IOBUF_EOF;
return 1;
}
|
#ifndef _OSGGLUTWINDOW_H_
#define _OSGGLUTWINDOW_H_
#ifdef __sgi
#pragma once
#endif
#if defined(OSG_WITH_GLUT) || defined(OSG_DO_DOC)
#include "OSGGLUTWindowBase.h"
OSG_BEGIN_NAMESPACE
/*! \brief GLUT Window class. See \ref PageWindowGLUT for a description.
\ingroup GrpWindowGLUTObj
\ingroup GrpLibOSGWindowGLUT
\includebasedoc
*/
class <API key> GLUTWindow : public GLUTWindowBase
{
public:
typedef GLUTWindowBase Inherited;
/*! \name Sync */
virtual void changed(ConstFieldMaskArg whichField,
UInt32 origin,
BitVector detail);
/*! \name Output */
virtual void dump( UInt32 uiIndent = 0,
const BitVector bvFlags = 0) const;
/*! \name Window functions */
virtual void init(GLInitFunctor oFunc = GLInitFunctor());
/*! \name Redefined */
virtual void activate (void);
virtual void terminate(void);
protected:
// Variables should all be in GLUTWindowBase.
/*! \name Constructors */
GLUTWindow(void);
GLUTWindow(const GLUTWindow &source);
/*! \name Destructors */
virtual ~GLUTWindow(void);
/*! \name Init */
static void initMethod(InitPhase ePhase);
/*! \name Window system implementation functions */
private:
friend class FieldContainer;
friend class GLUTWindowBase;
// prohibit default functions (move to 'public' if you need one)
void operator =(const GLUTWindow &source);
};
OSG_END_NAMESPACE
#include "OSGGLUTWindow.inl"
#include "OSGGLUTWindowBase.inl"
#endif /* OSG_WITH_GLUT */
#endif /* _OSGGLUTWINDOW_H_ */
|
package org.languagetool.tokenizers.uk;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.StringTokenizer;
import org.languagetool.tokenizers.Tokenizer;
/**
* Tokenizes a sentence into words.
* Punctuation and whitespace gets its own token.
* Specific to Ukrainian: apostrophes (0x27 and U+2019) not in the list as they are part of the word
*
* @author Andriy Rysin
*/
public class <API key> implements Tokenizer {
private static final String SPLIT_CHARS = "\u0020\u00A0"
+ "\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007"
+ "\u2008\u2009\u200A\u200B\u200c\u200d\u200e\u200f"
+ "\u2028\u2029\u202a\u202b\u202c\u202d\u202e\u202f"
+ "\u205F\u2060\u2061\u2062\u2063\u206A\u206b\u206c\u206d"
+ "\u206E\u206F\u3000\u3164\ufeff\uffa0\ufff9\ufffa\ufffb"
+ ",.;()[]{}<>!?:/|\\\"«»„”“…¿¡\t\n\r\uE100\uE101\uE102\uE110";
// for handling exceptions
private static final char DECIMAL_COMMA_SUBST = '\uE001'; // some unused character to hide comma in decimal number temporary for tokenizer run
private static final char <API key> = '\uE002';
private static final char <API key> = '\uE003'; // some unused character to hide dot in date temporary for tokenizer run
private static final char <API key> = '\uE004';
// decimal comma between digits
private static final Pattern <API key> = Pattern.compile("([\\d]),([\\d])", Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE);
private static final String DECIMAL_COMMA_REPL = "$1" + DECIMAL_COMMA_SUBST + "$2";
// space between digits
private static final Pattern <API key> = Pattern.compile("(?<=^|[\\s(])\\d{1,3}( [\\d]{3})+(?=[\\s(]|$)", Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE);
// dots in numbers
private static final Pattern <API key> = Pattern.compile("([\\d])\\.([\\d])", Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE);
private static final String DOTTED_NUMBERS_REPL = "$1" + <API key> + "$2";
// colon in numbers
private static final Pattern <API key> = Pattern.compile("([\\d]):([\\d])", Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE);
private static final String COLON_NUMBERS_REPL = "$1" + <API key> + "$2";
// dates
private static final Pattern DATE_PATTERN = Pattern.compile("([\\d]{2})\\.([\\d]{2})\\.([\\d]{4})|([\\d]{4})\\.([\\d]{2})\\.([\\d]{2})|([\\d]{4})-([\\d]{2})-([\\d]{2})", Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE);
private static final String DATE_PATTERN_REPL = "$1" + <API key> + "$2" + <API key> + "$3";
// braces in words
private static final Pattern <API key> = Pattern.compile("([а-яіїєґ'])\\(([а-яіїєґ']+)\\)", Pattern.CASE_INSENSITIVE|Pattern.UNICODE_CASE);
private static final char LEFT_BRACE_SUBST = '\uE005';
private static final char RIGHT_BRACE_SUBST = '\uE006';
private static final String <API key> = "\uE110";
// abbreviation dot
private static final Pattern <API key> = Pattern.compile("(тис)\\.([ \u00A0]+[а-яіїєґ])");
private static final Pattern <API key> = Pattern.compile("([^а-яіїєґА-ЯІЇЄҐ'-]лат)\\.([ \u00A0]+[a-zA-Z])");
private static final Pattern <API key> = Pattern.compile("([Аа]кад|[Пп]роф|[Дд]оц|[Аа]сист|вул|о|р|ім)\\.([\\s\u00A0]+[А-ЯІЇЄҐ])");
private static final Pattern <API key> = Pattern.compile("([А-ЯІЇЄҐ])\\.([\\s\u00A0][А-ЯІЇЄҐ])\\.([\\s\u00A0][А-ЯІЇЄҐ][а-яіїєґ']+)");
private static final String <API key> = "$1" + <API key> + "$2" + <API key> + "$3";
private static final Pattern <API key> = Pattern.compile("([А-ЯІЇЄҐ])\\.([\\s\u00A0][А-ЯІЇЄҐ][а-яіїєґ']+)");
private static final String <API key> = "$1" + <API key> + "$2";
private static final Pattern <API key> = Pattern.compile("([А-ЯІЇЄҐ])\\.([А-ЯІЇЄҐ])\\.([А-ЯІЇЄҐ][а-яіїєґ']+)");
private static final String <API key> = "$1" + <API key> + <API key> + "$2" + <API key> + <API key> + "$3";
private static final Pattern <API key> = Pattern.compile("([А-ЯІЇЄҐ])\\.([А-ЯІЇЄҐ][а-яіїєґ']+)");
private static final String <API key> = "$1" + <API key> + <API key> + "$2";
private static final Pattern <API key> = Pattern.compile("((?:[0-9]|кв\\.?|куб\\.?)[\\s\u00A0]+[см])\\.");
private static final Pattern <API key> = Pattern.compile("(с)\\.(-г)\\.");
private static final Pattern <API key> = Pattern.compile("([^а-яіїєґ'-][векнпрстцч]{1,2})\\.([екмнпрстч]{1,2})\\.");
private static final String <API key> = "$1" + <API key> + <API key> + "$2" + <API key>;
private static final Pattern <API key> = Pattern.compile("([^а-яіїєґА-ЯІЇЄҐ'-](?:амер|англ|бл(?:изьк)?|буд|вірм|грец(?:ьк)|див|дол|досл|доц|ел|жін|заст|зв|ім|івр|ісп|італ|к|кв|[1-9]-кімн|кімн|кл|м|н|напр|п|пен|перекл|пл|пор|поч|прибл|пров|просп|[Рр]ед|[Рр]еж|рт|с|[Сс]в|соц|співавт|стор|табл|тел|укр|філол|фр|франц|ч|чайн|ц))\\.(?!$)");
private static final Pattern <API key> = Pattern.compile("([^а-яіїєґА-ЯІЇЄҐ'-]((та|й) ін|е|коп|обл|р|рр|руб|ст|стол|стор|чол|шт))\\.");
private static final Pattern <API key> = Pattern.compile("([ій][ \u00A0]+т)\\.([ \u00A0]*(д|п|ін))\\.");
private static final Pattern <API key> = Pattern.compile("([\\s\u00A0]+(?:[Рр]ед|[Аа]вт))\\.([\\)\\]])");
// ellipsis
private static final String ELLIPSIS = "...";
private static final String ELLIPSIS_SUBST = "\uE100";
private static final String ELLIPSIS2 = "!..";
private static final String ELLIPSIS2_SUBST = "\uE101";
private static final String ELLIPSIS3 = "?..";
private static final String ELLIPSIS3_SUBST = "\uE102";
private static final String SOFT_HYPHEN_WRAP = "\u00AD\n";
private static final String <API key> = "\uE103";
// url
private static final Pattern URL_PATTERN = Pattern.compile("^(https?|ftp)://[^\\s/$.?#].[^\\s]*$", Pattern.CASE_INSENSITIVE);
private static final int <API key> = 0xE300;
public <API key>() {
}
@Override
public List<String> tokenize(String text) {
HashMap<String, String> urls = new HashMap<>();
text = cleanup(text);
if( text.contains(",") ) {
text = <API key>.matcher(text).replaceAll(DECIMAL_COMMA_REPL);
}
// check for urls
if( text.contains("tp") ) { // https?|ftp
Matcher matcher = URL_PATTERN.matcher(text);
int urlReplaceChar = <API key>;
while( matcher.find() ) {
String urlGroup = matcher.group();
String replaceChar = String.valueOf((char)urlReplaceChar);
urls.put(replaceChar, urlGroup);
text = matcher.replaceAll(replaceChar);
urlReplaceChar++;
}
}
// if period is not the last character in the sentence
int dotIndex = text.indexOf(".");
boolean dotInsideSentence = dotIndex >= 0 && dotIndex < text.length()-1;
if( dotInsideSentence ){
if( text.contains(ELLIPSIS) ) {
text = text.replace(ELLIPSIS, ELLIPSIS_SUBST);
}
if( text.contains(ELLIPSIS2) ) {
text = text.replace(ELLIPSIS2, ELLIPSIS2_SUBST);
}
if( text.contains(ELLIPSIS3) ) {
text = text.replace(ELLIPSIS3, ELLIPSIS3_SUBST);
}
text = DATE_PATTERN.matcher(text).replaceAll(DATE_PATTERN_REPL);
text = <API key>.matcher(text).replaceAll(DOTTED_NUMBERS_REPL);
text = <API key>.matcher(text).replaceAll(<API key>);
text = <API key>.matcher(text).replaceAll("$1" + <API key> + "$2");
text = <API key>.matcher(text).replaceAll("$1" + <API key> + "$2");
text = <API key>.matcher(text).replaceAll("$1" + <API key> + "$2");
text = <API key>.matcher(text).replaceAll(<API key>);
text = <API key>.matcher(text).replaceAll(<API key>);
text = <API key>.matcher(text).replaceAll(<API key>);
text = <API key>.matcher(text).replaceAll(<API key>);
text = <API key>.matcher(text).replaceAll("$1" + <API key> + <API key>);
text = <API key>.matcher(text).replaceAll("$1" + <API key> + "$2" + <API key>);
text = <API key>.matcher(text).replaceAll("$1" + <API key> + "$2" + <API key>);
text = <API key>.matcher(text).replaceAll("$1" + <API key> + "$2");
text = <API key>.matcher(text).replaceAll("$1" + <API key>);
}
text = <API key>.matcher(text).replaceAll("$1" + <API key>);
// 2 000 000
Matcher <API key> = <API key>.matcher(text);
if( <API key>.find() ) {
StringBuffer sb = new StringBuffer();
do {
String splitNumber = <API key>.group(0);
String splitNumberAdjusted = splitNumber.replace(' ', <API key>);
splitNumberAdjusted = splitNumberAdjusted.replace('\u00A0', <API key>);
<API key>.appendReplacement(sb, splitNumberAdjusted);
} while( <API key>.find() );
<API key>.appendTail(sb);
text = sb.toString();
}
// 12:25
if( text.contains(":") ) {
text = <API key>.matcher(text).replaceAll(COLON_NUMBERS_REPL);
}
if( text.contains("(") ) {
text = <API key>.matcher(text).replaceAll("$1" + LEFT_BRACE_SUBST + "$2" + RIGHT_BRACE_SUBST);
}
if( text.contains(SOFT_HYPHEN_WRAP) ) {
text = text.replace(SOFT_HYPHEN_WRAP, <API key>);
}
List<String> tokenList = new ArrayList<>();
StringTokenizer st = new StringTokenizer(text, SPLIT_CHARS, true);
while (st.hasMoreElements()) {
String token = st.nextToken();
if( token.equals(<API key>) )
continue;
token = token.replace(DECIMAL_COMMA_SUBST, ',');
token = token.replace(<API key>, ':');
token = token.replace(<API key>, ' ');
token = token.replace(LEFT_BRACE_SUBST, '(');
token = token.replace(RIGHT_BRACE_SUBST, ')');
// outside of if as we also replace back sentence-ending abbreviations
token = token.replace(<API key>, '.');
if( dotInsideSentence ){
token = token.replace(ELLIPSIS_SUBST, ELLIPSIS);
token = token.replace(ELLIPSIS2_SUBST, ELLIPSIS2);
token = token.replace(ELLIPSIS3_SUBST, ELLIPSIS3);
}
token = token.replace(<API key>, SOFT_HYPHEN_WRAP);
if( ! urls.isEmpty() ) {
for(Entry<String, String> entry : urls.entrySet()) {
token = token.replace(entry.getKey(), entry.getValue());
}
}
tokenList.add( token );
}
return tokenList;
}
private static String cleanup(String text) {
text = text
.replace('\u2019', '\'')
.replace('\u02BC', '\'')
.replace('\u2018', '\'')
.replace('`', '\'')
.replace('´', '\'')
.replace('\u2011', '-'); // we handle \u2013 in tagger so we can base our rule on it
return text;
}
}
|
package org.orbeon.oxf.processor.serializer;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItem;
import org.apache.log4j.Logger;
import org.dom4j.Document;
import org.orbeon.oxf.common.OXFException;
import org.orbeon.oxf.pipeline.api.PipelineContext;
import org.orbeon.oxf.pipeline.api.XMLReceiver;
import org.orbeon.oxf.processor.*;
import org.orbeon.oxf.processor.serializer.store.ResultStore;
import org.orbeon.oxf.processor.serializer.store.<API key>;
import org.orbeon.oxf.util.LoggerFactory;
import org.orbeon.oxf.util.NetUtils;
import org.orbeon.oxf.xforms.processor.<API key>;
import org.orbeon.oxf.xml.XMLUtils;
import org.orbeon.oxf.xml.XPathUtils;
import org.xml.sax.SAXException;
import javax.xml.parsers.<API key>;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* The File Serializer serializes text and binary documents to files on disk.
*/
public class FileSerializer extends ProcessorImpl {
private static Logger logger = LoggerFactory.createLogger(FileSerializer.class);
public static final String <API key> = "http://orbeon.org/oxf/xml/<API key>";
public static final String DIRECTORY_PROPERTY = "directory";
// NOTE: Those are also in HttpSerializerBase
private static final boolean <API key> = false;
private static final boolean <API key> = false;
private static final boolean <API key> = false;
private static final boolean <API key> = false;
private static final boolean DEFAULT_APPEND = false;
private static final boolean <API key> = false;
static {
try {
// Create factory
<API key> <API key> = (<API key>) Class.forName("orbeon.apache.xerces.jaxp.<API key>").newInstance();
// Configure factory
<API key>.setNamespaceAware(true);
}
catch (Exception e) {
throw new OXFException(e);
}
}
public FileSerializer() {
addInputInfo(new <API key>(INPUT_CONFIG, <API key>));
addInputInfo(new <API key>(INPUT_DATA));
// We don't declare the "data" output here, as this is an optional output.
// If we declare it, we'll the XPL engine won't be happy when don't connect anything to that output.
}
private static class Config {
private String directory;
private String file;
private String scope;
private boolean proxyResult;
private String url;
private boolean append;
private boolean makeDirectories;
private boolean cacheUseLocalCache;
private boolean forceContentType;
private String <API key>;
private boolean <API key>;
private boolean forceEncoding;
private String requestedEncoding;
private boolean <API key>;
public Config(Document document) {
// Directory and file
directory = XPathUtils.<API key>(document, "/config/directory");
file = XPathUtils.<API key>(document, "/config/file");
// Scope
scope = XPathUtils.<API key>(document, "/config/scope");
// Proxy result
proxyResult = ProcessorUtils.selectBooleanValue(document, "/config/proxy-result", false);
// URL
url = XPathUtils.<API key>(document, "/config/url");
// Cache control
cacheUseLocalCache = ProcessorUtils.selectBooleanValue(document, "/config/cache-control/use-local-cache", CachedSerializer.<API key>);
// Whether to append or not
append = ProcessorUtils.selectBooleanValue(document, "/config/append", DEFAULT_APPEND);
// Whether to append or not
makeDirectories = ProcessorUtils.selectBooleanValue(document, "/config/make-directories", <API key>);
// Content-type and Encoding
<API key> = XPathUtils.<API key>(document, "/config/content-type");
forceContentType = ProcessorUtils.selectBooleanValue(document, "/config/force-content-type", <API key>);
// TODO: We don't seem to be using the content type in the file serializer.
// Maybe this is something that was left over from the days when the file serializer was also serializing XML.
if (forceContentType)
throw new OXFException("The force-content-type element requires a content-type element.");
<API key> = ProcessorUtils.selectBooleanValue(document, "/config/<API key>", <API key>);
requestedEncoding = XPathUtils.<API key>(document, "/config/encoding");
forceEncoding = ProcessorUtils.selectBooleanValue(document, "/config/force-encoding", <API key>);
if (forceEncoding && (requestedEncoding == null || requestedEncoding.equals("")))
throw new OXFException("The force-encoding element requires an encoding element.");
<API key> = ProcessorUtils.selectBooleanValue(document, "/config/<API key>", <API key>);
}
public String getDirectory() {
return directory;
}
public String getFile() {
return file;
}
public String getScope() {
return scope;
}
public boolean isProxyResult() {
return proxyResult;
}
public String getUrl() {
return url;
}
public boolean isAppend() {
return append;
}
public boolean isMakeDirectories() {
return makeDirectories;
}
public boolean <API key>() {
return cacheUseLocalCache;
}
public boolean isForceContentType() {
return forceContentType;
}
public boolean isForceEncoding() {
return forceEncoding;
}
public boolean <API key>() {
return <API key>;
}
public boolean <API key>() {
return <API key>;
}
public String <API key>() {
return <API key>;
}
public String <API key>() {
return requestedEncoding;
}
}
@Override
public void start(PipelineContext context) {
try {
// Read config
final Config config = <API key>(context, getInputByName(INPUT_CONFIG), new <API key><Config>() {
public Config read(PipelineContext context, ProcessorInput input) {
return new Config(readInputAsDOM4J(context, input));
}
});
final ProcessorInput dataInput = getInputByName(INPUT_DATA);
// Get file object
final String directory = config.getDirectory() != null ? config.getDirectory() : getPropertySet().getString(DIRECTORY_PROPERTY);
final File file = NetUtils.getFile(directory, config.getFile(), config.getUrl(), getLocationData(), config.isMakeDirectories());
// NOTE: Caching here is broken, so we never cache. This is what we should do in case
// we want caching:
// o for a given file, store a hash of the content stored (or the input key?)
// o then when we check whether we need to modify the file, check against the key
// AND the validity
// Delete file if it exists, unless we append
if (!config.isAppend() && file.exists()) {
final boolean deleted = file.delete();
// We test on file.exists() here again so we don't complain that the file can't be deleted if it got
// deleted just between our last test and the delete operation.
if (!deleted && file.exists())
throw new OXFException("Can't delete file: " + file);
}
// Create file if needed
file.createNewFile();
FileOutputStream fileOutputStream = new FileOutputStream(file, config.isAppend());
writeToFile(context, config, dataInput, fileOutputStream);
} catch (Exception e) {
throw new OXFException(e);
}
}
private void writeToFile(PipelineContext context, final Config config, ProcessorInput dataInput, final OutputStream fileOutputStream) throws IOException {
try {
if (config.cacheUseLocalCache) {
// If caching of the data is enabled, use the caching API
// We return a ResultStore
final boolean[] read = new boolean[1];
ResultStore filter = (ResultStore) <API key>(context, dataInput, new <API key>() {
public Object read(PipelineContext context, ProcessorInput input) {
read[0] = true;
if (logger.isDebugEnabled())
logger.debug("Output not cached");
try {
<API key> <API key> = new <API key>(fileOutputStream);
readInputAsSAX(context, input, new <API key>(null, <API key>, true,
config.forceContentType, config.<API key>, config.<API key>,
config.forceEncoding, config.requestedEncoding, config.<API key>));
<API key>.close();
return <API key>;
} catch (IOException e) {
throw new OXFException(e);
}
}
});
// If the output was obtained from the cache, just write it
if (!read[0]) {
if (logger.isDebugEnabled())
logger.debug("Serializer output cached");
filter.replay(fileOutputStream);
}
} else {
// Caching is not enabled
readInputAsSAX(context, dataInput, new <API key>(null, fileOutputStream, true,
config.forceContentType, config.<API key>, config.<API key>,
config.forceEncoding, config.requestedEncoding, config.<API key>));
fileOutputStream.close();
}
} finally {
if (fileOutputStream != null)
fileOutputStream.close();
}
}
/**
* Case where a response must be generated.
*/
@Override
public ProcessorOutput createOutput(String name) {
final ProcessorOutput output = new ProcessorOutputImpl(FileSerializer.this, name) {
public void readImpl(PipelineContext pipelineContext, XMLReceiver xmlReceiver) {
OutputStream fileOutputStream = null;
try {
//Get the input and config
final Config config = getConfig(pipelineContext);
final ProcessorInput dataInput = getInputByName(INPUT_DATA);
// Determine scope
final int scope;
if ("request".equals(config.getScope())) {
scope = NetUtils.REQUEST_SCOPE;
} else if ("session".equals(config.getScope())) {
scope = NetUtils.SESSION_SCOPE;
} else if ("application".equals(config.getScope())) {
scope = NetUtils.APPLICATION_SCOPE;
} else {
throw new OXFException("Invalid context requested: " + config.getScope());
}
// We use the commons fileupload utilities to write to file
final FileItem fileItem = NetUtils.prepareFileItem(scope);
fileOutputStream = fileItem.getOutputStream();
writeToFile(pipelineContext, config, dataInput, fileOutputStream);
// Create file if it doesn't exist
final File storeLocation = ((DiskFileItem) fileItem).getStoreLocation();
storeLocation.createNewFile();
// Get the url of the file
final String resultURL;
{
final String localURL = ((DiskFileItem) fileItem).getStoreLocation().toURI().toString();
if ("session".equals(config.getScope()) && config.isProxyResult())
resultURL = <API key>.jProxyURI(localURL, config.<API key>());
else
resultURL = localURL;
}
xmlReceiver.startDocument();
xmlReceiver.startElement("", "url", "url", XMLUtils.EMPTY_ATTRIBUTES);
xmlReceiver.characters(resultURL.toCharArray(), 0, resultURL.length());
xmlReceiver.endElement("", "url", "url");
xmlReceiver.endDocument();
}
catch (SAXException e) {
throw new OXFException(e);
}
catch (IOException e) {
throw new OXFException(e);
}
finally {
if (fileOutputStream != null) {
try {
fileOutputStream.close();
}
catch (IOException e) {
throw new OXFException(e);
}
}
}
}
};
addOutput(name, output);
return output;
}
protected Config getConfig(PipelineContext pipelineContext) {
// Read config
return <API key>(pipelineContext, getInputByName(INPUT_CONFIG), new <API key><Config>() {
public Config read(PipelineContext context, ProcessorInput input) {
return new Config(readInputAsDOM4J(context, input));
}
});
}
}
|
package eu.europa.esig.dss.pades.timestamp;
import static org.junit.Assert.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature;
import org.junit.jupiter.api.Test;
import eu.europa.esig.dss.model.DSSDocument;
import eu.europa.esig.dss.model.InMemoryDocument;
import eu.europa.esig.dss.pades.<API key>;
import eu.europa.esig.dss.pades.signature.PAdESService;
import eu.europa.esig.dss.test.signature.PKIFactoryAccess;
public class <API key> extends PKIFactoryAccess {
@Test
public void timestampAlone() throws IOException {
PAdESService service = new PAdESService(<API key>());
service.setTspSource(getGoodTsa());
<API key> parameters = new <API key>();
DSSDocument document = new InMemoryDocument(getClass().getResourceAsStream("/sample.pdf"));
DSSDocument timestamped = service.timestamp(document, parameters);
try (InputStream is = timestamped.openStream(); PDDocument doc = PDDocument.load(is)) {
List<PDSignature> <API key> = doc.<API key>();
assertEquals(1, <API key>.size());
PDSignature pdSignature = <API key>.get(0);
assertNotNull(pdSignature);
assertEquals("Adobe.PPKLite", pdSignature.getFilter());
assertEquals("ETSI.RFC3161", pdSignature.getSubFilter());
}
}
@Override
protected String getSigningAlias() {
return null;
}
}
|
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_21) on Thu Aug 05 10:04:40 JST 2010 -->
<TITLE>
All Classes (estraier)
</TITLE>
<META NAME="date" CONTENT="2010-08-05">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<FONT size="+1" CLASS="FrameHeadingFont">
<B>All Classes</B></FONT>
<BR>
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
<TR>
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="estraier/Cmd.html" title="class in estraier">Cmd</A>
<BR>
<A HREF="estraier/Condition.html" title="class in estraier">Condition</A>
<BR>
<A HREF="estraier/Database.html" title="class in estraier">Database</A>
<BR>
<A HREF="estraier/DatabaseInformer.html" title="interface in estraier"><I>DatabaseInformer</I></A>
<BR>
<A HREF="estraier/Document.html" title="class in estraier">Document</A>
<BR>
<A HREF="estraier/Result.html" title="class in estraier">Result</A>
<BR>
</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
|
// The libMesh Finite Element Library.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should have received a copy of the GNU Lesser General Public
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "libmesh/diff_context.h"
#include "libmesh/diff_physics.h"
#include "libmesh/system.h"
namespace libMesh
{
<API key>::~<API key>()
{
<API key>::clear_physics();
}
void <API key>::clear_physics ()
{
_time_evolving.resize(0);
}
void <API key>::init_physics (const System & sys)
{
// give us flags for every variable that might be time evolving
_time_evolving.resize(sys.n_vars(), false);
}
void <API key>::time_evolving (unsigned int var,
unsigned int order)
{
if (order != 1 && order != 2)
libmesh_error_msg("Input order must be 1 or 2!");
if (_time_evolving.size() <= var)
_time_evolving.resize(var+1, 0);
_time_evolving[var] = order;
if (order == 1)
_first_order_vars.insert(var);
else
_second_order_vars.insert(var);
}
bool <API key>::<API key>(bool request_jacobian,
DiffContext & c)
{
FEMContext & context = cast_ref<FEMContext &>(c);
for (auto var : IntRange<unsigned int>(0, context.n_vars()))
{
if (!this->is_time_evolving(var))
continue;
if (c.get_system().variable(var).type().family != SCALAR)
continue;
const std::vector<dof_id_type> & dof_indices =
context.get_dof_indices(var);
const unsigned int n_dofs = cast_int<unsigned int>
(dof_indices.size());
DenseSubVector<Number> & Fs = context.get_elem_residual(var);
DenseSubMatrix<Number> & Kss = context.get_elem_jacobian( var, var );
const libMesh::DenseSubVector<libMesh::Number> & Us =
context.get_elem_solution(var);
for (unsigned int i=0; i != n_dofs; ++i)
{
Fs(i) -= Us(i);
if (request_jacobian)
Kss(i,i) -= context.<API key>;
}
}
return request_jacobian;
}
bool <API key>::<API key> (bool request_jacobian,
DiffContext & context)
{
// For any problem we need time derivative terms
request_jacobian =
this-><API key>(request_jacobian, context);
// For a moving mesh problem we may need the pseudoconvection term too
return this->eulerian_residual(request_jacobian, context) &&
request_jacobian;
}
} // namespace libMesh
|
#define _XOPEN_SOURCE
#include <stdlib.h>
#include "zdtmtst.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <termios.h>
#include <sys/ioctl.h>
const char *test_doc = "Check a controlling terminal, if a proper fd belongs to another session leader";
const char *test_author = "Andrey Vagin <avagin@openvz.org>";
int main(int argc, char ** argv)
{
int fdm, fds, exit_code = 1, status;
task_waiter_t t;
char *slavename;
pid_t sid_b, sid_a, pid;
int pfd[2];
test_init(argc, argv);
task_waiter_init(&t);
if (pipe(pfd) == -1) {
pr_perror("pipe");
return 1;
}
fdm = open("/dev/ptmx", O_RDWR);
if (fdm == -1) {
pr_perror("Can't open a master pseudoterminal");
return 1;
}
grantpt(fdm);
unlockpt(fdm);
slavename = ptsname(fdm);
pid = test_fork();
if (pid == 0) {
if (setsid() == -1) {
pr_perror("setsid");
return 1;
}
close(pfd[0]);
/* set up a controlling terminal */
fds = open(slavename, O_RDWR | O_NOCTTY);
if (fds == -1) {
pr_perror("Can't open a slave pseudoterminal %s", slavename);
return 1;
}
ioctl(fds, TIOCSCTTY, 1);
pid = test_fork();
if (pid == 0) {
if (setsid() == -1) {
pr_perror("setsid");
return 1;
}
close(pfd[1]);
<API key>(&t, 1);
test_waitsig();
exit(0);
}
close(fds);
close(pfd[1]);
task_waiter_wait4(&t, 1);
<API key>(&t, 0);
test_waitsig();
kill(pid, SIGTERM);
wait(&status);
exit(status);
}
close(pfd[1]);
if (read(pfd[0], &sid_a, 1) != 0) {
pr_perror("read");
goto out;
}
if (ioctl(fdm, TIOCGSID, &sid_b) == -1) {
pr_perror("The tty is not a controlling");
goto out;
}
task_waiter_wait4(&t, 0);
test_daemon();
test_waitsig();
if (ioctl(fdm, TIOCGSID, &sid_a) == -1) {
fail("The tty is not a controlling");
goto out;
}
if (sid_b != sid_a) {
fail("The tty is controlling for someone else");
goto out;
}
exit_code = 0;
out:
kill(pid, SIGTERM);
wait(&status);
if (status == 0 && exit_code == 0)
pass();
return exit_code;
}
|
package net.sourceforge.clonekeenplus;
import java.lang.String;
import java.util.ArrayList;
import java.util.Arrays;
import java.lang.reflect.Field;
// Autogenerated by hand with a command:
// grep 'SDLK_' SDL_keysym.h | sed 's/SDLK_\([a-zA-Z0-9_]\+\).*[=] \([0-9]\+\).*/public static final int SDLK_\1 = \2;/' >> Keycodes.java
class SDL_1_2_Keycodes {
public static final int SDLK_UNKNOWN = 0;
public static final int SDLK_BACKSPACE = 8;
public static final int SDLK_TAB = 9;
public static final int SDLK_CLEAR = 12;
public static final int SDLK_RETURN = 13;
public static final int SDLK_PAUSE = 19;
public static final int SDLK_ESCAPE = 27;
public static final int SDLK_SPACE = 32;
public static final int SDLK_EXCLAIM = 33;
public static final int SDLK_QUOTEDBL = 34;
public static final int SDLK_HASH = 35;
public static final int SDLK_DOLLAR = 36;
public static final int SDLK_AMPERSAND = 38;
public static final int SDLK_QUOTE = 39;
public static final int SDLK_LEFTPAREN = 40;
public static final int SDLK_RIGHTPAREN = 41;
public static final int SDLK_ASTERISK = 42;
public static final int SDLK_PLUS = 43;
public static final int SDLK_COMMA = 44;
public static final int SDLK_MINUS = 45;
public static final int SDLK_PERIOD = 46;
public static final int SDLK_SLASH = 47;
public static final int SDLK_0 = 48;
public static final int SDLK_1 = 49;
public static final int SDLK_2 = 50;
public static final int SDLK_3 = 51;
public static final int SDLK_4 = 52;
public static final int SDLK_5 = 53;
public static final int SDLK_6 = 54;
public static final int SDLK_7 = 55;
public static final int SDLK_8 = 56;
public static final int SDLK_9 = 57;
public static final int SDLK_COLON = 58;
public static final int SDLK_SEMICOLON = 59;
public static final int SDLK_LESS = 60;
public static final int SDLK_EQUALS = 61;
public static final int SDLK_GREATER = 62;
public static final int SDLK_QUESTION = 63;
public static final int SDLK_AT = 64;
public static final int SDLK_LEFTBRACKET = 91;
public static final int SDLK_BACKSLASH = 92;
public static final int SDLK_RIGHTBRACKET = 93;
public static final int SDLK_CARET = 94;
public static final int SDLK_UNDERSCORE = 95;
public static final int SDLK_BACKQUOTE = 96;
public static final int SDLK_a = 97;
public static final int SDLK_b = 98;
public static final int SDLK_c = 99;
public static final int SDLK_d = 100;
public static final int SDLK_e = 101;
public static final int SDLK_f = 102;
public static final int SDLK_g = 103;
public static final int SDLK_h = 104;
public static final int SDLK_i = 105;
public static final int SDLK_j = 106;
public static final int SDLK_k = 107;
public static final int SDLK_l = 108;
public static final int SDLK_m = 109;
public static final int SDLK_n = 110;
public static final int SDLK_o = 111;
public static final int SDLK_p = 112;
public static final int SDLK_q = 113;
public static final int SDLK_r = 114;
public static final int SDLK_s = 115;
public static final int SDLK_t = 116;
public static final int SDLK_u = 117;
public static final int SDLK_v = 118;
public static final int SDLK_w = 119;
public static final int SDLK_x = 120;
public static final int SDLK_y = 121;
public static final int SDLK_z = 122;
public static final int SDLK_DELETE = 127;
public static final int SDLK_WORLD_0 = 160;
public static final int SDLK_WORLD_1 = 161;
public static final int SDLK_WORLD_2 = 162;
public static final int SDLK_WORLD_3 = 163;
public static final int SDLK_WORLD_4 = 164;
public static final int SDLK_WORLD_5 = 165;
public static final int SDLK_WORLD_6 = 166;
public static final int SDLK_WORLD_7 = 167;
public static final int SDLK_WORLD_8 = 168;
public static final int SDLK_WORLD_9 = 169;
public static final int SDLK_WORLD_10 = 170;
public static final int SDLK_WORLD_11 = 171;
public static final int SDLK_WORLD_12 = 172;
public static final int SDLK_WORLD_13 = 173;
public static final int SDLK_WORLD_14 = 174;
public static final int SDLK_WORLD_15 = 175;
public static final int SDLK_WORLD_16 = 176;
public static final int SDLK_WORLD_17 = 177;
public static final int SDLK_WORLD_18 = 178;
public static final int SDLK_WORLD_19 = 179;
public static final int SDLK_WORLD_20 = 180;
public static final int SDLK_WORLD_21 = 181;
public static final int SDLK_WORLD_22 = 182;
public static final int SDLK_WORLD_23 = 183;
public static final int SDLK_WORLD_24 = 184;
public static final int SDLK_WORLD_25 = 185;
public static final int SDLK_WORLD_26 = 186;
public static final int SDLK_WORLD_27 = 187;
public static final int SDLK_WORLD_28 = 188;
public static final int SDLK_WORLD_29 = 189;
public static final int SDLK_WORLD_30 = 190;
public static final int SDLK_WORLD_31 = 191;
public static final int SDLK_WORLD_32 = 192;
public static final int SDLK_WORLD_33 = 193;
public static final int SDLK_WORLD_34 = 194;
public static final int SDLK_WORLD_35 = 195;
public static final int SDLK_WORLD_36 = 196;
public static final int SDLK_WORLD_37 = 197;
public static final int SDLK_WORLD_38 = 198;
public static final int SDLK_WORLD_39 = 199;
public static final int SDLK_WORLD_40 = 200;
public static final int SDLK_WORLD_41 = 201;
public static final int SDLK_WORLD_42 = 202;
public static final int SDLK_WORLD_43 = 203;
public static final int SDLK_WORLD_44 = 204;
public static final int SDLK_WORLD_45 = 205;
public static final int SDLK_WORLD_46 = 206;
public static final int SDLK_WORLD_47 = 207;
public static final int SDLK_WORLD_48 = 208;
public static final int SDLK_WORLD_49 = 209;
public static final int SDLK_WORLD_50 = 210;
public static final int SDLK_WORLD_51 = 211;
public static final int SDLK_WORLD_52 = 212;
public static final int SDLK_WORLD_53 = 213;
public static final int SDLK_WORLD_54 = 214;
public static final int SDLK_WORLD_55 = 215;
public static final int SDLK_WORLD_56 = 216;
public static final int SDLK_WORLD_57 = 217;
public static final int SDLK_WORLD_58 = 218;
public static final int SDLK_WORLD_59 = 219;
public static final int SDLK_WORLD_60 = 220;
public static final int SDLK_WORLD_61 = 221;
public static final int SDLK_WORLD_62 = 222;
public static final int SDLK_WORLD_63 = 223;
public static final int SDLK_WORLD_64 = 224;
public static final int SDLK_WORLD_65 = 225;
public static final int SDLK_WORLD_66 = 226;
public static final int SDLK_WORLD_67 = 227;
public static final int SDLK_WORLD_68 = 228;
public static final int SDLK_WORLD_69 = 229;
public static final int SDLK_WORLD_70 = 230;
public static final int SDLK_WORLD_71 = 231;
public static final int SDLK_WORLD_72 = 232;
public static final int SDLK_WORLD_73 = 233;
public static final int SDLK_WORLD_74 = 234;
public static final int SDLK_WORLD_75 = 235;
public static final int SDLK_WORLD_76 = 236;
public static final int SDLK_WORLD_77 = 237;
public static final int SDLK_WORLD_78 = 238;
public static final int SDLK_WORLD_79 = 239;
public static final int SDLK_WORLD_80 = 240;
public static final int SDLK_WORLD_81 = 241;
public static final int SDLK_WORLD_82 = 242;
public static final int SDLK_WORLD_83 = 243;
public static final int SDLK_WORLD_84 = 244;
public static final int SDLK_WORLD_85 = 245;
public static final int SDLK_WORLD_86 = 246;
public static final int SDLK_WORLD_87 = 247;
public static final int SDLK_WORLD_88 = 248;
public static final int SDLK_WORLD_89 = 249;
public static final int SDLK_WORLD_90 = 250;
public static final int SDLK_WORLD_91 = 251;
public static final int SDLK_WORLD_92 = 252;
public static final int SDLK_WORLD_93 = 253;
public static final int SDLK_WORLD_94 = 254;
public static final int SDLK_WORLD_95 = 255;
public static final int SDLK_KP0 = 256;
public static final int SDLK_KP1 = 257;
public static final int SDLK_KP2 = 258;
public static final int SDLK_KP3 = 259;
public static final int SDLK_KP4 = 260;
public static final int SDLK_KP5 = 261;
public static final int SDLK_KP6 = 262;
public static final int SDLK_KP7 = 263;
public static final int SDLK_KP8 = 264;
public static final int SDLK_KP9 = 265;
public static final int SDLK_KP_PERIOD = 266;
public static final int SDLK_KP_DIVIDE = 267;
public static final int SDLK_KP_MULTIPLY = 268;
public static final int SDLK_KP_MINUS = 269;
public static final int SDLK_KP_PLUS = 270;
public static final int SDLK_KP_ENTER = 271;
public static final int SDLK_KP_EQUALS = 272;
public static final int SDLK_UP = 273;
public static final int SDLK_DOWN = 274;
public static final int SDLK_RIGHT = 275;
public static final int SDLK_LEFT = 276;
public static final int SDLK_INSERT = 277;
public static final int SDLK_HOME = 278;
public static final int SDLK_END = 279;
public static final int SDLK_PAGEUP = 280;
public static final int SDLK_PAGEDOWN = 281;
public static final int SDLK_F1 = 282;
public static final int SDLK_F2 = 283;
public static final int SDLK_F3 = 284;
public static final int SDLK_F4 = 285;
public static final int SDLK_F5 = 286;
public static final int SDLK_F6 = 287;
public static final int SDLK_F7 = 288;
public static final int SDLK_F8 = 289;
public static final int SDLK_F9 = 290;
public static final int SDLK_F10 = 291;
public static final int SDLK_F11 = 292;
public static final int SDLK_F12 = 293;
public static final int SDLK_F13 = 294;
public static final int SDLK_F14 = 295;
public static final int SDLK_F15 = 296;
public static final int SDLK_NUMLOCK = 300;
public static final int SDLK_CAPSLOCK = 301;
public static final int SDLK_SCROLLOCK = 302;
public static final int SDLK_RSHIFT = 303;
public static final int SDLK_LSHIFT = 304;
public static final int SDLK_RCTRL = 305;
public static final int SDLK_LCTRL = 306;
public static final int SDLK_RALT = 307;
public static final int SDLK_LALT = 308;
public static final int SDLK_RMETA = 309;
public static final int SDLK_LMETA = 310;
public static final int SDLK_LSUPER = 311;
public static final int SDLK_RSUPER = 312;
public static final int SDLK_MODE = 313;
public static final int SDLK_COMPOSE = 314;
public static final int SDLK_HELP = 315;
public static final int SDLK_PRINT = 316;
public static final int SDLK_SYSREQ = 317;
public static final int SDLK_BREAK = 318;
public static final int SDLK_MENU = 319;
public static final int SDLK_POWER = 320;
public static final int SDLK_EURO = 321;
public static final int SDLK_UNDO = 322;
public static final int SDLK_NO_REMAP = 512;
}
// Autogenerated by hand with a command:
// grep 'SDL_SCANCODE_' SDL_scancode.h | sed 's/SDL_SCANCODE_\([a-zA-Z0-9_]\+\).*[=] \([0-9]\+\).*/public static final int SDLK_\1 = \2;/' >> Keycodes.java
class SDL_1_3_Keycodes {
public static final int SDLK_UNKNOWN = 0;
public static final int SDLK_A = 4;
public static final int SDLK_B = 5;
public static final int SDLK_C = 6;
public static final int SDLK_D = 7;
public static final int SDLK_E = 8;
public static final int SDLK_F = 9;
public static final int SDLK_G = 10;
public static final int SDLK_H = 11;
public static final int SDLK_I = 12;
public static final int SDLK_J = 13;
public static final int SDLK_K = 14;
public static final int SDLK_L = 15;
public static final int SDLK_M = 16;
public static final int SDLK_N = 17;
public static final int SDLK_O = 18;
public static final int SDLK_P = 19;
public static final int SDLK_Q = 20;
public static final int SDLK_R = 21;
public static final int SDLK_S = 22;
public static final int SDLK_T = 23;
public static final int SDLK_U = 24;
public static final int SDLK_V = 25;
public static final int SDLK_W = 26;
public static final int SDLK_X = 27;
public static final int SDLK_Y = 28;
public static final int SDLK_Z = 29;
public static final int SDLK_1 = 30;
public static final int SDLK_2 = 31;
public static final int SDLK_3 = 32;
public static final int SDLK_4 = 33;
public static final int SDLK_5 = 34;
public static final int SDLK_6 = 35;
public static final int SDLK_7 = 36;
public static final int SDLK_8 = 37;
public static final int SDLK_9 = 38;
public static final int SDLK_0 = 39;
public static final int SDLK_RETURN = 40;
public static final int SDLK_ESCAPE = 41;
public static final int SDLK_BACKSPACE = 42;
public static final int SDLK_TAB = 43;
public static final int SDLK_SPACE = 44;
public static final int SDLK_MINUS = 45;
public static final int SDLK_EQUALS = 46;
public static final int SDLK_LEFTBRACKET = 47;
public static final int SDLK_RIGHTBRACKET = 48;
public static final int SDLK_BACKSLASH = 49;
public static final int SDLK_NONUSHASH = 50;
public static final int SDLK_SEMICOLON = 51;
public static final int SDLK_APOSTROPHE = 52;
public static final int SDLK_GRAVE = 53;
public static final int SDLK_COMMA = 54;
public static final int SDLK_PERIOD = 55;
public static final int SDLK_SLASH = 56;
public static final int SDLK_CAPSLOCK = 57;
public static final int SDLK_F1 = 58;
public static final int SDLK_F2 = 59;
public static final int SDLK_F3 = 60;
public static final int SDLK_F4 = 61;
public static final int SDLK_F5 = 62;
public static final int SDLK_F6 = 63;
public static final int SDLK_F7 = 64;
public static final int SDLK_F8 = 65;
public static final int SDLK_F9 = 66;
public static final int SDLK_F10 = 67;
public static final int SDLK_F11 = 68;
public static final int SDLK_F12 = 69;
public static final int SDLK_PRINTSCREEN = 70;
public static final int SDLK_SCROLLLOCK = 71;
public static final int SDLK_PAUSE = 72;
public static final int SDLK_INSERT = 73;
public static final int SDLK_HOME = 74;
public static final int SDLK_PAGEUP = 75;
public static final int SDLK_DELETE = 76;
public static final int SDLK_END = 77;
public static final int SDLK_PAGEDOWN = 78;
public static final int SDLK_RIGHT = 79;
public static final int SDLK_LEFT = 80;
public static final int SDLK_DOWN = 81;
public static final int SDLK_UP = 82;
public static final int SDLK_NUMLOCKCLEAR = 83;
public static final int SDLK_KP_DIVIDE = 84;
public static final int SDLK_KP_MULTIPLY = 85;
public static final int SDLK_KP_MINUS = 86;
public static final int SDLK_KP_PLUS = 87;
public static final int SDLK_KP_ENTER = 88;
public static final int SDLK_KP_1 = 89;
public static final int SDLK_KP_2 = 90;
public static final int SDLK_KP_3 = 91;
public static final int SDLK_KP_4 = 92;
public static final int SDLK_KP_5 = 93;
public static final int SDLK_KP_6 = 94;
public static final int SDLK_KP_7 = 95;
public static final int SDLK_KP_8 = 96;
public static final int SDLK_KP_9 = 97;
public static final int SDLK_KP_0 = 98;
public static final int SDLK_KP_PERIOD = 99;
public static final int SDLK_NONUSBACKSLASH = 100;
public static final int SDLK_APPLICATION = 101;
public static final int SDLK_POWER = 102;
public static final int SDLK_KP_EQUALS = 103;
public static final int SDLK_F13 = 104;
public static final int SDLK_F14 = 105;
public static final int SDLK_F15 = 106;
public static final int SDLK_F16 = 107;
public static final int SDLK_F17 = 108;
public static final int SDLK_F18 = 109;
public static final int SDLK_F19 = 110;
public static final int SDLK_F20 = 111;
public static final int SDLK_F21 = 112;
public static final int SDLK_F22 = 113;
public static final int SDLK_F23 = 114;
public static final int SDLK_F24 = 115;
public static final int SDLK_EXECUTE = 116;
public static final int SDLK_HELP = 117;
public static final int SDLK_MENU = 118;
public static final int SDLK_SELECT = 119;
public static final int SDLK_STOP = 120;
public static final int SDLK_AGAIN = 121;
public static final int SDLK_UNDO = 122;
public static final int SDLK_CUT = 123;
public static final int SDLK_COPY = 124;
public static final int SDLK_PASTE = 125;
public static final int SDLK_FIND = 126;
public static final int SDLK_MUTE = 127;
public static final int SDLK_VOLUMEUP = 128;
public static final int SDLK_VOLUMEDOWN = 129;
public static final int SDLK_KP_COMMA = 133;
public static final int SDLK_KP_EQUALSAS400 = 134;
public static final int SDLK_INTERNATIONAL1 = 135;
public static final int SDLK_INTERNATIONAL2 = 136;
public static final int SDLK_INTERNATIONAL3 = 137;
public static final int SDLK_INTERNATIONAL4 = 138;
public static final int SDLK_INTERNATIONAL5 = 139;
public static final int SDLK_INTERNATIONAL6 = 140;
public static final int SDLK_INTERNATIONAL7 = 141;
public static final int SDLK_INTERNATIONAL8 = 142;
public static final int SDLK_INTERNATIONAL9 = 143;
public static final int SDLK_LANG1 = 144;
public static final int SDLK_LANG2 = 145;
public static final int SDLK_LANG3 = 146;
public static final int SDLK_LANG4 = 147;
public static final int SDLK_LANG5 = 148;
public static final int SDLK_LANG6 = 149;
public static final int SDLK_LANG7 = 150;
public static final int SDLK_LANG8 = 151;
public static final int SDLK_LANG9 = 152;
public static final int SDLK_ALTERASE = 153;
public static final int SDLK_SYSREQ = 154;
public static final int SDLK_CANCEL = 155;
public static final int SDLK_CLEAR = 156;
public static final int SDLK_PRIOR = 157;
public static final int SDLK_RETURN2 = 158;
public static final int SDLK_SEPARATOR = 159;
public static final int SDLK_OUT = 160;
public static final int SDLK_OPER = 161;
public static final int SDLK_CLEARAGAIN = 162;
public static final int SDLK_CRSEL = 163;
public static final int SDLK_EXSEL = 164;
public static final int SDLK_KP_00 = 176;
public static final int SDLK_KP_000 = 177;
public static final int <API key> = 178;
public static final int <API key> = 179;
public static final int SDLK_CURRENCYUNIT = 180;
public static final int <API key> = 181;
public static final int SDLK_KP_LEFTPAREN = 182;
public static final int SDLK_KP_RIGHTPAREN = 183;
public static final int SDLK_KP_LEFTBRACE = 184;
public static final int SDLK_KP_RIGHTBRACE = 185;
public static final int SDLK_KP_TAB = 186;
public static final int SDLK_KP_BACKSPACE = 187;
public static final int SDLK_KP_A = 188;
public static final int SDLK_KP_B = 189;
public static final int SDLK_KP_C = 190;
public static final int SDLK_KP_D = 191;
public static final int SDLK_KP_E = 192;
public static final int SDLK_KP_F = 193;
public static final int SDLK_KP_XOR = 194;
public static final int SDLK_KP_POWER = 195;
public static final int SDLK_KP_PERCENT = 196;
public static final int SDLK_KP_LESS = 197;
public static final int SDLK_KP_GREATER = 198;
public static final int SDLK_KP_AMPERSAND = 199;
public static final int <API key> = 200;
public static final int SDLK_KP_VERTICALBAR = 201;
public static final int <API key> = 202;
public static final int SDLK_KP_COLON = 203;
public static final int SDLK_KP_HASH = 204;
public static final int SDLK_KP_SPACE = 205;
public static final int SDLK_KP_AT = 206;
public static final int SDLK_KP_EXCLAM = 207;
public static final int SDLK_KP_MEMSTORE = 208;
public static final int SDLK_KP_MEMRECALL = 209;
public static final int SDLK_KP_MEMCLEAR = 210;
public static final int SDLK_KP_MEMADD = 211;
public static final int SDLK_KP_MEMSUBTRACT = 212;
public static final int SDLK_KP_MEMMULTIPLY = 213;
public static final int SDLK_KP_MEMDIVIDE = 214;
public static final int SDLK_KP_PLUSMINUS = 215;
public static final int SDLK_KP_CLEAR = 216;
public static final int SDLK_KP_CLEARENTRY = 217;
public static final int SDLK_KP_BINARY = 218;
public static final int SDLK_KP_OCTAL = 219;
public static final int SDLK_KP_DECIMAL = 220;
public static final int SDLK_KP_HEXADECIMAL = 221;
public static final int SDLK_LCTRL = 224;
public static final int SDLK_LSHIFT = 225;
public static final int SDLK_LALT = 226;
public static final int SDLK_LGUI = 227;
public static final int SDLK_RCTRL = 228;
public static final int SDLK_RSHIFT = 229;
public static final int SDLK_RALT = 230;
public static final int SDLK_RGUI = 231;
public static final int SDLK_MODE = 257;
public static final int SDLK_AUDIONEXT = 258;
public static final int SDLK_AUDIOPREV = 259;
public static final int SDLK_AUDIOSTOP = 260;
public static final int SDLK_AUDIOPLAY = 261;
public static final int SDLK_AUDIOMUTE = 262;
public static final int SDLK_MEDIASELECT = 263;
public static final int SDLK_WWW = 264;
public static final int SDLK_MAIL = 265;
public static final int SDLK_CALCULATOR = 266;
public static final int SDLK_COMPUTER = 267;
public static final int SDLK_AC_SEARCH = 268;
public static final int SDLK_AC_HOME = 269;
public static final int SDLK_AC_BACK = 270;
public static final int SDLK_AC_FORWARD = 271;
public static final int SDLK_AC_STOP = 272;
public static final int SDLK_AC_REFRESH = 273;
public static final int SDLK_AC_BOOKMARKS = 274;
public static final int SDLK_BRIGHTNESSDOWN = 275;
public static final int SDLK_BRIGHTNESSUP = 276;
public static final int SDLK_DISPLAYSWITCH = 277;
public static final int SDLK_KBDILLUMTOGGLE = 278;
public static final int SDLK_KBDILLUMDOWN = 279;
public static final int SDLK_KBDILLUMUP = 280;
public static final int SDLK_EJECT = 281;
public static final int SDLK_SLEEP = 282;
public static final int SDLK_NO_REMAP = 512;
}
class SDL_Keys
{
public static String [] names = null;
public static Integer [] values = null;
public static String [] namesSorted = null;
public static Integer [] namesSortedIdx = null;
public static Integer [] namesSortedBackIdx = null;
static final int JAVA_KEYCODE_LAST = 255; // Android 2.3 added several new gaming keys, Android 3.1 added even more - keep in sync with javakeycodes.h
static
{
ArrayList<String> Names = new ArrayList<String> ();
ArrayList<Integer> Values = new ArrayList<Integer> ();
Field [] fields = SDL_1_2_Keycodes.class.getDeclaredFields();
if( Globals.Using_SDL_1_3 )
{
fields = SDL_1_3_Keycodes.class.getDeclaredFields();
}
try {
for(Field f: fields)
{
Values.add(f.getInt(null));
Names.add(f.getName().substring(5).toUpperCase());
}
} catch(<API key> e) {};
// Sort by value
for( int i = 0; i < Values.size(); i++ )
{
for( int j = i; j < Values.size(); j++ )
{
if( Values.get(i) > Values.get(j) )
{
int x = Values.get(i);
Values.set(i, Values.get(j));
Values.set(j, x);
String s = Names.get(i);
Names.set(i, Names.get(j));
Names.set(j, s);
}
}
}
names = Names.toArray(new String[0]);
values = Values.toArray(new Integer[0]);
namesSorted = Names.toArray(new String[0]);
namesSortedIdx = new Integer[values.length];
namesSortedBackIdx = new Integer[values.length];
Arrays.sort(namesSorted);
for( int i = 0; i < namesSorted.length; i++ )
{
for( int j = 0; j < namesSorted.length; j++ )
{
if( namesSorted[i].equals( names[j] ) )
{
namesSortedIdx[i] = j;
namesSortedBackIdx[j] = i;
break;
}
}
}
}
}
|
package gnu.io;
import java.io.*;
import java.util.*;
import java.lang.Math;
/**
* @author Trent Jarvi
* @version %I%, %G%
* @since JDK1.0
*/
final class RS485 extends RS485Port {
static
{
//System.loadLibrary( "rxtxRS485" );
Initialize();
}
/** Initialize the native library */
private native static void Initialize();
/** Actual RS485Port wrapper class */
/** Open the named port */
public RS485( String name ) throws PortInUseException {
fd = open( name );
}
private native int open( String name ) throws PortInUseException;
/** File descriptor */
private int fd;
/** DSR flag **/
static boolean dsrFlag = false;
/** Output stream */
private final RS485OutputStream out = new RS485OutputStream();
public OutputStream getOutputStream() { return out; }
/** Input stream */
private final RS485InputStream in = new RS485InputStream();
public InputStream getInputStream() { return in; }
/** Set the RS485Port parameters */
public void setRS485PortParams( int b, int d, int s, int p )
throws <API key>
{
<API key>( b, d, s, p );
speed = b;
dataBits = d;
stopBits = s;
parity = p;
}
/** Set the native RS485 port parameters */
private native void <API key>( int speed, int dataBits,
int stopBits, int parity ) throws <API key>;
/** Line speed in bits-per-second */
private int speed=9600;
public int getBaudRate() { return speed; }
/** Data bits port parameter */
private int dataBits=DATABITS_8;
public int getDataBits() { return dataBits; }
/** Stop bits port parameter */
private int stopBits=RS485Port.STOPBITS_1;
public int getStopBits() { return stopBits; }
/** Parity port parameter */
private int parity= RS485Port.PARITY_NONE;
public int getParity() { return parity; }
/** Flow control */
private int flowmode = RS485Port.FLOWCONTROL_NONE;
public void setFlowControlMode( int flowcontrol ) {
try { setflowcontrol( flowcontrol ); }
catch( IOException e ) {
e.printStackTrace();
return;
}
flowmode=flowcontrol;
}
public int getFlowControlMode() { return flowmode; }
native void setflowcontrol( int flowcontrol ) throws IOException;
/** Receive framing control
*/
public void <API key>( int f )
throws <API key>
{
throw new <API key>( "Not supported" );
}
public void <API key>() {}
public boolean <API key>() { return false; }
public int <API key>() { return 0; }
/** Receive timeout control */
private int timeout = 0;
public native int <API key>();
public native boolean <API key>();
public native void <API key>(int time, int threshold,int InputBuffer);
public void <API key>(){
<API key>(0);
}
public void <API key>( int time ){
if( time >= 0 ) {
timeout = time;
<API key>( time , threshold, InputBuffer );
}
else {
System.out.println("Invalid timeout");
}
}
public boolean <API key>(){
return(<API key>());
}
public int getReceiveTimeout(){
return(<API key>( ));
}
/** Receive threshold control */
private int threshold = 0;
public void <API key>( int thresh ){
if(thresh >=0)
{
threshold=thresh;
<API key>(timeout, threshold, InputBuffer);
}
else /* invalid thresh */
{
System.out.println("Invalid Threshold");
}
}
public void <API key>() {
<API key>(0);
}
public int getReceiveThreshold(){
return threshold;
}
public boolean <API key>(){
return(threshold>0);
}
/** Input/output buffers */
private int InputBuffer=0;
private int OutputBuffer=0;
public void setInputBufferSize( int size )
{
InputBuffer=size;
}
public int getInputBufferSize()
{
return(InputBuffer);
}
public void setOutputBufferSize( int size )
{
OutputBuffer=size;
}
public int getOutputBufferSize()
{
return(OutputBuffer);
}
/** Line status methods */
public native boolean isDTR();
public native void setDTR( boolean state );
public native void setRTS( boolean state );
private native void setDSR( boolean state );
public native boolean isCTS();
public native boolean isDSR();
public native boolean isCD();
public native boolean isRI();
public native boolean isRTS();
/** Write to the port */
public native void sendBreak( int duration );
private native void writeByte( int b ) throws IOException;
private native void writeArray( byte b[], int off, int len )
throws IOException;
private native void drain() throws IOException;
/** RS485 read methods */
private native int nativeavailable() throws IOException;
private native int readByte() throws IOException;
private native int readArray( byte b[], int off, int len )
throws IOException;
/** RS485 Port Event listener */
private <API key> SPEventListener;
/** Thread to monitor data */
private MonitorThread monThread;
/** Process RS485PortEvents */
native void eventLoop();
private int dataAvailable=0;
public void sendEvent( int event, boolean state ) {
switch( event ) {
case RS485PortEvent.DATA_AVAILABLE:
dataAvailable=1;
if( monThread.Data ) break;
return;
case RS485PortEvent.OUTPUT_BUFFER_EMPTY:
if( monThread.Output ) break;
return;
/*
if( monThread.DSR ) break;
return;
if (isDSR())
{
if (!dsrFlag)
{
dsrFlag = true;
RS485PortEvent e = new RS485PortEvent(this, RS485PortEvent.DSR, !dsrFlag, dsrFlag );
}
}
else if (dsrFlag)
{
dsrFlag = false;
RS485PortEvent e = new RS485PortEvent(this, RS485PortEvent.DSR, !dsrFlag, dsrFlag );
}
*/
case RS485PortEvent.CTS:
if( monThread.CTS ) break;
return;
case RS485PortEvent.DSR:
if( monThread.DSR ) break;
return;
case RS485PortEvent.RI:
if( monThread.RI ) break;
return;
case RS485PortEvent.CD:
if( monThread.CD ) break;
return;
case RS485PortEvent.OE:
if( monThread.OE ) break;
return;
case RS485PortEvent.PE:
if( monThread.PE ) break;
return;
case RS485PortEvent.FE:
if( monThread.FE ) break;
return;
case RS485PortEvent.BI:
if( monThread.BI ) break;
return;
default:
System.err.println("unknown event:"+event);
return;
}
RS485PortEvent e = new RS485PortEvent(this, event, !state, state );
if( SPEventListener != null ) SPEventListener.RS485Event( e );
}
/** Add an event listener */
public void addEventListener( <API key> lsnr )
throws <API key>
{
if( SPEventListener != null ) throw new <API key>();
SPEventListener = lsnr;
monThread = new MonitorThread();
monThread.start();
}
/** Remove the RS485 port event listener */
public void removeEventListener() {
SPEventListener = null;
if( monThread != null ) {
monThread.interrupt();
monThread = null;
}
}
public void <API key>( boolean enable ) { monThread.Data = enable; }
public void notifyOnOutputEmpty( boolean enable ) { monThread.Output = enable; }
public void notifyOnCTS( boolean enable ) { monThread.CTS = enable; }
public void notifyOnDSR( boolean enable ) { monThread.DSR = enable; }
public void <API key>( boolean enable ) { monThread.RI = enable; }
public void <API key>( boolean enable ) { monThread.CD = enable; }
public void <API key>( boolean enable ) { monThread.OE = enable; }
public void notifyOnParityError( boolean enable ) { monThread.PE = enable; }
public void <API key>( boolean enable ) { monThread.FE = enable; }
public void <API key>( boolean enable ) { monThread.BI = enable; }
/** Close the port */
private native void nativeClose();
public void close() {
setDTR(false);
setDSR(false);
nativeClose();
super.close();
fd = 0;
}
/** Finalize the port */
protected void finalize() {
if( fd > 0 ) close();
}
/** Inner class for RS485OutputStream */
class RS485OutputStream extends OutputStream {
public void write( int b ) throws IOException {
writeByte( b );
}
public void write( byte b[] ) throws IOException {
writeArray( b, 0, b.length );
}
public void write( byte b[], int off, int len ) throws IOException {
writeArray( b, off, len );
}
public void flush() throws IOException {
drain();
}
}
/** Inner class for RS485InputStream */
class RS485InputStream extends InputStream {
public int read() throws IOException {
dataAvailable=0;
return readByte();
}
public int read( byte b[] ) throws IOException
{
return read ( b, 0, b.length);
}
public int read( byte b[], int off, int len ) throws IOException
{
dataAvailable=0;
int i=0, Minimum=0;
int intArray[] =
{
b.length,
InputBuffer,
len
};
/*
find the lowest nonzero value
timeout and threshold are handled on the native side
see <API key> in
RS485Imp.c
*/
while(intArray[i]==0 && i < intArray.length) i++;
Minimum=intArray[i];
while( i < intArray.length )
{
if(intArray[i] > 0 )
{
Minimum=Math.min(Minimum,intArray[i]);
}
i++;
}
Minimum=Math.min(Minimum,threshold);
if(Minimum == 0) Minimum=1;
int Available=available();
int Ret = readArray( b, off, Minimum);
return Ret;
}
public int available() throws IOException {
return nativeavailable();
}
}
class MonitorThread extends Thread {
/** Note: these have to be separate boolean flags because the
RS485PortEvent constants are NOT bit-flags, they are just
defined as integers from 1 to 10 -DPL */
private boolean CTS=false;
private boolean DSR=false;
private boolean RI=false;
private boolean CD=false;
private boolean OE=false;
private boolean PE=false;
private boolean FE=false;
private boolean BI=false;
private boolean Data=false;
private boolean Output=false;
MonitorThread() { }
public void run() {
eventLoop();
}
}
}
|
package example;
import it.sauronsoftware.cron4j.Scheduler;
import it.sauronsoftware.cron4j.TaskExecutor;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* This servlet enables the user to view and control any ongoing task execution.
* The HTML layout is generated calling the /WEB-INF/ongoing.jsp page.
*/
public class ExecutionServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// Retrieves the servlet context.
ServletContext context = getServletContext();
// Retrieves the scheduler.
Scheduler scheduler = (Scheduler) context
.getAttribute(Constants.SCHEDULER);
// Retrieves the executors.
TaskExecutor[] executors = scheduler.getExecutingTasks();
// Registers the executors in the request.
req.setAttribute("executors", executors);
// Action requested?
String action = req.getParameter("action");
if ("pause".equals(action)) {
String id = req.getParameter("id");
TaskExecutor executor = find(executors, id);
if (executor != null && executor.isAlive() && !executor.isStopped()
&& executor.canBePaused() && !executor.isPaused()) {
executor.pause();
}
} else if ("resume".equals(action)) {
String id = req.getParameter("id");
TaskExecutor executor = find(executors, id);
if (executor != null && executor.isAlive() && !executor.isStopped()
&& executor.canBePaused() && executor.isPaused()) {
executor.resume();
}
} else if ("stop".equals(action)) {
String id = req.getParameter("id");
TaskExecutor executor = find(executors, id);
if (executor != null && executor.isAlive()
&& executor.canBeStopped() && !executor.isStopped()) {
executor.stop();
}
}
// Layout.
String page = "/WEB-INF/ongoing.jsp";
RequestDispatcher dispatcher = req.<API key>(page);
dispatcher.include(req, resp);
}
private TaskExecutor find(TaskExecutor[] executors, String id) {
if (id == null) {
return null;
}
for (int i = 0; i < executors.length; i++) {
String aux = executors[i].getGuid();
if (aux.equals(id)) {
return executors[i];
}
}
return null;
}
}
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="da_DK">
<context>
<name>ShowDesktop</name>
<message>
<location filename="../showdesktop.cpp" line="48"/>
<source>Show desktop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../showdesktop.cpp" line="58"/>
<source>Show Desktop: Global shortcut '%1' cannot be registered</source>
<translation>Vis Skrivebord: Global genvej '%1' kan ikke registreres</translation>
</message>
<message>
<location filename="../showdesktop.cpp" line="63"/>
<source>Show Desktop</source>
<translation>Vis Skrivebord</translation>
</message>
</context>
</TS>
|
package org.reprap.comms;
import java.io.IOException;
import org.reprap.Device;
import org.reprap.ReprapException;
public abstract class IncomingMessage {
/**
* The actual content portion of a packet, not the frilly bits
*/
private byte [] payload;
IncomingContext incomingContext;
public class <API key> extends ReprapException {
private static final long serialVersionUID = -<API key>;
public <API key>() {
super();
}
public <API key>(String arg) {
super(arg);
}
}
/**
* Receive a message matching context criteria
* @param incomingContext the context in which to receive messages
* @throws IOException
*/
public IncomingMessage(IncomingContext incomingContext) throws IOException {
this.incomingContext = incomingContext;
Communicator comm = incomingContext.getCommunicator();
comm.receiveMessage(this);
}
/**
* Send a given message and return the incoming response. Re-try
* if there is a comms problem.
* @param message
* @throws IOException
*/
public IncomingMessage(Device device, OutgoingMessage message, long timeout) throws IOException {
Communicator comm = device.getCommunicator();
for(int i=0;i<3;i++) { // Allow 3 retries.
//System.out.println("Retry: " + i);
incomingContext = comm.sendMessage(device, message);
try {
comm.receiveMessage(this, timeout);
} catch (IOException e) {
e.printStackTrace();
System.err.println("IO error/timeout, resending");
// Just to prevent any unexpected spinning
try {
Thread.sleep(1);
} catch (<API key> e1) {
e1.printStackTrace();
}
continue;
}
return;
}
// If it's not going to respond, try to continue regardless.
System.err.println("Resend limit exceeded. Failing without reported error.");
}
/**
* Implemented by subclasses to allow them to indicate if they
* understand or expect a given packetType. This is used to
* decide if a received packet should be accepted or possibly discarded.
* @param packetType the type of packet to receive
* @return true if the packetType matches what is expected
*/
protected abstract boolean <API key>(byte packetType);
/**
* @return payload
*/
public byte[] getPayload() {
return payload;
}
/**
* Called by the framework to provide data to the IncomingMessage.
* This should not normally be called by a user.
* @param payload The completed message to insert into the IncomingMessage
* @return true is the data was accepted, otherwise false.
*/
public boolean receiveData(byte [] payload) {
// We assume the packet was for us, etc. But we need to
// know it contains the correct contents
if (payload == null || payload.length == 0)
return false;
if (<API key>(payload[0])) {
this.payload = (byte[])payload.clone();
return true;
} else {
// That's not what we were after, so discard and wait for more
return false;
}
}
}
|
package com.puppycrawl.tools.checkstyle.coding;
public class <API key> {
public boolean equals(Object o) {
return false;
}
/**
* methods that should get flagged
* @return
*/
public void flagForEquals() {
Object o = new Object();
String s = "pizza";
o.equals("hot pizza");
o.equals(s = "cold pizza");
o.equals(((s = "cold pizza")));
o.equals("cheese" + "ham" + "sauce");
o.equals(("cheese" + "ham") + "sauce");
o.equals((("cheese" + "ham")) + "sauce");
}
/**
* methods that should get flagged
*/
public void <API key>() {
String s = "pizza";
s.equalsIgnoreCase("hot pizza");
s.equalsIgnoreCase(s = "cold pizza");
s.equalsIgnoreCase(((s = "cold pizza")));
s.equalsIgnoreCase("cheese" + "ham" + "sauce");
s.equalsIgnoreCase(("cheese" + "ham") + "sauce");
s.equalsIgnoreCase((("cheese" + "ham")) + "sauce");
}
/**
* methods that should get flagged
*/
public void flagForBoth() {
Object o = new Object();
String s = "pizza";
o.equals("hot pizza");
o.equals(s = "cold pizza");
o.equals(((s = "cold pizza")));
o.equals("cheese" + "ham" + "sauce");
o.equals(("cheese" + "ham") + "sauce");
o.equals((("cheese" + "ham")) + "sauce");
s.equalsIgnoreCase("hot pizza");
s.equalsIgnoreCase(s = "cold pizza");
s.equalsIgnoreCase(((s = "cold pizza")));
s.equalsIgnoreCase("cheese" + "ham" + "sauce");
s.equalsIgnoreCase(("cheese" + "ham") + "sauce");
s.equalsIgnoreCase((("cheese" + "ham")) + "sauce");
}
/**
* methods that should not get flagged
*
* @return
*/
public void noFlagForEquals() {
Object o = new Object();
String s = "peperoni";
o.equals(s += "mushrooms");
(s = "thin crust").equals("thick crust");
(s += "garlic").equals("basil");
("Chicago Style" + "NY Style").equals("California Style" + "Any Style");
equals("peppers");
"onions".equals(o);
o.equals(new Object());
o.equals(equals(o));
equals("yummy");
new Object().equals("more cheese");
<API key> outter = new <API key>();
outter.new <API key>().equals("eat pizza and enjoy inner classes");
}
/**
* methods that should not get flagged
*/
public void <API key>() {
String s = "peperoni";
String s1 = "tasty";
s.equalsIgnoreCase(s += "mushrooms");
s1.equalsIgnoreCase(s += "mushrooms");
(s = "thin crust").equalsIgnoreCase("thick crust");
(s += "garlic").equalsIgnoreCase("basil");
("Chicago Style" + "NY Style").equalsIgnoreCase("California Style" + "Any Style");
"onions".equalsIgnoreCase(s);
s.equalsIgnoreCase(new String());
s.equals(s1);
new String().equalsIgnoreCase("more cheese");
}
public void noFlagForBoth() {
Object o = new Object();
String s = "peperoni";
String s1 = "tasty";
o.equals(s += "mushrooms");
(s = "thin crust").equals("thick crust");
(s += "garlic").equals("basil");
("Chicago Style" + "NY Style").equals("California Style" + "Any Style");
equals("peppers");
"onions".equals(o);
o.equals(new Object());
o.equals(equals(o));
equals("yummy");
new Object().equals("more cheese");
<API key> outter = new <API key>();
outter.new <API key>().equals("eat pizza and enjoy inner classes");
s.equalsIgnoreCase(s += "mushrooms");
s1.equalsIgnoreCase(s += "mushrooms");
(s = "thin crust").equalsIgnoreCase("thick crust");
(s += "garlic").equalsIgnoreCase("basil");
("Chicago Style" + "NY Style").equalsIgnoreCase("California Style" + "Any Style");
"onions".equalsIgnoreCase(s);
s.equalsIgnoreCase(new String());
s.equals(s1);
new String().equalsIgnoreCase("more cheese");
}
}
class <API key> {
public class <API key> {
public boolean equals(Object o) {
return true;
}
}
}
|
ALTER TABLE mailmessages RENAME TO old_mailmessages;
CREATE TABLE mailmessages (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
type INTEGER NOT NULL,
parentfolderid INTEGER NOT NULL,
<API key> INTEGER NOT NULL,
sender VARCHAR,
recipients VARCHAR,
subject VARCHAR,
stamp TIMESTAMP,
status INTEGER,
parentaccountid INTEGER,
frommailbox VARCHAR,
mailfile VARCHAR,
serveruid VARCHAR,
size INTEGER,
contenttype INTEGER,
responseid INTEGER,
responsetype INTEGER,
receivedstamp TIMESTAMP,
copyserveruid VARCHAR NOT NULL DEFAULT '',
restorefolderid INTEGER NOT NULL DEFAULT 0,
listid VARCHAR NOT NULL DEFAULT '',
rfcid VARCHAR NOT NULL DEFAULT '',
FOREIGN KEY (parentfolderid) REFERENCES mailfolders(id),
FOREIGN KEY (parentaccountid) REFERENCES mailaccounts(id));
INSERT INTO mailmessages SELECT * FROM old_mailmessages;
DROP TABLE old_mailmessages;
CREATE INDEX parentfolderid_idx ON mailmessages("parentfolderid");
CREATE INDEX parentaccountid_idx ON mailmessages("parentaccountid");
CREATE INDEX frommailbox_idx ON mailmessages("frommailbox");
CREATE INDEX stamp_idx ON mailmessages("stamp");
|
package models;
import java.util.List;
/**
* The model class to store the sorting information
*
* @author Sandro
*
*/
public class Sort {
private String text;
private String supplier;
private String status;
private String dateCreateStart;
private String dateCreateEnd;
private String dateUpdateStart;
private String dateUpdateEnd;
private String sort;
private List<String> recordsChecked;
public Sort() {
}
/**
* The constructor of the sort class
*
* @param text the search value of the text field
* @param supplier the search value of the supplier field
* @param status the search value of the status field
* @param format the search value of the format field
* @param dateUpdateStart the search value of the date start field
* @param dateUpdateEnd the search value of the date end field
* @param sort the sort type value
* @param recordsChecked the UUID's of the records selected
*/
public Sort(String text, String supplier, String status, String dateCreateStart, String dateCreateEnd,
String dateUpdateStart, String dateUpdateEnd, String sort,
List<String> recordsChecked) {
this.text = text;
this.supplier = supplier;
this.status = status;
this.dateCreateStart = dateCreateStart;
this.dateCreateEnd = dateCreateEnd;
this.dateUpdateStart = dateUpdateStart;
this.dateUpdateEnd = dateUpdateEnd;
this.sort = sort;
this.recordsChecked = recordsChecked;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getSupplier() {
return supplier;
}
public void setSupplier(String supplier) {
this.supplier = supplier;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDateCreateStart() {
return dateCreateStart;
}
public void setDateCreateStart(String dateCreateStart) {
this.dateCreateStart = dateCreateStart;
}
public String getDateCreateEnd() {
return dateCreateEnd;
}
public void setDateCreateEnd(String dateCreateEnd) {
this.dateCreateEnd = dateCreateEnd;
}
public String getDateUpdateStart() {
return dateUpdateStart;
}
public void setDateUpdateStart(String dateUpdateStart) {
this.dateUpdateStart = dateUpdateStart;
}
public String getDateUpdateEnd() {
return dateUpdateEnd;
}
public void setDateUpdateEnd(String dateUpdateEnd) {
this.dateUpdateEnd = dateUpdateEnd;
}
public String getSort() {
return sort;
}
public void setSort(String sort) {
this.sort = sort;
}
public List<String> getRecordsChecked() {
return recordsChecked;
}
public void setRecordsChecked(List<String> recordsChecked) {
this.recordsChecked = recordsChecked;
}
}
|
#include "derivations.hh"
#include "store-api.hh"
#include "globals.hh"
#include "util.hh"
#include "worker-protocol.hh"
#include "fs-accessor.hh"
#include "<API key>.hh"
namespace nix {
void DerivationOutput::parseHashInfo(bool & recursive, Hash & hash) const
{
recursive = false;
string algo = hashAlgo;
if (string(algo, 0, 2) == "r:") {
recursive = true;
algo = string(algo, 2);
}
HashType hashType = parseHashType(algo);
if (hashType == htUnknown)
throw Error(format("unknown hash algorithm ‘%1%’") % algo);
hash = parseHash(hashType, this->hash);
}
Path BasicDerivation::findOutput(const string & id) const
{
auto i = outputs.find(id);
if (i == outputs.end())
throw Error(format("derivation has no output ‘%1%’") % id);
return i->second.path;
}
bool BasicDerivation::willBuildLocally() const
{
return get(env, "preferLocalBuild") == "1" && canBuildLocally();
}
bool BasicDerivation::substitutesAllowed() const
{
return get(env, "allowSubstitutes", "1") == "1";
}
bool BasicDerivation::isBuiltin() const
{
return string(builder, 0, 8) == "builtin:";
}
bool BasicDerivation::canBuildLocally() const
{
return platform == settings.thisSystem
|| isBuiltin()
#if __linux__
|| (platform == "i686-linux" && settings.thisSystem == "x86_64-linux")
|| (platform == "armv6l-linux" && settings.thisSystem == "armv7l-linux")
|| (platform == "armv5tel-linux" && (settings.thisSystem == "armv7l-linux" || settings.thisSystem == "armv6l-linux"))
#elif __FreeBSD__
|| (platform == "i686-linux" && settings.thisSystem == "x86_64-freebsd")
|| (platform == "i686-linux" && settings.thisSystem == "i686-freebsd")
#endif
;
}
Path writeDerivation(ref<Store> store,
const Derivation & drv, const string & name, bool repair)
{
PathSet references;
references.insert(drv.inputSrcs.begin(), drv.inputSrcs.end());
for (auto & i : drv.inputDrvs)
references.insert(i.first);
/* Note that the outputs of a derivation are *not* references
(that can be missing (of course) and should not necessarily be
held during a garbage collection). */
string suffix = name + drvExtension;
string contents = drv.unparse();
return settings.readOnlyMode
? store-><API key>(suffix, contents, references)
: store->addTextToStore(suffix, contents, references, repair);
}
/* Read string `s' from stream `str'. */
static void expect(std::istream & str, const string & s)
{
char s2[s.size()];
str.read(s2, s.size());
if (string(s2, s.size()) != s)
throw FormatError(format("expected string ‘%1%’") % s);
}
/* Read a C-style string from stream `str'. */
static string parseString(std::istream & str)
{
string res;
expect(str, "\"");
int c;
while ((c = str.get()) != '"')
if (c == '\\') {
c = str.get();
if (c == 'n') res += '\n';
else if (c == 'r') res += '\r';
else if (c == 't') res += '\t';
else res += c;
}
else res += c;
return res;
}
static Path parsePath(std::istream & str)
{
string s = parseString(str);
if (s.size() == 0 || s[0] != '/')
throw FormatError(format("bad path ‘%1%’ in derivation") % s);
return s;
}
static bool endOfList(std::istream & str)
{
if (str.peek() == ',') {
str.get();
return false;
}
if (str.peek() == ']') {
str.get();
return true;
}
return false;
}
static StringSet parseStrings(std::istream & str, bool arePaths)
{
StringSet res;
while (!endOfList(str))
res.insert(arePaths ? parsePath(str) : parseString(str));
return res;
}
static Derivation parseDerivation(const string & s)
{
Derivation drv;
<API key> str(s);
expect(str, "Derive([");
/* Parse the list of outputs. */
while (!endOfList(str)) {
DerivationOutput out;
expect(str, "("); string id = parseString(str);
expect(str, ","); out.path = parsePath(str);
expect(str, ","); out.hashAlgo = parseString(str);
expect(str, ","); out.hash = parseString(str);
expect(str, ")");
drv.outputs[id] = out;
}
/* Parse the list of input derivations. */
expect(str, ",[");
while (!endOfList(str)) {
expect(str, "(");
Path drvPath = parsePath(str);
expect(str, ",[");
drv.inputDrvs[drvPath] = parseStrings(str, false);
expect(str, ")");
}
expect(str, ",["); drv.inputSrcs = parseStrings(str, true);
expect(str, ","); drv.platform = parseString(str);
expect(str, ","); drv.builder = parseString(str);
/* Parse the builder arguments. */
expect(str, ",[");
while (!endOfList(str))
drv.args.push_back(parseString(str));
/* Parse the environment variables. */
expect(str, ",[");
while (!endOfList(str)) {
expect(str, "("); string name = parseString(str);
expect(str, ","); string value = parseString(str);
expect(str, ")");
drv.env[name] = value;
}
expect(str, ")");
return drv;
}
Derivation readDerivation(const Path & drvPath)
{
try {
return parseDerivation(readFile(drvPath));
} catch (FormatError & e) {
throw Error(format("error parsing derivation ‘%1%’: %2%") % drvPath % e.msg());
}
}
Derivation Store::derivationFromPath(const Path & drvPath)
{
assertStorePath(drvPath);
ensurePath(drvPath);
auto accessor = getFSAccessor();
try {
return parseDerivation(accessor->readFile(drvPath));
} catch (FormatError & e) {
throw Error(format("error parsing derivation ‘%1%’: %2%") % drvPath % e.msg());
}
}
static void printString(string & res, const string & s)
{
res += '"';
for (const char * i = s.c_str(); *i; i++)
if (*i == '\"' || *i == '\\') { res += "\\"; res += *i; }
else if (*i == '\n') res += "\\n";
else if (*i == '\r') res += "\\r";
else if (*i == '\t') res += "\\t";
else res += *i;
res += '"';
}
template<class ForwardIterator>
static void printStrings(string & res, ForwardIterator i, ForwardIterator j)
{
res += '[';
bool first = true;
for ( ; i != j; ++i) {
if (first) first = false; else res += ',';
printString(res, *i);
}
res += ']';
}
string Derivation::unparse() const
{
string s;
s.reserve(65536);
s += "Derive([";
bool first = true;
for (auto & i : outputs) {
if (first) first = false; else s += ',';
s += '('; printString(s, i.first);
s += ','; printString(s, i.second.path);
s += ','; printString(s, i.second.hashAlgo);
s += ','; printString(s, i.second.hash);
s += ')';
}
s += "],[";
first = true;
for (auto & i : inputDrvs) {
if (first) first = false; else s += ',';
s += '('; printString(s, i.first);
s += ','; printStrings(s, i.second.begin(), i.second.end());
s += ')';
}
s += "],";
printStrings(s, inputSrcs.begin(), inputSrcs.end());
s += ','; printString(s, platform);
s += ','; printString(s, builder);
s += ','; printStrings(s, args.begin(), args.end());
s += ",[";
first = true;
for (auto & i : env) {
if (first) first = false; else s += ',';
s += '('; printString(s, i.first);
s += ','; printString(s, i.second);
s += ')';
}
s += "])";
return s;
}
bool isDerivation(const string & fileName)
{
return hasSuffix(fileName, drvExtension);
}
bool BasicDerivation::isFixedOutput() const
{
return outputs.size() == 1 &&
outputs.begin()->first == "out" &&
outputs.begin()->second.hash != "";
}
DrvHashes drvHashes;
/* Returns the hash of a derivation modulo fixed-output
subderivations. A fixed-output derivation is a derivation with one
output (`out') for which an expected hash and hash algorithm are
specified (using the `outputHash' and `outputHashAlgo'
attributes). We don't want changes to such derivations to
propagate upwards through the dependency graph, changing output
paths everywhere.
For instance, if we change the url in a call to the `fetchurl'
function, we do not want to rebuild everything depending on it
(after all, (the hash of) the file being downloaded is unchanged).
So the *output paths* should not change. On the other hand, the
*derivation paths* should change to reflect the new dependency
graph.
That's what this function does: it returns a hash which is just the
hash of the derivation ATerm, except that any input derivation
paths have been replaced by the result of a recursive call to this
function, and that for fixed-output derivations we return a hash of
its output path. */
Hash <API key>(Store & store, Derivation drv)
{
/* Return a fixed hash for fixed-output derivations. */
if (drv.isFixedOutput()) {
DerivationOutputs::const_iterator i = drv.outputs.begin();
return hashString(htSHA256, "fixed:out:"
+ i->second.hashAlgo + ":"
+ i->second.hash + ":"
+ i->second.path);
}
/* For other derivations, replace the inputs paths with recursive
calls to this function.*/
DerivationInputs inputs2;
for (auto & i : drv.inputDrvs) {
Hash h = drvHashes[i.first];
if (!h) {
assert(store.isValidPath(i.first));
Derivation drv2 = readDerivation(i.first);
h = <API key>(store, drv2);
drvHashes[i.first] = h;
}
inputs2[printHash(h)] = i.second;
}
drv.inputDrvs = inputs2;
return hashString(htSHA256, drv.unparse());
}
DrvPathWithOutputs <API key>(const string & s)
{
size_t n = s.find("!");
return n == s.npos
? DrvPathWithOutputs(s, std::set<string>())
: DrvPathWithOutputs(string(s, 0, n), tokenizeString<std::set<string> >(string(s, n + 1), ","));
}
Path <API key>(const Path & drvPath, const std::set<string> & outputs)
{
return outputs.empty()
? drvPath
: drvPath + "!" + concatStringsSep(",", outputs);
}
bool wantOutput(const string & output, const std::set<string> & wanted)
{
return wanted.empty() || wanted.find(output) != wanted.end();
}
PathSet BasicDerivation::outputPaths() const
{
PathSet paths;
for (auto & i : outputs)
paths.insert(i.second.path);
return paths;
}
Source & readDerivation(Source & in, Store & store, BasicDerivation & drv)
{
drv.outputs.clear();
auto nr = readNum<size_t>(in);
for (size_t n = 0; n < nr; n++) {
auto name = readString(in);
DerivationOutput o;
in >> o.path >> o.hashAlgo >> o.hash;
store.assertStorePath(o.path);
drv.outputs[name] = o;
}
drv.inputSrcs = readStorePaths<PathSet>(store, in);
in >> drv.platform >> drv.builder;
drv.args = readStrings<Strings>(in);
nr = readNum<size_t>(in);
for (size_t n = 0; n < nr; n++) {
auto key = readString(in);
auto value = readString(in);
drv.env[key] = value;
}
return in;
}
Sink & operator << (Sink & out, const BasicDerivation & drv)
{
out << drv.outputs.size();
for (auto & i : drv.outputs)
out << i.first << i.second.path << i.second.hashAlgo << i.second.hash;
out << drv.inputSrcs << drv.platform << drv.builder << drv.args;
out << drv.env.size();
for (auto & i : drv.env)
out << i.first << i.second;
return out;
}
std::string hashPlaceholder(const std::string & outputName)
{
// FIXME: memoize?
return "/" + printHash32(hashString(htSHA256, "nix-output:" + outputName));
}
}
|
#include "qwindowsmobilestyle.h"
#include "<API key>.h"
#if !defined(<API key>) || defined(QT_PLUGIN)
#include "qpainterpath.h"
#include "qapplication.h"
#include "qdesktopwidget.h"
#include "qwidget.h"
#include "qdockwidget.h"
#include "qframe.h"
#include "qmenu.h"
#include "qpaintengine.h"
#include "qpainter.h"
#include "qgroupbox.h"
#include "qstyleoption.h"
#include "qlistview.h"
#include "qdrawutil.h"
#include "qtoolbar.h"
#include "qabstractscrollarea.h"
#include "qabstractbutton.h"
#include "qcombobox.h"
#include "qabstractscrollarea.h"
#include "qframe.h"
#include "qscrollbar.h"
#include "qabstractitemview.h"
#include "qmenubar.h"
#include "qtoolbutton.h"
#include "qtextedit.h"
#include "qdialog.h"
#include "qdebug.h"
#include "qtabwidget.h"
#ifdef Q_WS_WINCE
#include "qt_windows.h"
#include "qguifunctions_wince.h"
extern bool <API key>(); //defined in qguifunctions_wince.cpp
extern bool <API key>(); //defined in qguifunctions_wince.cpp
extern bool <API key>(); //defined in qguifunctions_wince.cpp
#endif // Q_WS_WINCE
#include "qstylehelper_p.h"
QT_BEGIN_NAMESPACE
static const int windowsItemFrame = 1; // menu item frame width
static const int <API key> = 13;
static const int <API key> = 9;
static const int <API key> = 14;
static const int <API key> = 14;
static const int <API key> = 6;
static const int <API key> = 16;
static const int <API key> = 0xf000101;
static const int <API key> = 0xf000102;
static const int <API key> = 0xf000103;
static const int <API key> = 0xf000104;
/* XPM */
static const char *const radiobutton_xpm[] = {
"30 30 2 1",
" c None",
". c #000000",
" ........ ",
" .............. ",
" .... .... ",
" .... .... ",
" ... ... ",
" ... ... ",
" .. .. ",
" .. .. ",
" ... ... ",
" .. .. ",
" .. .. ",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
" .. .. ",
" .. .. ",
" ... ... ",
" .. .. ",
" .. .. ",
" ... ... ",
" ... ... ",
" .... .... ",
" .... .... ",
" .............. ",
" ........ "};
/* XPM */
static const char * const radiobutton_low_xpm[] = {
"15 15 2 1",
" c None",
". c #000000",
" ..... ",
" .. .. ",
" . . ",
" . . ",
" . . ",
". .",
". .",
". .",
". .",
". .",
" . . ",
" . . ",
" . . ",
" .. .. ",
" ..... "};
/* XPM */
static const char * const arrowleft_big_xpm[] = {
"9 17 2 1",
" c None",
". c #000000",
" .",
" ..",
" ...",
" ....",
" .....",
" ......",
" .......",
" ........",
".........",
" ........",
" .......",
" ......",
" .....",
" ....",
" ...",
" ..",
" ."};
/* XPM */
static const char * const arrowleft_xpm[] = {
"8 15 2 1",
" c None",
". c #000000",
" .",
" ..",
" ...",
" ....",
" .....",
" ......",
" .......",
"........",
" .......",
" ......",
" .....",
" ....",
" ...",
" ..",
" ."};
/* XPM */
static const char *const horlines_xpm[] = {
"2 2 2 1",
" c None",
". c #000000",
" ",
".."};
/* XPM */
static const char *const vertlines_xpm[] = {
"2 2 2 1",
" c None",
". c #000000",
". ",
". "};
/* XPM */
static const char *const radiochecked_xpm[] = {
"18 18 2 1",
" c None",
". c #000000",
" ...... ",
" .......... ",
" .............. ",
" .............. ",
" ................ ",
" ................ ",
"..................",
"..................",
"..................",
"..................",
"..................",
"..................",
" ................ ",
" ................ ",
" .............. ",
" .............. ",
" .......... ",
" ...... "};
/* XPM */
static const char * const <API key>[] = {
"9 9 2 1",
" c None",
". c #000000",
" ... ",
" ....... ",
" ....... ",
".........",
".........",
".........",
" ....... ",
" ....... ",
" ... "};
static const char *const arrowdown_xpm[] = {
"15 8 2 1",
" c None",
". c #000000",
"...............",
" ............. ",
" ........... ",
" ......... ",
" ....... ",
" ..... ",
" ... ",
" . "};
static const char *const arrowdown_big_xpm[] = {
"17 9 2 1",
" c None",
". c #000000",
".................",
" ............... ",
" ............. ",
" ........... ",
" ......... ",
" ....... ",
" ..... ",
" ... ",
" . "};
/* XPM */
static const char *const checkedlight_xpm[] = {
"24 24 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
" . ",
" .. ",
" ... ",
" .... ",
" ..... ",
" ...... ",
" . ...... ",
" .. ...... ",
" ... ...... ",
" .... ...... ",
" .......... ",
" ......... ",
" ....... ",
" ..... ",
" ... ",
" . ",
" ",
" ",
" "};
/* XPM */
static const char *const checkedbold_xpm[] = {
"26 26 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
" ",
" .. ",
" ... ",
" .... ",
" ..... ",
" .. ...... ",
" ... ....... ",
" .... ....... ",
" ..... ....... ",
" ...... ....... ",
" .............. ",
" ............ ",
" .......... ",
" ........ ",
" ...... ",
" .... ",
" .. ",
" ",
" ",
" ",
" "};
/* XPM */
static const char * const checkedbold_low_xpm[] = {
"9 8 2 1",
" c None",
". c #000000",
" .",
" ..",
". ...",
".. ... ",
"... ... ",
" ..... ",
" ... ",
" . "};
/* XPM */
static const char * const <API key>[] = {
"8 8 2 1",
" c None",
". c #000000",
" .",
" ..",
" ...",
". ... ",
".. ... ",
"..... ",
" ... ",
" . "};
/* XPM */
static const char * const <API key>[] = {
"30 30 3 1",
" c None",
". c #000000",
"+ c #0078CC",
" ........ ",
" .............. ",
" ....++++++++.... ",
" ....++++++++++++.... ",
" ...++++ ++++... ",
" ...+++ +++... ",
" ..++ ++.. ",
" ..++ ++.. ",
" ...++ ++... ",
" ..++ ++.. ",
" ..++ ++.. ",
"..++ ++..",
"..++ ++..",
"..++ ++..",
"..++ ++..",
"..++ ++..",
"..++ ++..",
"..++ ++..",
"..++ ++..",
" ..++ ++.. ",
" ..++ ++.. ",
" ...++ ++... ",
" ..++ ++.. ",
" ..++ ++.. ",
" ...+++ +++... ",
" ...++++ ++++... ",
" ....++++++++++++.... ",
" ....++++++++.... ",
" .............. ",
" ........ "};
/* XPM */
static const char * const <API key>[] = {
"15 15 3 1",
" c None",
". c #000000",
"+ c #3192D6",
" ..... ",
" ..+++++.. ",
" .++ ++. ",
" .+ +. ",
" .+ +. ",
".+ +.",
".+ +.",
".+ +.",
".+ +.",
".+ +.",
" .+ +. ",
" .+ +. ",
" .++ ++. ",
" ..+++++.. ",
" ..... "};
/* XPM */
static const char * const cross_big_xpm[] = {
"28 28 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FDFFFC",
" ",
" ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ++....................++ ",
" ++....................++ ",
" ++..@@@..........@@@..++ ",
" ++..@@@@........@@@@..++ ",
" ++..@@@@@......@@@@@..++ ",
" ++...@@@@@....@@@@@...++ ",
" ++....@@@@@..@@@@@....++ ",
" ++.....@@@@@@@@@@.....++ ",
" ++......@@@@@@@@......++ ",
" ++.......@@@@@@.......++ ",
" ++.......@@@@@@.......++ ",
" ++......@@@@@@@@......++ ",
" ++.....@@@@@@@@@@.....++ ",
" ++....@@@@@..@@@@@....++ ",
" ++...@@@@@....@@@@@...++ ",
" ++..@@@@@......@@@@@..++ ",
" ++..@@@@........@@@@..++ ",
" ++..@@@..........@@@..++ ",
" ++....................++ ",
" ++....................++ ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ",
" "};
/* XPM */
static const char * const cross_small_xpm[] = {
"14 14 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FCFFFC",
" ",
" ++++++++++++ ",
" +..........+ ",
" +.@@....@@.+ ",
" +.@@@..@@@.+ ",
" +..@@@@@@..+ ",
" +...@@@@...+ ",
" +...@@@@...+ ",
" +..@@@@@@..+ ",
" +.@@@..@@@.+ ",
" +.@@....@@.+ ",
" +..........+ ",
" ++++++++++++ ",
" "};
/* XPM */
static const char * const max_big_xpm[] = {
"28 28 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FDFFFC",
" ",
" ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ",
" "};
/* XPM */
static const char * const max_small_xpm[] = {
"14 14 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FCFFFC",
" ",
" ++++++++++++ ",
" +..........+ ",
" +..........+ ",
" +.@@@@@@@@.+ ",
" +.@@@@@@@@.+ ",
" +.@......@.+ ",
" +.@......@.+ ",
" +.@......@.+ ",
" +.@@@@@@@@.+ ",
" +..........+ ",
" +..........+ ",
" ++++++++++++ ",
" "};
/* XPM */
static const char * const normal_big_xpm[] = {
"28 28 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FDFFFC",
" ",
" ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ++....................++ ",
" ++....................++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@............@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++....................++ ",
" ++....................++ ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ",
" "};
/* XPM */
static const char * const normal_small_xpm[] = {
"14 14 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FCFFFC",
" ",
" ++++++++++++ ",
" +..........+ ",
" +.@@@@@@@@.+ ",
" +.@......@.+ ",
" +.@......@.+ ",
" +.@......@.+ ",
" +.@......@.+ ",
" +.@......@.+ ",
" +.@......@.+ ",
" +.@@@@@@@@.+ ",
" +..........+ ",
" ++++++++++++ ",
" "};
/* XPM */
static const char * const min_big_xpm[] = {
"28 28 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FDFFFC",
" ",
" ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++..@@@@@@@@@@@@@@@@..++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++....................++ ",
" ++++++++++++++++++++++++ ",
" ++++++++++++++++++++++++ ",
" ",
" "};
/* XPM */
static const char * const min_small_xpm[] = {
"14 14 4 1",
" c #09454A",
". c #218C98",
"+ c #47D8E5",
"@ c #FCFFFC",
" ",
" ++++++++++++ ",
" +..........+ ",
" +..........+ ",
" +..........+ ",
" +..........+ ",
" +..........+ ",
" +..........+ ",
" +..........+ ",
" +.@@@@@@@@.+ ",
" +..........+ ",
" +..........+ ",
" ++++++++++++ ",
" "};
#ifdef Q_WS_WINCE_WM
static char * sbhandleup_xpm[] = {
"26 41 45 1",
" c None",
". c #000000",
"+ c #E7E7E7",
"@ c #D6D7D6",
"# c #949294",
"$ c #737573",
"% c #636563",
"& c #636163",
"* c #5A5D5A",
"= c #5A595A",
"- c #525552",
"; c #525152",
"> c #4A4D4A",
", c #7B797B",
"' c #CECFCE",
") c #CED3CE",
"! c #6B6D6B",
"~ c #6B696B",
"{ c #737173",
"] c #7B7D7B",
"^ c #848684",
"/ c #848284",
"( c #8C8A8C",
"_ c #8C8E8C",
": c #B5B2B5",
"< c #FFFFFF",
"[ c #949694",
"} c #B5B6B5",
"| c #9C9A9C",
"1 c #ADAEAD",
"2 c #9C9E9C",
"3 c #BDBABD",
"4 c #BDBEBD",
"5 c #F7F3F7",
"6 c #C6C3C6",
"7 c #C6C7C6",
"8 c #A5A2A5",
"9 c #CECBCE",
"0 c #FFFBFF",
"a c #ADAAAD",
"b c #A5A6A5",
"c c #D6D3D6",
"d c #B5BAB5",
"e c #DEDFDE",
"f c #DEDBDE",
"..........................",
"+@
"+@
")$!!~~%%&&&**===
"
"
",$^
",,(^^
",,(^^
"]]_((^^
"//
"//
"//
"^^[[
"^^[[
"((|[[
"((||[
"((||[
"__2|
"##2|_1<<<<}^((]3<<<<}{$,~!",
"##2|_1<<<<}^((]3<<<<}{$,~!",
"
"
"[[2_5<<<4(
"[|2_5<<4_[||||[[_/7<<<,]{$",
"[|2_5<<4_[||||[[_/7<<<,]{$",
"||8_5<6#|2222|||[_/9<<,]{$",
"228#06[28888222||[_/'<,/$,",
"228#06[28888222||[_/'<,/$,",
"22a|6[8bbbb88822||[(/c](,]",
"881b8baaabbbb88222|[(^(_,]",
"881b8baaabbbb88222|[(^(_,]",
"88111111aaabbb88822|[
"bb:::11111aaabbb8822||[[/^",
"bb:::11111aaabbb8822||[[
"bb:::::1111aaabbb8822||[/(",
"3a1::::::1111aaabb8822|_^8",
"da1::::::1111aaabb8822|_^8",
"e1aaabbbb888822||[[
"+e4:aaabbbb88822||[[[
"+e4:aaabbbb88822||[[[
static char * sbhandledown_xpm[] = {
"26 40 46 1",
" c None",
". c #E7E7E7",
"+ c #DEDFDE",
"@ c #BDBEBD",
"# c #B5B2B5",
"$ c #ADAAAD",
"% c #A5A6A5",
"& c #A5A2A5",
"* c #9C9E9C",
"= c #9C9A9C",
"- c #949694",
"; c #949294",
"> c #D6D7D6",
", c #DEDBDE",
"' c #D6DBD6",
") c #ADAEAD",
"! c #8C8E8C",
"~ c #8C8A8C",
"{ c #BDBABD",
"] c #848684",
"^ c #B5BAB5",
"/ c #848284",
"( c #848A84",
"_ c #7B7D7B",
": c #7B797B",
"< c #C6C3C6",
"[ c #D6D3D6",
"} c #FFFBFF",
"| c #CECFCE",
"1 c #FFFFFF",
"2 c #737573",
"3 c #F7F3F7",
"4 c #CECBCE",
"5 c #737173",
"6 c #C6C7C6",
"7 c #6B6D6B",
"8 c #B5B6B5",
"9 c #6B696B",
"0 c #636563",
"a c #636163",
"b c #5A5D5A",
"c c #5A595A",
"d c #525552",
"e c #525152",
"f c #4A4D4A",
"g c #C6CBC6",
".+@
".+@
"')$$$%%%%&&&&**==
"{$)
"^$)
"%%
"%%
"%%
"&&))))))$$$%%%&&&**=-;;;_/",
"&&)%&%$$$%%%%&&***=-~]~!:_",
"&&)%&%$$$%%%%&&***=-~]~!:_",
"**$=<-&%%%%&&&**==-~/[_~:_",
"**&;}<-*&&&&***==-!/|1:/2:",
"**&;}<-*&&&&***==-!/|1:/2:",
"==&!31<;=****===-!/411:_5:",
"-=*!311@!-====--!/6111:_52",
"-=*!311@!-====--!/6111:_52",
"--*!3111@~;=--;!/<1111::75",
";;*;)1111{];;;~/@111185:95",
";;*;)1111{];;;~/@111185:97",
";;*=!)11118]~~_{1111852:97",
";;*=!)11118]~~_{1111852:97",
"!!*=;~)11118_:81111852:207",
"~~==-;])1111)#1111872222a9",
"~~==-;])1111)#1111872222a9",
"~~=--;!/#111111118722255a0",
"]]--;;!]_#11111187522557b0",
"]]--;;!]_#11111187522557b0",
"//;;;!!~/2#1111#95255779ba",
"//;!!~~]]_5#11#975557799cb",
"//;!!~~]]_5#11#975557799ca",
"__!~~]]//_27009755779900db",
"::~]]//__:2257777799000adb",
"::~]]//__:2257777799000adb",
":2]//__::225557799000aabeb",
";52__::225557799000aaabde_",
";52__::225557799000aaabde_",
"[<API key>",
".>;<API key>:|.",
".>;<API key>|."};
static char * sbgripdown_xpm[] = {
"26 34 39 1",
" c None",
". c #949294",
"+ c #9C9E9C",
"@ c #9C9A9C",
"# c #949694",
"$ c #8C8E8C",
"% c #8C8A8C",
"& c #848684",
"* c #848284",
"= c #7B7D7B",
"- c #7B797B",
"; c #6B696B",
"> c #636563",
", c #737573",
"' c #636163",
") c #737173",
"! c #5A5D5A",
"~ c #6B6D6B",
"{ c #5A595A",
"] c #B5B6B5",
"^ c #BDBEBD",
"/ c #ADAEAD",
"( c #BDBABD",
"_ c #525552",
": c #313031",
"< c #525152",
"[ c #ADAAAD",
"} c #BDBAB5",
"| c #4A4D4A",
"1 c #4A494A",
"2 c #C6C3C6",
"3 c #C6CBC6",
"4 c #E7E7E7",
"5 c #DEDFDE",
"6 c #E7E3E7",
"7 c #DEE3DE",
"8 c #CECBCE",
"9 c #8C928C",
"0 c #CECFCE",
"..+++@@@
"$.++@@@@
"$$+@@@@
"$$@@@@
"%%@@@
"%%@@
"%%@
"&&
"&&
"&&
"**...$$%%&&**==
"**..$$%%&&**===
"**.$$%%&]^&===
"==$$%%&&]^*==-((,))~~;;>{_",
"==$%%&&***::
"==%%&&&**=::-,,)::~~;;>>__",
"
"
",-&&**==]^-,))[[~;;>>>''<<",
"2>>~~~;;>>>''!!!{{{{__<113",
"4%'';;;>>>''!!!{{{{__<11%4",
"45-!!'>>>''!!!{{{{_<|11)64",
"447+!{{___<<<||||1111|+444",
"444489~__<<<||||111>$04444"};
static char * sbgripup_xpm[] = {
"26 34 38 1",
" c None",
". c #E7E7E7",
"+ c #D6DBD6",
"@ c #C6C7C6",
"# c #B5B6B5",
"$ c #ADAEAD",
"% c #ADAAAD",
"& c #A5A6A5",
"* c #A5A2A5",
"= c #BDBEBD",
"- c #DEDFDE",
"; c #C6CBC6",
"> c #9C9E9C",
", c #E7E3E7",
"' c #BDBABD",
") c #B5B2B5",
"! c #9C9A9C",
"~ c #DEE3DE",
"{ c #949694",
"] c #D6D7D6",
"^ c #949294",
"/ c #DEDBDE",
"( c #8C8E8C",
"_ c #8C8A8C",
": c #848684",
"< c #D6D3CE",
"[ c #CECBCE",
"} c #D6D3D6",
"| c #848284",
"1 c #313031",
"2 c #7B7D7B",
"3 c #CECFCE",
"4 c #CECBC6",
"5 c #7B797B",
"6 c #737573",
"7 c #737173",
"8 c #6B6D6B",
"9 c #6B696B",
"....+@
"...;$$$$$%%%&&&&**>>>>@...",
".,'$$)
"$$''
"$$
"%$
"%$
"%%
"%%
"%%
"&%)))))$$$11%%&&11*>>>!!:|",
"&&))))$$$$11%&&&11*>>!!{||",
"&&)))$$$$$%%%&&&**>>!!!{|2",
"&&))$$$$$%%%&&&**>>>!!{{|2",
"*&)$$$$$3]%&&&4@*>>!!{{{22",
"**$$$$$%3]%&&&<<>>!!!{{^25",
"**$$$$%%%%11&**>11!!{{^^25",
"**$$$%%%%&11***>11!!{{^^55",
"**$$%%%%&&&***>>!!!{{^^(55",
">>$%%%%&&&***>>>!!{{^^((56",
">>%%%%&&&&***>>!!!{{^^((66",
">>%%%&&&&***>>!!!{{^^((_67",
"!>%%&&&&***>>>!!{{{^^(__67",
"!!%&&&&***>>>!!!{{^^((_:77",
"!!&&&&***>>>!!!{{^^((__:77",
"!!&&&****>>!!!{{^^^(__::78",
"{!&&****>>>!!{{{^^((_::|88",
"{{&****>>>!!!{{^^((__:||88",
"{{****>>>!!!{{^^^(__::|289",
"{{***>>>!!!{{{^^((_::||289"};
static char * sbgripmiddle_xpm[] = {
"26 2 12 1",
" c None",
". c #949294",
"+ c #A5A2A5",
"@ c #9C9E9C",
"# c #9C9A9C",
"$ c #949694",
"% c #8C8E8C",
"& c #8C8A8C",
"* c #848684",
"= c #848284",
"- c #7B7D7B",
"; c #6B696B",
"..++@@@
"..++@@@
static char * <API key>[] = {
"8 46 197 2",
" c None",
". c #66759E",
"+ c #6C789D",
"@ c #6A789E",
"# c #6B789E",
"$ c #6A779D",
"% c #6C789C",
"& c #6F7D9B",
"* c #6F7D9A",
"= c #9DB6EE",
"- c #9DB6ED",
"; c #9CB6ED",
"> c #A1B6EF",
", c #A2B6F0",
"' c #93AAE9",
") c #95ABEA",
"! c #94ABEA",
"~ c #94A9E8",
"{ c #8BA8EA",
"] c #8BA7EA",
"^ c #8AA7EA",
"/ c #8EAAE8",
"( c #8FAAE8",
"_ c #88A2E7",
": c #8CA3E8",
"< c #8BA3E7",
"[ c #8BA3E8",
"} c #8BA2E7",
"| c #8CA2E7",
"1 c #8DA2E7",
"2 c #87A1E8",
"3 c #87A1E9",
"4 c #86A0E8",
"5 c #86A1E7",
"6 c #87A2E7",
"7 c #859EE9",
"8 c #849DE9",
"9 c #869EE9",
"0 c #869FE9",
"a c #7C9BEA",
"b c #7C9CEA",
"c c #7B9CEA",
"d c #7C9BE9",
"e c #7E9CE9",
"f c #7B9AEA",
"g c #7C99E9",
"h c #7C9AEA",
"i c #7B9AE8",
"j c #7A9AEA",
"k c #7996E1",
"l c #7C96E4",
"m c #7B96E3",
"n c #7B95E3",
"o c #7E95E5",
"p c #7E95E6",
"q c #7292E1",
"r c #7490DF",
"s c #7591E0",
"t c #7590DF",
"u c #7392E1",
"v c #6D8CDE",
"w c #6F8EDD",
"x c #6E8DDD",
"y c #6E8DDE",
"z c #6F8EDE",
"A c #6E8EDE",
"B c #718EDD",
"C c #728EDD",
"D c #6B89E0",
"E c #6C89DF",
"F c #6D89E0",
"G c #6D89DF",
"H c #6C88DF",
"I c #6D88DF",
"J c #6D86DD",
"K c #6086E0",
"L c #6686E0",
"M c #6586E0",
"N c #6486E0",
"O c #6485E0",
"P c #6786DF",
"Q c #5F85E0",
"R c #6583DE",
"S c #6683DE",
"T c #6682DD",
"U c #6086DF",
"V c #5F86E0",
"W c #567ED7",
"X c #567ED8",
"Y c #557DD7",
"Z c #5A7FD8",
"` c #6281DA",
" . c #5379D9",
".. c #5278D9",
"+. c #547BD8",
"@. c #4C73D7",
"#. c #4B72D2",
"$. c #4C73D4",
"%. c #4C73D3",
"&. c #4B72D4",
"*. c #4F75D3",
"=. c #5074D2",
"-. c #4971D0",
";. c #4871D0",
">. c #335ECF",
",. c #325ECB",
"'. c #335ECD",
"). c #335ECE",
"!. c #325DCD",
"~. c #2E59C9",
"{. c #3059C9",
"]. c #2F59C9",
"^. c #2F59C8",
"/. c #2B59CA",
"(. c #3355C6",
"_. c #3354C5",
":. c #3156C7",
"<. c #3056C7",
"[. c #3355C7",
"}. c #3355C5",
"|. c #254EBF",
"1. c #1F51C1",
"2. c #234FC0",
"3. c #234FBF",
"4. c #2350C0",
"5. c #1E50BE",
"6. c #1D50C0",
"7. c #264DBE",
"8. c #264CBD",
"9. c #254DBE",
"0. c #244EBF",
"a. c #254DBF",
"b. c #234CBF",
"c. c #244CC0",
"d. c #244BC0",
"e. c #234BC0",
"f. c #234BBF",
"g. c #234CBE",
"h. c #2049B7",
"i. c #2A49B5",
"j. c #2749B5",
"k. c #2749B6",
"l. c #2D49B4",
"m. c #2649B6",
"n. c #2946B5",
"o. c #2A48B6",
"p. c #2947B5",
"q. c #2946B6",
"r. c #2848B6",
"s. c #2549B5",
"t. c #2648B6",
"u. c #2744B5",
"v. c #2744B4",
"w. c #2744AF",
"x. c #2543B4",
"y. c #2543B2",
"z. c #2442B2",
"A. c #2442B3",
"B. c #2442B5",
"C. c #2543B3",
"D. c #1F40B1",
"E. c #1E40B1",
"F. c #243EAE",
"G. c #273BAC",
"H. c #263DAC",
"I. c #253CAB",
"J. c #273CAB",
"K. c #273CAC",
"L. c #263BAA",
"M. c #253CAE",
"N. c #263BA6",
"O. c #253BA5",
"P. c #253AA5",
"Q. c #253BA6",
"R. c #253CA7",
"S. c #263AA6",
"T. c #243CA6",
"U. c #253CA5",
"V. c #273BA8",
"W. c #2F4DA4",
"X. c #2F4DA3",
"Y. c #1B2F85",
"Z. c #B5B5B6",
"`. c #B5B5B5",
" + c #B5B6B6",
".+ c #B5B4B6",
"++ c #C2C3C5",
"@+ c #C0C3C3",
"#+ c #C1C3C4",
"$+ c #E3E3E3",
"%+ c #E3E3E4",
"&+ c #E4E3E4",
"*+ c #E2E3E4",
"=+ c #ECEEEB",
"-+ c #EBEDEA",
";+ c #EEF0ED",
">+ c #EFF0EE",
". + @ @
"& & * & & & & & ",
"= = - = = ; > , ",
"' ) ! ! ! ) ' ~ ",
"{ ] { { { ^ / ( ",
"_ : < [ : } | 1 ",
"2 2 2 3 2 4 5 6 ",
"7 7 7 7 7 8 9 0 ",
"a b a a a c d e ",
"f g h h h h i j ",
"k l m m m n o p ",
"q q q q q q q q ",
"r r s s s t q u ",
"v w x y z A B C ",
"D E F F G F H I ",
"J K L M N O P Q ",
"R R S S S T U V ",
"W W X X X Y Z ` ",
" . . . . ...+.W ",
" . . . . ..... .",
"@.
"-.-.;.-.-.-.-.-.",
">.,.'.).).!.!.>.",
"~.{.].^.].^././.",
"(.(.(.(.(._.:.<.",
"(.(.[.[.[.[.(.}.",
"|.1.2.3.3.4.5.6.",
"7.7.7.7.7.8.9.0.",
"a.b.c.d.c.e.f.g.",
"h.i.j.k.j.k.l.m.",
"n.o.p.q.r.p.s.t.",
"u.u.v.u.u.u.u.u.",
"w.x.y.z.A.y.B.C.",
"D.D.E.D.D.D.D.D.",
"D.D.E.D.D.D.D.D.",
"F.G.H.I.J.K.L.M.",
"N.N.O.N.N.P.Q.R.",
"N.N.S.N.N.N.N.N.",
"T.N.T.T.T.U.N.V.",
"W.W.X.W.W.W.W.W.",
"W.W.W.W.W.W.W.W.",
"Y.Y.Y.Y.Y.Y.Y.Y.",
"Z.`. + +.+Z.`.`.",
"++@+
"$+%+&+&+*+%+%+%+",
"=+-+;+-+-+>+-+-+"};
static char * <API key>[] = {
"100 46 1475 2",
" c None",
". c #FBFBFC",
"+ c #E8EAE7",
"@ c #758DC3",
"# c #42599E",
"$ c #28418A",
"% c #19418F",
"& c #3F5695",
"* c #415896",
"= c #435A98",
"- c #445C99",
"; c #465E9B",
"> c #48609B",
", c #49629C",
"' c #4A639D",
") c #49639D",
"! c #4A629D",
"~ c #4B639D",
"{ c #4B649D",
"] c #4C659D",
"^ c #4D669D",
"/ c #4E689D",
"( c #506A9D",
"_ c #516A9D",
": c #536B9C",
"< c #546C9C",
"[ c #566D9B",
"} c #576D9B",
"| c #586E9C",
"1 c #5B6F9D",
"2 c #61739D",
"3 c #63749E",
"4 c #64749E",
"5 c #68769E",
"6 c #6A779E",
"7 c #6B789E",
"8 c #66759E",
"9 c #6C789D",
"0 c #EEF0ED",
"a c #D0D3DC",
"b c #3E51A3",
"c c #28428B",
"d c #29428C",
"e c #425996",
"f c #455C99",
"g c #485F9C",
"h c #49619E",
"i c #4A63A0",
"j c #4B64A1",
"k c #4B65A1",
"l c #4C66A2",
"m c #4D67A2",
"n c #4F69A1",
"o c #516AA1",
"p c #536CA0",
"q c #556DA1",
"r c #576EA0",
"s c #586F9F",
"t c #586E9F",
"u c #596F9E",
"v c #5A6F9E",
"w c #5C709E",
"x c #5E719E",
"y c #5F729F",
"z c #62739F",
"A c #63739E",
"B c #64749D",
"C c #65749E",
"D c #69769D",
"E c #6C799E",
"F c #6D799F",
"G c #707D9F",
"H c #717F9E",
"I c #6E7AA1",
"J c #6C789E",
"K c #6F7C9C",
"L c #6F7D9B",
"M c #2A4AA0",
"N c #4971D0",
"O c #4C72D8",
"P c #5472C0",
"Q c #5573BF",
"R c #5774BF",
"S c #5875BF",
"T c #5976C1",
"U c #5A76C1",
"V c #5C78C2",
"W c #5E7AC2",
"X c #607CC3",
"Y c #627EC3",
"Z c #637FC4",
"` c #6581C5",
" . c #6682C6",
".. c #6783C7",
"+. c #6984C8",
"@. c #6B85C9",
"#. c #6D87CA",
"$. c #6F89CB",
"%. c #718CCD",
"&. c #748ECF",
"*. c #7690D0",
"=. c #7992D2",
"-. c #7A93D3",
";. c #7C95D5",
">. c #7F98D7",
",. c #8099D8",
"'. c #859CDB",
"). c #8AA0DD",
"!. c #8DA3DF",
"~. c #8FA5E0",
"{. c #90A5E0",
"]. c #91A6E1",
"^. c #91A5E1",
"/. c #90A4E0",
"(. c #8EA3DE",
"_. c #92A6E2",
":. c #8FA4DF",
"<. c #90A5DE",
"[. c #90A5DC",
"}. c #90A6DB",
"|. c #91A6E0",
"1. c #93A7E2",
"2. c #95AAE6",
"3. c #99AEEA",
"4. c #9AB2EA",
"5. c #99B1E9",
"6. c #99B1E7",
"7. c #98AFE6",
"8. c #93A8E2",
"9. c #97ACE7",
"0. c #9AB3EB",
"a. c #9DB5ED",
"b. c #9DB6EE",
"c. c #375095",
"d. c #4056AD",
"e. c #506DCD",
"f. c #4360CC",
"g. c #345ED6",
"h. c #335ECF",
"i. c #355ED6",
"j. c #355FD6",
"k. c #365FD6",
"l. c #355FD0",
"m. c #3760D5",
"n. c #3A63D4",
"o. c #3C63D1",
"p. c #3B63CD",
"q. c #3B63C9",
"r. c #3B62C9",
"s. c #3D63C8",
"t. c #4065C5",
"u. c #4567C5",
"v. c #496BC5",
"w. c #4F70C7",
"x. c #5273C8",
"y. c #5475CA",
"z. c #5777CB",
"A. c #5879CD",
"B. c #5A7BCE",
"C. c #5D7DCF",
"D. c #5F7ECF",
"E. c #617FD0",
"F. c #6381D1",
"G. c #6583D2",
"H. c #6785D2",
"I. c #6886D3",
"J. c #6A88D4",
"K. c #6C89D5",
"L. c #6E8BD6",
"M. c #708CD7",
"N. c #718DD8",
"O. c #738EDA",
"P. c #748FDB",
"Q. c #7691DC",
"R. c #7893DD",
"S. c #7994DD",
"T. c #7A96DE",
"U. c #7B97DF",
"V. c #7C98E0",
"W. c #7E9AE2",
"X. c #7F9BE3",
"Y. c #829DE4",
"Z. c #849FE5",
"`. c #87A0E6",
" + c #88A1E7",
".+ c #89A2E6",
"++ c #8CA3E7",
"@+ c #8EA5E9",
"#+ c #8EA6E9",
"$+ c #8FA7E9",
"%+ c #8FA8E8",
"&+ c #8FA9E8",
"*+ c #91A9E8",
"=+ c #90A7E8",
"-+ c #8FA8EA",
";+ c #90AAEA",
">+ c #93ABEA",
",+ c #95ABEA",
"'+ c #93ABE9",
")+ c #94ABEA",
"!+ c #90A9EA",
"~+ c #93AAE9",
"{+ c #273E7E",
"]+ c #345ED5",
"^+ c #3D60CE",
"/+ c #3D60CF",
"(+ c #345ECF",
"_+ c #335ED0",
":+ c #355FD3",
"<+ c #3A60CE",
"[+ c #3A5FCB",
"}+ c #385FC9",
"|+ c #3B60C8",
"1+ c #3C63CB",
"2+ c #3E64CB",
"3+ c #4166CA",
"4+ c #4568C9",
"5+ c #4A6CC7",
"6+ c #4F71C8",
"7+ c #5172CA",
"8+ c #5475CE",
"9+ c #5678D3",
"0+ c #597CD6",
"a+ c #5C7ED7",
"b+ c #5E7FD8",
"c+ c #6181D9",
"d+ c #6383DA",
"e+ c #6585DA",
"f+ c #6786DB",
"g+ c #6988DC",
"h+ c #6B8ADD",
"i+ c #6D8BDE",
"j+ c #6F8DDE",
"k+ c #718EDF",
"l+ c #728FE0",
"m+ c #7390E1",
"n+ c #7390E2",
"o+ c #7491E3",
"p+ c #7592E4",
"q+ c #7693E4",
"r+ c #7794E5",
"s+ c #7894E5",
"t+ c #7995E6",
"u+ c #7B96E6",
"v+ c #7C97E7",
"w+ c #7D9AE8",
"x+ c #7F9CE9",
"y+ c #829DE9",
"z+ c #849EE9",
"A+ c #859EE9",
"B+ c #87A0E7",
"C+ c #8AA2E7",
"D+ c #8BA3E8",
"E+ c #89A2E7",
"F+ c #8CA6EA",
"G+ c #8BA6EA",
"H+ c #8BA7EA",
"I+ c #8CA3E8",
"J+ c #8BA8EA",
"K+ c #8CA7EA",
"L+ c #8CA8EA",
"M+ c #4659C7",
"N+ c #355ECF",
"O+ c #3660CF",
"P+ c #3860CE",
"Q+ c #3961CD",
"R+ c #3B61CB",
"S+ c #3B61CA",
"T+ c #3D62CA",
"U+ c #3D63CA",
"V+ c #4165CB",
"W+ c #456ACB",
"X+ c #4B6FCD",
"Y+ c #5174CE",
"Z+ c #5275D1",
"`+ c #5477D4",
" @ c #5678D9",
".@ c #587ADB",
"+@ c #597BDB",
"@@ c #5B7DDC",
"#@ c #5E7FDC",
"$@ c #6081DD",
"%@ c #6283DE",
"&@ c #6484DF",
"*@ c #6787E0",
"=@ c #6989E1",
"-@ c #6B8BE1",
";@ c #6D8DE2",
">@ c #6F8EE3",
",@ c #718FE4",
"'@ c #7290E4",
")@ c #7491E5",
"!@ c #7692E6",
"~@ c #7793E5",
"{@ c #7894E6",
"]@ c #7895E7",
"^@ c #7996E8",
"/@ c #7A97E8",
"(@ c #7B98E9",
"_@ c #7D99E8",
":@ c #7F9AE8",
"<@ c #7F9BE9",
"[@ c #7F9CEA",
"}@ c #859EE8",
"|@ c #859FE8",
"1@ c #85A0E9",
"2@ c #869FE9",
"3@ c #86A1E7",
"4@ c #86A0E9",
"5@ c #87A1E7",
"6@ c #88A2E7",
"7@ c #87A1E9",
"8@ c #5A6FCA",
"9@ c #365FCF",
"0@ c #345ED0",
"a@ c #385FCC",
"b@ c #385FCE",
"c@ c #3A61CC",
"d@ c #3B62CD",
"e@ c #3E64CD",
"f@ c #4167CF",
"g@ c #4469CF",
"h@ c #486CD1",
"i@ c #4D71D2",
"j@ c #5175D4",
"k@ c #5376D6",
"l@ c #5578DA",
"m@ c #5679DC",
"n@ c #587BDD",
"o@ c #5A7DDE",
"p@ c #5D80DE",
"q@ c #5F82DF",
"r@ c #6284DF",
"s@ c #6585E0",
"t@ c #6787E1",
"u@ c #6988E2",
"v@ c #6B8AE2",
"w@ c #6D8CE3",
"x@ c #6E8DE3",
"y@ c #708EE4",
"z@ c #718FE3",
"A@ c #7391E4",
"B@ c #7592E5",
"C@ c #7895E5",
"D@ c #7996E6",
"E@ c #7A97E6",
"F@ c #7B98E7",
"G@ c #7A98E8",
"H@ c #7B99E9",
"I@ c #7E9AE9",
"J@ c #7D9AE9",
"K@ c #7E9AEA",
"L@ c #809CE9",
"M@ c #819DE8",
"N@ c #7F9BEA",
"O@ c #819DE9",
"P@ c #819CE9",
"Q@ c #839EE9",
"R@ c #839EE8",
"S@ c #839DEA",
"T@ c #859FE9",
"U@ c #87A0E8",
"V@ c #86A0E8",
"W@ c #87A1E8",
"X@ c #3760CF",
"Y@ c #3A61CE",
"Z@ c #3A62CD",
"`@ c #3F66CE",
" # c #4368D0",
".# c #466CD2",
"+# c #496DD5",
"@# c #4E72D6",
"## c #5175D8",
"$# c #5276DA",
"%# c #5578DC",
"&# c #577ADC",
"*# c #597CDD",
"=# c #5B7DDD",
"-# c #5D7FDE",
";# c #5E81DE",
"># c #6183DF",
",# c #6386DF",
"'# c #6687E0",
")# c #6888E0",
"!# c #6A89E1",
"~# c #6C8AE1",
"{# c #6E8CE2",
"]# c #6F8DE2",
"^# c #7390E4",
"/# c #7390E3",
"(# c #7491E4",
"_# c #7693E5",
":# c #7895E6",
"<# c #7896E6",
"[# c #7997E7",
"}# c #7B97E7",
"|# c #7B98E8",
"1# c #7C98E8",
"2# c #7E9BE9",
"3# c #809CEA",
"4# c #819CEA",
"5# c #839DE9",
"6# c #365FD0",
"7# c #3660D0",
"8# c #3961CF",
"9# c #3B63CF",
"0# c #3D64D0",
"a# c #4067D0",
"b# c #4469D2",
"c# c #466BD3",
"d# c #496ED5",
"e# c #4C71D6",
"f# c #4E72D8",
"g# c #5074D9",
"h# c #5376DB",
"i# c #5578DB",
"j# c #587ADC",
"k# c #5B7CDC",
"l# c #5D7EDD",
"m# c #5F80DD",
"n# c #6081DE",
"o# c #6383DE",
"p# c #6686DF",
"q# c #6887E0",
"r# c #6988E0",
"s# c #6B89E1",
"t# c #6C8AE0",
"u# c #6E8CE1",
"v# c #708EE2",
"w# c #718FE2",
"x# c #7290E3",
"y# c #7391E2",
"z# c #7492E1",
"A# c #7592E2",
"B# c #7691E3",
"C# c #7591E3",
"D# c #7692E3",
"E# c #7693E3",
"F# c #7793E4",
"G# c #7893E4",
"H# c #7994E5",
"I# c #7D97E8",
"J# c #7E98E8",
"K# c #7D98E8",
"L# c #7D99E9",
"M# c #7D9BEA",
"N# c #7D9CEA",
"O# c #7E99E8",
"P# c #7D9AEA",
"Q# c #7C9BEA",
"R# c #7C9CEA",
"S# c #355FCF",
"T# c #3860D0",
"U# c #3A62D0",
"V# c #3C64D1",
"W# c #4167D1",
"X# c #4369D3",
"Y# c #466BD4",
"Z# c #486DD5",
"`# c #4A6ED7",
" $ c #4C70D8",
".$ c #5478D9",
"+$ c #577BDA",
"@$ c #597DDB",
"#$ c #5B7EDB",
"$$ c #5D7FDC",
"%$ c #6182DE",
"&$ c #6284DE",
"*$ c #6485DF",
"=$ c #6586DF",
"-$ c #6787DF",
";$ c #6888DF",
">$ c #6A8ADF",
",$ c #6C8BE0",
"'$ c #6D8CE0",
")$ c #6E8DE1",
"!$ c #6F8DE1",
"~$ c #708EE1",
"{$ c #718FE0",
"]$ c #728FE1",
"^$ c #7390E0",
"/$ c #738FE0",
"($ c #7490E1",
"_$ c #7590E1",
":$ c #7591E1",
"<$ c #7592E1",
"[$ c #7692E2",
"}$ c #7794E2",
"|$ c #7894E3",
"1$ c #7996E3",
"2$ c #7A96E5",
"3$ c #7B98E6",
"4$ c #7B9AE8",
"5$ c #7C99E8",
"6$ c #7C96E5",
"7$ c #7D97E7",
"8$ c #7C99E9",
"9$ c #7B9AE9",
"0$ c #7B9AEA",
"a$ c #5B6DCF",
"b$ c #305EC8",
"c$ c #335ECE",
"d$ c #305ECA",
"e$ c #345FCF",
"f$ c #3761D0",
"g$ c #3A62D1",
"h$ c #3C64D2",
"i$ c #4066D3",
"j$ c #466BD5",
"k$ c #486ED6",
"l$ c #4A6ED6",
"m$ c #4D71D8",
"n$ c #4F72D9",
"o$ c #5073D9",
"p$ c #4F72D8",
"q$ c #5074D8",
"r$ c #5276D9",
"s$ c #587ADA",
"t$ c #5B7CDB",
"u$ c #5D7EDC",
"v$ c #5F7FDD",
"w$ c #6081DC",
"x$ c #6182DD",
"y$ c #6283DD",
"z$ c #6484DE",
"A$ c #6585DD",
"B$ c #6787DE",
"C$ c #6988DF",
"D$ c #6A89DE",
"E$ c #6C8ADF",
"F$ c #6D8BDF",
"G$ c #6E8CE0",
"H$ c #6F8DE0",
"I$ c #718EE0",
"J$ c #728FDF",
"K$ c #728FDE",
"L$ c #7290E0",
"M$ c #7190E0",
"N$ c #7291E0",
"O$ c #7191E0",
"P$ c #7392E1",
"Q$ c #7493E1",
"R$ c #7594E1",
"S$ c #7594E2",
"T$ c #7694E2",
"U$ c #7695E2",
"V$ c #7A96E4",
"W$ c #7895E2",
"X$ c #7A96E2",
"Y$ c #7A96E3",
"Z$ c #7B96E3",
"`$ c #7996E1",
" % c #7C96E4",
".% c #305EC9",
"+% c #315ECC",
"@% c #325ECE",
"#% c #3760D0",
"$% c #3962D1",
"%% c #3E66D3",
"&% c #4268D4",
"*% c #446BD5",
"=% c #476CD6",
"-% c #496ED7",
";% c #4B6FD7",
">% c #4C70D7",
",% c #4E71D7",
"'% c #5074D7",
")% c #5276D8",
"!% c #5376D8",
"~% c #5779DA",
"{% c #597ADA",
"]% c #5A7BDB",
"^% c #5B7CDA",
"/% c #5D7EDB",
"(% c #5E7FDB",
"_% c #6182DB",
":% c #6384DC",
"<% c #6586DD",
"[% c #6686DC",
"}% c #6887DD",
"|% c #6988DD",
"1% c #6A8ADE",
"2% c #6B8BDE",
"3% c #6C8CDE",
"4% c #6E8DDF",
"5% c #6E8CDF",
"6% c #6D8DDF",
"7% c #6C8BDF",
"8% c #6F8DDF",
"9% c #718FDF",
"0% c #7290DF",
"a% c #7391E0",
"b% c #7491E0",
"c% c #7292E1",
"d% c #3959C5",
"e% c #345BC5",
"f% c #315EC8",
"g% c #355BC5",
"h% c #325EC8",
"i% c #315ECB",
"j% c #345DCC",
"k% c #335ECD",
"l% c #345ECD",
"m% c #355FCE",
"n% c #3862D0",
"o% c #3E66D2",
"p% c #456BD5",
"q% c #476CD5",
"r% c #4B6ED7",
"s% c #4B6FD6",
"t% c #4B6FD5",
"u% c #4D71D6",
"v% c #5073D7",
"w% c #5174D7",
"x% c #5275D8",
"y% c #5577D8",
"z% c #5678D8",
"A% c #5779D9",
"B% c #587AD8",
"C% c #597CD9",
"D% c #5B7DD9",
"E% c #5D7FDA",
"F% c #5F80DB",
"G% c #6182DC",
"H% c #6484DC",
"I% c #6585DC",
"J% c #6787DD",
"K% c #6988DE",
"L% c #6B8ADE",
"M% c #6B8ADF",
"N% c #6989DE",
"O% c #6B89DE",
"P% c #6E8BDF",
"Q% c #708CDE",
"R% c #708DDF",
"S% c #708FDF",
"T% c #728EDF",
"U% c #6F8EDD",
"V% c #728EDD",
"W% c #7390DF",
"X% c #7490DF",
"Y% c #335DC8",
"Z% c #3759C5",
"`% c #3859C5",
" & c #335EC8",
".& c #325DCA",
"+& c #345CCB",
"@& c #335DCC",
"#& c #345DCD",
"$& c #355FCD",
"%& c #3861D0",
"&& c #3B64D1",
"*& c #3E65D2",
"=& c #4168D3",
"-& c #456AD5",
";& c #4B6ED5",
">& c #4C6FD4",
",& c #4D70D5",
"'& c #4F72D6",
")& c #5173D6",
"!& c #5375D7",
"~& c #5476D8",
"{& c #5577D7",
"]& c #5477D8",
"^& c #5677D8",
"/& c #5879D9",
"(& c #597AD9",
"_& c #5C7DDA",
":& c #6080DC",
"<& c #6080DB",
"[& c #6181DC",
"}& c #6282DC",
"|& c #6383DD",
"1& c #6484DD",
"2& c #6686DE",
"3& c #6685DE",
"4& c #6786DE",
"5& c #6687DE",
"6& c #6887DE",
"7& c #6987DE",
"8& c #6788DF",
"9& c #6785DF",
"0& c #6B89DF",
"a& c #6C89DF",
"b& c #6F8DDD",
"c& c #6D8CDE",
"d& c #445BBB",
"e& c #3759BE",
"f& c #375AC6",
"g& c #355CC8",
"h& c #345CCA",
"i& c #355ECC",
"j& c #365FCD",
"k& c #3761CE",
"l& c #3A63D0",
"m& c #3D65D1",
"n& c #466AD4",
"o& c #476BD4",
"p& c #486CD3",
"q& c #4A6ED4",
"r& c #4B6ED4",
"s& c #4E71D6",
"t& c #4F71D5",
"u& c #5072D6",
"v& c #5274D7",
"w& c #5273D7",
"x& c #5274D6",
"y& c #5476D7",
"z& c #5779D8",
"A& c #587AD9",
"B& c #5A7CDA",
"C& c #5C7DDB",
"D& c #5D7EDA",
"E& c #6081DA",
"F& c #6181DB",
"G& c #6283DC",
"H& c #6483DD",
"I& c #6483DE",
"J& c #6585DE",
"K& c #6786DF",
"L& c #6886DE",
"M& c #6887DF",
"N& c #6987DF",
"O& c #6A88DF",
"P& c #6786E0",
"Q& c #6A86DE",
"R& c #6B89E0",
"S& c #365BC8",
"T& c #365CC8",
"U& c #375DCA",
"V& c #375FCB",
"W& c #3860CD",
"X& c #3C63D0",
"Y& c #4167D2",
"Z& c #4268D2",
"`& c #4368D2",
" * c #4367D2",
".* c #4568D2",
"+* c #466AD2",
"@* c #496CD3",
"#* c #4A6DD3",
"$* c #4A6DD4",
"%* c #4D70D4",
"&* c #4F72D5",
"** c #4C70D4",
"=* c #4E72D5",
"-* c #5173D5",
";* c #5375D6",
">* c #597BDA",
",* c #5B7DDA",
"'* c #5C7EDB",
")* c #5D7FDB",
"!* c #5E80DB",
"~* c #5E81DA",
"{* c #5F81DB",
"]* c #5F82DB",
"^* c #6384DD",
"{+$ 8@8@e&e&d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%`%f&S&T&U&V&W&Y@X&Y&Z&`& *.*+*@*#*@*r&$*#*r&%*&***=*-*;*y&z%A%z&A&A&>*B&,*,*'*)*!*!*~*{*F&}&{*}&{*]*G%G%y$^*/*J&(*2&_*:*<*=$[*}*<*=$<*|*1*",
|
package org.w3._2001.smil20.language;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.w3._2001.smil20.Smil20Package;
public interface LanguagePackage extends EPackage {
/**
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNAME = "language";
/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http:
/**
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_PREFIX = "language";
/**
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
LanguagePackage eINSTANCE = org.w3._2001.smil20.language.impl.LanguagePackageImpl.init();
/**
* The meta object id for the '{@link org.w3._2001.smil20.language.impl.<API key> <em>Animate Color Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.<API key>
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getAnimateColorType()
* @generated
*/
int ANIMATE_COLOR_TYPE = 0;
/**
* The feature id for the '<em><b>Accumulate</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Additive</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Attribute Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Attribute Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>By</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>From</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>To</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Values</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Group</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 0;
/**
* The feature id for the '<em><b>Any</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 1;
/**
* The feature id for the '<em><b>Alt</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 2;
/**
* The feature id for the '<em><b>Begin</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 3;
/**
* The feature id for the '<em><b>Calc Mode</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 4;
/**
* The feature id for the '<em><b>Class</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 5;
/**
* The feature id for the '<em><b>Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 6;
/**
* The feature id for the '<em><b>End</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 7;
/**
* The feature id for the '<em><b>Fill</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 8;
/**
* The feature id for the '<em><b>Fill Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 9;
/**
* The feature id for the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 10;
/**
* The feature id for the '<em><b>Lang</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 11;
/**
* The feature id for the '<em><b>Longdesc</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 12;
/**
* The feature id for the '<em><b>Max</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 13;
/**
* The feature id for the '<em><b>Min</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 14;
/**
* The feature id for the '<em><b>Repeat</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 15;
/**
* The feature id for the '<em><b>Repeat Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 16;
/**
* The feature id for the '<em><b>Repeat Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 17;
/**
* The feature id for the '<em><b>Restart</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 18;
/**
* The feature id for the '<em><b>Restart Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 19;
/**
* The feature id for the '<em><b>Skip Content</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 20;
/**
* The feature id for the '<em><b>Sync Behavior</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 21;
/**
* The feature id for the '<em><b>Sync Behavior Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 22;
/**
* The feature id for the '<em><b>Sync Tolerance</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 23;
/**
* The feature id for the '<em><b>Sync Tolerance Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 24;
/**
* The feature id for the '<em><b>Target Element</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 25;
/**
* The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 26;
/**
* The number of structural features of the '<em>Animate Color Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 27;
/**
* The number of operations of the '<em>Animate Color Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 0;
/**
* The meta object id for the '{@link org.w3._2001.smil20.language.impl.<API key> <em>Animate Motion Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.<API key>
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#<API key>()
* @generated
*/
int ANIMATE_MOTION_TYPE = 1;
/**
* The feature id for the '<em><b>Accumulate</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Additive</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>By</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>From</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Origin</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>To</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Values</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Group</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 0;
/**
* The feature id for the '<em><b>Any</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 1;
/**
* The feature id for the '<em><b>Alt</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 2;
/**
* The feature id for the '<em><b>Begin</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 3;
/**
* The feature id for the '<em><b>Calc Mode</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 4;
/**
* The feature id for the '<em><b>Class</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 5;
/**
* The feature id for the '<em><b>Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 6;
/**
* The feature id for the '<em><b>End</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 7;
/**
* The feature id for the '<em><b>Fill</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 8;
/**
* The feature id for the '<em><b>Fill Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 9;
/**
* The feature id for the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 10;
/**
* The feature id for the '<em><b>Lang</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 11;
/**
* The feature id for the '<em><b>Longdesc</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 12;
/**
* The feature id for the '<em><b>Max</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 13;
/**
* The feature id for the '<em><b>Min</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 14;
/**
* The feature id for the '<em><b>Repeat</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 15;
/**
* The feature id for the '<em><b>Repeat Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 16;
/**
* The feature id for the '<em><b>Repeat Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 17;
/**
* The feature id for the '<em><b>Restart</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 18;
/**
* The feature id for the '<em><b>Restart Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 19;
/**
* The feature id for the '<em><b>Skip Content</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 20;
/**
* The feature id for the '<em><b>Sync Behavior</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 21;
/**
* The feature id for the '<em><b>Sync Behavior Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 22;
/**
* The feature id for the '<em><b>Sync Tolerance</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 23;
/**
* The feature id for the '<em><b>Sync Tolerance Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 24;
/**
* The feature id for the '<em><b>Target Element</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 25;
/**
* The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 26;
/**
* The number of structural features of the '<em>Animate Motion Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 27;
/**
* The number of operations of the '<em>Animate Motion Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 0;
/**
* The meta object id for the '{@link org.w3._2001.smil20.language.impl.AnimateTypeImpl <em>Animate Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.AnimateTypeImpl
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getAnimateType()
* @generated
*/
int ANIMATE_TYPE = 2;
/**
* The feature id for the '<em><b>Accumulate</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Additive</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Attribute Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Attribute Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>By</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__BY = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>From</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__FROM = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>To</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__TO = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Values</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Group</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__GROUP = Smil20Package.<API key> + 0;
/**
* The feature id for the '<em><b>Any</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__ANY = Smil20Package.<API key> + 1;
/**
* The feature id for the '<em><b>Alt</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__ALT = Smil20Package.<API key> + 2;
/**
* The feature id for the '<em><b>Begin</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__BEGIN = Smil20Package.<API key> + 3;
/**
* The feature id for the '<em><b>Calc Mode</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 4;
/**
* The feature id for the '<em><b>Class</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__CLASS = Smil20Package.<API key> + 5;
/**
* The feature id for the '<em><b>Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__DUR = Smil20Package.<API key> + 6;
/**
* The feature id for the '<em><b>End</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__END = Smil20Package.<API key> + 7;
/**
* The feature id for the '<em><b>Fill</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__FILL = Smil20Package.<API key> + 8;
/**
* The feature id for the '<em><b>Fill Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 9;
/**
* The feature id for the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__ID = Smil20Package.<API key> + 10;
/**
* The feature id for the '<em><b>Lang</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__LANG = Smil20Package.<API key> + 11;
/**
* The feature id for the '<em><b>Longdesc</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 12;
/**
* The feature id for the '<em><b>Max</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__MAX = Smil20Package.<API key> + 13;
/**
* The feature id for the '<em><b>Min</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int ANIMATE_TYPE__MIN = Smil20Package.<API key> + 14;
/**
* The feature id for the '<em><b>Repeat</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 15;
/**
* The feature id for the '<em><b>Repeat Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 16;
/**
* The feature id for the '<em><b>Repeat Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 17;
/**
* The feature id for the '<em><b>Restart</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 18;
/**
* The feature id for the '<em><b>Restart Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 19;
/**
* The feature id for the '<em><b>Skip Content</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 20;
/**
* The feature id for the '<em><b>Sync Behavior</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 21;
/**
* The feature id for the '<em><b>Sync Behavior Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 22;
/**
* The feature id for the '<em><b>Sync Tolerance</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 23;
/**
* The feature id for the '<em><b>Sync Tolerance Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 24;
/**
* The feature id for the '<em><b>Target Element</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 25;
/**
* The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 26;
/**
* The number of structural features of the '<em>Animate Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 27;
/**
* The number of operations of the '<em>Animate Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 0;
/**
* The meta object id for the '{@link org.w3._2001.smil20.language.impl.DocumentRootImpl <em>Document Root</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.DocumentRootImpl
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getDocumentRoot()
* @generated
*/
int DOCUMENT_ROOT = 3;
/**
* The feature id for the '<em><b>Mixed</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 0;
/**
* The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 1;
/**
* The feature id for the '<em><b>XSI Schema Location</b></em>' map.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 2;
/**
* The feature id for the '<em><b>Animate</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 3;
/**
* The feature id for the '<em><b>Animate Color</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 4;
/**
* The feature id for the '<em><b>Animate Motion</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 5;
/**
* The feature id for the '<em><b>Set</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int DOCUMENT_ROOT__SET = 6;
/**
* The number of structural features of the '<em>Document Root</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 7;
/**
* The number of operations of the '<em>Document Root</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = 0;
/**
* The meta object id for the '{@link org.w3._2001.smil20.language.impl.SetTypeImpl <em>Set Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.SetTypeImpl
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getSetType()
* @generated
*/
int SET_TYPE = 4;
/**
* The feature id for the '<em><b>Attribute Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>Attribute Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key>;
/**
* The feature id for the '<em><b>To</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__TO = Smil20Package.SET_PROTOTYPE__TO;
/**
* The feature id for the '<em><b>Group</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__GROUP = Smil20Package.<API key> + 0;
/**
* The feature id for the '<em><b>Any</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__ANY = Smil20Package.<API key> + 1;
/**
* The feature id for the '<em><b>Alt</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__ALT = Smil20Package.<API key> + 2;
/**
* The feature id for the '<em><b>Begin</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__BEGIN = Smil20Package.<API key> + 3;
/**
* The feature id for the '<em><b>Class</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__CLASS = Smil20Package.<API key> + 4;
/**
* The feature id for the '<em><b>Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__DUR = Smil20Package.<API key> + 5;
/**
* The feature id for the '<em><b>End</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__END = Smil20Package.<API key> + 6;
/**
* The feature id for the '<em><b>Fill</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__FILL = Smil20Package.<API key> + 7;
/**
* The feature id for the '<em><b>Fill Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 8;
/**
* The feature id for the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__ID = Smil20Package.<API key> + 9;
/**
* The feature id for the '<em><b>Lang</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__LANG = Smil20Package.<API key> + 10;
/**
* The feature id for the '<em><b>Longdesc</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__LONGDESC = Smil20Package.<API key> + 11;
/**
* The feature id for the '<em><b>Max</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__MAX = Smil20Package.<API key> + 12;
/**
* The feature id for the '<em><b>Min</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__MIN = Smil20Package.<API key> + 13;
/**
* The feature id for the '<em><b>Repeat</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__REPEAT = Smil20Package.<API key> + 14;
/**
* The feature id for the '<em><b>Repeat Count</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 15;
/**
* The feature id for the '<em><b>Repeat Dur</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 16;
/**
* The feature id for the '<em><b>Restart</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int SET_TYPE__RESTART = Smil20Package.<API key> + 17;
/**
* The feature id for the '<em><b>Restart Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 18;
/**
* The feature id for the '<em><b>Skip Content</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 19;
/**
* The feature id for the '<em><b>Sync Behavior</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 20;
/**
* The feature id for the '<em><b>Sync Behavior Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 21;
/**
* The feature id for the '<em><b>Sync Tolerance</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 22;
/**
* The feature id for the '<em><b>Sync Tolerance Default</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 23;
/**
* The feature id for the '<em><b>Target Element</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 24;
/**
* The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 25;
/**
* The number of structural features of the '<em>Set Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 26;
/**
* The number of operations of the '<em>Set Type</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int <API key> = Smil20Package.<API key> + 0;
/**
* Returns the meta object for class '{@link org.w3._2001.smil20.language.AnimateColorType <em>Animate Color Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Animate Color Type</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType
* @generated
*/
EClass getAnimateColorType();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateColorType#getGroup <em>Group</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Group</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getGroup()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateColorType#getAny <em>Any</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getAny()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getAlt <em>Alt</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Alt</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getAlt()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getBegin <em>Begin</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Begin</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getBegin()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getCalcMode <em>Calc Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Calc Mode</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getCalcMode()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getClass_ <em>Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Class</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getClass_()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getDur <em>Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Dur</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getDur()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getEnd <em>End</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>End</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getEnd()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getFill <em>Fill</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getFill()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getFillDefault <em>Fill Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill Default</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getFillDefault()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getId <em>Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Id</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getId()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getLang <em>Lang</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Lang</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getLang()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getLongdesc <em>Longdesc</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Longdesc</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getLongdesc()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getMax <em>Max</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Max</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getMax()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getMin <em>Min</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Min</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getMin()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getRepeat <em>Repeat</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getRepeat()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getRepeatCount <em>Repeat Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Count</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getRepeatCount()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getRepeatDur <em>Repeat Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Dur</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getRepeatDur()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getRestart <em>Restart</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getRestart()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getRestartDefault <em>Restart Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart Default</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getRestartDefault()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#isSkipContent <em>Skip Content</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Skip Content</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#isSkipContent()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getSyncBehavior <em>Sync Behavior</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getSyncBehavior()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#<API key> <em>Sync Behavior Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior Default</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#<API key>()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getSyncTolerance <em>Sync Tolerance</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getSyncTolerance()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#<API key> <em>Sync Tolerance Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance Default</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#<API key>()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateColorType#getTargetElement <em>Target Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Target Element</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getTargetElement()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateColorType#getAnyAttribute <em>Any Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any Attribute</em>'.
* @see org.w3._2001.smil20.language.AnimateColorType#getAnyAttribute()
* @see #getAnimateColorType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for class '{@link org.w3._2001.smil20.language.AnimateMotionType <em>Animate Motion Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Animate Motion Type</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType
* @generated
*/
EClass <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateMotionType#getGroup <em>Group</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Group</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getGroup()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateMotionType#getAny <em>Any</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getAny()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getAlt <em>Alt</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Alt</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getAlt()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getBegin <em>Begin</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Begin</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getBegin()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getCalcMode <em>Calc Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Calc Mode</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getCalcMode()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getClass_ <em>Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Class</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getClass_()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getDur <em>Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Dur</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getDur()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getEnd <em>End</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>End</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getEnd()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getFill <em>Fill</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getFill()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getFillDefault <em>Fill Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill Default</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getFillDefault()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getId <em>Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Id</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getId()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getLang <em>Lang</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Lang</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getLang()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getLongdesc <em>Longdesc</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Longdesc</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getLongdesc()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getMax <em>Max</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Max</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getMax()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getMin <em>Min</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Min</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getMin()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getRepeat <em>Repeat</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getRepeat()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getRepeatCount <em>Repeat Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Count</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getRepeatCount()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getRepeatDur <em>Repeat Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Dur</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getRepeatDur()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getRestart <em>Restart</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getRestart()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getRestartDefault <em>Restart Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart Default</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getRestartDefault()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#isSkipContent <em>Skip Content</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Skip Content</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#isSkipContent()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getSyncBehavior <em>Sync Behavior</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getSyncBehavior()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#<API key> <em>Sync Behavior Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior Default</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#<API key>()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getSyncTolerance <em>Sync Tolerance</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getSyncTolerance()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#<API key> <em>Sync Tolerance Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance Default</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#<API key>()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateMotionType#getTargetElement <em>Target Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Target Element</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getTargetElement()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateMotionType#getAnyAttribute <em>Any Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any Attribute</em>'.
* @see org.w3._2001.smil20.language.AnimateMotionType#getAnyAttribute()
* @see #<API key>()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for class '{@link org.w3._2001.smil20.language.AnimateType <em>Animate Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Animate Type</em>'.
* @see org.w3._2001.smil20.language.AnimateType
* @generated
*/
EClass getAnimateType();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateType#getGroup <em>Group</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Group</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getGroup()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateType#getAny <em>Any</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getAny()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Any();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getAlt <em>Alt</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Alt</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getAlt()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Alt();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getBegin <em>Begin</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Begin</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getBegin()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getCalcMode <em>Calc Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Calc Mode</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getCalcMode()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getClass_ <em>Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Class</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getClass_()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getDur <em>Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Dur</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getDur()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Dur();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getEnd <em>End</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>End</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getEnd()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_End();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getFill <em>Fill</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getFill()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Fill();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getFillDefault <em>Fill Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill Default</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getFillDefault()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getId <em>Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Id</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getId()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Id();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getLang <em>Lang</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Lang</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getLang()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Lang();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getLongdesc <em>Longdesc</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Longdesc</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getLongdesc()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getMax <em>Max</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Max</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getMax()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Max();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getMin <em>Min</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Min</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getMin()
* @see #getAnimateType()
* @generated
*/
EAttribute getAnimateType_Min();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getRepeat <em>Repeat</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getRepeat()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getRepeatCount <em>Repeat Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Count</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getRepeatCount()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getRepeatDur <em>Repeat Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Dur</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getRepeatDur()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getRestart <em>Restart</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getRestart()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getRestartDefault <em>Restart Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart Default</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getRestartDefault()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#isSkipContent <em>Skip Content</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Skip Content</em>'.
* @see org.w3._2001.smil20.language.AnimateType#isSkipContent()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getSyncBehavior <em>Sync Behavior</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getSyncBehavior()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#<API key> <em>Sync Behavior Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior Default</em>'.
* @see org.w3._2001.smil20.language.AnimateType#<API key>()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getSyncTolerance <em>Sync Tolerance</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getSyncTolerance()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#<API key> <em>Sync Tolerance Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance Default</em>'.
* @see org.w3._2001.smil20.language.AnimateType#<API key>()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.AnimateType#getTargetElement <em>Target Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Target Element</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getTargetElement()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.AnimateType#getAnyAttribute <em>Any Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any Attribute</em>'.
* @see org.w3._2001.smil20.language.AnimateType#getAnyAttribute()
* @see #getAnimateType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for class '{@link org.w3._2001.smil20.language.DocumentRoot <em>Document Root</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Document Root</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot
* @generated
*/
EClass getDocumentRoot();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.DocumentRoot#getMixed <em>Mixed</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Mixed</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot#getMixed()
* @see #getDocumentRoot()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the map '{@link org.w3._2001.smil20.language.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot#getXMLNSPrefixMap()
* @see #getDocumentRoot()
* @generated
*/
EReference <API key>();
/**
* Returns the meta object for the map '{@link org.w3._2001.smil20.language.DocumentRoot#<API key> <em>XSI Schema Location</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the map '<em>XSI Schema Location</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot#<API key>()
* @see #getDocumentRoot()
* @generated
*/
EReference <API key>();
/**
* Returns the meta object for the containment reference '{@link org.w3._2001.smil20.language.DocumentRoot#getAnimate <em>Animate</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Animate</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot#getAnimate()
* @see #getDocumentRoot()
* @generated
*/
EReference <API key>();
/**
* Returns the meta object for the containment reference '{@link org.w3._2001.smil20.language.DocumentRoot#getAnimateColor <em>Animate Color</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Animate Color</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot#getAnimateColor()
* @see #getDocumentRoot()
* @generated
*/
EReference <API key>();
/**
* Returns the meta object for the containment reference '{@link org.w3._2001.smil20.language.DocumentRoot#getAnimateMotion <em>Animate Motion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Animate Motion</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot#getAnimateMotion()
* @see #getDocumentRoot()
* @generated
*/
EReference <API key>();
/**
* Returns the meta object for the containment reference '{@link org.w3._2001.smil20.language.DocumentRoot#getSet <em>Set</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Set</em>'.
* @see org.w3._2001.smil20.language.DocumentRoot#getSet()
* @see #getDocumentRoot()
* @generated
*/
EReference getDocumentRoot_Set();
/**
* Returns the meta object for class '{@link org.w3._2001.smil20.language.SetType <em>Set Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Set Type</em>'.
* @see org.w3._2001.smil20.language.SetType
* @generated
*/
EClass getSetType();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.SetType#getGroup <em>Group</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Group</em>'.
* @see org.w3._2001.smil20.language.SetType#getGroup()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Group();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.SetType#getAny <em>Any</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any</em>'.
* @see org.w3._2001.smil20.language.SetType#getAny()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Any();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getAlt <em>Alt</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Alt</em>'.
* @see org.w3._2001.smil20.language.SetType#getAlt()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Alt();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getBegin <em>Begin</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Begin</em>'.
* @see org.w3._2001.smil20.language.SetType#getBegin()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Begin();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getClass_ <em>Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Class</em>'.
* @see org.w3._2001.smil20.language.SetType#getClass_()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Class();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getDur <em>Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Dur</em>'.
* @see org.w3._2001.smil20.language.SetType#getDur()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Dur();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getEnd <em>End</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>End</em>'.
* @see org.w3._2001.smil20.language.SetType#getEnd()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_End();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getFill <em>Fill</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill</em>'.
* @see org.w3._2001.smil20.language.SetType#getFill()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Fill();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getFillDefault <em>Fill Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Fill Default</em>'.
* @see org.w3._2001.smil20.language.SetType#getFillDefault()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getId <em>Id</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Id</em>'.
* @see org.w3._2001.smil20.language.SetType#getId()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Id();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getLang <em>Lang</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Lang</em>'.
* @see org.w3._2001.smil20.language.SetType#getLang()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Lang();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getLongdesc <em>Longdesc</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Longdesc</em>'.
* @see org.w3._2001.smil20.language.SetType#getLongdesc()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Longdesc();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getMax <em>Max</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Max</em>'.
* @see org.w3._2001.smil20.language.SetType#getMax()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Max();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getMin <em>Min</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Min</em>'.
* @see org.w3._2001.smil20.language.SetType#getMin()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Min();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getRepeat <em>Repeat</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat</em>'.
* @see org.w3._2001.smil20.language.SetType#getRepeat()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Repeat();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getRepeatCount <em>Repeat Count</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Count</em>'.
* @see org.w3._2001.smil20.language.SetType#getRepeatCount()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getRepeatDur <em>Repeat Dur</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Repeat Dur</em>'.
* @see org.w3._2001.smil20.language.SetType#getRepeatDur()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getRestart <em>Restart</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart</em>'.
* @see org.w3._2001.smil20.language.SetType#getRestart()
* @see #getSetType()
* @generated
*/
EAttribute getSetType_Restart();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getRestartDefault <em>Restart Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Restart Default</em>'.
* @see org.w3._2001.smil20.language.SetType#getRestartDefault()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#isSkipContent <em>Skip Content</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Skip Content</em>'.
* @see org.w3._2001.smil20.language.SetType#isSkipContent()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getSyncBehavior <em>Sync Behavior</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior</em>'.
* @see org.w3._2001.smil20.language.SetType#getSyncBehavior()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#<API key> <em>Sync Behavior Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Behavior Default</em>'.
* @see org.w3._2001.smil20.language.SetType#<API key>()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getSyncTolerance <em>Sync Tolerance</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance</em>'.
* @see org.w3._2001.smil20.language.SetType#getSyncTolerance()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#<API key> <em>Sync Tolerance Default</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Sync Tolerance Default</em>'.
* @see org.w3._2001.smil20.language.SetType#<API key>()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute '{@link org.w3._2001.smil20.language.SetType#getTargetElement <em>Target Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Target Element</em>'.
* @see org.w3._2001.smil20.language.SetType#getTargetElement()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the meta object for the attribute list '{@link org.w3._2001.smil20.language.SetType#getAnyAttribute <em>Any Attribute</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Any Attribute</em>'.
* @see org.w3._2001.smil20.language.SetType#getAnyAttribute()
* @see #getSetType()
* @generated
*/
EAttribute <API key>();
/**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the factory that creates the instances of the model.
* @generated
*/
LanguageFactory getLanguageFactory();
/**
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
* <li>each class,</li>
* <li>each feature of each class,</li>
* <li>each operation of each class,</li>
* <li>each enum,</li>
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
* @generated
*/
interface Literals {
/**
* The meta object literal for the '{@link org.w3._2001.smil20.language.impl.<API key> <em>Animate Color Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.<API key>
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getAnimateColorType()
* @generated
*/
EClass ANIMATE_COLOR_TYPE = eINSTANCE.getAnimateColorType();
/**
* The meta object literal for the '<em><b>Group</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Any</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Alt</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Begin</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Calc Mode</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Class</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>End</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Fill</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Fill Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Id</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Lang</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Longdesc</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Max</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Min</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Restart</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Restart Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Skip Content</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Target Element</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Any Attribute</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '{@link org.w3._2001.smil20.language.impl.<API key> <em>Animate Motion Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.<API key>
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#<API key>()
* @generated
*/
EClass ANIMATE_MOTION_TYPE = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Group</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Any</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Alt</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Begin</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Calc Mode</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Class</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>End</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Fill</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Fill Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Id</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Lang</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Longdesc</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Max</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Min</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Restart</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Restart Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Skip Content</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Target Element</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Any Attribute</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '{@link org.w3._2001.smil20.language.impl.AnimateTypeImpl <em>Animate Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.AnimateTypeImpl
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getAnimateType()
* @generated
*/
EClass ANIMATE_TYPE = eINSTANCE.getAnimateType();
/**
* The meta object literal for the '<em><b>Group</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__GROUP = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Any</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__ANY = eINSTANCE.getAnimateType_Any();
/**
* The meta object literal for the '<em><b>Alt</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__ALT = eINSTANCE.getAnimateType_Alt();
/**
* The meta object literal for the '<em><b>Begin</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__BEGIN = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Calc Mode</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Class</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__CLASS = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__DUR = eINSTANCE.getAnimateType_Dur();
/**
* The meta object literal for the '<em><b>End</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__END = eINSTANCE.getAnimateType_End();
/**
* The meta object literal for the '<em><b>Fill</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__FILL = eINSTANCE.getAnimateType_Fill();
/**
* The meta object literal for the '<em><b>Fill Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Id</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__ID = eINSTANCE.getAnimateType_Id();
/**
* The meta object literal for the '<em><b>Lang</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__LANG = eINSTANCE.getAnimateType_Lang();
/**
* The meta object literal for the '<em><b>Longdesc</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Max</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__MAX = eINSTANCE.getAnimateType_Max();
/**
* The meta object literal for the '<em><b>Min</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute ANIMATE_TYPE__MIN = eINSTANCE.getAnimateType_Min();
/**
* The meta object literal for the '<em><b>Repeat</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Restart</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Restart Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Skip Content</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Target Element</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Any Attribute</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '{@link org.w3._2001.smil20.language.impl.DocumentRootImpl <em>Document Root</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.DocumentRootImpl
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getDocumentRoot()
* @generated
*/
EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
/**
* The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Animate</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Animate Color</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Animate Motion</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Set</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference DOCUMENT_ROOT__SET = eINSTANCE.getDocumentRoot_Set();
/**
* The meta object literal for the '{@link org.w3._2001.smil20.language.impl.SetTypeImpl <em>Set Type</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.w3._2001.smil20.language.impl.SetTypeImpl
* @see org.w3._2001.smil20.language.impl.LanguagePackageImpl#getSetType()
* @generated
*/
EClass SET_TYPE = eINSTANCE.getSetType();
/**
* The meta object literal for the '<em><b>Group</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__GROUP = eINSTANCE.getSetType_Group();
/**
* The meta object literal for the '<em><b>Any</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__ANY = eINSTANCE.getSetType_Any();
/**
* The meta object literal for the '<em><b>Alt</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__ALT = eINSTANCE.getSetType_Alt();
/**
* The meta object literal for the '<em><b>Begin</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__BEGIN = eINSTANCE.getSetType_Begin();
/**
* The meta object literal for the '<em><b>Class</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__CLASS = eINSTANCE.getSetType_Class();
/**
* The meta object literal for the '<em><b>Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__DUR = eINSTANCE.getSetType_Dur();
/**
* The meta object literal for the '<em><b>End</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__END = eINSTANCE.getSetType_End();
/**
* The meta object literal for the '<em><b>Fill</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__FILL = eINSTANCE.getSetType_Fill();
/**
* The meta object literal for the '<em><b>Fill Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Id</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__ID = eINSTANCE.getSetType_Id();
/**
* The meta object literal for the '<em><b>Lang</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__LANG = eINSTANCE.getSetType_Lang();
/**
* The meta object literal for the '<em><b>Longdesc</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__LONGDESC = eINSTANCE.getSetType_Longdesc();
/**
* The meta object literal for the '<em><b>Max</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__MAX = eINSTANCE.getSetType_Max();
/**
* The meta object literal for the '<em><b>Min</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__MIN = eINSTANCE.getSetType_Min();
/**
* The meta object literal for the '<em><b>Repeat</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__REPEAT = eINSTANCE.getSetType_Repeat();
/**
* The meta object literal for the '<em><b>Repeat Count</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Repeat Dur</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Restart</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute SET_TYPE__RESTART = eINSTANCE.getSetType_Restart();
/**
* The meta object literal for the '<em><b>Restart Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Skip Content</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Behavior Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Sync Tolerance Default</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Target Element</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
/**
* The meta object literal for the '<em><b>Any Attribute</b></em>' attribute list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute <API key> = eINSTANCE.<API key>();
}
} //LanguagePackage
|
/* The original Stanford code has been modified during the implementation of
* the OpenFlow 1.3 userspace switch.
*
*/
#include "datapath.h"
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "csum.h"
#include "dp_buffers.h"
#include "dp_control.h"
#include "ofp.h"
#include "ofpbuf.h"
#include "group_table.h"
#include "meter_table.h"
#include "oflib/ofl.h"
#include "oflib-exp/ofl-exp.h"
#include "oflib-exp/ofl-exp-nicira.h"
#include "oflib/ofl-messages.h"
#include "oflib/ofl-log.h"
#include "openflow/openflow.h"
#include "openflow/nicira-ext.h"
#include "openflow/private-ext.h"
#include "openflow/openflow-ext.h"
#include "pipeline.h"
#include "poll-loop.h"
#include "rconn.h"
#include "stp.h"
#include "vconn.h"
#define LOG_MODULE VLM_dp
static struct vlog_rate_limit rl = <API key>(60, 60);
static struct remote *remote_create(struct datapath *dp, struct rconn *rconn, struct rconn *rconn_aux);
static void remote_run(struct datapath *, struct remote *);
static void remote_rconn_run(struct datapath *, struct remote *, uint8_t);
static void remote_wait(struct remote *);
static void remote_destroy(struct remote *);
#define MFR_DESC "Stanford University, Ericsson Research and CPqD Research"
#define HW_DESC "OpenFlow 1.3 Reference Userspace Switch"
#define SW_DESC __DATE__" "__TIME__
#define DP_DESC "OpenFlow 1.3 Reference Userspace Switch Datapath"
#define SERIAL_NUM "1"
#define MAIN_CONNECTION 0
#define PTIN_CONNECTION 1
/* Callbacks for processing experimenter messages in OFLib. */
static struct ofl_exp_msg dp_exp_msg =
{.pack = ofl_exp_msg_pack,
.unpack = ofl_exp_msg_unpack,
.free = ofl_exp_msg_free,
.to_string = <API key>};
static struct ofl_exp dp_exp =
{.act = NULL,
.inst = NULL,
.match = NULL,
.stats = NULL,
.msg = &dp_exp_msg};
/* Generates and returns a random datapath id. */
static uint64_t
gen_datapath_id(void) {
uint8_t ea[ETH_ADDR_LEN];
eth_addr_random(ea);
return eth_addr_to_uint64(ea);
}
struct datapath *
dp_new(void) {
struct datapath *dp;
dp = xmalloc(sizeof(struct datapath));
dp->mfr_desc = strncpy(xmalloc(DESC_STR_LEN), MFR_DESC, DESC_STR_LEN);
dp->mfr_desc[DESC_STR_LEN-1] = 0x00;
dp->hw_desc = strncpy(xmalloc(DESC_STR_LEN), HW_DESC, DESC_STR_LEN);
dp->hw_desc[DESC_STR_LEN-1] = 0x00;
dp->sw_desc = strncpy(xmalloc(DESC_STR_LEN), SW_DESC, DESC_STR_LEN);
dp->sw_desc[DESC_STR_LEN-1] = 0x00;
dp->dp_desc = strncpy(xmalloc(DESC_STR_LEN), DP_DESC, DESC_STR_LEN);
dp->dp_desc[DESC_STR_LEN-1] = 0x00;
dp->serial_num = strncpy(xmalloc(SERIAL_NUM_LEN), SERIAL_NUM, SERIAL_NUM_LEN);
dp->serial_num[SERIAL_NUM_LEN-1] = 0x00;
dp->id = gen_datapath_id();
dp->generation_id = -1;
dp->last_timeout = time_now();
list_init(&dp->remotes);
dp->listeners = NULL;
dp->n_listeners = 0;
dp->listeners_aux = NULL;
dp->n_listeners_aux = 0;
memset(dp->ports, 0x00, sizeof (dp->ports));
dp->local_port = NULL;
dp->buffers = dp_buffers_create(dp);
dp->pipeline = pipeline_create(dp);
dp->groups = group_table_create(dp);
dp->meters = meter_table_create(dp);
list_init(&dp->port_list);
dp->ports_num = 0;
dp->max_queues = NETDEV_MAX_QUEUES;
dp->exp = &dp_exp;
dp->config.flags = OFPC_FRAG_NORMAL;
dp->config.miss_send_len = <API key>;
if(strlen(dp->dp_desc) == 0) {
/* just use "$HOSTNAME pid=$$" */
char hostnametmp[DESC_STR_LEN];
gethostname(hostnametmp,sizeof hostnametmp);
snprintf(dp->dp_desc, sizeof dp->dp_desc,"%s pid=%u",hostnametmp, getpid());
}
/* FIXME: Should not depend on udatapath_as_lib */
#if defined(OF_HW_PLAT) && (defined(UDATAPATH_AS_LIB) || defined(USE_NETDEV))
dp_hw_drv_init(dp);
#endif
return dp;
}
void
dp_add_pvconn(struct datapath *dp, struct pvconn *pvconn, struct pvconn *pvconn_aux) {
dp->listeners = xrealloc(dp->listeners,
sizeof *dp->listeners * (dp->n_listeners + 1));
dp->listeners[dp->n_listeners++] = pvconn;
dp->listeners_aux = xrealloc(dp->listeners_aux,
sizeof *dp->listeners_aux * (dp->n_listeners_aux + 1));
dp->listeners_aux[dp->n_listeners_aux++] = pvconn_aux;
}
void
dp_run(struct datapath *dp) {
time_t now = time_now();
struct remote *r, *rn;
size_t i;
if (now != dp->last_timeout) {
dp->last_timeout = now;
<API key>(dp->meters);
pipeline_timeout(dp->pipeline);
}
poll_timer_wait(1000);
dp_ports_run(dp);
/* Talk to remotes. */
LIST_FOR_EACH_SAFE (r, rn, struct remote, node, &dp->remotes) {
remote_run(dp, r);
}
for (i = 0; i < dp->n_listeners; ) {
struct pvconn *pvconn = dp->listeners[i];
struct vconn *new_vconn;
int retval = pvconn_accept(pvconn, OFP_VERSION, &new_vconn);
if (!retval) {
struct rconn * rconn_aux = NULL;
if (dp->n_listeners_aux && dp->listeners_aux[i] != NULL) {
struct pvconn *pvconn_aux = dp->listeners_aux[i];
struct vconn *new_vconn_aux;
int retval_aux = pvconn_accept(pvconn_aux, OFP_VERSION, &new_vconn_aux);
if (!retval_aux)
rconn_aux = <API key>("passive_aux", new_vconn_aux);
}
remote_create(dp, <API key>("passive", new_vconn), rconn_aux);
}
else if (retval != EAGAIN) {
VLOG_WARN_RL(LOG_MODULE, &rl, "accept failed (%s)", strerror(retval));
dp->listeners[i] = dp->listeners[--dp->n_listeners];
if (dp->n_listeners_aux) {
dp->listeners_aux[i] = dp->listeners_aux[--dp->n_listeners_aux];
}
continue;
}
i++;
}
}
static void
remote_run(struct datapath *dp, struct remote *r)
{
remote_rconn_run(dp, r, MAIN_CONNECTION);
if (!rconn_is_alive(r->rconn)) {
remote_destroy(r);
return;
}
if (r->rconn_aux == NULL || !rconn_is_alive(r->rconn_aux))
return;
remote_rconn_run(dp, r, PTIN_CONNECTION);
}
static void
remote_rconn_run(struct datapath *dp, struct remote *r, uint8_t conn_id) {
struct rconn *rconn;
ofl_err error;
size_t i;
if (conn_id == MAIN_CONNECTION)
rconn = r->rconn;
else if (conn_id == PTIN_CONNECTION)
rconn = r->rconn_aux;
rconn_run(rconn);
/* Do some remote processing, but cap it at a reasonable amount so that
* other processing doesn't starve. */
for (i = 0; i < 50; i++) {
if (!r->cb_dump) {
struct ofpbuf *buffer;
buffer = rconn_recv(rconn);
if (buffer == NULL) {
break;
} else {
struct ofl_msg_header *msg;
struct sender sender = {.remote = r, .conn_id = conn_id};
error = ofl_msg_unpack(buffer->data, buffer->size, &msg, &(sender.xid), dp->exp);
if (!error) {
error = handle_control_msg(dp, msg, &sender);
if (error) {
ofl_msg_free(msg, dp->exp);
}
}
if (error) {
struct ofl_msg_error err =
{{.type = OFPT_ERROR},
.type = ofl_error_type(error),
.code = ofl_error_code(error),
.data_length = buffer->size,
.data = buffer->data};
dp_send_message(dp, (struct ofl_msg_header *)&err, &sender);
}
ofpbuf_delete(buffer);
}
} else {
if (r->n_txq < TXQ_LIMIT) {
int error = r->cb_dump(dp, r->cb_aux);
if (error <= 0) {
if (error) {
VLOG_WARN_RL(LOG_MODULE, &rl, "Callback error: %s.",
strerror(-error));
}
r->cb_done(r->cb_aux);
r->cb_dump = NULL;
}
} else {
break;
}
}
}
}
static void
remote_wait(struct remote *r)
{
rconn_run_wait(r->rconn);
rconn_recv_wait(r->rconn);
if (r->rconn_aux) {
rconn_run_wait(r->rconn_aux);
rconn_recv_wait(r->rconn_aux);
}
}
static void
remote_destroy(struct remote *r)
{
if (r) {
if (r->cb_dump && r->cb_done) {
r->cb_done(r->cb_aux);
}
list_remove(&r->node);
if (r->rconn_aux != NULL) {
rconn_destroy(r->rconn_aux);
}
rconn_destroy(r->rconn);
free(r);
}
}
static struct remote *
remote_create(struct datapath *dp, struct rconn *rconn, struct rconn *rconn_aux)
{
size_t i;
struct remote *remote = xmalloc(sizeof *remote);
list_push_back(&dp->remotes, &remote->node);
remote->rconn = rconn;
remote->rconn_aux = rconn_aux;
remote->cb_dump = NULL;
remote->n_txq = 0;
remote->role = OFPCR_ROLE_EQUAL;
/* Set the remote configuration to receive any asynchronous message*/
for(i = 0; i < 2; i++){
memset(&remote->config.packet_in_mask[i], 0x7, sizeof(uint32_t));
memset(&remote->config.port_status_mask[i], 0x7, sizeof(uint32_t));
memset(&remote->config.flow_removed_mask[i], 0x1f, sizeof(uint32_t));
}
return remote;
}
void
dp_wait(struct datapath *dp)
{
struct sw_port *p;
struct remote *r;
size_t i;
LIST_FOR_EACH (p, struct sw_port, node, &dp->port_list) {
if (IS_HW_PORT(p)) {
continue;
}
netdev_recv_wait(p->netdev);
}
LIST_FOR_EACH (r, struct remote, node, &dp->remotes) {
remote_wait(r);
}
for (i = 0; i < dp->n_listeners; i++) {
pvconn_wait(dp->listeners[i]);
}
}
void
dp_set_dpid(struct datapath *dp, uint64_t dpid) {
dp->id = dpid;
}
void
dp_set_mfr_desc(struct datapath *dp, char *mfr_desc) {
strncpy(dp->mfr_desc, mfr_desc, DESC_STR_LEN);
dp->mfr_desc[DESC_STR_LEN-1] = 0x00;
}
void
dp_set_hw_desc(struct datapath *dp, char *hw_desc) {
strncpy(dp->hw_desc, hw_desc, DESC_STR_LEN);
dp->hw_desc[DESC_STR_LEN-1] = 0x00;
}
void
dp_set_sw_desc(struct datapath *dp, char *sw_desc) {
strncpy(dp->sw_desc, sw_desc, DESC_STR_LEN);
dp->sw_desc[DESC_STR_LEN-1] = 0x00;
}
void
dp_set_dp_desc(struct datapath *dp, char *dp_desc) {
strncpy(dp->dp_desc, dp_desc, DESC_STR_LEN);
dp->dp_desc[DESC_STR_LEN-1] = 0x00;
}
void
dp_set_serial_num(struct datapath *dp, char *serial_num) {
strncpy(dp->serial_num, serial_num, SERIAL_NUM_LEN);
dp->serial_num[SERIAL_NUM_LEN-1] = 0x00;
}
void
dp_set_max_queues(struct datapath *dp, uint32_t max_queues) {
dp->max_queues = max_queues;
}
static int
<API key>(struct ofpbuf *buffer, struct remote *remote) {
struct rconn* rconn = remote->rconn;
int retval;
if (buffer->conn_id == PTIN_CONNECTION &&
remote->rconn != NULL &&
remote->rconn_aux != NULL &&
rconn_is_connected(remote->rconn) &&
rconn_is_connected(remote->rconn_aux)) {
rconn = remote->rconn_aux;
}
retval = <API key>(rconn, buffer, &remote->n_txq,
TXQ_LIMIT);
if (retval) {
VLOG_WARN_RL(LOG_MODULE, &rl, "send to %s failed: %s",
rconn_get_name(rconn), strerror(retval));
}
return retval;
}
static int
<API key>(struct datapath *dp, struct ofpbuf *buffer,
const struct sender *sender) {
<API key>(buffer);
if (sender) {
/* Send back to the sender. */
return <API key>(buffer, sender->remote);
} else {
/* Broadcast to all remotes. */
struct remote *r, *prev = NULL;
uint8_t msg_type;
/* Get the type of the message */
memcpy(&msg_type,((char* ) buffer->data) + 1, sizeof(uint8_t));
LIST_FOR_EACH (r, struct remote, node, &dp->remotes) {
/* do not send to remotes with slave role apart from port status */
if (r->role == OFPCR_ROLE_EQUAL || r->role == OFPCR_ROLE_MASTER){
/*Check if the message is enabled in the asynchronous configuration*/
switch(msg_type){
case (OFPT_PACKET_IN):{
struct ofp_packet_in *p = (struct ofp_packet_in*)buffer->data;
/* Do not send message if the reason is not enabled */
if((p->reason == OFPR_NO_MATCH) && !(r->config.packet_in_mask[0] & 0x1))
continue;
if((p->reason == OFPR_ACTION) && !(r->config.packet_in_mask[0] & 0x2))
continue;
if((p->reason == OFPR_INVALID_TTL) && !(r->config.packet_in_mask[0] & 0x4))
continue;
break;
}
case (OFPT_PORT_STATUS):{
struct ofp_port_status *p = (struct ofp_port_status*)buffer->data;
if((p->reason == OFPPR_ADD) && !(r->config.port_status_mask[0] & 0x1))
continue;
if((p->reason == OFPPR_DELETE) && !(r->config.port_status_mask[0] & 0x2))
continue;
if((p->reason == OFPPR_MODIFY) && !(r->config.packet_in_mask[0] & 0x4))
continue;
}
case (OFPT_FLOW_REMOVED):{
struct ofp_flow_removed *p= (struct ofp_flow_removed *)buffer->data;
if((p->reason == OFPRR_IDLE_TIMEOUT) && !(r->config.port_status_mask[0] & 0x1))
continue;
if((p->reason == OFPRR_HARD_TIMEOUT) && !(r->config.port_status_mask[0] & 0x2))
continue;
if((p->reason == OFPRR_DELETE) && !(r->config.packet_in_mask[0] & 0x4))
continue;
if((p->reason == OFPRR_GROUP_DELETE) && !(r->config.packet_in_mask[0] & 0x8))
continue;
if((p->reason == OFPRR_METER_DELETE) && !(r->config.packet_in_mask[0] & 0x10))
continue;
}
}
}
else {
/* In this implementation we assume that a controller with role slave
can is able to receive only port stats messages */
if (r->role == OFPCR_ROLE_SLAVE && msg_type != OFPT_PORT_STATUS) {
continue;
}
else {
struct ofp_port_status *p = (struct ofp_port_status*)buffer->data;
if((p->reason == OFPPR_ADD) && !(r->config.port_status_mask[1] & 0x1))
continue;
if((p->reason == OFPPR_DELETE) && !(r->config.port_status_mask[1] & 0x2))
continue;
if((p->reason == OFPPR_MODIFY) && !(r->config.packet_in_mask[1] & 0x4))
continue;
}
}
if (prev) {
<API key>(ofpbuf_clone(buffer), prev);
}
prev = r;
}
if (prev) {
<API key>(buffer, prev);
} else {
ofpbuf_delete(buffer);
}
return 0;
}
}
int
dp_send_message(struct datapath *dp, struct ofl_msg_header *msg,
const struct sender *sender) {
struct ofpbuf *ofpbuf;
uint8_t *buf;
size_t buf_size;
int error;
if (VLOG_IS_DBG_ENABLED(LOG_MODULE)) {
char *msg_str = ofl_msg_to_string(msg, dp->exp);
VLOG_DBG_RL(LOG_MODULE, &rl, "sending: %.400s", msg_str);
free(msg_str);
}
error = ofl_msg_pack(msg, sender == NULL ? 0 : sender->xid, &buf, &buf_size, dp->exp);
if (error) {
VLOG_WARN_RL(LOG_MODULE, &rl, "There was an error packing the message!");
return error;
}
ofpbuf = ofpbuf_new(0);
ofpbuf_use(ofpbuf, buf, buf_size);
ofpbuf_put_uninit(ofpbuf, buf_size);
/* Choose the connection to send the packet to.
1) By default, we send it to the main connection
2) If there's an associated sender, send the response to the same
connection the request came from
3) If it's a packet in, use the auxiliary connection
*/
ofpbuf->conn_id = MAIN_CONNECTION;
if (sender != NULL)
ofpbuf->conn_id = sender->conn_id;
if (msg->type == OFPT_PACKET_IN)
ofpbuf->conn_id = PTIN_CONNECTION;
error = <API key>(dp, ofpbuf, sender);
if (error) {
VLOG_WARN_RL(LOG_MODULE, &rl, "There was an error sending the message!");
/* TODO Zoltan: is delete needed? */
ofpbuf_delete(ofpbuf);
return error;
}
return 0;
}
ofl_err
dp_handle_set_desc(struct datapath *dp, struct <API key> *msg,
const struct sender *sender UNUSED) {
dp_set_dp_desc(dp, msg->dp_desc);
ofl_msg_free((struct ofl_msg_header *)msg, dp->exp);
return 0;
}
static ofl_err
<API key>(struct datapath *dp, uint64_t new_gen_id){
if(dp->generation_id >= 0 && ((uint64_t)(new_gen_id - dp->generation_id) < 0) )
return ofl_error(<API key>, OFPRRFC_STALE);
else dp->generation_id = new_gen_id;
return 0;
}
ofl_err
<API key>(struct datapath *dp, struct <API key> *msg,
const struct sender *sender) {
uint32_t role = msg->role;
uint64_t generation_id = msg->generation_id;
switch (msg->role) {
case OFPCR_ROLE_NOCHANGE:{
role = sender->remote->role;
generation_id = dp->generation_id;
break;
}
case OFPCR_ROLE_EQUAL: {
sender->remote->role = OFPCR_ROLE_EQUAL;
break;
}
case OFPCR_ROLE_MASTER: {
struct remote *r;
int error = <API key>(dp,msg->generation_id);
if (error) {
VLOG_WARN_RL(LOG_MODULE, &rl, "Role message generation id is smaller than the current id!");
return error;
}
/* Old master(s) must be changed to slave(s) */
LIST_FOR_EACH (r, struct remote, node, &dp->remotes) {
if (r->role == OFPCR_ROLE_MASTER) {
r->role = OFPCR_ROLE_SLAVE;
}
}
sender->remote->role = OFPCR_ROLE_MASTER;
break;
}
case OFPCR_ROLE_SLAVE: {
int error = <API key>(dp,msg->generation_id);
if (error) {
VLOG_WARN_RL(LOG_MODULE, &rl, "Role message generation id is smaller than the current id!");
return error;
}
sender->remote->role = OFPCR_ROLE_SLAVE;
break;
}
default: {
VLOG_WARN_RL(LOG_MODULE, &rl, "Role request with unknown role (%u).", msg->role);
return ofl_error(<API key>, OFPRRFC_BAD_ROLE);
}
}
{
struct <API key> reply =
{{.type = OFPT_ROLE_REPLY},
.role = role,
.generation_id = generation_id};
dp_send_message(dp, (struct ofl_msg_header *)&reply, sender);
}
return 0;
}
ofl_err
<API key>(struct datapath *dp, struct <API key> *msg,
const struct sender *sender) {
uint16_t async_type = msg->header.type;
switch(async_type){
case (<API key>):{
struct <API key> reply =
{{.type = <API key>},
.config = &sender->remote->config};
dp_send_message(dp, (struct ofl_msg_header *)&reply, sender);
ofl_msg_free((struct ofl_msg_header*)msg, dp->exp);
break;
}
case (OFPT_SET_ASYNC):{
memcpy(&sender->remote->config, msg->config, sizeof(struct ofl_async_config));
break;
}
}
return 0;
}
|
package org.pentaho.reporting.engine.classic.core.layout.output;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.pentaho.reporting.engine.classic.core.event.ReportProgressEvent;
import org.pentaho.reporting.engine.classic.core.event.<API key>;
import org.pentaho.reporting.libraries.base.util.MemoryUsageMessage;
import org.pentaho.reporting.libraries.formatting.FastMessageFormat;
public class <API key> implements <API key> {
private static final Log logger = LogFactory.getLog( <API key>.class );
private static final int ROW_PROGRESS = 5000;
private int lastPage;
private int lastRow;
private int lastStage;
private int lastActivity;
private long startTime;
private int rowCount;
private boolean logPageProgress;
private boolean logLevelProgress;
private boolean logRowProgress;
public <API key>() {
this( true, true, true );
}
public <API key>( final boolean logLevelProgress, final boolean logPageProgress,
final boolean logRowProgress ) {
this.logLevelProgress = logLevelProgress;
this.logPageProgress = logPageProgress;
this.logRowProgress = logRowProgress;
}
/**
* Receives a notification that the report processing has started.
*
* @param event
* the start event.
*/
public void <API key>( final ReportProgressEvent event ) {
if ( logger.isInfoEnabled() == false ) {
return;
}
rowCount = -1;
startTime = System.currentTimeMillis();
logger.info( new MemoryUsageMessage( "[" + Thread.currentThread().getName() + "] Report Processing started. " ) );
}
/**
* Receives a notification that the report processing made some progress.
*
* @param event
* the update event.
*/
public void <API key>( final ReportProgressEvent event ) {
if ( logger.isInfoEnabled() == false ) {
return;
}
rowCount = event.getMaximumRow();
boolean print = false;
if ( lastStage != event.getLevel() || lastActivity != event.getActivity() ) {
lastStage = event.getLevel();
lastActivity = event.getActivity();
lastRow = 0;
if ( logLevelProgress ) {
print = true;
}
}
if ( lastPage != event.getPage() ) {
lastPage = event.getPage();
if ( logPageProgress ) {
print = true;
}
}
final int modRow = ( event.getRow() - lastRow );
if ( modRow > ROW_PROGRESS ) {
lastRow = ( event.getRow() / ROW_PROGRESS ) * ROW_PROGRESS;
if ( logRowProgress ) {
print = true;
}
}
if ( print ) {
logger.info( new MemoryUsageMessage( "[" + Thread.currentThread().getName() + "] Activity: "
+ event.getActivity() + " Level: " + +lastStage + " Processing page: " + lastPage + " Row: " + lastRow
+ " Time: " + ( System.currentTimeMillis() - startTime ) + "ms " ) );
}
}
/**
* Receives a notification that the report processing was finished.
*
* @param event
* the finish event.
*/
public void <API key>( final ReportProgressEvent event ) {
if ( logger.isInfoEnabled() == false ) {
return;
}
final FastMessageFormat messageFormat =
new FastMessageFormat( "[{0}] Report Processing Finished: {1}ms - {2,number,0.000} rows/sec - " );
final long processTime = System.currentTimeMillis() - startTime;
final double rowsPerSecond = rowCount * 1000.0f / ( processTime );
logger.info( new MemoryUsageMessage( messageFormat.format( new Object[] { Thread.currentThread().getName(),
new Long( processTime ), new Double( rowsPerSecond ) } ) ) );
}
}
|
/*////////////////////////////////////////////////////////////////////////////
* Project:
* <API key>
*
*
* File:
* Stackwalker.h
*
* Remarks:
*
*
* Note:
*
*
* Author:
* Jochen Kalmbach
*
*
#ifndef __STACKWALKER_H__
#define __STACKWALKER_H__
// Only valid in the following environment: Intel platform, MS VC++ 5/6/7
#ifndef _X86_
#error Only INTEL envirnoments are supported!
#endif
// Only MS VC++ 5 to 7
#if (_MSC_VER < 1100) || (_MSC_VER > 1300)
//#warning Only MS VC++ 5/6/7 supported. Check if the '_CrtMemBlockHeader' has not changed with this compiler!
#endif
typedef enum eAllocCheckOutput
{
ACOutput_Simple,
ACOutput_Advanced,
ACOutput_XML
};
// Make extern "C", so it will also work with normal C-Programs
#ifdef __cplusplus
extern "C" {
#endif
extern int InitAllocCheckWN(eAllocCheckOutput eOutput, LPCTSTR pszFilename, ULONG ulShowStackAtAlloc = 0);
extern int InitAllocCheck(eAllocCheckOutput eOutput = ACOutput_Simple, BOOL <API key> = TRUE, ULONG ulShowStackAtAlloc = 0); // will create the filename by itself
extern ULONG DeInitAllocCheck();
extern DWORD StackwalkFilter( EXCEPTION_POINTERS *ep, DWORD status, LPCTSTR pszLogFile);
#ifdef __cplusplus
}
#endif
#endif // __STACKWALKER_H__
|
#ifndef <API key>
#define <API key>
#if !defined _J_UNIX && !defined <API key>
#pragma once
#endif
#include <JPtrArray.h>
#ifdef _TODO
#include <JString16PtrMap.h>
#endif
#include <JString16.h>
istream& operator>>(istream&, JPtrArray<JString16>&);
ostream& operator<<(ostream&, const JPtrArray<JString16>&);
#ifdef _TODO
istream& operator>>(istream&, JString16PtrMap<JString16>&);
ostream& operator<<(ostream&, const JString16PtrMap<JString16>&);
#endif
JBoolean JSameStrings(const JPtrArray<JString16>&, const JPtrArray<JString16>&,
const JBoolean caseSensitive);
JOrderedSetT::CompareResult
<API key>(JString16* const &, JString16* const &);
JOrderedSetT::CompareResult
<API key>(JString16* const &, JString16* const &);
#endif
|
#include <ncssysf_tsk.h>
#include <logtrace.h>
#include <daemon.h>
#include "cpd.h"
static int __init_cpd(void)
{
NCS_LIB_REQ_INFO lib_create;
/* Init LIB_CREATE request for Server */
memset(&lib_create, 0, sizeof(lib_create));
lib_create.i_op = NCS_LIB_REQ_CREATE;
lib_create.info.create.argc = 0;
lib_create.info.create.argv = NULL;
if (ncs_agents_startup() != NCSCC_RC_SUCCESS)
return m_LEAP_DBG_SINK(NCSCC_RC_FAILURE);
/* Init CPD */
m_NCS_DBG_PRINTF("\nCPSV:CPD:ON");
if (cpd_lib_req(&lib_create) != NCSCC_RC_SUCCESS) {
fprintf(stderr, "cpd_lib_req FAILED\n");
return m_LEAP_DBG_SINK(NCSCC_RC_FAILURE);
}
return (NCSCC_RC_SUCCESS);
}
int main(int argc, char *argv[])
{
daemonize(argc, argv);
if (__init_cpd() != NCSCC_RC_SUCCESS) {
syslog(LOG_ERR, "__init_dts() failed");
exit(EXIT_FAILURE);
}
while (1) {
m_NCS_TASK_SLEEP(0xfffffff0);
}
exit(1);
}
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic|Source+Code+Pro:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../assets/css/bootstrap.css">
<link rel="stylesheet" href="../assets/css/jquery.bonsai.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="stylesheet" href="../assets/css/icons.css">
<script type="text/javascript" src="../assets/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="../assets/js/bootstrap.js"></script>
<script type="text/javascript" src="../assets/js/jquery.bonsai.js"></script>
<!-- <script type="text/javascript" src="../assets/js/main.js"></script> -->
</head>
<body>
<div>
<!-- Name Title -->
<h1>(unnamed)</h1>
<!-- Type and Stereotype -->
<section style="margin-top: .5em;">
<span class="alert alert-info">
<span class="node-icon <API key>"></span>
UMLGeneralization
</span>
</section>
<!-- Path -->
<section style="margin-top: 10px">
<span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-Project'></span>Untitled</a></span>
<span>::</span>
<span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLModel'></span>JavaReverse</a></span>
<span>::</span>
<span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>net</a></span>
<span>::</span>
<span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>gleamynode</a></span>
<span>::</span>
<span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>netty</a></span>
<span>::</span>
<span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>channel</a></span>
<span>::</span>
<span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLClass'></span><API key></a></span>
<span>::</span>
<span class="label label-info"><a href='<API key>.html'><span class='node-icon <API key>'></span>(<API key>→DefaultChannelEvent)</a></span>
</section>
<!-- Diagram -->
<!-- Description -->
<section>
<h3>Description</h3>
<div>
<span class="label label-info">none</span>
</div>
</section>
<!-- Specification -->
<!-- Directed Relationship -->
<section class="element-list">
<table width="100%">
<tr>
<td width="50%">
<h3>Source</h3>
<ul class="nav nav-list">
<li><a href='<API key>.html'><span class='node-icon _icon-UMLClass'></span><API key></a></a></li>
</ul>
</td>
<td width="50%">
<h3>Target</h3>
<ul class="nav nav-list">
<li><a href='<API key>.html'><span class='node-icon _icon-UMLClass'></span>DefaultChannelEvent</a></a></li>
</ul>
</td>
</tr>
</table>
</section>
<!-- Undirected Relationship -->
<!-- Classifier -->
<!-- Interface -->
<!-- Component -->
<!-- Node -->
<!-- Actor -->
<!-- Use Case -->
<!-- Template Parameters -->
<!-- Literals -->
<!-- Attributes -->
<!-- Operations -->
<!-- Receptions -->
<!-- Extension Points -->
<!-- Parameters -->
<!-- Diagrams -->
<!-- Behavior -->
<!-- Action -->
<!-- Interaction -->
<!-- CombinedFragment -->
<!-- Activity -->
<!-- State Machine -->
<!-- State Machine -->
<!-- State -->
<!-- Vertex -->
<!-- Transition -->
<!-- Properties -->
<section>
<h3>Properties</h3>
<table class="table table-striped table-bordered">
<tr>
<th width="50%">Name</th>
<th width="50%">Value</th>
</tr>
<tr>
<td>name</td>
<td></td>
</tr>
<tr>
<td>source</td>
<td><a href='<API key>.html'><span class='node-icon _icon-UMLClass'></span><API key></a></td>
</tr>
<tr>
<td>target</td>
<td><a href='<API key>.html'><span class='node-icon _icon-UMLClass'></span>DefaultChannelEvent</a></td>
</tr>
<tr>
<td>stereotype</td>
<td><span class='label label-info'>null</span></td>
</tr>
<tr>
<td>visibility</td>
<td>public</td>
</tr>
<tr>
<td>discriminator</td>
<td></td>
</tr>
</table>
</section>
<!-- Tags -->
<!-- Constraints, Dependencies, Dependants -->
<!-- Relationships -->
<!-- Owned Elements -->
</div>
</body>
</html>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Deprecated X font backend</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Pango Reference Manual">
<link rel="up" href="rendering.html" title="Rendering with Pango">
<link rel="prev" href="pango-ATSUI-Fonts.html" title="ATSUI Fonts">
<link rel="next" href="lowlevel.html" title="Low Level Functionality">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="pango.html" title="Basic Pango Interfaces">
<link rel="chapter" href="rendering.html" title="Rendering with Pango">
<link rel="chapter" href="lowlevel.html" title="Low Level Functionality">
<link rel="chapter" href="tools.html" title="Pango Tools">
<link rel="chapter" href="pango-hierarchy.html" title="Object Hierarchy">
<link rel="index" href="index-all.html" title="Index">
<link rel="index" href="index-deprecated.html" title="Index of deprecated symbols">
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
<link rel="index" href="index-1.10.html" title="Index of new symbols in 1.10">
<link rel="index" href="index-1.12.html" title="Index of new symbols in 1.12">
<link rel="index" href="index-1.14.html" title="Index of new symbols in 1.14">
<link rel="index" href="index-1.16.html" title="Index of new symbols in 1.16">
<link rel="index" href="index-1.18.html" title="Index of new symbols in 1.18">
<link rel="index" href="index-1.20.html" title="Index of new symbols in 1.20">
<link rel="index" href="index-1.22.html" title="Index of new symbols in 1.22">
<link rel="index" href="index-1.24.html" title="Index of new symbols in 1.24">
<link rel="index" href="index-1.26.html" title="Index of new symbols in 1.26">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="pango-ATSUI-Fonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="rendering.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Pango Reference Manual</th>
<td><a accesskey="n" href="lowlevel.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#<API key>.synopsis" class="shortcut">Top</a>
|
<a href="#<API key>.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="Deprecated X font backend">
<a name="<API key>"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="<API key>.top_of_page"></a>Deprecated X font backend</span></h2>
<p>Deprecated X font backend — Font handling and rendering with the deprecated X font backend</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="<API key>.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#define <a class="link" href="<API key>.html#<API key>" title="PANGO_RENDER_TYPE_X">PANGO_RENDER_TYPE_X</a>
<a class="link" href="<API key>.html#PangoContext">PangoContext</a> * <a class="link" href="<API key>.html#pango-x-get-context" title="pango_x_get_context ()">pango_x_get_context</a> (Display *display);
void <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="<API key>.html#PangoContext">PangoContext</a> *context,
<a class="link" href="<API key>.html#PangoGetGCFunc" title="PangoGetGCFunc ()">PangoGetGCFunc</a> get_gc_func,
<a class="link" href="<API key>.html#PangoFreeGCFunc" title="PangoFreeGCFunc ()">PangoFreeGCFunc</a> free_gc_func);
GC (<a class="link" href="<API key>.html#PangoGetGCFunc" title="PangoGetGCFunc ()">*PangoGetGCFunc</a>) (<a class="link" href="<API key>.html#PangoContext">PangoContext</a> *context,
<a class="link" href="<API key>.html#PangoColor" title="PangoColor">PangoColor</a> *color,
GC base_gc);
void (<a class="link" href="<API key>.html#PangoFreeGCFunc" title="PangoFreeGCFunc ()">*PangoFreeGCFunc</a>) (<a class="link" href="<API key>.html#PangoContext">PangoContext</a> *context,
GC gc);
void <a class="link" href="<API key>.html#pango-x-render" title="pango_x_render ()">pango_x_render</a> (Display *display,
Drawable d,
GC gc,
<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString">PangoGlyphString</a> *glyphs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
>gint</a> y);
void <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (Display *display,
Drawable drawable,
GC gc,
<a class="link" href="<API key>.html#PangoLayoutLine" title="PangoLayoutLine">PangoLayoutLine</a> *line,
int x,
int y);
void <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (Display *display,
Drawable drawable,
GC gc,
<a class="link" href="<API key>.html#PangoLayout">PangoLayout</a> *layout,
int x,
int y);
typedef <a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a>;
#define <a class="link" href="<API key>.html#<API key>" title="PANGO_X_MAKE_GLYPH()">PANGO_X_MAKE_GLYPH</a> (subfont,index_)
#define <a class="link" href="<API key>.html#<API key>" title="<API key>()"><API key></a> (glyph)
#define <a class="link" href="<API key>.html#<API key>" title="PANGO_X_GLYPH_INDEX()">PANGO_X_GLYPH_INDEX</a> (glyph)
<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> * <a class="link" href="<API key>.html#pango-x-load-font" title="pango_x_load_font ()">pango_x_load_font</a> (Display *display,
const <a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
>gchar</a> *spec);
<a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph">PangoGlyph</a> <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font);
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="<API key>.html#pango-x-has-glyph" title="pango_x_has_glyph ()">pango_x_has_glyph</a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph">PangoGlyph</a> glyph);
int <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
char **charsets,
int n_charsets,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> **subfont_ids,
int **subfont_charsets);
<a class="link" href="pango-Fonts.html#PangoFontMap">PangoFontMap</a> * <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (Display *display);
void <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (Display *display);
<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> * <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFontMap">PangoFontMap</a> *font_map);
char * <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> subfont_id);
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
char **charsets,
int n_charsets,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> *rfont);
<a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph">PangoGlyph</a> <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="http://library.gnome.org/devel/glib/unstable/<API key>.html#gunichar"
>gunichar</a> wc);
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> subfont,
<a
href="http://library.gnome.org/devel/glib/unstable/<API key>.html#gunichar"
>gunichar</a> **glyphs,
int *n_glyphs,
int **clusters);
void <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString">PangoGlyphString</a> *glyphs,
const char *text,
int n_chars);
<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a>;
<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> * <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (Display *display);
void <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> *cache);
XFontStruct * <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> *cache,
const char *xlfd);
void <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><API key></a> (<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> *cache,
XFontStruct *fs);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="<API key>.description"></a><h2>Description</h2>
<p>
The functions and macros in this section are for use with the old
X font backend which used server-side bitmap fonts. This font backend
is no longer supported, and attempts to use it will produce
unpredictable results. Use the <a class="link" href="<API key>.html" title="Xft Fonts and Rendering">Xft</a>
or <a class="link" href="<API key>.html" title="Cairo Rendering">Cairo</a> backend instead.
</p>
</div>
<div class="refsect1" title="Details">
<a name="<API key>.details"></a><h2>Details</h2>
<div class="refsect2" title="PANGO_RENDER_TYPE_X">
<a name="<API key>"></a><h3>PANGO_RENDER_TYPE_X</h3>
<pre class="programlisting">#define PANGO_RENDER_TYPE_X "PangoRenderX"
</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PANGO_RENDER_TYPE_X</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
A string constant identifying the X renderer. The associated quark (see
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#g-quark-from-string"
><code class="function">g_quark_from_string()</code></a>) is used to identify the renderer in <a class="link" href="pango-Modules.html#pango-find-map" title="pango_find_map ()"><code class="function">pango_find_map()</code></a>.
</p>
</div>
<hr>
<div class="refsect2" title="pango_x_get_context ()">
<a name="pango-x-get-context"></a><h3>pango_x_get_context ()</h3>
<pre class="programlisting"><a class="link" href="<API key>.html#PangoContext">PangoContext</a> * pango_x_get_context (Display *display);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_x_get_context</code> has been deprecated since version 1.22 and should not be used in newly-written code. Use <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><code class="function"><API key>()</code></a> followed by
<a class="link" href="pango-Fonts.html#<API key>" title="<API key> ()"><code class="function"><API key>()</code></a> instead.</p>
</div>
<p>
Retrieves a <a class="link" href="<API key>.html#PangoContext"><span class="type">PangoContext</span></a> appropriate for rendering with X fonts on the
given display.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> an X display (As returned by <code class="function">XOpenDisplay()</code>.)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the new <a class="link" href="<API key>.html#PangoContext"><span class="type">PangoContext</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">void <API key> (<a class="link" href="<API key>.html#PangoContext">PangoContext</a> *context,
<a class="link" href="<API key>.html#PangoGetGCFunc" title="PangoGetGCFunc ()">PangoGetGCFunc</a> get_gc_func,
<a class="link" href="<API key>.html#PangoFreeGCFunc" title="PangoFreeGCFunc ()">PangoFreeGCFunc</a> free_gc_func);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the functions that will be used to get GC's in various colors when
rendering layouts with this context.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td> a <a class="link" href="<API key>.html#PangoContext"><span class="type">PangoContext</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>get_gc_func</code></em> :</span></p></td>
<td> function called to create a new GC for a given color.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>free_gc_func</code></em> :</span></p></td>
<td> function called to free a GC created with <em class="parameter"><code>get_gc_func</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="PangoGetGCFunc ()">
<a name="PangoGetGCFunc"></a><h3>PangoGetGCFunc ()</h3>
<pre class="programlisting">GC (*PangoGetGCFunc) (<a class="link" href="<API key>.html#PangoContext">PangoContext</a> *context,
<a class="link" href="<API key>.html#PangoColor" title="PangoColor">PangoColor</a> *color,
GC base_gc);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PangoGetGCFunc</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Specifies the type of the function used to create a new GC for a given
color.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="<API key>.html#PangoContext"><span class="type">PangoContext</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>the color to create a new GC for.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_gc</code></em> :</span></p></td>
<td>the GC to base the new GC on.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new GC.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="PangoFreeGCFunc ()">
<a name="PangoFreeGCFunc"></a><h3>PangoFreeGCFunc ()</h3>
<pre class="programlisting">void (*PangoFreeGCFunc) (<a class="link" href="<API key>.html#PangoContext">PangoContext</a> *context,
GC gc);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PangoFreeGCFunc</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Specifies the type of the function used to free a GC created with
the corresponding <a class="link" href="<API key>.html#PangoGetGCFunc" title="PangoGetGCFunc ()"><span class="type">PangoGetGCFunc</span></a> function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="<API key>.html#PangoContext"><span class="type">PangoContext</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td>the GC to free.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="pango_x_render ()">
<a name="pango-x-render"></a><h3>pango_x_render ()</h3>
<pre class="programlisting">void pango_x_render (Display *display,
Drawable d,
GC gc,
<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString">PangoGlyphString</a> *glyphs,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
>gint</a> y);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_x_render</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Renders a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString"><span class="type">PangoGlyphString</span></a> onto an X drawable.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> the X display.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>d</code></em> :</span></p></td>
<td> the drawable on which to draw string.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td> the graphics context.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> the font in which to draw the string.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
<td> the glyph string to draw.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td> the x position of start of string (in pixels).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td> the y position of baseline (in pixels).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">void <API key> (Display *display,
Drawable drawable,
GC gc,
<a class="link" href="<API key>.html#PangoLayoutLine" title="PangoLayoutLine">PangoLayoutLine</a> *line,
int x,
int y);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Renders a <a class="link" href="<API key>.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> onto an X drawable.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> the X display.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
<td> the drawable on which to draw.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td> GC to use for uncolored drawing.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
<td> a <a class="link" href="<API key>.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td> the x position of start of string (in pixels).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td> the y position of baseline (in pixels).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">void <API key> (Display *display,
Drawable drawable,
GC gc,
<a class="link" href="<API key>.html#PangoLayout">PangoLayout</a> *layout,
int x,
int y);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Renders a <a class="link" href="<API key>.html#PangoLayout"><span class="type">PangoLayout</span></a> onto an X drawable.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> the X display.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
<td> the drawable on which to draw.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td>
<td> GC to use for uncolored drawing.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
<td> a <a class="link" href="<API key>.html#PangoLayout"><span class="type">PangoLayout</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td> the x position of the left of the layout (in pixels).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td> the y position of the top of the layout (in pixels).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="PangoXSubfont">
<a name="PangoXSubfont"></a><h3>PangoXSubfont</h3>
<pre class="programlisting">typedef guint16 PangoXSubfont;
</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PangoXSubfont</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
The <span class="type">PangoXSubFont</span> type is an integer ID that identifies one
particular X font within the fonts referenced in a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</p>
</div>
<hr>
<div class="refsect2" title="PANGO_X_MAKE_GLYPH()">
<a name="<API key>"></a><h3>PANGO_X_MAKE_GLYPH()</h3>
<pre class="programlisting">#define PANGO_X_MAKE_GLYPH(subfont,index_) ((subfont)<<16 | (index_))
</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PANGO_X_MAKE_GLYPH</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Make a glyph index from a <span class="type">PangoXSubFont</span> index and a index
of a character with the corresponding X font.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>subfont</code></em> :</span></p></td>
<td>a <a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont"><span class="type">PangoXSubfont</span></a> index
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
<td>the index of a character within an X font.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key>()">
<a name="<API key>"></a><h3><API key>()</h3>
<pre class="programlisting">#define <API key>(glyph) ((glyph)>>16)
</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Extract the subfont index from a glyph index.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>glyph</code></em> :</span></p></td>
<td>a <span class="type">PangoGlyphIndex</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="PANGO_X_GLYPH_INDEX()">
<a name="<API key>"></a><h3>PANGO_X_GLYPH_INDEX()</h3>
<pre class="programlisting">#define PANGO_X_GLYPH_INDEX(glyph) ((glyph) & 0xffff)
</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PANGO_X_GLYPH_INDEX</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Extract the character index within the X font from a
glyph index.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>glyph</code></em> :</span></p></td>
<td>a <span class="type">PangoGlyphIndex</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="pango_x_load_font ()">
<a name="pango-x-load-font"></a><h3>pango_x_load_font ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> * pango_x_load_font (Display *display,
const <a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
>gchar</a> *spec);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_x_load_font</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Loads up a logical font based on a "fontset" style text
specification. This is not remotely useful (Pango API's generally
work in terms of <a class="link" href="pango-Fonts.html#<API key>" title="<API key>"><span class="type"><API key></span></a>) and the result may not
work correctly in all circumstances. Use of this function should
be avoided.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> the X display.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>spec</code></em> :</span></p></td>
<td> a comma-separated list of XLFD's.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph">PangoGlyph</a> <API key> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the index of a glyph suitable for drawing unknown characters;
you should generally use <a class="link" href="pango-Glyph-Storage.html#<API key>" title="<API key>()"><code class="function"><API key>()</code></a> instead,
since that may return a glyph that provides a better representation
of a particular char. (E.g., by showing hex digits, or a glyph
representative of a certain Unicode range.)</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a glyph index into <em class="parameter"><code>font</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="pango_x_has_glyph ()">
<a name="pango-x-has-glyph"></a><h3>pango_x_has_glyph ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> pango_x_has_glyph (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph">PangoGlyph</a> glyph);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">pango_x_has_glyph</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Checks if the given glyph is present in a X font.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> which must be from the X backend.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>glyph</code></em> :</span></p></td>
<td> the index of a glyph in the font. (Formed
using the <a class="link" href="<API key>.html#<API key>" title="PANGO_X_MAKE_GLYPH()"><span class="type">PANGO_X_MAKE_GLYPH</span></a> macro)
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if the glyph is present.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">int <API key> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
char **charsets,
int n_charsets,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> **subfont_ids,
int **subfont_charsets);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Lists the subfonts of a given font. The result is ordered first by charset,
and then within each charset, by the order of fonts in the font specification.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>charsets</code></em> :</span></p></td>
<td> the charsets to list subfonts for.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_charsets</code></em> :</span></p></td>
<td> the number of charsets in <em class="parameter"><code>charsets</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>subfont_ids</code></em> :</span></p></td>
<td> location to store a pointer to an array of subfont IDs for each found subfont;
the result must be freed using <a
href="http://library.gnome.org/devel/glib/unstable/<API key>.html#g-free"
><code class="function">g_free()</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>subfont_charsets</code></em> :</span></p></td>
<td> location to store a pointer to an array of subfont IDs for each found subfont;
the result must be freed using <a
href="http://library.gnome.org/devel/glib/unstable/<API key>.html#g-free"
><code class="function">g_free()</code></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> length of the arrays stored in <em class="parameter"><code>subfont_ids</code></em> and
<em class="parameter"><code>subfont_charsets</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting"><a class="link" href="pango-Fonts.html#PangoFontMap">PangoFontMap</a> * <API key> (Display *display);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns a <span class="type">PangoXFontMap</span> for <em class="parameter"><code>display</code></em>. Font maps are cached and should
not be freed. If the font map for a display is no longer needed, it can
be released with <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><code class="function"><API key>()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> an X <span class="type">Display</span>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a <span class="type">PangoXFontMap</span> for <em class="parameter"><code>display</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">void <API key> (Display *display);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Free cached resources for the given X display structure.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> an X <span class="type">Display</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting"><a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> * <API key> (<a class="link" href="pango-Fonts.html#PangoFontMap">PangoFontMap</a> *font_map);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Obtains the font cache associated with the given font map.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font_map</code></em> :</span></p></td>
<td> a <span class="type">PangoXFontMap</span>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the <a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache"><span class="type">PangoXFontCache</span></a> of <em class="parameter"><code>font_map</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">char * <API key> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> subfont_id);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Determines the X Logical Font Description for the specified
subfont.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a> which must be from the X backend.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>subfont_id</code></em> :</span></p></td>
<td> the id of a subfont within the font.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A newly-allocated string containing the XLFD for the
subfont. This string must be freed with <a
href="http://library.gnome.org/devel/glib/unstable/<API key>.html#g-free"
><code class="function">g_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> <API key> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
char **charsets,
int n_charsets,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> *rfont);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Looks for subfonts with the <em class="parameter"><code>charset</code></em> charset,
in <em class="parameter"><code>font</code></em>, and puts the first one in *<em class="parameter"><code>rfont</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> A <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>charsets</code></em> :</span></p></td>
<td> An array of charsets.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_charsets</code></em> :</span></p></td>
<td> The number of charsets in <em class="parameter"><code>charsets</code></em>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>rfont</code></em> :</span></p></td>
<td> A pointer to a <a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont"><span class="type">PangoXSubfont</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">TRUE</code> if *<em class="parameter"><code>rfont</code></em> now contains a font.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting"><a class="link" href="pango-Glyph-Storage.html#PangoGlyph" title="PangoGlyph">PangoGlyph</a> <API key> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a
href="http://library.gnome.org/devel/glib/unstable/<API key>.html#gunichar"
>gunichar</a> wc);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Returns the index of a glyph suitable for drawing <em class="parameter"><code>wc</code></em> as an
unknown character.
</p>
<p>
Use <a class="link" href="pango-Glyph-Storage.html#<API key>" title="<API key>()"><code class="function"><API key>()</code></a> instead.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> a <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>wc</code></em> :</span></p></td>
<td> the Unicode character for which a glyph is needed.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a glyph index into <em class="parameter"><code>font</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting"><a
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
>gboolean</a> <API key> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="<API key>.html#PangoXSubfont" title="PangoXSubfont">PangoXSubfont</a> subfont,
<a
href="http://library.gnome.org/devel/glib/unstable/<API key>.html#gunichar"
>gunichar</a> **glyphs,
int *n_glyphs,
int **clusters);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Previously did subfont-specific ligation. Now a no-op.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> unused
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>subfont</code></em> :</span></p></td>
<td> unused
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
<td> unused
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_glyphs</code></em> :</span></p></td>
<td> unused
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>clusters</code></em> :</span></p></td>
<td> unused
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <code class="literal">FALSE</code>, always.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">void <API key> (<a class="link" href="pango-Fonts.html#PangoFont">PangoFont</a> *font,
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString">PangoGlyphString</a> *glyphs,
const char *text,
int n_chars);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This is a simple fallback shaper, that can be used
if no subfont that supports a given script is found.
For every character in <em class="parameter"><code>text</code></em>, it puts the unknown glyph.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td> A <a class="link" href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
<td> A pointer to a <a class="link" href="pango-Glyph-Storage.html#PangoGlyphString" title="PangoGlyphString"><span class="type">PangoGlyphString</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td> UTF-8 string.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_chars</code></em> :</span></p></td>
<td> Number of UTF-8 seqs in <em class="parameter"><code>text</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="PangoXFontCache">
<a name="PangoXFontCache"></a><h3>PangoXFontCache</h3>
<pre class="programlisting">typedef struct _PangoXFontCache PangoXFontCache;</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">PangoXFontCache</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
A <a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache"><span class="type">PangoXFontCache</span></a> caches
<span class="type">XFontStructs</span> for a single display by their XLFD name.
</p>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting"><a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> * <API key> (Display *display);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Creates a font cache for the specified display.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
<td> an X display.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The newly allocated <a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache"><span class="type">PangoXFontCache</span></a>, which should be
freed with <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><code class="function"><API key>()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">void <API key> (<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> *cache);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Frees a <a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache"><span class="type">PangoXFontCache</span></a> and all associated memory. All fonts loaded
through this font cache will be freed along with the cache.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
<td> a <a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache"><span class="type">PangoXFontCache</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">XFontStruct * <API key> (<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> *cache,
const char *xlfd);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Loads a <span class="type">XFontStruct</span> from a X Logical Font Description. The
result may be newly loaded, or it may have been previously
stored.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
<td> a <a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache"><span class="type">PangoXFontCache</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xlfd</code></em> :</span></p></td>
<td> the X Logical Font Description to load.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The font structure, or <code class="literal">NULL</code> if the font could
not be loaded. In order to free this structure, you must call
<a class="link" href="<API key>.html#<API key>" title="<API key> ()"><code class="function"><API key>()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="<API key> ()">
<a name="<API key>"></a><h3><API key> ()</h3>
<pre class="programlisting">void <API key> (<a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache">PangoXFontCache</a> *cache,
XFontStruct *fs);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal"><API key></code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Frees a font structure previously loaded with <a class="link" href="<API key>.html#<API key>" title="<API key> ()"><code class="function"><API key>()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
<td> a <a class="link" href="<API key>.html#PangoXFontCache" title="PangoXFontCache"><span class="type">PangoXFontCache</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fs</code></em> :</span></p></td>
<td> the font structure to unload
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>
|
#include "attr-path.hh"
#include "util.hh"
namespace nix {
// !!! Shouldn't we return a pointer to a Value?
void findAlongAttrPath(EvalState & state, const string & attrPath,
Bindings & autoArgs, Expr * e, Value & v)
{
Strings tokens = tokenizeString(attrPath, ".");
Error attrError =
Error(format("attribute selection path `%1%' does not match expression") % attrPath);
string curPath;
state.mkThunk_(v, e);
foreach (Strings::iterator, i, tokens) {
if (!curPath.empty()) curPath += ".";
curPath += *i;
/* Is *i an index (integer) or a normal attribute name? */
enum { apAttr, apIndex } apType = apAttr;
string attr = *i;
int attrIndex = -1;
if (string2Int(attr, attrIndex)) apType = apIndex;
/* Evaluate the expression. */
Value vTmp;
state.autoCallFunction(autoArgs, v, vTmp);
v = vTmp;
state.forceValue(v);
/* It should evaluate to either an attribute set or an
expression, according to what is specified in the
attrPath. */
if (apType == apAttr) {
if (v.type != tAttrs)
throw TypeError(
format("the expression selected by the selection path `%1%' should be an attribute set but is %2%")
% curPath % showType(v));
Bindings::iterator a = v.attrs->find(state.symbols.create(attr));
if (a == v.attrs->end())
throw Error(format("attribute `%1%' in selection path `%2%' not found") % attr % curPath);
v = *a->value;
}
else if (apType == apIndex) {
if (v.type != tList)
throw TypeError(
format("the expression selected by the selection path `%1%' should be a list but is %2%")
% curPath % showType(v));
if (attrIndex >= v.list.length)
throw Error(format("list index %1% in selection path `%2%' is out of range") % attrIndex % curPath);
v = *v.list.elems[attrIndex];
}
}
}
}
|
#include <w3c/svg/GetSVGDocument.hpp>
#include <w3c/svg/SVGColor.hpp>
#include <w3c/svg/SVGPaint.hpp>
#include <w3c/svg/SVGAngle.hpp>
#include <w3c/svg/SVGPoint.hpp>
#include <w3c/dom/DOMException.hpp>
namespace svg {
SVGDocument*
GetSVGDocument::getSVGDocument ( )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
return 0;
}
void
SVGColor::setRGBColor ( const DOMString& rgbColor )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
}
void
SVGColor::setRGBColorICCColor ( const DOMString& rgbColor, const DOMString& iccColor )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
}
void
SVGPaint::setUri ( const DOMString& uri )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
}
void
SVGPaint::setPaint ( unsigned short paintType, const DOMString& uri, const DOMString& rgbColor, const DOMString& iccColor )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
}
void
SVGAngle::<API key> ( unsigned short unitType, float <API key> )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
}
void
SVGAngle::<API key> ( unsigned short unitType )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
}
SVGPoint*
SVGPoint::matrixTransform ( const SVGMatrix& matrix )
{
throw dom::DOMException(dom::DOMException::NOT_SUPPORTED_ERR);
}
}
|
#include <QObject>
#include <<API key>>
#include <QSignalSpy>
#include <dcpwidget.h>
#include <dcpwidget_p.h>
#include "ut_dcpwidget.h"
void Ut_DcpWidget::init()
{
m_subject = new DcpWidget();
}
void Ut_DcpWidget::cleanup()
{
delete m_subject;
m_subject = 0;
}
void Ut_DcpWidget::initTestCase()
{
}
void Ut_DcpWidget::cleanupTestCase()
{
}
void Ut_DcpWidget::testCreation()
{
QVERIFY(m_subject);
}
void Ut_DcpWidget::testWidgetId()
{
QCOMPARE(m_subject->d_ptr->m_WidgetId, -1);
QVERIFY(m_subject->setWidgetId(1));
QCOMPARE(m_subject->d_ptr->m_WidgetId, 1);
QCOMPARE(m_subject->getWidgetId(), 1);
QVERIFY(!m_subject->setWidgetId(10)); // already set
}
void Ut_DcpWidget::testBack()
{
QVERIFY(m_subject->back()); // default behaviour
}
void Ut_DcpWidget::testPagePans()
{
QVERIFY(m_subject->pagePans()); // default behaviour
}
void Ut_DcpWidget::<API key>()
{
// default value:
QVERIFY(!m_subject-><API key>());
QSignalSpy spy (m_subject, SIGNAL(inProgress(bool)));
// show it:
m_subject-><API key>(true);
QVERIFY(m_subject-><API key>());
QCOMPARE(spy.count(), 1);
QVERIFY(spy.takeFirst().at(0).toBool());
// hide it:
m_subject-><API key>(false);
QVERIFY(!m_subject-><API key>());
QCOMPARE(spy.count(), 1);
QVERIFY(!spy.takeFirst().at(0).toBool());
}
QTEST_APPLESS_MAIN(Ut_DcpWidget)
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="it">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Tue Dec 09 10:54:57 CET 2014 -->
<title>Deprecated List (JADE 4.3.3 Sniffer Reference)</title>
<meta name="date" content="2014-12-09">
<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="Deprecated List (JADE 4.3.3 Sniffer Reference)";
}
</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="jade/tools/sniffer/package-summary.html">Package</a></li>
<li>Class</li>
<li><a href="jade/tools/sniffer/package-tree.html">Tree</a></li>
<li class="navBarCell1Rev">Deprecated</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?deprecated-list.html" target="_top">Frames</a></li>
<li><a href="deprecated-list.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">
<h1 title="Deprecated API" class="title">Deprecated API</h1>
<h2 title="Contents">Contents</h2>
</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="jade/tools/sniffer/package-summary.html">Package</a></li>
<li>Class</li>
<li><a href="jade/tools/sniffer/package-tree.html">Tree</a></li>
<li class="navBarCell1Rev">Deprecated</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?deprecated-list.html" target="_top">Frames</a></li>
<li><a href="deprecated-list.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>
|
#include <QObject>
#include <MApplication>
#include <MButton>
#include <QAction>
#include <QSignalSpy>
#include <mbasicsheetheader.h>
#include <<API key>.h>
#include <<API key>.h>
#include "<API key>.h"
<API key>::<API key>():
subject(0),
controller(0),
app(0)
{
}
void <API key>::initTestCase()
{
static int argc = 1;
static char *app_name[1] = { (char *) "./<API key>" };
app = new MApplication(argc, app_name);
}
void <API key>::cleanupTestCase()
{
delete app;
}
void <API key>::init()
{
controller = new MBasicSheetHeader();
subject = new <API key>(controller);
controller->setView(subject);
}
void <API key>::cleanup()
{
delete controller;
controller = 0;
}
void <API key>::<API key>()
{
QAction *action = new QAction(controller);
controller->setPositiveAction(action);
<API key>(subject->d_func()->positiveButton, action);
}
void <API key>::<API key>()
{
QAction *action = new QAction(controller);
controller->setNegativeAction(action);
<API key>(subject->d_func()->negativeButton, action);
}
void <API key>::<API key>()
{
QAction *action = new QAction(controller);
controller->setPositiveAction(action);
<API key>(action, subject->d_func()->positiveButton);
}
void <API key>::<API key>()
{
QAction *action = new QAction(controller);
controller->setNegativeAction(action);
<API key>(action, subject->d_func()->negativeButton);
}
void <API key>::<API key>()
{
QAction *action = new QAction("foo", controller);
controller->setPositiveAction(action);
QCOMPARE(subject->d_func()->positiveButton->text(), action->text());
}
void <API key>::<API key>()
{
QAction *action = new QAction("foo", controller);
controller->setNegativeAction(action);
QCOMPARE(subject->d_func()->negativeButton->text(), action->text());
}
// Helpers
void <API key>::<API key>(
MButton *button, QAction *action)
{
QSignalSpy spyActionTriggered(action, SIGNAL(triggered(bool)));
QVERIFY(button != 0);
QCOMPARE(spyActionTriggered.count(), 0);
button->click();
QCOMPARE(spyActionTriggered.count(), 1);
}
void <API key>::<API key>(
QAction *action, MButton *button)
{
QVERIFY(button != 0);
QCOMPARE(button->isEnabled(), action->isEnabled());
action->setEnabled(false);
QCOMPARE(button->isEnabled(), action->isEnabled());
}
QTEST_APPLESS_MAIN(<API key>)
|
// Arduino JSON library
#pragma once
#include "../Arduino/Print.hpp"
namespace ArduinoJson {
namespace Internals {
class Encoding {
public:
// Optimized for code size on a 8-bit AVR
static char escapeChar(char c) {
const char *p = _escapeTable;
while (p[0] && p[1] != c) {
p += 2;
}
return p[0];
}
// Optimized for code size on a 8-bit AVR
static char unescapeChar(char c) {
const char *p = _escapeTable + 4;
for (;;) {
if (p[0] == '\0') return c;
if (p[0] == c) return p[1];
p += 2;
}
}
private:
static const char _escapeTable[];
};
}
}
|
// 2021 Eugen Wintersberger <eugen.wintersberger@gmail.com>
// This file is part of h5cpp.
// This library is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// This library is distributed in the hope that it will be useful, but
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
// along with this library; if not, write to the
// Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor
// Boston, MA 02110-1301 USA
#include <catch2/catch.hpp>
#include <h5cpp/hdf5.hpp>
using namespace hdf5;
SCENARIO("testing bool IO") {
auto f = file::create("DatasetBoolIO.h5", file::AccessFlags::Truncate);
auto r = f.root();
auto type = hdf5::datatype::create<bool>();
hdf5::dataspace::Scalar space;
GIVEN("a dataset of type bool") {
auto d = node::Dataset(r, Path("data"), type, space);
THEN("we can write a boolean value to it") {
bool write = true;
REQUIRE_NOTHROW(d.write(write));
AND_THEN("we can read the value back") {
bool read = false;
REQUIRE_NOTHROW(d.read(read));
REQUIRE(read);
}
}
}
}
|
#include <hildon/hildon.h>
#include <exempi/xmp.h>
#include <json-glib/json-glib.h>
#include <libintl.h>
#include <sharing-tag.h>
#include <locale.h>
#include <math.h>
#include <string.h>
#include <gst/gst.h>
#include "places.h"
#define SCHEMA_IPTC "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
#define SCHEMA_EXIF "http://ns.adobe.com/exif/1.0/"
#define SCHEMA_TIFF "http://ns.adobe.com/tiff/1.0/"
struct <API key>
{
const gchar *file;
GSList *places;
gboolean thread_active;
gint orientation;
gint selected;
gboolean is_video;
};
typedef struct <API key> FacebookSelectPlace;
struct _FacebookSearchData
{
gchar *location;
gdouble latitude;
gdouble longitude;
};
typedef struct _FacebookSearchData FacebookSearchData;
/*
* Seems like Nokia use dd,mm.mm format to encode GPS coordinates, at least on
* N900 and N950.
*/
static inline gdouble
convert2deg_dm(const gchar *d, const gchar *m, const gchar *mm)
{
return
(gdouble)atoi(d) +
((gdouble)atoi(m)) / 60.0 +
((gdouble)atoi(mm)) / (60.0 * pow(10, strlen(mm)));
}
static gdouble
deg2dec(const gchar *s, gboolean *ok)
{
gchar **v = g_strsplit_set(s, ",.", 3);
gdouble rv = 0;
if(v[0] && v[1] && v[2])
{
gchar *ref = &v[2][strlen(v[2]) - 1];
switch (*ref)
{
case 'E':
case 'N':
*ref = '\0';
rv = convert2deg_dm(v[0], v[1], v[2]);
*ok = TRUE;
break;
case 'S':
case 'W':
*ref = '\0';
rv = 0.0 - convert2deg_dm(v[0], v[1], v[2]);
*ok = TRUE;
break;
default:
*ok = FALSE;
}
}
else
*ok = FALSE;
g_strfreev(v);
return rv;
}
static int
select_place_thread(FacebookSelectPlace *select)
{
GtkWidget *selector, *dialog, *image = NULL, *picker, *align;
GdkPixbuf *pixbuf, *newpixbuf;
gint i;
gchar *s;
gdk_threads_enter();
selector = <API key>();
<API key>(
<API key>(selector),
<API key>);
for (i = 0; i < g_slist_length(select->places); i ++)
{
<API key>(<API key>(selector),
g_slist_nth_data(select->places, i));
}
s = g_strdup_printf("%s Facebook %s",
dgettext("<API key>", "conn_bd_dialog_ok"),
dgettext("gtk20","Location"));
dialog = <API key>(s, NULL,
<API key> |
<API key> |
GTK_DIALOG_MODAL,
dgettext("hildon-libs", "wdgt_bd_done"),
GTK_RESPONSE_OK,
NULL);
g_free(s);
picker = <API key>(<API key>,
<API key>);
<API key>(<API key>(picker),
<API key>(selector));
<API key>(HILDON_BUTTON(picker),
dgettext("gtk20","Location"));
<API key>(<API key>(picker), 0);
<API key>(HILDON_BUTTON(picker), 0.0, 0.5, 1.0, 0.0);
align = gtk_alignment_new(0, 0, 0, 0);
<API key>(GTK_ALIGNMENT(align), 8, 8, 8, 8);
if (!select->is_video)
{
pixbuf =
<API key>(select->file, 128, 128, TRUE, NULL);
if (pixbuf)
{
/*
* FIXME - we may need to flip as well, unfortunately I have no images
* to test with, so better leave it that way.
*/
newpixbuf =
<API key>(pixbuf,
360 - (select->orientation % 4 - 1) * 90);
g_object_unref(pixbuf);
pixbuf = newpixbuf;
}
}
else
{
pixbuf = <API key>(<API key> (),
"video-x-generic", 128,
<API key>, NULL);
}
if (pixbuf)
{
image = <API key>(pixbuf);
g_object_unref(pixbuf);
}
if (image)
gtk_container_add(GTK_CONTAINER(align), image);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), align, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), picker, TRUE, TRUE, 0);
gtk_widget_show_all(dialog);
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)
{
select->selected =
<API key>(<API key>(picker));
}
gtk_widget_destroy (GTK_WIDGET(dialog));
gdk_threads_leave();
select->thread_active = FALSE;
return FALSE;
}
static gint
select_place_id(const gchar *file, GSList *places, gint orientation,
gboolean is_video)
{
FacebookSelectPlace select;
DEBUG_LOG(__func__);
select.thread_active = TRUE;
select.file = file;
select.selected = -1;
select.places = places;
select.orientation = orientation;
select.is_video = is_video;
<API key>((GThreadFunc)select_place_thread, &select, 0, FALSE,
FALSE, <API key>, NULL);
while (select.thread_active)
{
while (<API key>(NULL))
<API key>(NULL, TRUE);
}
return select.selected;
}
static gchar *
get_place_id(<API key> *request, const gchar *access_token,
const gchar *path, ConIcConnection *con,
const FacebookSearchData *data, gboolean is_video,
gint orientation)
{
gchar *rv = NULL;
DEBUG_LOG(__func__);
if (data->location && data->latitude != NAN && data->longitude != NAN)
{
GString *url;
int http_result;
GArray *response = g_array_new(1, 1, 1);
<API key>(request);
g_hash_table_insert(request->query_params, "q",
g_strdup(data->location));
g_hash_table_insert(request->query_params, "type",
g_strdup("place"));
{
locale_t loc = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
locale_t old = uselocale(loc);
g_hash_table_insert(request->query_params, "center",
g_strdup_printf("%f,%f",
data->latitude,
data->longitude));
uselocale(old);
freelocale(loc);
}
g_hash_table_insert(request->query_params, "distance",
g_strdup("50000"));
g_hash_table_insert(request->query_params, "fields",
g_strdup("id,name"));
g_hash_table_insert(request->query_params, "limit",
g_strdup("128")); /* why not? */
g_hash_table_insert(request->query_params, "access_token",
g_strdup(access_token));
url = g_string_new("https://graph.facebook.com/search");
http_result = network_utils_get(url, response, NULL,
request->query_params, con, NULL);
g_string_free(url, FALSE);
if (http_result == 200)
{
JsonParser *parser = json_parser_new();
if (<API key>(parser, response->data,
response->len, NULL))
{
JsonNode *root = <API key>(parser);
JsonObject *object;
if (root && <API key>(root) &&
(object = <API key>(root)) &&
<API key>(object, "data"))
{
JsonArray *data = <API key>(object, "data");
guint len = <API key>(data);
gint i;
GSList *l = NULL;
for (i = 0; i < len; i ++)
{
object = <API key>(data, i);
if (object)
l = g_slist_append(
l,
(gpointer)<API key>(object,
"name"));
}
i = select_place_id(path, l, orientation, is_video);
g_slist_free(l);
if (i >= 0)
{
rv = (gchar *)<API key>(
<API key>(data, i), "id");
}
if (rv)
rv = g_strdup(rv);
}
g_object_unref(parser);
}
}
g_array_free(response, TRUE);
}
return rv;
}
static gchar *
get_photo_place_id(const SharingEntryMedia *entry,
<API key> *request, const gchar *access_token,
const gchar *path, ConIcConnection *con)
{
XmpPtr xmp;
XmpFilePtr fp;
FacebookSearchData data = {NULL, NAN, NAN};
guint orientation = 1;
gchar *rv;
gboolean ok;
DEBUG_LOG(__func__);
xmp_init();
if (!(xmp = xmp_new_empty()))
return NULL;
if (!(fp = xmp_files_open_new(path, (XmpOpenFileOptions)(XMP_OPEN_READ |
XMP_OPEN_ONLYXMP))))
{
xmp_free(xmp);
return NULL;
}
if (xmp_files_get_xmp(fp, xmp))
{
XmpStringPtr value = xmp_string_new();
if (xmp_get_property(xmp, SCHEMA_IPTC, "Iptc4xmpCore:location", value,
NULL) ||
xmp_get_property(xmp, SCHEMA_IPTC, "Iptc4xmpCore:Location", value,
NULL))
data.location = g_strdup(xmp_string_cstr(value));
if (xmp_get_property(xmp, SCHEMA_EXIF, "exif:GPSLatitude", value, NULL))
{
data.latitude = deg2dec(g_strdup(xmp_string_cstr(value)), &ok);
if (!ok)
goto error;
}
if (xmp_get_property(xmp, SCHEMA_EXIF, "exif:GPSLongitude", value, NULL))
{
data.longitude = deg2dec(g_strdup(xmp_string_cstr(value)), &ok);
if (!ok)
goto error;
}
if (xmp_get_property(xmp, SCHEMA_TIFF, "tiff:Orientation", value, NULL))
orientation = atoi(xmp_string_cstr(value));
error:
xmp_string_free(value);
}
rv =
get_place_id(request, access_token, path, con, &data, FALSE, orientation);
g_free(data.location);
xmp_free(xmp);
xmp_terminate();
return rv;
}
static void
sharing_tag_f(gpointer data, gpointer user_data)
{
const SharingTag *tag = (const SharingTag *)data;
switch (<API key>(tag))
{
case <API key>:
((FacebookSearchData *)user_data)->location =
(gchar *)<API key>(tag);
break;
default:
break;
}
}
static void
read_one_tag(const GstTagList *list, const gchar *tag, gpointer user_data)
{
FacebookSearchData *data = user_data;
int n = <API key>(list, tag);
if (!g_strcmp0(tag, "<API key>") && n == 1)
data->latitude = g_value_get_double(
<API key>(list, tag, 0));
if (!g_strcmp0(tag, "<API key>") && n == 1)
data->longitude = g_value_get_double(
<API key>(list, tag, 1));
}
static void
on_new_pad(GstElement *dec, GstPad *pad, GstElement *fakesink)
{
GstPad *sinkpad;
sinkpad = <API key> (fakesink, "sink");
if (!gst_pad_is_linked (sinkpad))
gst_pad_link(pad, sinkpad);
gst_object_unref (sinkpad);
}
static void
gst_get_gps_coord(const gchar *path, FacebookSearchData *data)
{
GstElement *pipe, *dec, *sink;
GstMessage *msg;
gchar *uri = g_strdup_printf("file://%s", path);
gst_init(NULL, NULL);
pipe = gst_pipeline_new("pipeline");
dec = <API key>("uridecodebin", NULL);
g_object_set(dec, "uri", uri, NULL);
g_free(uri);
gst_bin_add(GST_BIN (pipe), dec);
sink = <API key>("fakesink", NULL);
gst_bin_add(GST_BIN (pipe), sink);
g_signal_connect(dec, "pad-added", G_CALLBACK (on_new_pad), sink);
<API key>(pipe, GST_STATE_PAUSED);
while (TRUE)
{
GstTagList *tags = NULL;
msg = <API key>(GST_ELEMENT_BUS (pipe),
GST_CLOCK_TIME_NONE,
<API key> |
GST_MESSAGE_TAG | GST_MESSAGE_ERROR);
if (GST_MESSAGE_TYPE(msg) != GST_MESSAGE_TAG)
{
gst_message_unref(msg);
break;
}
<API key>(msg, &tags);
<API key>(tags, read_one_tag, data);
gst_tag_list_free(tags);
gst_message_unref(msg);
};
<API key>(pipe, GST_STATE_NULL);
gst_object_unref(pipe);
}
static gchar *
get_video_place_id(const SharingEntryMedia *entry,
<API key> *request, const gchar *access_token,
const gchar *path, ConIcConnection *con)
{
FacebookSearchData data ={NULL, NAN, NAN};
gchar *rv = NULL;
GSList *tags = (GSList *)<API key>(entry);
/* Try to get suburb */
g_slist_foreach(tags, sharing_tag_f, &data);
if (!data.location)
return NULL;
gst_get_gps_coord(path, &data);
if (!data.latitude == 0.0 || data.longitude == 0.0)
return NULL;
rv = get_place_id(request, access_token, path, con, &data, TRUE, 0);
return rv;
}
gchar *
<API key>(const SharingEntryMedia *media,
<API key> *request,
const gchar *access_token, const gchar *path,
ConIcConnection *con, gboolean is_video)
{
if (!is_video)
return
get_photo_place_id(media, request, access_token, path, con);
else
return
get_video_place_id(media, request, access_token, path, con);
}
|
#include <geos/io/WKBReader.h>
#include <geos/io/WKBConstants.h>
#include <geos/io/ByteOrderValues.h>
#include <geos/io/ParseException.h>
#include <geos/geom/GeometryFactory.h>
#include <geos/geom/Coordinate.h>
#include <geos/geom/Point.h>
#include <geos/geom/LinearRing.h>
#include <geos/geom/LineString.h>
#include <geos/geom/Polygon.h>
#include <geos/geom/MultiPoint.h>
#include <geos/geom/MultiLineString.h>
#include <geos/geom/MultiPolygon.h>
#include <geos/geom/<API key>.h>
#include <geos/geom/CoordinateSequence.h>
#include <geos/geom/PrecisionModel.h>
#include <iomanip>
#include <ostream>
#include <sstream>
#include <string>
//#define DEBUG_WKB_READER 1
using namespace std;
using namespace geos::geom;
namespace geos {
namespace io { // geos.io
string WKBReader::BAD_GEOM_TYPE_MSG = "bad geometry type encountered in ";
WKBReader::WKBReader()
:
factory(*(GeometryFactory::getDefaultInstance()))
{}
ostream &
WKBReader::printHEX(istream &is, ostream &os)
{
static const char hex[] = "0123456789ABCDEF";
long pos = is.tellg(); // take note of input stream get pointer
is.seekg(0, ios::beg); // rewind input stream
char each=0;
while(is.read(&each, 1))
{
const unsigned char c=each;
int low = (c & 0x0F);
int high = (c >> 4);
os << hex[high] << hex[low];
}
is.clear(); // clear input stream eof flag
is.seekg(pos); // reset input stream position
return os;
}
Geometry *
WKBReader::readHEX(istream &is)
{
// setup input/output stream
stringstream os(ios_base::binary|ios_base::in|ios_base::out);
unsigned char high, low, result_high, result_low, value;
while(!is.eof())//readsome(&str[0], 2))
{
// get the high part of the byte
is >> high;
// geth the low part of the byte
is >> low;
switch (high)
{
case '0' :
result_high = 0;
break;
case '1' :
result_high = 1;
break;
case '2' :
result_high = 2;
break;
case '3' :
result_high = 3;
break;
case '4' :
result_high = 4;
break;
case '5' :
result_high = 5;
break;
case '6' :
result_high = 6;
break;
case '7' :
result_high = 7;
break;
case '8' :
result_high = 8;
break;
case '9' :
result_high = 9;
break;
case 'A' :
result_high = 10;
break;
case 'B' :
result_high = 11;
break;
case 'C' :
result_high = 12;
break;
case 'D' :
result_high = 13;
break;
case 'E' :
result_high = 14;
break;
case 'F' :
result_high = 15;
break;
default:
throw ParseException("Invalid HEX char");
}
switch (low)
{
case '0' :
result_low = 0;
break;
case '1' :
result_low = 1;
break;
case '2' :
result_low = 2;
break;
case '3' :
result_low = 3;
break;
case '4' :
result_low = 4;
break;
case '5' :
result_low = 5;
break;
case '6' :
result_low = 6;
break;
case '7' :
result_low = 7;
break;
case '8' :
result_low = 8;
break;
case '9' :
result_low = 9;
break;
case 'A' :
result_low = 10;
break;
case 'B' :
result_low = 11;
break;
case 'C' :
result_low = 12;
break;
case 'D' :
result_low = 13;
break;
case 'E' :
result_low = 14;
break;
case 'F' :
result_low = 15;
break;
default:
throw ParseException("Invalid HEX char");
}
value = (result_high<<4) + result_low;
#if DEBUG_HEX_READER
cout<<"HEX "<<high<<low<<" -> DEC "<<(int)value<<endl;
#endif
// write the value to the output stream
os << value;
}
// now call read to convert the geometry
return this->read(os);
}
Geometry *
WKBReader::read(istream &is)
{
dis.setInStream(&is); // will default to machine endian
return readGeometry();
}
Geometry *
WKBReader::readGeometry()
{
// determine byte order
unsigned char byteOrder = dis.readByte();
#if DEBUG_WKB_READER
cout<<"WKB byteOrder: "<<(int)byteOrder<<endl;
#endif
// default is machine endian
if (byteOrder == WKBConstants::wkbNDR)
dis.setOrder(ByteOrderValues::ENDIAN_LITTLE);
else if (byteOrder == WKBConstants::wkbXDR)
dis.setOrder(ByteOrderValues::ENDIAN_BIG);
int typeInt = dis.readInt();
int geometryType = typeInt & 0xff;
#if DEBUG_WKB_READER
cout<<"WKB geometryType: "<<geometryType<<endl;
#endif
bool hasZ = ((typeInt & 0x80000000) != 0);
if (hasZ) inputDimension = 3;
else inputDimension = 2; // doesn't handle M currently
#if DEBUG_WKB_READER
cout<<"WKB hasZ: "<<hasZ<<endl;
#endif
#if DEBUG_WKB_READER
cout<<"WKB dimensions: "<<inputDimension<<endl;
#endif
bool hasSRID = ((typeInt & 0x20000000) != 0);
#if DEBUG_WKB_READER
cout<<"WKB hasSRID: "<<hasZ<<endl;
#endif
int SRID = 0;
if (hasSRID) SRID = dis.readInt(); // read SRID
// allocate space for ordValues
if ( ordValues.size() < inputDimension )
ordValues.resize(inputDimension);
Geometry *result;
switch (geometryType) {
case WKBConstants::wkbPoint :
result = readPoint();
break;
case WKBConstants::wkbLineString :
result = readLineString();
break;
case WKBConstants::wkbPolygon :
result = readPolygon();
break;
case WKBConstants::wkbMultiPoint :
result = readMultiPoint();
break;
case WKBConstants::wkbMultiLineString :
result = readMultiLineString();
break;
case WKBConstants::wkbMultiPolygon :
result = readMultiPolygon();
break;
case WKBConstants::<API key> :
result = <API key>();
break;
default:
stringstream err;
err << "Unknown WKB type " << geometryType;
throw ParseException(err.str());
}
result->setSRID(SRID);
return result;
}
Point *
WKBReader::readPoint()
{
readCoordinate();
return factory.createPoint(Coordinate(ordValues[0], ordValues[1]));
}
LineString *
WKBReader::readLineString()
{
int size = dis.readInt();
#if DEBUG_WKB_READER
cout<<"WKB npoints: "<<size<<endl;
#endif
CoordinateSequence *pts = <API key>(size);
return factory.createLineString(pts);
}
LinearRing *
WKBReader::readLinearRing()
{
int size = dis.readInt();
#if DEBUG_WKB_READER
cout<<"WKB npoints: "<<size<<endl;
#endif
CoordinateSequence *pts = <API key>(size);
return factory.createLinearRing(pts);
}
Polygon *
WKBReader::readPolygon()
{
int numRings = dis.readInt();
#if DEBUG_WKB_READER
cout<<"WKB numRings: "<<numRings<<endl;
#endif
LinearRing *shell = NULL;
if( numRings > 0 )
shell = readLinearRing();
vector<Geometry *>*holes=NULL;
if ( numRings > 1 )
{
try {
holes = new vector<Geometry *>(numRings-1);
for (int i=0; i<numRings-1; i++)
(*holes)[i] = (Geometry *)readLinearRing();
} catch (...) {
for (unsigned int i=0; i<holes->size(); i++)
delete (*holes)[i];
delete holes;
delete shell;
throw;
}
}
return factory.createPolygon(shell, holes);
}
MultiPoint *
WKBReader::readMultiPoint()
{
int numGeoms = dis.readInt();
vector<Geometry *> *geoms = new vector<Geometry *>(numGeoms);
try {
for (int i=0; i<numGeoms; i++)
{
Geometry *g = readGeometry();
if (!dynamic_cast<Point *>(g))
{
stringstream err;
err << BAD_GEOM_TYPE_MSG << " MultiPoint";
throw ParseException(err.str());
}
(*geoms)[i] = g;
}
} catch (...) {
for (unsigned int i=0; i<geoms->size(); i++)
delete (*geoms)[i];
delete geoms;
throw;
}
return factory.createMultiPoint(geoms);
}
MultiLineString *
WKBReader::readMultiLineString()
{
int numGeoms = dis.readInt();
vector<Geometry *> *geoms = new vector<Geometry *>(numGeoms);
try {
for (int i=0; i<numGeoms; i++)
{
Geometry *g = readGeometry();
if (!dynamic_cast<LineString *>(g))
{
stringstream err;
err << BAD_GEOM_TYPE_MSG << " LineString";
throw ParseException(err.str());
}
(*geoms)[i] = g;
}
} catch (...) {
for (unsigned int i=0; i<geoms->size(); i++)
delete (*geoms)[i];
delete geoms;
throw;
}
return factory.<API key>(geoms);
}
MultiPolygon *
WKBReader::readMultiPolygon()
{
int numGeoms = dis.readInt();
vector<Geometry *> *geoms = new vector<Geometry *>(numGeoms);
try {
for (int i=0; i<numGeoms; i++)
{
Geometry *g = readGeometry();
if (!dynamic_cast<Polygon *>(g))
{
stringstream err;
err << BAD_GEOM_TYPE_MSG << " Polygon";
throw ParseException(err.str());
}
(*geoms)[i] = g;
}
} catch (...) {
for (unsigned int i=0; i<geoms->size(); i++)
delete (*geoms)[i];
delete geoms;
throw;
}
return factory.createMultiPolygon(geoms);
}
GeometryCollection *
WKBReader::<API key>()
{
int numGeoms = dis.readInt();
vector<Geometry *> *geoms = new vector<Geometry *>(numGeoms);
try {
for (int i=0; i<numGeoms; i++)
(*geoms)[i] = (readGeometry());
} catch (...) {
for (unsigned int i=0; i<geoms->size(); i++)
delete (*geoms)[i];
delete geoms;
throw;
}
return factory.<API key>(geoms);
}
CoordinateSequence *
WKBReader::<API key>(int size)
{
CoordinateSequence *seq = factory.<API key>()->create(size, inputDimension);
unsigned int targetDim = seq->getDimension();
if ( targetDim > inputDimension )
targetDim = inputDimension;
for (int i=0; i<size; i++) {
readCoordinate();
for (unsigned int j=0; j<targetDim; j++) {
seq->setOrdinate(i, j, ordValues[j]);
}
}
return seq;
}
void
WKBReader::readCoordinate()
{
const PrecisionModel &pm = *factory.getPrecisionModel();
for (unsigned int i=0; i<inputDimension; ++i)
{
if ( i <= 1 ) ordValues[i] = pm.makePrecise(dis.readDouble());
else ordValues[i] = dis.readDouble();
}
#if DEBUG_WKB_READER
cout<<"WKB coordinate: "<<ordValues[0]<<","<<ordValues[1]<<endl;
#endif
}
} // namespace geos.io
} // namespace geos
|
package fr.toss.FF7Weapons;
import net.minecraft.entity.<API key>;
import net.minecraft.entity.ai.attributes.AttributeModifier;
import net.minecraft.item.Item;
import com.google.common.collect.Multimap;
public class Druidmace extends FF7weapon
{
private float field_150934_a;
private final Item.ToolMaterial field_150933_b;
public Druidmace(Item.ToolMaterial p_i45356_1_)
{
super();
this.field_150933_b = p_i45356_1_;
setUnlocalizedName("Druid_mace");
this.field_150934_a = 26F + p_i45356_1_.getDamageVsEntity();
}
public float func_150931_i()
{
return this.field_150933_b.getDamageVsEntity();
}
public String getToolMaterialName()
{
return this.field_150933_b.toString();
}
public Multimap <API key>()
{
Multimap multimap = super.<API key>();
multimap.put(<API key>.attackDamage.<API key>(), new AttributeModifier(field_111210_e, "Weapon modifier", (double)this.field_150934_a, 0));
return multimap;
}
}
|
package net.java.sip.communicator.impl.protocol.sip;
import gov.nist.core.*;
import gov.nist.javax.sip.*;
import gov.nist.javax.sip.message.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.sip.*;
import net.java.sip.communicator.util.*;
import org.jitsi.service.packetlogging.*;
/**
* This class passes log calls from JAIN-SIP to log4j, so that it is possible
* to change the log level for the JAIN-SIP stack in logging.properties
*
* @author Sebastien Mazy
*/
public class SipLogger
implements StackLogger,
ServerLogger
{
/**
* All messages will be passed to this logger.
*/
private static final Logger logger
= Logger.getLogger(SipLogger.class);
/**
* SipStack to use.
*/
private SipStack sipStack;
/*
* Implementation of StackLogger
*/
/**
* logs a stack trace. This helps to look at the stack frame.
*/
public void logStackTrace()
{
if (logger.isTraceEnabled())
logger.trace("JAIN-SIP stack trace", new Throwable());
}
/**
* logs a stack trace. This helps to look at the stack frame.
*
* @param traceLevel currently unused.
*/
public void logStackTrace(int traceLevel)
{
if (logger.isTraceEnabled())
logger.trace("JAIN-SIP stack trace", new Throwable());
}
/**
* Get the line count in the log stream.
*
* @return line count
*/
public int getLineCount()
{
return 0;
}
/**
* Log an exception.
*
* @param ex the exception that we are to log.
*/
public void logException(Throwable ex)
{
logger.warn("Exception in the JAIN-SIP stack: " + ex.getMessage());
if (logger.isInfoEnabled())
logger.info("JAIN-SIP exception stack trace is", ex);
}
/**
* Log a message into the log file.
*
* @param message
* message to log into the log file.
*/
public void logDebug(String message)
{
if (logger.isDebugEnabled())
logger.debug("Debug output from the JAIN-SIP stack: " + message);
}
/**
* Log an error message.
*
* @param message --
* error message to log.
*/
public void logFatalError(String message)
{
if (logger.isTraceEnabled())
logger.trace("Fatal error from the JAIN-SIP stack: " + message);
}
/**
* Log an error message.
*
* @param message error message to log.
*/
public void logError(String message)
{
logger.error("Error from the JAIN-SIP stack: " + message);
}
/**
* Determines whether logging is enabled.
*
* @return flag to indicate if logging is enabled.
*/
public boolean isLoggingEnabled()
{
return true;
}
/**
* Return true/false if logging is enabled at a given level.
*
* @param logLevel the level that we'd like to check loggability for.
*
* @return always <tt>true</tt> regardless of <tt>logLevel</tt>'s value.
*/
public boolean isLoggingEnabled(int logLevel)
{
// always enable trace messages so we can receive packets
// and log them to packet logging service
if (logLevel == TRACE_DEBUG)
return logger.isDebugEnabled();
if (logLevel == TRACE_MESSAGES) // same as TRACE_INFO
return true;
if (logLevel == TRACE_NONE)
return false;
return true;
}
/**
* Logs an exception and an error message error message.
*
* @param message that message that we'd like to log.
* @param ex the exception that we'd like to log.
*/
public void logError(String message, Exception ex)
{
logger.error("Error from the JAIN-SIP stack: " + message, ex);
}
/**
* Log a warning message.
*
* @param string the warning that we'd like to log
*/
public void logWarning(String string)
{
logger.warn("Warning from the JAIN-SIP stack" + string);
}
/**
* Log an info message.
*
* @param string the message that we'd like to log.
*/
public void logInfo(String string)
{
if (logger.isInfoEnabled())
logger.info("Info from the JAIN-SIP stack: " + string);
}
/**
* Disable logging altogether.
*
*/
public void disableLogging() {}
/**
* Enable logging (globally).
*/
public void enableLogging() {}
/**
* Logs the build time stamp of the jain-sip reference implementation.
*
* @param buildTimeStamp the build time stamp of the jain-sip reference
* implementation.
*/
public void setBuildTimeStamp(String buildTimeStamp)
{
if (logger.isTraceEnabled())
logger.trace("JAIN-SIP RI build " + buildTimeStamp);
}
/**
* Dummy implementation for {@link ServerLogger#setStackProperties(
* Properties)}
*/
public void setStackProperties(Properties stackProperties) {}
/**
* Dummy implementation for {@link ServerLogger#closeLogFile()}
*/
public void closeLogFile() {}
/**
* Logs the specified message and details.
*
* @param message the message to log
* @param from the message sender
* @param to the message addressee
* @param sender determines whether we are the origin of this message.
* @param time the date this message was received at.
*/
public void logMessage(SIPMessage message, String from, String to,
boolean sender, long time)
{
logMessage(message, from, to, null, sender, time);
}
/**
* Logs the specified message and details.
*
* @param message the message to log
* @param from the message sender
* @param to the message addressee
* @param status message status
* @param sender determines whether we are the origin of this message.
* @param time the date this message was received at.
*/
public void logMessage(SIPMessage message, String from, String to,
String status, boolean sender, long time)
{
try
{
logPacket(message, sender);
}
catch(Throwable e)
{
logger.error("Error logging packet", e);
}
}
/**
* Logs the specified message and details to the packet logging service
* if enabled.
*
* @param message the message to log
* @param sender determines whether we are the origin of this message.
*/
private void logPacket(SIPMessage message, boolean sender)
{
try
{
<API key> packetLogging = SipActivator.getPacketLogging();
if( packetLogging == null
|| !packetLogging.isLoggingEnabled(
<API key>.ProtocolName.SIP)
/* Via not present in CRLF packet on TCP - causes NPE */
|| message.getTopmostVia() == null )
return;
String transport = message.getTopmostVia().getTransport();
boolean isTransportUDP = transport.equalsIgnoreCase("UDP");
byte[] srcAddr;
int srcPort;
byte[] dstAddr;
int dstPort;
// if addresses are not set use empty byte array with length
// equals to the other address or just empty
// byte array with length 4 (ipv4 0.0.0.0)
if(sender)
{
if(!isTransportUDP)
{
InetSocketAddress localAddress =
<API key>(
message.getRemoteAddress(),
message.getRemotePort(),
message.getLocalAddress(),
transport);
if (localAddress != null)
{
srcPort = localAddress.getPort();
srcAddr = localAddress.getAddress().getAddress();
}
else
{
logger.warn("Could not obtain source address for "
+ " packet. Writing source as 0.0.0.0:0");
srcPort = 0;
srcAddr = new byte[] { 0, 0, 0, 0 };
}
}
else
{
srcPort = message.getLocalPort();
if(message.getLocalAddress() != null)
srcAddr = message.getLocalAddress().getAddress();
else if(message.getRemoteAddress() != null)
srcAddr = new byte[
message.getRemoteAddress().getAddress().length];
else
srcAddr = new byte[4];
}
dstPort = message.getRemotePort();
if(message.getRemoteAddress() != null)
dstAddr = message.getRemoteAddress().getAddress();
else
dstAddr = new byte[srcAddr.length];
}
else
{
if(!isTransportUDP)
{
InetSocketAddress dstAddress =
<API key>(
message.getRemoteAddress(),
message.getRemotePort(),
message.getLocalAddress(),
transport);
dstPort = dstAddress.getPort();
dstAddr = dstAddress.getAddress().getAddress();
}
else
{
dstPort = message.getLocalPort();
if(message.getLocalAddress() != null)
dstAddr = message.getLocalAddress().getAddress();
else if(message.getRemoteAddress() != null)
dstAddr = new byte[
message.getRemoteAddress().getAddress().length];
else
dstAddr = new byte[4];
}
srcPort = message.getRemotePort();
if(message.getRemoteAddress() != null)
srcAddr = message.getRemoteAddress().getAddress();
else
srcAddr = new byte[dstAddr.length];
}
byte[] msg = null;
if(message instanceof SIPRequest)
{
SIPRequest req = (SIPRequest)message;
if(req.getMethod().equals(SIPRequest.MESSAGE)
&& message.<API key>() != null
&& message.<API key>()
.getContentType().equalsIgnoreCase("text"))
{
int len = req.getContentLength().getContentLength();
if(len > 0)
{
SIPRequest newReq = (SIPRequest)req.clone();
byte[] newContent = new byte[len];
Arrays.fill(newContent, (byte)'.');
newReq.setMessageContent(newContent);
msg = newReq.toString().getBytes("UTF-8");
}
}
}
if(msg == null)
{
msg = message.toString().getBytes("UTF-8");
}
packetLogging.logPacket(
<API key>.ProtocolName.SIP,
srcAddr, srcPort,
dstAddr, dstPort,
isTransportUDP ? <API key>.TransportName.UDP :
<API key>.TransportName.TCP,
sender, msg);
}
catch(Throwable e)
{
logger.error("Cannot obtain message body", e);
}
}
/**
* Logs the specified message and details.
*
* @param message the message to log
* @param from the message sender
* @param to the message addressee
* @param status message status
* @param sender determines whether we are the origin of this message.
*/
public void logMessage(SIPMessage message, String from, String to,
String status, boolean sender)
{
if (!logger.isInfoEnabled())
return;
String msgHeader;
if(sender)
msgHeader = "JAIN-SIP sent a message from=\"";
else
msgHeader = "JAIN-SIP received a message from=\"";
if (logger.isInfoEnabled())
logger.info(msgHeader + from + "\" to=\"" + to + "\" (status: "
+ status + "):\n" + message);
}
/**
* Prints the specified <tt>exception</tt> as a warning.
*
* @param exception the <tt>Exception</tt> we are passed from jain-sip.
*/
public void logException(Exception exception)
{
logger.warn("the following exception occured in JAIN-SIP: "
+ exception, exception);
}
/**
* A dummy implementation.
*
* @param sipStack ignored;
*/
public void setSipStack(SipStack sipStack)
{
this.sipStack = sipStack;
}
/**
* Returns a logger name.
*
* @return a logger name.
*/
public String getLoggerName()
{
return "SIP Communicator JAIN SIP logger.";
}
/**
* Logs the specified trace with a debuf level.
*
* @param message the trace to log.
*/
public void logTrace(String message)
{
if (logger.isDebugEnabled())
logger.debug(message);
}
/**
* Returns a local address to use with the specified TCP destination.
* The method forces the JAIN-SIP stack to create
* s and binds (if necessary)
* and return a socket connected to the specified destination address and
* port and then return its local address.
*
* @param dst the destination address that the socket would need to connect
* to.
* @param dstPort the port number that the connection would be established
* with.
* @param localAddress the address that we would like to bind on
* (null for the "any" address).
* @param transport the transport that will be used TCP ot TLS
*
* @return the SocketAddress that this handler would use when connecting to
* the specified destination address and port.
*
* @throws IOException if we fail binding the local socket
*/
public java.net.InetSocketAddress <API key>(
java.net.InetAddress dst,
int dstPort,
java.net.InetAddress localAddress,
String transport)
throws IOException
{
if(ListeningPoint.TLS.equalsIgnoreCase(transport))
return (java.net.InetSocketAddress)(((SipStackImpl)this.sipStack)
.<API key>(dst, dstPort, localAddress));
else
return (java.net.InetSocketAddress)(((SipStackImpl)this.sipStack)
.<API key>(dst, dstPort, localAddress, 0));
}
}
|
#!/usr/bin/python
"""Test of tree output using Firefox."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
sequence.append(PauseAction(3000))
sequence.append(KeyComboAction("<Alt>b"))
sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("Tab"))
sequence.append(PauseAction(3000))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("<Shift>Tab"))
sequence.append(utils.<API key>(
"1. Shift Tab for tree",
["BRAILLE LINE: 'Firefox application Library frame All Bookmarks expanded TREE LEVEL 1'",
" VISIBLE: 'All Bookmarks expanded TREE LEVE', cursor=1",
"SPEECH OUTPUT: 'All Bookmarks.'",
"SPEECH OUTPUT: 'expanded.'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.<API key>(
"2. Down Arrow in tree",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Toolbar TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Toolbar TREE LEVEL 2', cursor=1",
"SPEECH OUTPUT: 'Bookmarks Toolbar.'",
"SPEECH OUTPUT: 'tree level 2'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.<API key>(
"3. Down Arrow in tree",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Menu collapsed TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Menu collapsed TREE LE', cursor=1",
"SPEECH OUTPUT: 'Bookmarks Menu.'",
"SPEECH OUTPUT: 'collapsed.'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(utils.<API key>(
"4. Basic Where Am I",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Menu collapsed TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Menu collapsed TREE LE', cursor=1",
"SPEECH OUTPUT: 'Bookmarks Menu tree item.'",
"SPEECH OUTPUT: '2 of 3.'",
"SPEECH OUTPUT: 'collapsed tree level 2'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Right"))
sequence.append(utils.<API key>(
"5. Right Arrow to expand folder",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Menu expanded TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Menu expanded TREE LEV', cursor=1",
"SPEECH OUTPUT: 'expanded'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(utils.<API key>(
"6. Basic Where Am I",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Menu expanded TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Menu expanded TREE LEV', cursor=1",
"SPEECH OUTPUT: 'Bookmarks Menu tree item.'",
"SPEECH OUTPUT: '2 of 3.'",
"SPEECH OUTPUT: 'expanded tree level 2'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.<API key>(
"7. Down Arrow in tree",
["BRAILLE LINE: 'Firefox application Library frame GNOME TREE LEVEL 3'",
" VISIBLE: 'GNOME TREE LEVEL 3', cursor=1",
"SPEECH OUTPUT: 'GNOME.'",
"SPEECH OUTPUT: 'tree level 3'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(utils.<API key>(
"8. Basic Where Am I",
["BRAILLE LINE: 'Firefox application Library frame GNOME TREE LEVEL 3'",
" VISIBLE: 'GNOME TREE LEVEL 3', cursor=1",
"SPEECH OUTPUT: 'GNOME tree item.'",
"SPEECH OUTPUT: '1 of 2.'",
"SPEECH OUTPUT: 'tree level 3'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Up"))
sequence.append(utils.<API key>(
"9. Up Arrow in tree",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Menu expanded TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Menu expanded TREE LEV', cursor=1",
"SPEECH OUTPUT: 'Bookmarks Menu.'",
"SPEECH OUTPUT: 'expanded.'",
"SPEECH OUTPUT: 'tree level 2'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Left"))
sequence.append(utils.<API key>(
"10. Left Arrow to collapse folder",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Menu collapsed TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Menu collapsed TREE LE', cursor=1",
"SPEECH OUTPUT: 'collapsed'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Up"))
sequence.append(utils.<API key>(
"11. Up Arrow in tree",
["BRAILLE LINE: 'Firefox application Library frame Bookmarks Toolbar TREE LEVEL 2'",
" VISIBLE: 'Bookmarks Toolbar TREE LEVEL 2', cursor=1",
"SPEECH OUTPUT: 'Bookmarks Toolbar.'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Up"))
sequence.append(utils.<API key>(
"12. Up Arrow in tree",
["BRAILLE LINE: 'Firefox application Library frame All Bookmarks expanded TREE LEVEL 1'",
" VISIBLE: 'All Bookmarks expanded TREE LEVE', cursor=1",
"SPEECH OUTPUT: 'All Bookmarks.'",
"SPEECH OUTPUT: 'expanded.'",
"SPEECH OUTPUT: 'tree level 1'"]))
sequence.append(utils.<API key>())
sequence.append(KeyComboAction("Tab"))
sequence.append(utils.<API key>(
"13. Tab back to tree table",
["BRAILLE LINE: 'Firefox application Library frame tree table Bookmarks Toolbar table row TREE LEVEL 1'",
" VISIBLE: 'Bookmarks Toolbar table row TR', cursor=1",
"SPEECH OUTPUT: 'Bookmarks Toolbar '"]))
sequence.append(KeyComboAction("<Alt>F4"))
sequence.append(utils.<API key>())
sequence.start()
|
import { FutureResult } from '@ephox/katamari';
import { <API key>, RequestBody, ResponseBody } from './HttpData';
import { HttpError } from './HttpError';
export const enum HttpMethod {
Get = 'get',
Post = 'post',
Delete = 'delete',
Patch = 'patch',
Put = 'put'
}
export type ProgressFunction = (loaded: number, total: number) => void;
export type <API key> = (loaded: number) => void;
export interface HttpRequest<T extends <API key>> {
responseType: T;
body: RequestBody;
url: string;
method: HttpMethod;
query?: Record<string, string>;
progress?: ProgressFunction;
headers?: Record<string, string>;
credentials?: boolean;
}
export interface HttpResponse<T extends ResponseBody> {
headers: Record<string, string>;
statusCode: number;
body: T;
}
export type JwtToken = string;
export type JwtTokenFactory = (fresh: boolean) => FutureResult<JwtToken, HttpError>;
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
export type PostPutInit <T extends <API key>> = Omit<HttpRequest<T>, 'method'>;
export type GetDelInit <T extends <API key>> = Omit<HttpRequest<T>, 'method' | 'body'>;
export interface DownloadHttpRequest {
url: string;
progress?: <API key>;
headers?: Record<string, string>;
credentials?: boolean;
}
|
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <directfb.h>
#include <directfb_keynames.h>
#include <direct/debug.h>
#include <direct/list.h>
#include <direct/memcpy.h>
#include <direct/messages.h>
#include <fusion/shmalloc.h>
#include <fusion/reactor.h>
#include <fusion/arena.h>
#include <core/core.h>
#include <core/coredefs.h>
#include <core/coretypes.h>
#include <core/core_parts.h>
#include <core/gfxcard.h>
#include <core/surface.h>
#include <core/surface_buffer.h>
#include <core/system.h>
#include <core/layer_context.h>
#include <core/layer_control.h>
#include <core/layer_region.h>
#include <core/layers.h>
#include <core/input.h>
#include <core/windows.h>
#include <core/windows_internal.h>
#include <direct/mem.h>
#include <direct/memcpy.h>
#include <direct/messages.h>
#include <direct/modules.h>
#include <direct/trace.h>
#include <fusion/build.h>
#include <misc/conf.h>
#include <misc/util.h>
#include <gfx/convert.h>
#define CHECK_INTERVAL 20000 // Microseconds
#define CHECK_NUMBER 200
D_DEBUG_DOMAIN( Core_Input, "Core/Input", "DirectFB Input Core" );
D_DEBUG_DOMAIN( Core_InputEvt, "Core/Input/Evt", "DirectFB Input Core Events & Dispatch" );
<API key>( dfb_input_modules, "inputdrivers", <API key> );
typedef enum {
CIDC_RELOAD_KEYMAP
} <API key>;
typedef struct {
DirectLink link;
int magic;
DirectModuleEntry *module;
const InputDriverFuncs *funcs;
InputDriverInfo info;
int nr_devices;
} InputDriver;
typedef struct {
int min_keycode;
int max_keycode;
int num_entries;
<API key> *entries;
} InputDeviceKeymap;
typedef struct {
int magic;
DFBInputDeviceID id; /* unique device id */
int num;
InputDeviceInfo device_info;
InputDeviceKeymap keymap;
<API key> modifiers_l;
<API key> modifiers_r;
<API key> locks;
<API key> buttons;
<API key> last_key; /* last key pressed */
<API key> last_symbol; /* last symbol pressed */
bool first_press; /* first press of key */
FusionReactor *reactor; /* event dispatcher */
FusionSkirmish lock;
FusionCall call; /* driver call via master */
unsigned int axis_num;
<API key> *axis_info;
FusionRef ref; /* Ref between shared device & local device */
} InputDeviceShared;
struct <API key> {
DirectLink link;
int magic;
InputDeviceShared *shared;
InputDriver *driver;
void *driver_data;
CoreDFB *core;
};
typedef struct {
int magic;
int num;
InputDeviceShared *devices[MAX_INPUTDEVICES];
FusionReactor *reactor; /* For input hot-plug event */
} DFBInputCoreShared;
struct __DFB_DFBInputCore {
int magic;
CoreDFB *core;
DFBInputCoreShared *shared;
DirectLink *drivers;
DirectLink *devices;
};
DFB_CORE_PART( input_core, InputCore );
typedef struct {
<API key> target;
<API key> result;
} DeadKeyCombo;
typedef struct {
<API key> deadkey;
const DeadKeyCombo *combos;
} DeadKeyMap;
/* Data struct of input device hotplug event */
typedef struct {
bool is_plugin; /* Hotplug in or not */
int dev_id; /* Input device ID*/
struct timeval stamp; /* Time stamp of event */
} <API key>;
static const DeadKeyCombo combos_grave[] = {
{ DIKS_SPACE, (unsigned char) '`' },
{ DIKS_SMALL_A, (unsigned char) 'à' },
{ DIKS_SMALL_E, (unsigned char) 'è' },
{ DIKS_SMALL_I, (unsigned char) 'ì' },
{ DIKS_SMALL_O, (unsigned char) 'ò' },
{ DIKS_SMALL_U, (unsigned char) 'ù' },
{ DIKS_CAPITAL_A, (unsigned char) 'À' },
{ DIKS_CAPITAL_E, (unsigned char) 'È' },
{ DIKS_CAPITAL_I, (unsigned char) 'Ì' },
{ DIKS_CAPITAL_O, (unsigned char) 'Ò' },
{ DIKS_CAPITAL_U, (unsigned char) 'Ù' },
{ 0, 0 }
};
static const DeadKeyCombo combos_acute[] = {
{ DIKS_SPACE, (unsigned char) '\'' },
{ DIKS_SMALL_A, (unsigned char) 'á' },
{ DIKS_SMALL_E, (unsigned char) 'é' },
{ DIKS_SMALL_I, (unsigned char) 'í' },
{ DIKS_SMALL_O, (unsigned char) 'ó' },
{ DIKS_SMALL_U, (unsigned char) 'ú' },
{ DIKS_SMALL_Y, (unsigned char) 'ý' },
{ DIKS_CAPITAL_A, (unsigned char) 'Á' },
{ DIKS_CAPITAL_E, (unsigned char) 'É' },
{ DIKS_CAPITAL_I, (unsigned char) 'Í' },
{ DIKS_CAPITAL_O, (unsigned char) 'Ó' },
{ DIKS_CAPITAL_U, (unsigned char) 'Ú' },
{ DIKS_CAPITAL_Y, (unsigned char) 'Ý' },
{ 0, 0 }
};
static const DeadKeyCombo combos_circumflex[] = {
{ DIKS_SPACE, (unsigned char) '^' },
{ DIKS_SMALL_A, (unsigned char) 'â' },
{ DIKS_SMALL_E, (unsigned char) 'ê' },
{ DIKS_SMALL_I, (unsigned char) 'î' },
{ DIKS_SMALL_O, (unsigned char) 'ô' },
{ DIKS_SMALL_U, (unsigned char) 'û' },
{ DIKS_CAPITAL_A, (unsigned char) 'Â' },
{ DIKS_CAPITAL_E, (unsigned char) 'Ê' },
{ DIKS_CAPITAL_I, (unsigned char) 'Î' },
{ DIKS_CAPITAL_O, (unsigned char) 'Ô' },
{ DIKS_CAPITAL_U, (unsigned char) 'Û' },
{ 0, 0 }
};
static const DeadKeyCombo combos_diaeresis[] = {
{ DIKS_SPACE, (unsigned char) '¨' },
{ DIKS_SMALL_A, (unsigned char) 'ä' },
{ DIKS_SMALL_E, (unsigned char) 'ë' },
{ DIKS_SMALL_I, (unsigned char) 'ï' },
{ DIKS_SMALL_O, (unsigned char) 'ö' },
{ DIKS_SMALL_U, (unsigned char) 'ü' },
{ DIKS_CAPITAL_A, (unsigned char) 'Ä' },
{ DIKS_CAPITAL_E, (unsigned char) 'Ë' },
{ DIKS_CAPITAL_I, (unsigned char) 'Ï' },
{ DIKS_CAPITAL_O, (unsigned char) 'Ö' },
{ DIKS_CAPITAL_U, (unsigned char) 'Ü' },
{ 0, 0 }
};
static const DeadKeyCombo combos_tilde[] = {
{ DIKS_SPACE, (unsigned char) '~' },
{ DIKS_SMALL_A, (unsigned char) 'ã' },
{ DIKS_SMALL_N, (unsigned char) 'ñ' },
{ DIKS_SMALL_O, (unsigned char) 'õ' },
{ DIKS_CAPITAL_A, (unsigned char) 'Ã' },
{ DIKS_CAPITAL_N, (unsigned char) 'Ñ' },
{ DIKS_CAPITAL_O, (unsigned char) 'Õ' },
{ 0, 0 }
};
static const DeadKeyMap deadkey_maps[] = {
{ DIKS_DEAD_GRAVE, combos_grave },
{ DIKS_DEAD_ACUTE, combos_acute },
{ <API key>, combos_circumflex },
{ DIKS_DEAD_DIAERESIS, combos_diaeresis },
{ DIKS_DEAD_TILDE, combos_tilde }
};
/* define a lookup table to go from key IDs to names.
* This is used to look up the names provided in a loaded key table */
/* this table is roughly 4Kb in size */
<API key>(KeySymbolNames);
<API key>(KeyIdentifierNames);
static void init_devices( CoreDFB *core );
static void <API key>( CoreDFB *core, CoreInputDevice *device );
static <API key> *get_keymap_entry( CoreInputDevice *device,
int code );
static DFBResult set_keymap_entry( CoreInputDevice *device,
int code,
<API key> *entry );
static DFBResult load_keymap( CoreInputDevice *device,
char *filename );
static <API key> lookup_keysymbol( char *symbolname );
static <API key> <API key>( char *identifiername );
static bool lookup_from_table( CoreInputDevice *device,
DFBInputEvent *event,
DFBInputEventFlags lookup );
static void fixup_key_event ( CoreInputDevice *device,
DFBInputEvent *event );
static void fixup_mouse_event( CoreInputDevice *device,
DFBInputEvent *event );
static void flush_keys ( CoreInputDevice *device );
static bool core_input_filter( CoreInputDevice *device,
DFBInputEvent *event );
static <API key> symbol_to_id( <API key> symbol );
static <API key> id_to_symbol( <API key> id,
<API key> modifiers,
<API key> locks );
static ReactionResult <API key>( const void *msg_data, void *ctx );
static ReactionFunc dfb_input_globals[MAX_INPUT_GLOBALS+1] = {
<API key>,
NULL
};
DFBResult
<API key>( ReactionFunc func,
int *ret_index )
{
int i;
D_DEBUG_AT( Core_Input, "%s( %p, %p )\n", __FUNCTION__, func, ret_index );
D_ASSERT( func != NULL );
D_ASSERT( ret_index != NULL );
for (i=0; i<MAX_INPUT_GLOBALS; i++) {
if (!dfb_input_globals[i]) {
dfb_input_globals[i] = func;
D_DEBUG_AT( Core_Input, " -> index %d\n", i );
*ret_index = i;
return DFB_OK;
}
}
return DFB_LIMITEXCEEDED;
}
DFBResult
<API key>( ReactionFunc func,
int index )
{
D_DEBUG_AT( Core_Input, "%s( %p, %d )\n", __FUNCTION__, func, index );
D_ASSERT( func != NULL );
D_ASSERT( index >= 0 );
D_ASSERT( index < MAX_INPUT_GLOBALS );
D_ASSUME( dfb_input_globals[index] == NULL );
dfb_input_globals[index] = func;
return DFB_OK;
}
static DFBInputCore *core_local; /* FIXME */
static DFBInputCoreShared *core_input; /* FIXME */
#if FUSION_BUILD_MULTI
static Reaction <API key>; /* Local reaction to hot-plug event */
#endif
static DFBResult
<API key>( CoreDFB *core,
DFBInputCore *data,
DFBInputCoreShared *shared )
{
#if FUSION_BUILD_MULTI
DFBResult result = DFB_OK;
#endif
D_DEBUG_AT( Core_Input, "<API key>( %p, %p, %p )\n", core, data, shared );
D_ASSERT( data != NULL );
D_ASSERT( shared != NULL );
core_local = data; /* FIXME */
core_input = shared; /* FIXME */
data->core = core;
data->shared = shared;
<API key>( &dfb_input_modules );
#if FUSION_BUILD_MULTI
/* Create the reactor that responds input device hot-plug events. */
core_input->reactor = fusion_reactor_new(
sizeof( <API key> ),
"Input Hotplug",
dfb_core_world(core) );
if (!core_input->reactor) {
D_ERROR( "DirectFB/Input: fusion_reactor_new() failed!\n" );
result = DFB_FAILURE;
goto errorExit;
}
/* Attach local process function to the input hot-plug reactor. */
result = <API key>(
core_input->reactor,
<API key>,
(void*) core,
&<API key> );
if (result) {
D_ERROR( "DirectFB/Input: <API key>() failed!\n" );
goto errorExit;
}
#endif
init_devices( core );
D_MAGIC_SET( data, DFBInputCore );
D_MAGIC_SET( shared, DFBInputCoreShared );
return DFB_OK;
#if FUSION_BUILD_MULTI
errorExit:
/* Destroy the hot-plug reactor if it was created. */
if (core_input->reactor)
<API key>(core_input->reactor);
return result;
#endif
}
static DFBResult
dfb_input_core_join( CoreDFB *core,
DFBInputCore *data,
DFBInputCoreShared *shared )
{
int i;
#if FUSION_BUILD_MULTI
DFBResult result;
#endif
D_DEBUG_AT( Core_Input, "dfb_input_core_join( %p, %p, %p )\n", core, data, shared );
D_ASSERT( data != NULL );
D_MAGIC_ASSERT( shared, DFBInputCoreShared );
D_ASSERT( shared->reactor != NULL );
core_local = data; /* FIXME */
core_input = shared; /* FIXME */
data->core = core;
data->shared = shared;
#if FUSION_BUILD_MULTI
/* Attach the local process function to the input hot-plug reactor. */
result = <API key>( core_input->reactor,
<API key>,
(void*) core,
&<API key> );
if (result) {
D_ERROR( "DirectFB/Input: <API key> failed!\n" );
return result;
}
#endif
for (i=0; i<core_input->num; i++) {
CoreInputDevice *device;
device = D_CALLOC( 1, sizeof(CoreInputDevice) );
if (!device) {
D_OOM();
continue;
}
device->shared = core_input->devices[i];
#if FUSION_BUILD_MULTI
/* Increase the reference counter. */
fusion_ref_up( &device->shared->ref, true );
#endif
/* add it to the list */
direct_list_append( &data->devices, &device->link );
D_MAGIC_SET( device, CoreInputDevice );
}
D_MAGIC_SET( data, DFBInputCore );
return DFB_OK;
}
static DFBResult
<API key>( DFBInputCore *data,
bool emergency )
{
DFBInputCoreShared *shared;
DirectLink *n;
CoreInputDevice *device;
FusionSHMPoolShared *pool = dfb_core_shmpool( data->core );
InputDriver *driver;
D_DEBUG_AT( Core_Input, "<API key>( %p, %semergency )\n", data, emergency ? "" : "no " );
D_MAGIC_ASSERT( data, DFBInputCore );
D_MAGIC_ASSERT( data->shared, DFBInputCoreShared );
shared = data->shared;
/* Stop each input provider's hot-plug thread that supports device hot-plugging. */
<API key> (driver, n, core_local->drivers) {
if (driver->funcs->GetCapability && driver->funcs->StopHotplug) {
if (IDC_HOTPLUG & driver->funcs->GetCapability()) {
D_DEBUG_AT( Core_Input, "Stopping hot-plug detection thread "
"within %s\n ", driver->module->name );
if (driver->funcs->StopHotplug()) {
D_ERROR( "DirectFB/Input: StopHotplug() failed with %s\n",
driver->module->name );
}
}
}
}
#if FUSION_BUILD_MULTI
<API key>( core_input->reactor, &<API key> );
<API key>( core_input->reactor );
#endif
<API key> (device, n, data->devices) {
InputDeviceShared *devshared;
D_MAGIC_ASSERT( device, CoreInputDevice );
driver = device->driver;
D_ASSERT( driver != NULL );
devshared = device->shared;
D_ASSERT( devshared != NULL );
fusion_call_destroy( &devshared->call );
<API key>( &devshared->lock );
if (device->driver_data != NULL) {
void *driver_data;
D_ASSERT( driver->funcs != NULL );
D_ASSERT( driver->funcs->CloseDevice != NULL );
D_DEBUG_AT( Core_Input, " -> closing '%s' (%d) %d.%d (%s)\n",
devshared->device_info.desc.name, devshared->num + 1,
driver->info.version.major,
driver->info.version.minor, driver->info.vendor );
driver_data = device->driver_data;
device->driver_data = NULL;
driver->funcs->CloseDevice( driver_data );
}
if (!--driver->nr_devices) {
direct_module_unref( driver->module );
D_FREE( driver );
}
#if FUSION_BUILD_MULTI
fusion_ref_destroy( &device->shared->ref );
#endif
fusion_reactor_free( devshared->reactor );
if (devshared->keymap.entries)
SHFREE( pool, devshared->keymap.entries );
if (devshared->axis_info)
SHFREE( pool, devshared->axis_info );
SHFREE( pool, devshared );
D_MAGIC_CLEAR( device );
D_FREE( device );
}
D_MAGIC_CLEAR( data );
D_MAGIC_CLEAR( shared );
return DFB_OK;
}
static DFBResult
<API key>( DFBInputCore *data,
bool emergency )
{
DFBInputCoreShared *shared;
DirectLink *n;
CoreInputDevice *device;
D_DEBUG_AT( Core_Input, "<API key>( %p, %semergency )\n", data, emergency ? "" : "no " );
D_MAGIC_ASSERT( data, DFBInputCore );
D_MAGIC_ASSERT( data->shared, DFBInputCoreShared );
shared = data->shared;
#if FUSION_BUILD_MULTI
<API key>( core_input->reactor, &<API key> );
#endif
<API key> (device, n, data->devices) {
D_MAGIC_ASSERT( device, CoreInputDevice );
#if FUSION_BUILD_MULTI
/* Decrease the ref between shared device and local device. */
fusion_ref_down( &device->shared->ref, true );
#endif
D_FREE( device );
}
D_MAGIC_CLEAR( data );
return DFB_OK;
}
static DFBResult
<API key>( DFBInputCore *data )
{
DFBInputCoreShared *shared;
CoreInputDevice *device;
InputDriver *driver;
D_DEBUG_AT( Core_Input, "<API key>( %p )\n", data );
D_MAGIC_ASSERT( data, DFBInputCore );
D_MAGIC_ASSERT( data->shared, DFBInputCoreShared );
shared = data->shared;
D_DEBUG_AT( Core_Input, " -> suspending...\n" );
/* Go through the drivers list and attempt to suspend all of the drivers that
* support the Suspend function.
*/
direct_list_foreach (driver, core_local->drivers) {
DFBResult ret;
D_ASSERT( driver->funcs->Suspend != NULL );
ret = driver->funcs->Suspend();
if (ret != DFB_OK && ret != DFB_UNSUPPORTED) {
D_DERROR( ret, "driver->Suspend failed during suspend (%s)\n",
driver->info.name );
}
}
direct_list_foreach (device, data->devices) {
InputDeviceShared *devshared;
D_MAGIC_ASSERT( device, CoreInputDevice );
driver = device->driver;
D_ASSERT( driver != NULL );
devshared = device->shared;
D_ASSERT( devshared != NULL );
if (device->driver_data != NULL) {
void *driver_data;
D_ASSERT( driver->funcs != NULL );
D_ASSERT( driver->funcs->CloseDevice != NULL );
D_DEBUG_AT( Core_Input, " -> closing '%s' (%d) %d.%d (%s)\n",
devshared->device_info.desc.name, devshared->num + 1,
driver->info.version.major,
driver->info.version.minor, driver->info.vendor );
driver_data = device->driver_data;
device->driver_data = NULL;
driver->funcs->CloseDevice( driver_data );
}
flush_keys( device );
}
D_DEBUG_AT( Core_Input, " -> suspended.\n" );
return DFB_OK;
}
static DFBResult
<API key>( DFBInputCore *data )
{
DFBInputCoreShared *shared;
DFBResult ret;
CoreInputDevice *device;
InputDriver *driver;
D_DEBUG_AT( Core_Input, "<API key>( %p )\n", data );
D_MAGIC_ASSERT( data, DFBInputCore );
D_MAGIC_ASSERT( data->shared, DFBInputCoreShared );
shared = data->shared;
D_DEBUG_AT( Core_Input, " -> resuming...\n" );
direct_list_foreach (device, data->devices) {
D_MAGIC_ASSERT( device, CoreInputDevice );
D_DEBUG_AT( Core_Input, " -> reopening '%s' (%d) %d.%d (%s)\n",
device->shared->device_info.desc.name, device->shared->num + 1,
device->driver->info.version.major,
device->driver->info.version.minor,
device->driver->info.vendor );
D_ASSERT( device->driver_data == NULL );
ret = device->driver->funcs->OpenDevice( device, device->shared->num,
&device->shared->device_info,
&device->driver_data );
if (ret) {
D_DERROR( ret, "DirectFB/Input: Failed reopening device "
"during resume (%s)!\n", device->shared->device_info.desc.name );
device->driver_data = NULL;
}
}
/* Go through the drivers list and attempt to resume all of the drivers that
* support the Resume function.
*/
direct_list_foreach (driver, core_local->drivers) {
D_ASSERT( driver->funcs->Resume != NULL );
ret = driver->funcs->Resume();
if (ret != DFB_OK && ret != DFB_UNSUPPORTED) {
D_DERROR( ret, "driver->Resume failed during resume (%s)\n",
driver->info.name );
}
}
D_DEBUG_AT( Core_Input, " -> resumed.\n" );
return DFB_OK;
}
void
<API key>( InputDeviceCallback callback,
void *ctx,
<API key> caps )
{
CoreInputDevice *device;
D_ASSERT( core_input != NULL );
direct_list_foreach (device, core_local->devices) {
<API key> dev_caps;
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( device->shared != NULL );
dev_caps = device->shared->device_info.desc.caps;
/* Always match if unclassified */
if (!dev_caps)
dev_caps = DICAPS_ALL;
if ((dev_caps & caps) && callback( device, ctx ) == DFENUM_CANCEL)
break;
}
}
DirectResult
dfb_input_attach( CoreInputDevice *device,
ReactionFunc func,
void *ctx,
Reaction *reaction )
{
D_DEBUG_AT( Core_Input, "%s( %p, %p, %p, %p )\n", __FUNCTION__, device, func, ctx, reaction );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
return <API key>( device->shared->reactor, func, ctx, reaction );
}
DirectResult
dfb_input_detach( CoreInputDevice *device,
Reaction *reaction )
{
D_DEBUG_AT( Core_Input, "%s( %p, %p )\n", __FUNCTION__, device, reaction );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
return <API key>( device->shared->reactor, reaction );
}
DirectResult
<API key>( CoreInputDevice *device,
int index,
void *ctx,
GlobalReaction *reaction )
{
D_DEBUG_AT( Core_Input, "%s( %p, %d, %p, %p )\n", __FUNCTION__, device, index, ctx, reaction );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
return <API key>( device->shared->reactor, index, ctx, reaction );
}
DirectResult
<API key>( CoreInputDevice *device,
GlobalReaction *reaction )
{
D_DEBUG_AT( Core_Input, "%s( %p, %p )\n", __FUNCTION__, device, reaction );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
return <API key>( device->shared->reactor, reaction );
}
const char *
<API key>( DFBInputEventType type )
{
switch (type) {
case DIET_UNKNOWN:
return "UNKNOWN";
case DIET_KEYPRESS:
return "KEYPRESS";
case DIET_KEYRELEASE:
return "KEYRELEASE";
case DIET_BUTTONPRESS:
return "BUTTONPRESS";
case DIET_BUTTONRELEASE:
return "BUTTONRELEASE";
case DIET_AXISMOTION:
return "AXISMOTION";
default:
break;
}
return "<invalid>";
}
void
dfb_input_dispatch( CoreInputDevice *device, DFBInputEvent *event )
{
D_DEBUG_AT( Core_Input, "%s( %p, %p )\n", __FUNCTION__, device, event );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( event != NULL );
/*
* When a USB device is hot-removed, it is possible that there are pending events
* still being dispatched and the shared field becomes NULL.
*/
/*
* 0. Sanity checks & debugging...
*/
if (!device->shared) {
D_DEBUG_AT( Core_Input, " -> No shared data!\n" );
return;
}
D_ASSUME( device->shared->reactor != NULL );
if (!device->shared->reactor) {
D_DEBUG_AT( Core_Input, " -> No reactor!\n" );
return;
}
D_DEBUG_AT( Core_InputEvt, " -> (%02x) %s%s%s\n", event->type,
<API key>( event->type ),
(event->flags & DIEF_FOLLOW) ? " [FOLLOW]" : "",
(event->flags & DIEF_REPEAT) ? " [REPEAT]" : "" );
#if D_DEBUG_ENABLED
if (event->flags & DIEF_TIMESTAMP)
D_DEBUG_AT( Core_InputEvt, " -> TIMESTAMP %lu.%06lu\n", event->timestamp.tv_sec, event->timestamp.tv_usec );
if (event->flags & DIEF_AXISABS)
D_DEBUG_AT( Core_InputEvt, " -> AXISABS %d at %d\n", event->axis, event->axisabs );
if (event->flags & DIEF_AXISREL)
D_DEBUG_AT( Core_InputEvt, " -> AXISREL %d by %d\n", event->axis, event->axisrel );
if (event->flags & DIEF_KEYCODE)
D_DEBUG_AT( Core_InputEvt, " -> KEYCODE %d\n", event->key_code );
if (event->flags & DIEF_KEYID)
D_DEBUG_AT( Core_InputEvt, " -> KEYID 0x%04x\n", event->key_id );
if (event->flags & DIEF_KEYSYMBOL)
D_DEBUG_AT( Core_InputEvt, " -> KEYSYMBOL 0x%04x\n", event->key_symbol );
if (event->flags & DIEF_MODIFIERS)
D_DEBUG_AT( Core_InputEvt, " -> MODIFIERS 0x%04x\n", event->modifiers );
if (event->flags & DIEF_LOCKS)
D_DEBUG_AT( Core_InputEvt, " -> LOCKS 0x%04x\n", event->locks );
if (event->flags & DIEF_BUTTONS)
D_DEBUG_AT( Core_InputEvt, " -> BUTTONS 0x%04x\n", event->buttons );
if (event->flags & DIEF_GLOBAL)
D_DEBUG_AT( Core_InputEvt, " -> GLOBAL\n" );
#endif
/*
* 1. Fixup event...
*/
event->clazz = DFEC_INPUT;
event->device_id = device->shared->id;
if (!(event->flags & DIEF_TIMESTAMP)) {
gettimeofday( &event->timestamp, NULL );
event->flags |= DIEF_TIMESTAMP;
}
switch (event->type) {
case DIET_BUTTONPRESS:
case DIET_BUTTONRELEASE:
D_DEBUG_AT( Core_InputEvt, " -> BUTTON 0x%04x\n", event->button );
if (dfb_config->lefty) {
if (event->button == DIBI_LEFT)
event->button = DIBI_RIGHT;
else if (event->button == DIBI_RIGHT)
event->button = DIBI_LEFT;
D_DEBUG_AT( Core_InputEvt, " -> lefty! => 0x%04x <=\n", event->button );
}
/* fallthru */
case DIET_AXISMOTION:
fixup_mouse_event( device, event );
break;
case DIET_KEYPRESS:
case DIET_KEYRELEASE:
if (dfb_config->capslock_meta) {
if (device->shared->keymap.num_entries && (event->flags & DIEF_KEYCODE))
lookup_from_table( device, event, (DIEF_KEYID |
DIEF_KEYSYMBOL) & ~event->flags );
if (event->key_id == DIKI_CAPS_LOCK || event->key_symbol == DIKS_CAPS_LOCK) {
event->flags |= DIEF_KEYID | DIEF_KEYSYMBOL;
event->key_code = -1;
event->key_id = DIKI_META_L;
event->key_symbol = DIKS_META;
}
}
fixup_key_event( device, event );
break;
default:
;
}
#if D_DEBUG_ENABLED
if (event->flags & DIEF_TIMESTAMP)
D_DEBUG_AT( Core_InputEvt, " => TIMESTAMP %lu.%06lu\n", event->timestamp.tv_sec, event->timestamp.tv_usec );
if (event->flags & DIEF_AXISABS)
D_DEBUG_AT( Core_InputEvt, " => AXISABS %d at %d\n", event->axis, event->axisabs );
if (event->flags & DIEF_AXISREL)
D_DEBUG_AT( Core_InputEvt, " => AXISREL %d by %d\n", event->axis, event->axisrel );
if (event->flags & DIEF_KEYCODE)
D_DEBUG_AT( Core_InputEvt, " => KEYCODE %d\n", event->key_code );
if (event->flags & DIEF_KEYID)
D_DEBUG_AT( Core_InputEvt, " => KEYID 0x%04x\n", event->key_id );
if (event->flags & DIEF_KEYSYMBOL)
D_DEBUG_AT( Core_InputEvt, " => KEYSYMBOL 0x%04x\n", event->key_symbol );
if (event->flags & DIEF_MODIFIERS)
D_DEBUG_AT( Core_InputEvt, " => MODIFIERS 0x%04x\n", event->modifiers );
if (event->flags & DIEF_LOCKS)
D_DEBUG_AT( Core_InputEvt, " => LOCKS 0x%04x\n", event->locks );
if (event->flags & DIEF_BUTTONS)
D_DEBUG_AT( Core_InputEvt, " => BUTTONS 0x%04x\n", event->buttons );
if (event->flags & DIEF_GLOBAL)
D_DEBUG_AT( Core_InputEvt, " => GLOBAL\n" );
#endif
if (core_input_filter( device, event ))
D_DEBUG_AT( Core_InputEvt, " ****>> FILTERED\n" );
else
<API key>( device->shared->reactor, event, true, dfb_input_globals );
}
DFBInputDeviceID
dfb_input_device_id( const CoreInputDevice *device )
{
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
return device->shared->id;
}
CoreInputDevice *
dfb_input_device_at( DFBInputDeviceID id )
{
CoreInputDevice *device;
D_ASSERT( core_input != NULL );
direct_list_foreach (device, core_local->devices) {
D_MAGIC_ASSERT( device, CoreInputDevice );
if (device->shared->id == id)
return device;
}
return NULL;
}
/* Get an input device's capabilities. */
<API key>
<API key>( const CoreInputDevice *device )
{
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
return device->shared->device_info.desc.caps;
}
void
<API key>( const CoreInputDevice *device,
<API key> *desc )
{
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
*desc = device->shared->device_info.desc;
}
DFBResult
<API key>( CoreInputDevice *device,
int keycode,
<API key> *entry )
{
<API key> *keymap_entry;
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( entry != NULL );
keymap_entry = get_keymap_entry( device, keycode );
if (!keymap_entry)
return DFB_FAILURE;
*entry = *keymap_entry;
return DFB_OK;
}
DFBResult
<API key>( CoreInputDevice *device,
int keycode,
<API key> *entry )
{
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( entry != NULL );
return set_keymap_entry( device, keycode, entry );
}
DFBResult
<API key> ( CoreInputDevice *device,
char *filename )
{
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( filename != NULL );
return load_keymap( device, filename );
}
DFBResult
<API key>( CoreInputDevice *device )
{
int ret;
InputDeviceShared *shared;
D_MAGIC_ASSERT( device, CoreInputDevice );
shared = device->shared;
D_ASSERT( shared != NULL );
D_INFO( "DirectFB/Input: Reloading keymap for '%s' [0x%02x]...\n",
shared->device_info.desc.name, shared->id );
if (fusion_call_execute( &shared->call, FCEF_NONE, CIDC_RELOAD_KEYMAP, NULL, &ret ))
return DFB_FUSION;
return ret;
}
/** internal **/
static void
input_add_device( CoreInputDevice *device )
{
D_DEBUG_AT( Core_Input, "%s( %p )\n", __FUNCTION__, device );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
if (core_input->num == MAX_INPUTDEVICES) {
D_ERROR( "DirectFB/Input: Maximum number of devices reached!\n" );
return;
}
direct_list_append( &core_local->devices, &device->link );
core_input->devices[ core_input->num++ ] = device->shared;
}
static void
<API key>( CoreDFB *core, CoreInputDevice *device )
{
int i;
<API key> *entries;
FusionSHMPoolShared *pool = dfb_core_shmpool( core );
InputDeviceShared *shared = device->shared;
<API key> *desc = &shared->device_info.desc;
int num_entries = desc->max_keycode -
desc->min_keycode + 1;
D_DEBUG_AT( Core_Input, "%s( %p, %p )\n", __FUNCTION__, core, device );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
entries = SHCALLOC( pool, num_entries, sizeof(<API key>) );
if (!entries) {
D_OOSHM();
return;
}
/* write -1 indicating entry is not fetched yet from driver */
for (i=0; i<num_entries; i++)
entries[i].code = -1;
shared->keymap.min_keycode = desc->min_keycode;
shared->keymap.max_keycode = desc->max_keycode;
shared->keymap.num_entries = num_entries;
shared->keymap.entries = entries;
#if FUSION_BUILD_MULTI
/* we need to fetch the whole map, otherwise a slave would try to */
for (i=desc->min_keycode; i<=desc->max_keycode; i++)
get_keymap_entry( device, i );
#endif
}
static int
make_id( DFBInputDeviceID prefered )
{
CoreInputDevice *device;
D_DEBUG_AT( Core_Input, "%s( 0x%02x )\n", __FUNCTION__, prefered );
D_ASSERT( core_input != NULL );
direct_list_foreach (device, core_local->devices) {
D_MAGIC_ASSERT( device, CoreInputDevice );
if (device->shared->id == prefered)
return make_id( (prefered < DIDID_ANY) ? DIDID_ANY : (prefered + 1) );
}
return prefered;
}
static DFBResult
reload_keymap( CoreInputDevice *device )
{
int i;
InputDeviceShared *shared;
D_DEBUG_AT( Core_Input, "%s( %p )\n", __FUNCTION__, device );
D_MAGIC_ASSERT( device, CoreInputDevice );
shared = device->shared;
D_ASSERT( shared != NULL );
if (shared->device_info.desc.min_keycode < 0 ||
shared->device_info.desc.max_keycode < 0)
return DFB_UNSUPPORTED;
/* write -1 indicating entry is not fetched yet from driver */
for (i=0; i<shared->keymap.num_entries; i++)
shared->keymap.entries[i].code = -1;
/* fetch the whole map */
for (i=shared->keymap.min_keycode; i<=shared->keymap.max_keycode; i++)
get_keymap_entry( device, i );
D_INFO( "DirectFB/Input: Reloaded keymap for '%s' [0x%02x]\n",
shared->device_info.desc.name, shared->id );
return DFB_OK;
}
static <API key>
<API key>( int caller, /* fusion id of the caller */
int call_arg, /* optional call parameter */
void *call_ptr, /* optional call parameter */
void *ctx, /* optional handler context */
unsigned int serial,
int *ret_val )
{
<API key> command = call_arg;
CoreInputDevice *device = ctx;
D_DEBUG_AT( Core_Input, "%s( %d, %d, %p, %p )\n", __FUNCTION__, caller, call_arg, call_ptr, ctx );
D_MAGIC_ASSERT( device, CoreInputDevice );
switch (command) {
case CIDC_RELOAD_KEYMAP:
*ret_val = reload_keymap( device );
break;
default:
D_BUG( "unknown Core Input Device Command '%d'", command );
*ret_val = DFB_BUG;
}
return FCHR_RETURN;
}
static DFBResult
init_axes( CoreInputDevice *device )
{
int i, num;
DFBResult ret;
InputDeviceShared *shared;
const InputDriverFuncs *funcs;
D_DEBUG_AT( Core_Input, "%s( %p )\n", __FUNCTION__, device );
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( device->driver != NULL );
funcs = device->driver->funcs;
D_ASSERT( funcs != NULL );
shared = device->shared;
D_ASSERT( shared != NULL );
if (shared->device_info.desc.max_axis < 0)
return DFB_OK;
num = shared->device_info.desc.max_axis + 1;
shared->axis_info = SHCALLOC( dfb_core_shmpool(device->core), num, sizeof(<API key>) );
if (!shared->axis_info)
return D_OOSHM();
shared->axis_num = num;
if (funcs->GetAxisInfo) {
for (i=0; i<num; i++) {
ret = funcs->GetAxisInfo( device, device->driver_data, i, &shared->axis_info[i] );
if (ret)
D_DERROR( ret, "Core/Input: GetAxisInfo() failed for '%s' [%d] on axis %d!\n",
shared->device_info.desc.name, shared->id, i );
}
}
return DFB_OK;
}
static void
init_devices( CoreDFB *core )
{
DirectLink *next;
DirectModuleEntry *module;
FusionSHMPoolShared *pool = dfb_core_shmpool( core );
D_DEBUG_AT( Core_Input, "%s( %p )\n", __FUNCTION__, core );
D_ASSERT( core_input != NULL );
<API key> (module, next, dfb_input_modules.entries) {
int n;
InputDriver *driver;
const InputDriverFuncs *funcs;
<API key> driver_cap;
DFBResult result;
driver_cap = IDC_NONE;
funcs = direct_module_ref( module );
if (!funcs)
continue;
driver = D_CALLOC( 1, sizeof(InputDriver) );
if (!driver) {
D_OOM();
direct_module_unref( module );
continue;
}
D_ASSERT( funcs->GetDriverInfo != NULL );
funcs->GetDriverInfo( &driver->info );
D_DEBUG_AT( Core_Input, " -> probing '%s'...\n", driver->info.name );
driver->nr_devices = funcs->GetAvailable();
/*
* If the input provider supports hot-plug, always load the module.
*/
if (!funcs->GetCapability) {
D_DEBUG_AT(Core_Input, "InputDriverFuncs::GetCapability is NULL\n");
}
else {
driver_cap = funcs->GetCapability();
}
if (!driver->nr_devices && !(driver_cap & IDC_HOTPLUG)) {
direct_module_unref( module );
D_FREE( driver );
continue;
}
D_DEBUG_AT( Core_Input, " -> %d available device(s) provided by '%s'.\n",
driver->nr_devices, driver->info.name );
driver->module = module;
driver->funcs = funcs;
direct_list_prepend( &core_local->drivers, &driver->link );
for (n=0; n<driver->nr_devices; n++) {
char buf[128];
CoreInputDevice *device;
InputDeviceInfo device_info;
InputDeviceShared *shared;
void *driver_data;
device = D_CALLOC( 1, sizeof(CoreInputDevice) );
if (!device) {
D_OOM();
continue;
}
shared = SHCALLOC( pool, 1, sizeof(InputDeviceShared) );
if (!shared) {
D_OOSHM();
D_FREE( device );
continue;
}
device->core = core;
memset( &device_info, 0, sizeof(InputDeviceInfo) );
device_info.desc.min_keycode = -1;
device_info.desc.max_keycode = -1;
D_MAGIC_SET( device, CoreInputDevice );
if (funcs->OpenDevice( device, n, &device_info, &driver_data )) {
SHFREE( pool, shared );
D_MAGIC_CLEAR( device );
D_FREE( device );
continue;
}
D_DEBUG_AT( Core_Input, " -> opened '%s' (%d) %d.%d (%s)\n",
device_info.desc.name, n + 1, driver->info.version.major,
driver->info.version.minor, driver->info.vendor );
if (driver->nr_devices > 1)
snprintf( buf, sizeof(buf), "%s (%d)", device_info.desc.name, n+1 );
else
snprintf( buf, sizeof(buf), "%s", device_info.desc.name );
/* init skirmish */
<API key>( &shared->lock, buf, dfb_core_world(core) );
/* create reactor */
shared->reactor = fusion_reactor_new( sizeof(DFBInputEvent), buf, dfb_core_world(core) );
<API key>( shared->reactor, &shared->lock );
/* init call */
fusion_call_init( &shared->call, <API key>, device, dfb_core_world(core) );
/* initialize shared data */
shared->id = make_id(device_info.prefered_id);
shared->num = n;
shared->device_info = device_info;
shared->last_key = DIKI_UNKNOWN;
shared->first_press = true;
/* initialize local data */
device->shared = shared;
device->driver = driver;
device->driver_data = driver_data;
D_INFO( "DirectFB/Input: %s %d.%d (%s)\n",
buf, driver->info.version.major,
driver->info.version.minor, driver->info.vendor );
#if FUSION_BUILD_MULTI
/* Initialize the ref between shared device and local device. */
snprintf( buf, sizeof(buf), "Ref of input device(%d)", shared->id );
fusion_ref_init( &shared->ref, buf, dfb_core_world(core) );
/* Increase reference counter. */
fusion_ref_up( &shared->ref, true );
#endif
if (device_info.desc.min_keycode > device_info.desc.max_keycode) {
D_BUG("min_keycode > max_keycode");
device_info.desc.min_keycode = -1;
device_info.desc.max_keycode = -1;
}
else if (device_info.desc.min_keycode >= 0 &&
device_info.desc.max_keycode >= 0)
<API key>( core, device );
init_axes( device );
/* add it to the list */
input_add_device( device );
}
/*
* If the driver supports hot-plug, launch its hot-plug thread to respond to
* hot-plug events. Failures in launching the hot-plug thread will only
* result in no hot-plug feature being available.
*/
if (driver_cap == IDC_HOTPLUG) {
result = funcs->LaunchHotplug(core, (void*) driver);
/* On failure, the input provider can still be used without hot-plug. */
if (result) {
D_INFO( "DirectFB/Input: Failed to enable hot-plug "
"detection with %s\n ", driver->info.name);
}
else {
D_INFO( "DirectFB/Input: Hot-plug detection enabled with %s \n",
driver->info.name);
}
}
}
}
/*
* Create the DFB shared core input device, add the input device into the
* local device list and shared dev array and broadcast the hot-plug in
* message to all slaves.
*/
DFBResult
<API key>(int device_index, CoreDFB *core_in, void *driver_in)
{
char buf[128];
CoreInputDevice *device;
InputDeviceInfo device_info;
InputDeviceShared *shared;
void *driver_data;
InputDriver *driver = NULL;
const InputDriverFuncs *funcs;
FusionSHMPoolShared *pool;
DFBResult result;
D_DEBUG_AT(Core_Input, "Enter: %s()\n", __FUNCTION__);
driver = (InputDriver *)driver_in;
pool = dfb_core_shmpool(core_in);
funcs = driver->funcs;
if (!funcs) {
D_ERROR("DirectFB/Input: driver->funcs is NULL\n");
goto errorExit;
}
device = D_CALLOC( 1, sizeof(CoreInputDevice) );
if (!device) {
D_OOM();
goto errorExit;
}
shared = SHCALLOC( pool, 1, sizeof(InputDeviceShared) );
if (!shared) {
D_OOM();
D_FREE( device );
goto errorExit;
}
device->core = core_in;
memset( &device_info, 0, sizeof(InputDeviceInfo) );
device_info.desc.min_keycode = -1;
device_info.desc.max_keycode = -1;
D_MAGIC_SET( device, CoreInputDevice );
if (funcs->OpenDevice( device, device_index, &device_info, &driver_data )) {
SHFREE( pool, shared );
D_MAGIC_CLEAR( device );
D_FREE( device );
D_DEBUG_AT( Core_Input,
"DirectFB/Input: Cannot open device in %s, at %d in %s\n",
__FUNCTION__, __LINE__, __FILE__);
goto errorExit;
}
snprintf( buf, sizeof(buf), "%s (%d)", device_info.desc.name, device_index);
/* init skirmish */
result = <API key>( &shared->lock, buf, dfb_core_world(device->core) );
if (result) {
funcs->CloseDevice( driver_data );
SHFREE( pool, shared );
D_MAGIC_CLEAR( device );
D_FREE( device );
D_ERROR("DirectFB/Input: <API key>() failed! in %s, at %d in %s\n",
__FUNCTION__, __LINE__, __FILE__);
goto errorExit;
}
/* create reactor */
shared->reactor = fusion_reactor_new( sizeof(DFBInputEvent),
buf,
dfb_core_world(device->core) );
if (!shared->reactor) {
funcs->CloseDevice( driver_data );
SHFREE( pool, shared );
D_MAGIC_CLEAR( device );
D_FREE( device );
<API key>(&shared->lock);
D_ERROR("DirectFB/Input: fusion_reactor_new() failed! in %s, at %d in %s\n",
__FUNCTION__, __LINE__, __FILE__);
goto errorExit;
}
<API key>( shared->reactor, &shared->lock );
/* init call */
fusion_call_init( &shared->call,
<API key>,
device,
dfb_core_world(device->core) );
/* initialize shared data */
shared->id = make_id(device_info.prefered_id);
shared->num = device_index;
shared->device_info = device_info;
shared->last_key = DIKI_UNKNOWN;
shared->first_press = true;
/* initialize local data */
device->shared = shared;
device->driver = driver;
device->driver_data = driver_data;
D_INFO( "DirectFB/Input: %s %d.%d (%s)\n",
buf, driver->info.version.major,
driver->info.version.minor, driver->info.vendor );
#if FUSION_BUILD_MULTI
snprintf( buf, sizeof(buf), "Ref of input device(%d)", shared->id);
fusion_ref_init( &shared->ref, buf, dfb_core_world(core_in));
fusion_ref_up( &shared->ref, true );
#endif
if (device_info.desc.min_keycode > device_info.desc.max_keycode) {
D_BUG("min_keycode > max_keycode");
device_info.desc.min_keycode = -1;
device_info.desc.max_keycode = -1;
}
else if (device_info.desc.min_keycode >= 0 && device_info.desc.max_keycode >= 0)
<API key>( device->core, device );
/* add it into local device list and shared dev array */
D_DEBUG_AT(Core_Input,
"In master, add a new device with dev_id=%d\n",
shared->id);
input_add_device( device );
driver->nr_devices++;
D_DEBUG_AT(Core_Input,
"Successfully added new input device with dev_id=%d in shared array\n",
shared->id);
<API key> message;
/* Setup the hot-plug in message. */
message.is_plugin = true;
message.dev_id = shared->id;
gettimeofday (&message.stamp, NULL);
/* Send the hot-plug in message */
#if FUSION_BUILD_MULTI
<API key>(core_input->reactor, &message, true, NULL);
#else
<API key>((const void *) &message, (void*) core_in);
#endif
return DFB_OK;
errorExit:
return DFB_FAILURE;
}
/*
* Tell whether the DFB input device handling of the system input device
* indicated by device_index is already created.
*/
static CoreInputDevice *
<API key>(int device_index, void *driver_in)
{
DirectLink *n;
CoreInputDevice *device;
D_ASSERT(driver_in != NULL);
<API key>(device, n, core_local->devices) {
if (device->driver != driver_in)
continue;
if (device->driver_data == NULL) {
D_DEBUG_AT(Core_Input,
"The device %d has been closed!\n",
device->shared->id);
return NULL;
}
if (device->driver->funcs->IsCreated &&
!device->driver->funcs->IsCreated(device_index, device->driver_data)) {
return device;
}
}
return NULL;
}
/*
* Remove the DFB shared core input device handling of the system input device
* indicated by device_index and broadcast the hot-plug out message to all slaves.
*/
DFBResult
<API key>(int device_index, void *driver_in)
{
CoreInputDevice *device;
InputDeviceShared *shared;
FusionSHMPoolShared *pool;
int i;
int found = 0;
int device_id;
D_DEBUG_AT(Core_Input, "Enter: %s()\n", __FUNCTION__);
D_ASSERT(driver_in !=NULL);
device = <API key>(device_index, driver_in);
if (device == NULL) {
D_DEBUG_AT(Core_Input,
"DirectFB/input: Failed to find the device[%d] or the device is "
"closed.\n",
device_index);
goto errorExit;
}
shared = device->shared;
pool = dfb_core_shmpool( device->core );
device_id = shared->id;
D_DEBUG_AT(Core_Input, "Find the device with dev_id=%d\n", device_id);
device->driver->funcs->CloseDevice( device->driver_data );
device->driver->nr_devices
<API key> message;
/* Setup the hot-plug out message */
message.is_plugin = false;
message.dev_id = device_id;
gettimeofday (&message.stamp, NULL);
/* Send the hot-plug out message */
#if FUSION_BUILD_MULTI
<API key>( core_input->reactor, &message, true, NULL);
int loop = CHECK_NUMBER;
while (--loop) {
if (<API key>( &device->shared->ref ) == DR_OK) {
fusion_ref_unlock(&device->shared->ref);
break;
}
usleep(CHECK_INTERVAL);
}
if (!loop)
D_DEBUG_AT(Core_Input, "Shared device might be connected to by others\n");
fusion_ref_destroy(&device->shared->ref);
#else
<API key>((const void*) &message, (void*) device->core);
#endif
/* Remove the device from shared array */
for (i = 0; i < core_input->num; i++) {
if (!found && (core_input->devices[i]->id == shared->id))
found = 1;
if (found)
core_input->devices[i] = core_input->devices[(i + 1) % MAX_INPUTDEVICES];
}
if (found)
core_input->devices[core_input->num -1] = NULL;
core_input->num
fusion_call_destroy( &shared->call );
<API key>( &shared->lock );
fusion_reactor_free( shared->reactor );
if (shared->keymap.entries)
SHFREE( pool, shared->keymap.entries );
SHFREE( pool, shared );
D_DEBUG_AT(Core_Input,
"Successfully remove the device with dev_id=%d in shared array\n",
device_id);
return DFB_OK;
errorExit:
return DFB_FAILURE;
}
/*
* Create local input device and add it into the local input devices list.
*/
static CoreInputDevice *
<API key>(int dev_id)
{
int i;
D_DEBUG_AT(Core_Input, "Enter: %s()\n", __FUNCTION__);
for (i = 0; i < core_input->num; i++) {
if (core_input->devices[i]->id == dev_id) {
CoreInputDevice *device;
D_DEBUG_AT(Core_Input,
"Find the device with dev_id=%d in shared array, and "
"allocate local device\n",
dev_id);
device = D_CALLOC( 1, sizeof(CoreInputDevice) );
if (!device) {
return NULL;
}
device->shared = core_input->devices[i];
#if FUSION_BUILD_MULTI
/* Increase the reference counter. */
fusion_ref_up( &device->shared->ref, true );
#endif
/* add it to the list */
direct_list_append( &core_local->devices, &device->link );
D_MAGIC_SET( device, CoreInputDevice );
return device;
}
}
return NULL;
}
/*
* Local input device function that handles hot-plug in/out messages.
*/
static ReactionResult
<API key>( const void *msg_data, void *ctx )
{
const <API key> *message = msg_data;
CoreInputDevice *device = NULL;
D_DEBUG_AT(Core_Input, "Enter: %s()\n", __FUNCTION__);
D_DEBUG_AT(Core_Input,
"<PID:%6d> hotplug-in:%d device_id=%d message!\n",
getpid(),
message->is_plugin,
message->dev_id );
if (message->is_plugin) {
device = dfb_input_device_at(message->dev_id);
if (!device){
/* Update local device list according to shared devices array */
if (!(device = <API key>(message->dev_id))) {
D_ERROR("DirectFB/Input: <API key>() failed\n" );
goto errorExit;
}
}
/* attach the device to event containers */
<API key>( device );
/* attach the device to stack containers */
<API key>( device );
}
else {
device = dfb_input_device_at(message->dev_id);
if (device) {
direct_list_remove(&core_local->devices, &device->link);
<API key>(device);
<API key>(device);
#if FUSION_BUILD_MULTI
/* Decrease reference counter. */
fusion_ref_down( &device->shared->ref, true );
#endif
D_MAGIC_CLEAR( device );
D_FREE(device);
}
else
D_ERROR("DirectFB/Input:Can't find the device to be removed!\n");
}
return DFB_OK;
errorExit:
return DFB_FAILURE;
}
static <API key> *
get_keymap_entry( CoreInputDevice *device,
int code )
{
InputDeviceKeymap *map;
<API key> *entry;
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
map = &device->shared->keymap;
/* safety check */
if (code < map->min_keycode || code > map->max_keycode)
return NULL;
/* point to right array index */
entry = &map->entries[code - map->min_keycode];
/* need to initialize? */
if (entry->code != code) {
DFBResult ret;
InputDriver *driver = device->driver;
if (!driver) {
D_BUG("seem to be a slave with an empty keymap");
return NULL;
}
/* write keycode to entry */
entry->code = code;
/* fetch entry from driver */
ret = driver->funcs->GetKeymapEntry( device,
device->driver_data, entry );
if (ret)
return NULL;
/* drivers may leave this blank */
if (entry->identifier == DIKI_UNKNOWN)
entry->identifier = symbol_to_id( entry->symbols[DIKSI_BASE] );
if (entry->symbols[DIKSI_BASE_SHIFT] == DIKS_NULL)
entry->symbols[DIKSI_BASE_SHIFT] = entry->symbols[DIKSI_BASE];
if (entry->symbols[DIKSI_ALT] == DIKS_NULL)
entry->symbols[DIKSI_ALT] = entry->symbols[DIKSI_BASE];
if (entry->symbols[DIKSI_ALT_SHIFT] == DIKS_NULL)
entry->symbols[DIKSI_ALT_SHIFT] = entry->symbols[DIKSI_ALT];
}
return entry;
}
/* replace a single keymap entry with the code-entry pair */
static DFBResult
set_keymap_entry( CoreInputDevice *device,
int code,
<API key> *entry )
{
InputDeviceKeymap *map;
D_ASSERT( device->shared != NULL );
D_ASSERT( device->shared->keymap.entries != NULL );
map = &device->shared->keymap;
/* sanity check */
if (code < map->min_keycode || code > map->max_keycode)
return DFB_FAILURE;
/* copy the entry to the map */
map->entries[code - map->min_keycode] = *entry;
return DFB_OK;
}
/* replace the complete current keymap with a keymap from a file.
* the minimum-maximum keycodes of the driver are to be respected.
*/
static DFBResult
load_keymap( CoreInputDevice *device,
char *filename )
{
DFBResult ret = DFB_OK;
InputDeviceKeymap *map = 0;
FILE *file = 0;
<API key> lockstate = 0;
D_ASSERT( device->shared != NULL );
D_ASSERT( device->shared->keymap.entries != NULL );
map = &device->shared->keymap;
/* open the file */
file = fopen( filename, "r" );
if( !file )
{
return errno2result( errno );
}
/* read the file, line by line, and consume the mentioned scancodes */
while(1)
{
int i;
int dummy;
char buffer[201];
int keycode;
char diki[201];
char diks[4][201];
char *b;
<API key> entry = { .code = 0 };
b = fgets( buffer, 200, file );
if( !b ) {
if( feof(file) ) {
fclose(file);
return DFB_OK;
}
fclose(file);
return errno2result(errno);
}
/* comment or empty line */
if( buffer[0]=='#' || strcmp(buffer,"\n")==0 )
continue;
/* check for lock state change */
if( !strncmp(buffer,"capslock:",9) ) { lockstate |= DILS_CAPS; continue; }
if( !strncmp(buffer,":capslock",9) ) { lockstate &= ~DILS_CAPS; continue; }
if( !strncmp(buffer,"numlock:",8) ) { lockstate |= DILS_NUM; continue; }
if( !strncmp(buffer,":numlock",8) ) { lockstate &= ~DILS_NUM; continue; }
i = sscanf( buffer, " keycode %i = %s = %s %s %s %s %i\n",
&keycode, diki, diks[0], diks[1], diks[2], diks[3], &dummy );
if( i < 3 || i > 6 ) {
/* we want 1 to 4 key symbols */
D_INFO( "DirectFB/Input: skipped erroneous input line %s\n", buffer );
continue;
}
if( keycode > map->max_keycode || keycode < map->min_keycode ) {
D_INFO( "DirectFB/Input: skipped keycode %d out of range\n", keycode );
continue;
}
entry.code = keycode;
entry.locks = lockstate;
entry.identifier = <API key>( diki );
switch( i ) {
case 6: entry.symbols[3] = lookup_keysymbol( diks[3] );
case 5: entry.symbols[2] = lookup_keysymbol( diks[2] );
case 4: entry.symbols[1] = lookup_keysymbol( diks[1] );
case 3: entry.symbols[0] = lookup_keysymbol( diks[0] );
/* fall through */
}
switch( i ) {
case 3: entry.symbols[1] = entry.symbols[0];
case 4: entry.symbols[2] = entry.symbols[0];
case 5: entry.symbols[3] = entry.symbols[1];
/* fall through */
}
ret = set_keymap_entry( device, keycode, &entry );
if( ret )
return ret;
}
}
static <API key> lookup_keysymbol( char *symbolname )
{
int i;
/* we want uppercase */
for( i=0; i<strlen(symbolname); i++ )
if( symbolname[i] >= 'a' && symbolname[i] <= 'z' )
symbolname[i] = symbolname[i] - 'a' + 'A';
for( i=0; i < sizeof (KeySymbolNames) / sizeof (KeySymbolNames[0]); i++ ) {
if( strcmp( symbolname, KeySymbolNames[i].name ) == 0 )
return KeySymbolNames[i].symbol;
}
/* not found, maybe starting with 0x for raw conversion.
* We are already at uppercase.
*/
if( symbolname[0]=='0' && symbolname[1]=='X' ) {
int code=0;
symbolname+=2;
while(*symbolname) {
if( *symbolname >= '0' && *symbolname <= '9' ) {
code = code*16 + *symbolname - '0';
} else if( *symbolname >= 'A' && *symbolname <= 'F' ) {
code = code*16 + *symbolname - 'A' + 10;
} else {
/* invalid character */
return DIKS_NULL;
}
symbolname++;
}
return code;
}
return DIKS_NULL;
}
static <API key> <API key>( char *identifiername )
{
int i;
/* we want uppercase */
for( i=0; i<strlen(identifiername); i++ )
if( identifiername[i] >= 'a' && identifiername[i] <= 'z' )
identifiername[i] = identifiername[i] - 'a' + 'A';
for( i=0; i < sizeof (KeyIdentifierNames) / sizeof (KeyIdentifierNames[0]); i++ ) {
if( strcmp( identifiername, KeyIdentifierNames[i].name ) == 0 )
return KeyIdentifierNames[i].identifier;
}
return DIKI_UNKNOWN;
}
static bool
lookup_from_table( CoreInputDevice *device,
DFBInputEvent *event,
DFBInputEventFlags lookup )
{
<API key> *entry;
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
D_ASSERT( event != NULL );
/* fetch the entry from the keymap, possibly calling the driver */
entry = get_keymap_entry( device, event->key_code );
if (!entry)
return false;
/* lookup identifier */
if (lookup & DIEF_KEYID)
event->key_id = entry->identifier;
/* lookup symbol */
if (lookup & DIEF_KEYSYMBOL) {
<API key> index =
(event->modifiers & DIMM_ALTGR) ? DIKSI_ALT : DIKSI_BASE;
if ((event->modifiers & DIMM_SHIFT) || (entry->locks & event->locks))
index++;
/* don't modify modifiers */
if (DFB_KEY_TYPE( entry->symbols[DIKSI_BASE] ) == DIKT_MODIFIER)
event->key_symbol = entry->symbols[DIKSI_BASE];
else
event->key_symbol = entry->symbols[index];
}
return true;
}
static int
find_key_code_by_id( CoreInputDevice *device,
<API key> id )
{
int i;
InputDeviceKeymap *map;
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
map = &device->shared->keymap;
for (i=0; i<map->num_entries; i++) {
<API key> *entry = &map->entries[i];
if (entry->identifier == id)
return entry->code;
}
return -1;
}
static int
<API key>( CoreInputDevice *device,
<API key> symbol )
{
int i;
InputDeviceKeymap *map;
D_MAGIC_ASSERT( device, CoreInputDevice );
D_ASSERT( core_input != NULL );
D_ASSERT( device != NULL );
D_ASSERT( device->shared != NULL );
map = &device->shared->keymap;
for (i=0; i<map->num_entries; i++) {
int n;
<API key> *entry = &map->entries[i];
for (n=0; n<=DIKSI_LAST; n++)
if (entry->symbols[n] == symbol)
return entry->code;
}
return -1;
}
#define FIXUP_KEY_FIELDS (DIEF_MODIFIERS | DIEF_LOCKS | \
DIEF_KEYCODE | DIEF_KEYID | DIEF_KEYSYMBOL)
/*
* Fill partially missing values for key_code, key_id and key_symbol by
* translating those that are set. Fix modifiers/locks before if not set.
*
*
* There are five valid constellations that give reasonable values.
* (not counting the constellation where everything is set)
*
* Device has no translation table
* 1. key_id is set, key_symbol not
* -> key_code defaults to -1, key_symbol from key_id (up-translation)
* 2. key_symbol is set, key_id not
* -> key_code defaults to -1, key_id from key_symbol (down-translation)
*
* Device has a translation table
* 3. key_code is set
* -> look up key_id and/or key_symbol (key_code being the index)
* 4. key_id is set
* -> look up key_code and possibly key_symbol (key_id being searched for)
* 5. key_symbol is set
* -> look up key_code and key_id (key_symbol being searched for)
*
* Fields remaining will be set to the default, e.g. key_code to -1.
*/
static void
fixup_key_event( CoreInputDevice *device, DFBInputEvent *event )
{
int i;
DFBInputEventFlags valid = event->flags & FIXUP_KEY_FIELDS;
DFBInputEventFlags missing = valid ^ FIXUP_KEY_FIELDS;
InputDeviceShared *shared = device->shared;
D_MAGIC_ASSERT( device, CoreInputDevice );
/* Add missing flags */
event->flags |= missing;
/*
* Use cached values for modifiers/locks if they are missing.
*/
if (missing & DIEF_MODIFIERS)
event->modifiers = shared->modifiers_l | shared->modifiers_r;
if (missing & DIEF_LOCKS)
event->locks = shared->locks;
/*
* With translation table
*/
if (device->shared->keymap.num_entries) {
if (valid & DIEF_KEYCODE) {
lookup_from_table( device, event, missing );
missing &= ~(DIEF_KEYID | DIEF_KEYSYMBOL);
}
else if (valid & DIEF_KEYID) {
event->key_code = find_key_code_by_id( device, event->key_id );
if (event->key_code != -1) {
lookup_from_table( device, event, missing );
missing &= ~(DIEF_KEYCODE | DIEF_KEYSYMBOL);
}
else if (missing & DIEF_KEYSYMBOL) {
event->key_symbol = id_to_symbol( event->key_id,
event->modifiers,
event->locks );
missing &= ~DIEF_KEYSYMBOL;
}
}
else if (valid & DIEF_KEYSYMBOL) {
event->key_code = <API key>( device,
event->key_symbol );
if (event->key_code != -1) {
lookup_from_table( device, event, missing );
missing &= ~(DIEF_KEYCODE | DIEF_KEYID);
}
else {
event->key_id = symbol_to_id( event->key_symbol );
missing &= ~DIEF_KEYSYMBOL;
}
}
}
else {
/*
* Without translation table
*/
if (valid & DIEF_KEYID) {
if (missing & DIEF_KEYSYMBOL) {
event->key_symbol = id_to_symbol( event->key_id,
event->modifiers,
event->locks );
missing &= ~DIEF_KEYSYMBOL;
}
}
else if (valid & DIEF_KEYSYMBOL) {
event->key_id = symbol_to_id( event->key_symbol );
missing &= ~DIEF_KEYID;
}
}
/*
* Clear remaining fields.
*/
if (missing & DIEF_KEYCODE)
event->key_code = -1;
if (missing & DIEF_KEYID)
event->key_id = DIKI_UNKNOWN;
if (missing & DIEF_KEYSYMBOL)
event->key_symbol = DIKS_NULL;
/*
* Update cached values for modifiers.
*/
if (DFB_KEY_TYPE(event->key_symbol) == DIKT_MODIFIER) {
if (event->type == DIET_KEYPRESS) {
switch (event->key_id) {
case DIKI_SHIFT_L:
shared->modifiers_l |= DIMM_SHIFT;
break;
case DIKI_SHIFT_R:
shared->modifiers_r |= DIMM_SHIFT;
break;
case DIKI_CONTROL_L:
shared->modifiers_l |= DIMM_CONTROL;
break;
case DIKI_CONTROL_R:
shared->modifiers_r |= DIMM_CONTROL;
break;
case DIKI_ALT_L:
shared->modifiers_l |= DIMM_ALT;
break;
case DIKI_ALT_R:
shared->modifiers_r |= (event->key_symbol == DIKS_ALTGR) ? DIMM_ALTGR : DIMM_ALT;
break;
case DIKI_META_L:
shared->modifiers_l |= DIMM_META;
break;
case DIKI_META_R:
shared->modifiers_r |= DIMM_META;
break;
case DIKI_SUPER_L:
shared->modifiers_l |= DIMM_SUPER;
break;
case DIKI_SUPER_R:
shared->modifiers_r |= DIMM_SUPER;
break;
case DIKI_HYPER_L:
shared->modifiers_l |= DIMM_HYPER;
break;
case DIKI_HYPER_R:
shared->modifiers_r |= DIMM_HYPER;
break;
default:
;
}
}
else {
switch (event->key_id) {
case DIKI_SHIFT_L:
shared->modifiers_l &= ~DIMM_SHIFT;
break;
case DIKI_SHIFT_R:
shared->modifiers_r &= ~DIMM_SHIFT;
break;
case DIKI_CONTROL_L:
shared->modifiers_l &= ~DIMM_CONTROL;
break;
case DIKI_CONTROL_R:
shared->modifiers_r &= ~DIMM_CONTROL;
break;
case DIKI_ALT_L:
shared->modifiers_l &= ~DIMM_ALT;
break;
case DIKI_ALT_R:
shared->modifiers_r &= (event->key_symbol == DIKS_ALTGR) ? ~DIMM_ALTGR : ~DIMM_ALT;
break;
case DIKI_META_L:
shared->modifiers_l &= ~DIMM_META;
break;
case DIKI_META_R:
shared->modifiers_r &= ~DIMM_META;
break;
case DIKI_SUPER_L:
shared->modifiers_l &= ~DIMM_SUPER;
break;
case DIKI_SUPER_R:
shared->modifiers_r &= ~DIMM_SUPER;
break;
case DIKI_HYPER_L:
shared->modifiers_l &= ~DIMM_HYPER;
break;
case DIKI_HYPER_R:
shared->modifiers_r &= ~DIMM_HYPER;
break;
default:
;
}
}
/* write back to event */
if (missing & DIEF_MODIFIERS)
event->modifiers = shared->modifiers_l | shared->modifiers_r;
}
/*
* Update cached values for locks.
*/
if (event->type == DIET_KEYPRESS) {
/* When we receive a new key press, toggle lock flags */
if (shared->first_press || shared->last_key != event->key_id) {
switch (event->key_id) {
case DIKI_CAPS_LOCK:
shared->locks ^= DILS_CAPS;
break;
case DIKI_NUM_LOCK:
shared->locks ^= DILS_NUM;
break;
case DIKI_SCROLL_LOCK:
shared->locks ^= DILS_SCROLL;
break;
default:
;
}
}
/* write back to event */
if (missing & DIEF_LOCKS)
event->locks = shared->locks;
/* store last pressed key */
shared->last_key = event->key_id;
shared->first_press = false;
}
else if (event->type == DIET_KEYRELEASE) {
shared->first_press = true;
}
/* Handle dead keys. */
if (DFB_KEY_TYPE(shared->last_symbol) == DIKT_DEAD) {
for (i=0; i<D_ARRAY_SIZE(deadkey_maps); i++) {
const DeadKeyMap *map = &deadkey_maps[i];
if (map->deadkey == shared->last_symbol) {
for (i=0; map->combos[i].target; i++) {
if (map->combos[i].target == event->key_symbol) {
event->key_symbol = map->combos[i].result;
break;
}
}
break;
}
}
if (event->type == DIET_KEYRELEASE &&
DFB_KEY_TYPE(event->key_symbol) != DIKT_MODIFIER)
shared->last_symbol = event->key_symbol;
}
else
shared->last_symbol = event->key_symbol;
}
static void
fixup_mouse_event( CoreInputDevice *device, DFBInputEvent *event )
{
InputDeviceShared *shared = device->shared;
D_MAGIC_ASSERT( device, CoreInputDevice );
if (event->flags & DIEF_BUTTONS) {
shared->buttons = event->buttons;
}
else {
switch (event->type) {
case DIET_BUTTONPRESS:
shared->buttons |= (1 << event->button);
break;
case DIET_BUTTONRELEASE:
shared->buttons &= ~(1 << event->button);
break;
default:
;
}
/* Add missing flag */
event->flags |= DIEF_BUTTONS;
event->buttons = shared->buttons;
}
switch (event->type) {
case DIET_AXISMOTION:
if ((event->flags & DIEF_AXISABS) && event->axis >= 0 && event->axis < shared->axis_num) {
if (!(event->flags & DIEF_MIN) && (shared->axis_info[event->axis].flags & DIAIF_ABS_MIN)) {
event->min = shared->axis_info[event->axis].abs_min;
event->flags |= DIEF_MIN;
}
if (!(event->flags & DIEF_MAX) && (shared->axis_info[event->axis].flags & DIAIF_ABS_MAX)) {
event->max = shared->axis_info[event->axis].abs_max;
event->flags |= DIEF_MAX;
}
}
break;
default:
break;
}
}
static <API key>
symbol_to_id( <API key> symbol )
{
if (symbol >= 'a' && symbol <= 'z')
return DIKI_A + symbol - 'a';
if (symbol >= 'A' && symbol <= 'Z')
return DIKI_A + symbol - 'A';
if (symbol >= '0' && symbol <= '9')
return DIKI_0 + symbol - '0';
if (symbol >= DIKS_F1 && symbol <= DIKS_F12)
return DIKI_F1 + symbol - DIKS_F1;
switch (symbol) {
case DIKS_ESCAPE:
return DIKI_ESCAPE;
case DIKS_CURSOR_LEFT:
return DIKI_LEFT;
case DIKS_CURSOR_RIGHT:
return DIKI_RIGHT;
case DIKS_CURSOR_UP:
return DIKI_UP;
case DIKS_CURSOR_DOWN:
return DIKI_DOWN;
case DIKS_ALTGR:
return DIKI_ALT_R;
case DIKS_CONTROL:
return DIKI_CONTROL_L;
case DIKS_SHIFT:
return DIKI_SHIFT_L;
case DIKS_ALT:
return DIKI_ALT_L;
case DIKS_META:
return DIKI_META_L;
case DIKS_SUPER:
return DIKI_SUPER_L;
case DIKS_HYPER:
return DIKI_HYPER_L;
case DIKS_TAB:
return DIKI_TAB;
case DIKS_ENTER:
return DIKI_ENTER;
case DIKS_SPACE:
return DIKI_SPACE;
case DIKS_BACKSPACE:
return DIKI_BACKSPACE;
case DIKS_INSERT:
return DIKI_INSERT;
case DIKS_DELETE:
return DIKI_DELETE;
case DIKS_HOME:
return DIKI_HOME;
case DIKS_END:
return DIKI_END;
case DIKS_PAGE_UP:
return DIKI_PAGE_UP;
case DIKS_PAGE_DOWN:
return DIKI_PAGE_DOWN;
case DIKS_CAPS_LOCK:
return DIKI_CAPS_LOCK;
case DIKS_NUM_LOCK:
return DIKI_NUM_LOCK;
case DIKS_SCROLL_LOCK:
return DIKI_SCROLL_LOCK;
case DIKS_PRINT:
return DIKI_PRINT;
case DIKS_PAUSE:
return DIKI_PAUSE;
case DIKS_BACKSLASH:
return DIKI_BACKSLASH;
case DIKS_PERIOD:
return DIKI_PERIOD;
case DIKS_COMMA:
return DIKI_COMMA;
default:
;
}
return DIKI_UNKNOWN;
}
static <API key>
id_to_symbol( <API key> id,
<API key> modifiers,
<API key> locks )
{
bool shift = (modifiers & DIMM_SHIFT) || (locks & DILS_CAPS);
if (id >= DIKI_A && id <= DIKI_Z)
return (shift ? DIKS_CAPITAL_A : DIKS_SMALL_A) + id - DIKI_A;
if (id >= DIKI_0 && id <= DIKI_9)
return DIKS_0 + id - DIKI_0;
if (id >= DIKI_KP_0 && id <= DIKI_KP_9)
return DIKS_0 + id - DIKI_KP_0;
if (id >= DIKI_F1 && id <= DIKI_F12)
return DIKS_F1 + id - DIKI_F1;
switch (id) {
case DIKI_ESCAPE:
return DIKS_ESCAPE;
case DIKI_LEFT:
return DIKS_CURSOR_LEFT;
case DIKI_RIGHT:
return DIKS_CURSOR_RIGHT;
case DIKI_UP:
return DIKS_CURSOR_UP;
case DIKI_DOWN:
return DIKS_CURSOR_DOWN;
case DIKI_CONTROL_L:
case DIKI_CONTROL_R:
return DIKS_CONTROL;
case DIKI_SHIFT_L:
case DIKI_SHIFT_R:
return DIKS_SHIFT;
case DIKI_ALT_L:
case DIKI_ALT_R:
return DIKS_ALT;
case DIKI_META_L:
case DIKI_META_R:
return DIKS_META;
case DIKI_SUPER_L:
case DIKI_SUPER_R:
return DIKS_SUPER;
case DIKI_HYPER_L:
case DIKI_HYPER_R:
return DIKS_HYPER;
case DIKI_TAB:
return DIKS_TAB;
case DIKI_ENTER:
return DIKS_ENTER;
case DIKI_SPACE:
return DIKS_SPACE;
case DIKI_BACKSPACE:
return DIKS_BACKSPACE;
case DIKI_INSERT:
return DIKS_INSERT;
case DIKI_DELETE:
return DIKS_DELETE;
case DIKI_HOME:
return DIKS_HOME;
case DIKI_END:
return DIKS_END;
case DIKI_PAGE_UP:
return DIKS_PAGE_UP;
case DIKI_PAGE_DOWN:
return DIKS_PAGE_DOWN;
case DIKI_CAPS_LOCK:
return DIKS_CAPS_LOCK;
case DIKI_NUM_LOCK:
return DIKS_NUM_LOCK;
case DIKI_SCROLL_LOCK:
return DIKS_SCROLL_LOCK;
case DIKI_PRINT:
return DIKS_PRINT;
case DIKI_PAUSE:
return DIKS_PAUSE;
case DIKI_KP_DIV:
return DIKS_SLASH;
case DIKI_KP_MULT:
return DIKS_ASTERISK;
case DIKI_KP_MINUS:
return DIKS_MINUS_SIGN;
case DIKI_KP_PLUS:
return DIKS_PLUS_SIGN;
case DIKI_KP_ENTER:
return DIKS_ENTER;
case DIKI_KP_SPACE:
return DIKS_SPACE;
case DIKI_KP_TAB:
return DIKS_TAB;
case DIKI_KP_EQUAL:
return DIKS_EQUALS_SIGN;
case DIKI_KP_DECIMAL:
return DIKS_PERIOD;
case DIKI_KP_SEPARATOR:
return DIKS_COMMA;
case DIKI_BACKSLASH:
return DIKS_BACKSLASH;
case DIKI_EQUALS_SIGN:
return DIKS_EQUALS_SIGN;
case DIKI_LESS_SIGN:
return DIKS_LESS_THAN_SIGN;
case DIKI_MINUS_SIGN:
return DIKS_MINUS_SIGN;
case DIKI_PERIOD:
return DIKS_PERIOD;
case DIKI_QUOTE_LEFT:
case DIKI_QUOTE_RIGHT:
return DIKS_QUOTATION;
case DIKI_SEMICOLON:
return DIKS_SEMICOLON;
case DIKI_SLASH:
return DIKS_SLASH;
default:
;
}
return DIKS_NULL;
}
static void
release_key( CoreInputDevice *device, <API key> id )
{
DFBInputEvent evt;
D_MAGIC_ASSERT( device, CoreInputDevice );
evt.type = DIET_KEYRELEASE;
if (DFB_KEY_TYPE(id) == DIKT_IDENTIFIER) {
evt.flags = DIEF_KEYID;
evt.key_id = id;
}
else {
evt.flags = DIEF_KEYSYMBOL;
evt.key_symbol = id;
}
dfb_input_dispatch( device, &evt );
}
static void
flush_keys( CoreInputDevice *device )
{
D_MAGIC_ASSERT( device, CoreInputDevice );
if (device->shared->modifiers_l) {
if (device->shared->modifiers_l & DIMM_ALT)
release_key( device, DIKI_ALT_L );
if (device->shared->modifiers_l & DIMM_CONTROL)
release_key( device, DIKI_CONTROL_L );
if (device->shared->modifiers_l & DIMM_HYPER)
release_key( device, DIKI_HYPER_L );
if (device->shared->modifiers_l & DIMM_META)
release_key( device, DIKI_META_L );
if (device->shared->modifiers_l & DIMM_SHIFT)
release_key( device, DIKI_SHIFT_L );
if (device->shared->modifiers_l & DIMM_SUPER)
release_key( device, DIKI_SUPER_L );
}
if (device->shared->modifiers_r) {
if (device->shared->modifiers_r & DIMM_ALTGR)
release_key( device, DIKS_ALTGR );
if (device->shared->modifiers_r & DIMM_ALT)
release_key( device, DIKI_ALT_R );
if (device->shared->modifiers_r & DIMM_CONTROL)
release_key( device, DIKI_CONTROL_R );
if (device->shared->modifiers_r & DIMM_HYPER)
release_key( device, DIKI_HYPER_R );
if (device->shared->modifiers_r & DIMM_META)
release_key( device, DIKI_META_R );
if (device->shared->modifiers_r & DIMM_SHIFT)
release_key( device, DIKI_SHIFT_R );
if (device->shared->modifiers_r & DIMM_SUPER)
release_key( device, DIKI_SUPER_R );
}
}
static void
<API key>( CoreDFB *core )
{
CoreLayer *layer = dfb_layer_at( DLID_PRIMARY );
CoreLayerContext *context;
/* Get the currently active context. */
if (<API key>( layer, &context ) == DFB_OK) {
CoreLayerRegion *region;
/* Get the first region. */
if (<API key>( context,
false, ®ion ) == DFB_OK)
{
CoreSurface *surface;
/* Lock the region to avoid tearing due to concurrent updates. */
<API key>( region );
/* Get the surface of the region. */
if (<API key>( region, &surface ) == DFB_OK) {
/* Dump the surface contents. */
<API key>( surface, CSBR_FRONT, dfb_config->screenshot_dir, "dfb" );
/* Release the surface. */
dfb_surface_unref( surface );
}
/* Unlock the region. */
<API key>( region );
/* Release the region. */
<API key>( region );
}
/* Release the context. */
<API key>( context );
}
}
static bool
core_input_filter( CoreInputDevice *device, DFBInputEvent *event )
{
D_MAGIC_ASSERT( device, CoreInputDevice );
if (<API key>( device, event ))
return true;
if (event->type == DIET_KEYPRESS) {
switch (event->key_symbol) {
case DIKS_PRINT:
if (!event->modifiers && dfb_config->screenshot_dir) {
<API key>( device->core );
return true;
}
break;
case DIKS_BACKSPACE:
if (event->modifiers == DIMM_META)
<API key>();
break;
case DIKS_ESCAPE:
if (event->modifiers == DIMM_META) {
#if FUSION_BUILD_MULTI
DFBResult ret;
CoreLayer *layer = dfb_layer_at( DLID_PRIMARY );
CoreLayerContext *context;
/* Get primary (shared) context. */
ret = <API key>( layer,
false, &context );
if (ret)
return false;
/* Activate the context. */
<API key>( layer, context );
/* Release the context. */
<API key>( context );
#else
kill( 0, SIGINT );
#endif
return true;
}
break;
default:
break;
}
}
return false;
}
|
package org.orbeon.oxf.xforms.analysis.model
import org.dom4j.{Document, Element, QName}
import org.orbeon.oxf.common.{ValidationException, Version}
import org.orbeon.oxf.http.Credentials
import org.orbeon.oxf.processor.ProcessorImpl
import org.orbeon.oxf.util.ScalaUtils.{CodePointsOps, stringOptionToSet}
import org.orbeon.oxf.util.{Logging, NetUtils, XPath}
import org.orbeon.oxf.xforms.XFormsConstants._
import org.orbeon.oxf.xforms.analysis.controls.ComponentControl
import org.orbeon.oxf.xforms.analysis.{ElementAnalysis, <API key>, StaticStateContext}
import org.orbeon.oxf.xforms.model.InstanceDataOps
import org.orbeon.oxf.xforms.xbl.Scope
import org.orbeon.oxf.xml.dom4j.{Dom4jUtils, <API key>}
import org.orbeon.oxf.xml.{Dom4j, TransformerUtils}
import org.orbeon.saxon.dom4j.{DocumentWrapper, <API key>}
import org.orbeon.saxon.om.DocumentInfo
import scala.collection.JavaConverters._
/**
* Static analysis of an XForms instance.
*/
class Instance(
staticStateContext : StaticStateContext,
element : Element,
parent : Option[ElementAnalysis],
preceding : Option[ElementAnalysis],
scope : Scope
) extends <API key>(
staticStateContext,
element,
parent,
preceding,
scope
) with InstanceMetadata with Logging {
def <API key> = part.isExposeXPathTypes
override def <API key> =
new <API key>(
locationData,
Some("processing XForms instance"),
List("id" → staticId),
Option(element)
)
// Get constant inline content from AbstractBinding if possible, otherwise extract from element.
// Doing so allows for sharing of constant instances globally, among uses of an AbstractBinding and among multiple
// instances of a given form. This is useful in particular for component i18n resource instances.
def inlineContent = {
// An instance within xf:implementation has a ComponentControl grandparent
def <API key> =
if (readonly && useInlineContent)
parent.get.parent collect { case component: ComponentControl ⇒ component }
else
None
<API key> map { component ⇒
val modelIndex = ElementAnalysis.<API key>(parent.get) count (_.localName == "model")
val instanceIndex = ElementAnalysis.<API key>(this) count (_.localName == "instance")
debug("getting readonly inline instance from abstract binding", Seq(
"model id" → parent.get.staticId,
"instance id" → staticId,
"scope id" → component.binding.innerScope.scopeId,
"binding name" → component.binding.abstractBinding.debugBindingName,
"model index" → modelIndex.toString,
"instance index" → instanceIndex.toString))
// Delegate to AbstractBinding
component.binding.abstractBinding.constantInstances((modelIndex, instanceIndex))
} getOrElse
<API key>
}
}
// Used to gather instance metadata from AbstractBinding
class ThrowawayInstance(val element: Element) extends InstanceMetadata {
def <API key> = ElementAnalysis.createLocationData(element)
def <API key> = false
def inlineContent = <API key>
}
// Separate trait that can also be used by AbstractBinding to extract instance metadata
trait InstanceMetadata {
def element: Element
def <API key>: Boolean
def <API key>: <API key>
import ElementAnalysis._
import Instance._
val readonly = element.attributeValue(<API key>) == "true"
val cache = Version.instance.isPEFeatureEnabled(element.attributeValue(XXFORMS_CACHE_QNAME) == "true", "cached XForms instance")
val timeToLive = Instance.timeToLiveOrDefault(element)
val handleXInclude = false
// lazy because depends on property, which depends on top-level model being set in <API key>!
lazy val exposeXPathTypes =
Option(element.attributeValue(<API key>)) map
(_ == "true") getOrElse
! readonly && <API key>
val (indexIds, indexClasses) = {
val tokens = attSet(element, XXFORMS_INDEX_QNAME)
(tokens("id"), tokens("class"))
}
private val validation = element.attributeValue(<API key>)
def isLaxValidation = (validation eq null) || validation == "lax"
def isStrictValidation = validation == "strict"
def isSchemaValidation = isLaxValidation || isStrictValidation
val credentialsOrNull = {
// NOTE: AVTs not supported because XPath expressions in those could access instances that haven't been loaded
def username = element.attributeValue(<API key>)
def password = element.attributeValue(<API key>)
def preemptiveAuth = element.attributeValue(XXFORMS_PREEMPTIVE_<API key>)
def domain = element.attributeValue(<API key>)
Option(username) map (Credentials(_, password, preemptiveAuth, domain)) orNull
}
val <API key> = stringOptionToSet(Option(element.attributeValue(<API key>)))
// Inline root element if any
private val root = Dom4j.elements(element) headOption
private def hasInlineContent = root.isDefined
// Create inline instance document if any
def inlineContent: DocumentInfo
// Extract the inline content into a new document (mutable or not)
protected def <API key> =
extractDocument(root.get, <API key>, readonly, exposeXPathTypes, removeInstanceData = false)
// Don't allow more than one child element
if (Dom4j.elements(element).size > 1)
throw new ValidationException("xf:instance must contain at most one child element", <API key>)
private def getAttributeEncode(qName: QName) =
Option(element.attributeValue(qName)) map (att ⇒ NetUtils.encodeHRRI(att.trimAllToEmpty, true))
private def src = getAttributeEncode(SRC_QNAME)
private def resource = getAttributeEncode(RESOURCE_QNAME)
// @src always wins, @resource always loses
val useInlineContent = src.isEmpty && hasInlineContent
val useExternalContent = src.isDefined || ! hasInlineContent && resource.isDefined
val (instanceSource, dependencyURL) =
(if (useInlineContent) None else src orElse resource) match {
case someSource @ Some(source) if ProcessorImpl.<API key>(source) ⇒
someSource → None // input:* doesn't add a URL dependency, but is handled by the pipeline engine
case someSource @ Some(_) ⇒
someSource → someSource
case _ ⇒
None → None
}
// Don't allow a blank src attribute
if (useExternalContent && instanceSource.contains(""))
throw new ValidationException("xf:instance must not specify a blank URL", <API key>)
}
object Instance {
def timeToLiveOrDefault(element: Element) = {
val timeToLiveValue = element.attributeValue(<API key>)
Option(timeToLiveValue) map (_.toLong) getOrElse -1L
}
// Extract the document starting at the given root element
// This always creates a copy of the original sub-tree
// @readonly if true, the document returned is a compact TinyTree, otherwise a DocumentWrapper
// @exposeXPathTypes if true, use a <API key>
def extractDocument(
element : Element,
<API key> : Set[String],
readonly : Boolean,
exposeXPathTypes : Boolean,
removeInstanceData : Boolean
): DocumentInfo = {
require(! (readonly && exposeXPathTypes)) // we can't expose types on readonly instances at the moment
// Extract a document and adjust namespaces if requested
// NOTE: Should implement exactly as per XSLT 2.0
// NOTE: Should implement namespace fixup, the code below can break serialization
def extractDocument =
<API key> match {
case prefixes if prefixes("
// Special #all
Dom4jUtils.<API key>(element)
case prefixes if prefixes.nonEmpty ⇒
// List of prefixes
Dom4jUtils.<API key>(element, prefixes.asJava)
case _ ⇒
// No exclusion
Dom4jUtils.<API key>(element)
}
if (readonly)
TransformerUtils.dom4jToTinyTree(XPath.GlobalConfiguration, extractDocument, false)
else
wrapDocument(
if (removeInstanceData)
InstanceDataOps.removeRecursively(extractDocument)
else
extractDocument,
exposeXPathTypes
)
}
def wrapDocument(document: Document, exposeXPathTypes: Boolean): DocumentWrapper =
if (exposeXPathTypes)
new <API key>(
Dom4jUtils.normalizeTextNodes(document).asInstanceOf[Document],
null,
XPath.GlobalConfiguration
)
else
new DocumentWrapper(
Dom4jUtils.normalizeTextNodes(document).asInstanceOf[Document],
null,
XPath.GlobalConfiguration
)
}
|
#ifndef EPubCaseElement_h
#define EPubCaseElement_h
#include "epubElement.h"
namespace WebCore {
class EPubCaseElement : public epubElement {
public:
static PassRefPtr<EPubCaseElement> create(const QualifiedName&, Document*);
void <API key>();
private:
EPubCaseElement(const QualifiedName&, Document*);
};
} // namespace WebCore
#endif // EPubCaseElement_h
|
#include "qquickrectangle_p.h"
#include "qquickrectangle_p_p.h"
#include <QtQuick/private/qsgcontext_p.h>
#include <private/<API key>.h>
#include <QtGui/qpixmapcache.h>
#include <QtCore/qstringbuilder.h>
#include <QtCore/qmath.h>
#include <QtCore/qmetaobject.h>
QT_BEGIN_NAMESPACE
// XXX todo - should we change rectangle to draw entirely within its width/height?
/*!
\internal
\class QQuickPen
\brief For specifying a pen used for drawing rectangle borders on a QQuickView
By default, the pen is invalid and nothing is drawn. You must either set a color (then the default
width is 1) or a width (then the default color is black).
A width of 1 indicates is a single-pixel line on the border of the item being painted.
Example:
\qml
Rectangle {
border.width: 2
border.color: "red"
}
\endqml
*/
QQuickPen::QQuickPen(QObject *parent)
: QObject(parent)
, m_width(1)
, m_color("#000000")
, m_aligned(true)
, m_valid(false)
{
}
qreal QQuickPen::width() const
{
return m_width;
}
void QQuickPen::setWidth(qreal w)
{
if (m_width == w && m_valid)
return;
m_width = w;
m_valid = m_color.alpha() && (qRound(m_width) >= 1 || (!m_aligned && m_width > 0));
emit penChanged();
}
QColor QQuickPen::color() const
{
return m_color;
}
void QQuickPen::setColor(const QColor &c)
{
m_color = c;
m_valid = m_color.alpha() && (qRound(m_width) >= 1 || (!m_aligned && m_width > 0));
emit penChanged();
}
bool QQuickPen::pixelAligned() const
{
return m_aligned;
}
void QQuickPen::setPixelAligned(bool aligned)
{
if (aligned == m_aligned)
return;
m_aligned = aligned;
m_valid = m_color.alpha() && (qRound(m_width) >= 1 || (!m_aligned && m_width > 0));
emit penChanged();
}
bool QQuickPen::isValid() const
{
return m_valid;
}
/*!
\qmltype GradientStop
\instantiates QQuickGradientStop
\inqmlmodule QtQuick
\ingroup <API key>
\brief Defines the color at a position in a Gradient
\sa Gradient
*/
/*!
\qmlproperty real QtQuick::GradientStop::position
\qmlproperty color QtQuick::GradientStop::color
The position and color properties describe the color used at a given
position in a gradient, as represented by a gradient stop.
The default position is 0.0; the default color is black.
\sa Gradient
*/
QQuickGradientStop::QQuickGradientStop(QObject *parent)
: QObject(parent)
{
}
qreal QQuickGradientStop::position() const
{
return m_position;
}
void QQuickGradientStop::setPosition(qreal position)
{
m_position = position; updateGradient();
}
QColor QQuickGradientStop::color() const
{
return m_color;
}
void QQuickGradientStop::setColor(const QColor &color)
{
m_color = color; updateGradient();
}
void QQuickGradientStop::updateGradient()
{
if (QQuickGradient *grad = qobject_cast<QQuickGradient*>(parent()))
grad->doUpdate();
}
/*!
\qmltype Gradient
\instantiates QQuickGradient
\inqmlmodule QtQuick
\ingroup <API key>
\brief Defines a gradient fill
A gradient is defined by two or more colors, which will be blended seamlessly.
The colors are specified as a set of GradientStop child items, each of
which defines a position on the gradient from 0.0 to 1.0 and a color.
The position of each GradientStop is defined by setting its
\l{GradientStop::}{position} property; its color is defined using its
\l{GradientStop::}{color} property.
A gradient without any gradient stops is rendered as a solid white fill.
Note that this item is not a visual representation of a gradient. To display a
gradient, use a visual item (like \l Rectangle) which supports the use
of gradients.
\section1 Example Usage
\div {class="float-right"}
\inlineimage qml-gradient.png
\enddiv
The following example declares a \l Rectangle item with a gradient starting
with red, blending to yellow at one third of the height of the rectangle,
and ending with green:
\snippet qml/gradient.qml code
\clearfloat
\section1 Performance and Limitations
Calculating gradients can be computationally expensive compared to the use
of solid color fills or images. Consider using gradients for static items
in a user interface.
In Qt 5.0, only vertical, linear gradients can be applied to items. If you
need to apply different orientations of gradients, a combination of rotation
and clipping will need to be applied to the relevant items. This can
introduce additional performance requirements for your application.
The use of animations involving gradient stops may not give the desired
result. An alternative way to animate gradients is to use pre-generated
images or SVG drawings containing gradients.
\sa GradientStop
*/
/*!
\qmlproperty list<GradientStop> QtQuick::Gradient::stops
\default
This property holds the gradient stops describing the gradient.
By default, this property contains an empty list.
To set the gradient stops, define them as children of the Gradient.
*/
QQuickGradient::QQuickGradient(QObject *parent)
: QObject(parent)
{
}
QQuickGradient::~QQuickGradient()
{
}
QQmlListProperty<QQuickGradientStop> QQuickGradient::stops()
{
return QQmlListProperty<QQuickGradientStop>(this, m_stops);
}
QGradientStops QQuickGradient::gradientStops() const
{
QGradientStops stops;
for (int i = 0; i < m_stops.size(); ++i){
int j = 0;
while (j < stops.size() && stops.at(j).first < m_stops[i]->position())
j++;
stops.insert(j, QGradientStop(m_stops.at(i)->position(), m_stops.at(i)->color()));
}
return stops;
}
void QQuickGradient::doUpdate()
{
emit updated();
}
int <API key>::doUpdateSlotIdx = -1;
/*!
\qmltype Rectangle
\instantiates QQuickRectangle
\inqmlmodule QtQuick
\inherits Item
\ingroup qtquick-visual
\brief Paints a filled rectangle with an optional border
Rectangle items are used to fill areas with solid color or gradients, and/or
to provide a rectangular border.
\section1 Appearance
Each Rectangle item is painted using either a solid fill color, specified using
the \l color property, or a gradient, defined using a Gradient type and set
using the \l gradient property. If both a color and a gradient are specified,
the gradient is used.
You can add an optional border to a rectangle with its own color and thickness
by setting the \l border.color and \l border.width properties. Set the color
to "transparent" to paint a border without a fill color.
You can also create rounded rectangles using the \l radius property. Since this
introduces curved edges to the corners of a rectangle, it may be appropriate to
set the \l Item::antialiasing property to improve its appearance.
\section1 Example Usage
\div {class="float-right"}
\inlineimage declarative-rect.png
\enddiv
The following example shows the effects of some of the common properties on a
Rectangle item, which in this case is used to create a square:
\snippet qml/rectangle/rectangle.qml document
\clearfloat
\section1 Performance
Using the \l Item::antialiasing property improves the appearance of a rounded rectangle at
the cost of rendering performance. You should consider unsetting this property
for rectangles in motion, and only set it when they are stationary.
\sa Image
*/
QQuickRectangle::QQuickRectangle(QQuickItem *parent)
: QQuickItem(*(new <API key>), parent)
{
setFlag(ItemHasContents);
}
void QQuickRectangle::doUpdate()
{
update();
}
/*!
\qmlproperty bool QtQuick::Rectangle::antialiasing
Used to decide if the Rectangle should use antialiasing or not.
\l {Antialiasing} provides information on the performance implications
of this property.
The default is true for Rectangles with a radius, and false otherwise.
*/
/*!
\qmlpropertygroup QtQuick::Rectangle::border
\qmlproperty int QtQuick::Rectangle::border.width
\qmlproperty color QtQuick::Rectangle::border.color
The width and color used to draw the border of the rectangle.
A width of 1 creates a thin line. For no line, use a width of 0 or a transparent color.
\note The width of the rectangle's border does not affect the geometry of the
rectangle itself or its position relative to other items if anchors are used.
The border is rendered within the rectangle's boundaries.
*/
QQuickPen *QQuickRectangle::border()
{
Q_D(QQuickRectangle);
return d->getPen();
}
/*!
\qmlproperty Gradient QtQuick::Rectangle::gradient
The gradient to use to fill the rectangle.
This property allows for the construction of simple vertical gradients.
Other gradients may by formed by adding rotation to the rectangle.
\div {class="float-left"}
\inlineimage <API key>.png
\enddiv
\snippet qml/rectangle/rectangle-gradient.qml rectangles
\clearfloat
If both a gradient and a color are specified, the gradient will be used.
\sa Gradient, color
*/
QQuickGradient *QQuickRectangle::gradient() const
{
Q_D(const QQuickRectangle);
return d->gradient;
}
void QQuickRectangle::setGradient(QQuickGradient *gradient)
{
Q_D(QQuickRectangle);
if (d->gradient == gradient)
return;
static int updatedSignalIdx = -1;
if (updatedSignalIdx < 0)
updatedSignalIdx = QMetaMethod::fromSignal(&QQuickGradient::updated).methodIndex();
if (d->doUpdateSlotIdx < 0)
d->doUpdateSlotIdx = QQuickRectangle::staticMetaObject.indexOfSlot("doUpdate()");
if (d->gradient)
QMetaObject::disconnect(d->gradient, updatedSignalIdx, this, d->doUpdateSlotIdx);
d->gradient = gradient;
if (d->gradient)
QMetaObject::connect(d->gradient, updatedSignalIdx, this, d->doUpdateSlotIdx);
update();
}
void QQuickRectangle::resetGradient()
{
setGradient(0);
}
/*!
\qmlproperty real QtQuick::Rectangle::radius
This property holds the corner radius used to draw a rounded rectangle.
If radius is non-zero, the rectangle will be painted as a rounded rectangle, otherwise it will be
painted as a normal rectangle. The same radius is used by all 4 corners; there is currently
no way to specify different radii for different corners.
*/
qreal QQuickRectangle::radius() const
{
Q_D(const QQuickRectangle);
return d->radius;
}
void QQuickRectangle::setRadius(qreal radius)
{
Q_D(QQuickRectangle);
if (d->radius == radius)
return;
d->radius = radius;
d-><API key>(radius != 0.0);
update();
emit radiusChanged();
}
/*!
\qmlproperty color QtQuick::Rectangle::color
This property holds the color used to fill the rectangle.
The default color is white.
\div {class="float-right"}
\inlineimage rect-color.png
\enddiv
The following example shows rectangles with colors specified
using hexadecimal and named color notation:
\snippet qml/rectangle/rectangle-colors.qml rectangles
\clearfloat
If both a gradient and a color are specified, the gradient will be used.
\sa gradient
*/
QColor QQuickRectangle::color() const
{
Q_D(const QQuickRectangle);
return d->color;
}
void QQuickRectangle::setColor(const QColor &c)
{
Q_D(QQuickRectangle);
if (d->color == c)
return;
d->color = c;
update();
emit colorChanged();
}
QSGNode *QQuickRectangle::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)
{
Q_UNUSED(data);
Q_D(QQuickRectangle);
if (width() <= 0 || height() <= 0
|| (d->color.alpha() == 0 && (!d->pen || d->pen->width() == 0 || d->pen->color().alpha() == 0))) {
delete oldNode;
return 0;
}
QSGRectangleNode *rectangle = static_cast<QSGRectangleNode *>(oldNode);
if (!rectangle) rectangle = d->sceneGraphContext()->createRectangleNode();
rectangle->setRect(QRectF(0, 0, width(), height()));
rectangle->setColor(d->color);
if (d->pen && d->pen->isValid()) {
rectangle->setPenColor(d->pen->color());
rectangle->setPenWidth(d->pen->width());
rectangle->setAligned(d->pen->pixelAligned());
} else {
rectangle->setPenWidth(0);
}
rectangle->setRadius(d->radius);
rectangle->setAntialiasing(antialiasing());
QGradientStops stops;
if (d->gradient) {
stops = d->gradient->gradientStops();
}
rectangle->setGradientStops(stops);
rectangle->update();
return rectangle;
}
QT_END_NAMESPACE
|
package org.jboss.as.test.integration.management.cli;
import java.io.File;
import java.net.URL;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.<API key>;
import javax.xml.transform.dom.DOMSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import org.jboss.as.test.shared.<API key>;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.w3c.dom.Document;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
/**
*
* @author Dominik Pospisil <dpospisi@redhat.com>
*/
public class <API key> {
@Test
public void <API key>() throws Exception {
<API key> factory = <API key>.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder parser = factory.newDocumentBuilder();
final String jbossDist = <API key>.getSystemProperty("jboss.dist");
Document document = parser.parse(new File(jbossDist, "bin/jboss-cli.xml"));
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.<API key>);
schemaFactory.setErrorHandler(new ErrorHandlerImpl());
//schemaFactory.setResourceResolver(new XMLResourceResolver());
Schema schema = schemaFactory.newSchema(resourceToURL("schema/wildfly-cli_3_4.xsd"));
Validator validator = schema.newValidator();
validator.validate(new DOMSource(document));
}
protected static final class ErrorHandlerImpl implements ErrorHandler {
@Override
public void error(SAXParseException e) throws SAXException {
fail(formatMessage(e));
}
@Override
public void fatalError(SAXParseException e) throws SAXException {
fail(formatMessage(e));
}
@Override
public void warning(SAXParseException e) throws SAXException {
System.out.println(formatMessage(e));
}
private String formatMessage(SAXParseException e) {
StringBuffer sb = new StringBuffer();
sb.append(e.getLineNumber()).append(':').append(e.getColumnNumber());
if (e.getPublicId() != null)
sb.append(" publicId='").append(e.getPublicId()).append('\'');
if (e.getSystemId() != null)
sb.append(" systemId='").append(e.getSystemId()).append('\'');
sb.append(' ').append(e.getLocalizedMessage());
sb.append(" a possible cause may be that a subsystem is not using the most up to date schema.");
return sb.toString();
}
}
private URL resourceToURL(final String name) {
final ClassLoader classLoader = getClass().getClassLoader();
final URL resource = classLoader.getResource(name);
assertNotNull("Can't locate resource " + name + " on " + classLoader, resource);
return resource;
}
}
|
/* baskcground color */
.member-menu-top .profile-image, .member-menu-logged ul, .flatBoard .login-wrap, .m-element .notice-list li .notice-text, .m-imagenews .info span.category, .<API key>, .m-ranking .rank-num
{background-color: #7371b4;} /* @mCol */
.btDark, .flatMember .btSubmit, .flatBoard .btSubmit, .login-body .btLogin, .lang-list
{background-color: #32323f} /* @sCol */
header.main, .main-logo, .login-wrap, .member-header-wrap, .main-image-wrap, .main-normal-image
{background: -webkit-gradient(linear, left top, right top, from(#d17ca6), to(#7371b4)); background: -<API key>(left, #7371b4, #d17ca6);}
.sc header.main{
background-image: url('../images/bgScan_top.png'), -webkit-gradient(linear, left top, right top, from(#d17ca6), to(#7371b4));
background-image: url('../images/bgScan_top.png'), -<API key>(left, #7371b4, #d17ca6);
background-size: auto;
}
.sc .login-wrap, .sc .member-header-wrap, .sc .main-normal-image, .sc .main-logo{
background-image: url('../images/bgScan.png'), -webkit-gradient(linear, left top, right top, from(#d17ca6), to(#7371b4));
background-image: url('../images/bgScan.png'), -<API key>(left, #7371b4, #d17ca6);
background-size: auto;
}
.sc2 header.main{
background-image: url('../images/bgScan2_top.png'), -webkit-gradient(linear, left top, right top, from(#d17ca6), to(#7371b4));
background-image: url('../images/bgScan2_top.png'), -<API key>(left, #7371b4, #d17ca6);
background-size: auto;
}
.sc2 .login-wrap, .sc2 .member-header-wrap, .sc2 .main-normal-image, .sc2 .main-logo{
background-image: url('../images/bgScan2.png'), -webkit-gradient(linear, left top, right top, from(#d17ca6), to(#7371b4));
background-image: url('../images/bgScan2.png'), -<API key>(left, #7371b4, #d17ca6);
background-size: auto;
}
.m-element nav ul, .m-element section h3, .member-header ul
{background: -webkit-gradient(linear, left top, right top, from(#a76385), to(#5e5890)); background: -<API key>(left, #5e5890, #a76385);}
.read-control li:not(.comment-num) a, .read-control li:not(.comment-num) button
{background-color: #d17ca6;}/* g right */
.global-search .btClose, .read-control .num2 span
{background-color: #a76385}/* g right d */
.member-menu-top, .m-imagenews .info span.name
{background-color: #6a63a2}/* g left */
.main-search button
{background-color: #000; opacity: 0.4;}
/* border color */
.member-menu-top a.btLogin
{border-right: 1px solid #5f5990;} /* @mCol_line */
.member-menu-logged li
{border-bottom: 1px solid #6a68a5;} /* @mCol_line */
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="file"]:focus, input[type="password"]:focus, textarea:focus
{border: 1px solid #7371b4;} /* @mCol */
.lang-list:after
{border-color: #32323f transparent} /* @sCol */
.member-header .profile-image
{box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.2);}
.searchinput2
{box-shadow: 0px 0px 0px 8px rgba(0,0,0,0.4);}
.gnb li ul li a.selected
{border-left: 5px solid #7371b4;}
/* font color */
.flatMember em, .read-control li.comment-num .num, .write-form em, .gnb li ul li ul li.selected
{color: #7371b4 !important;} /* @mCol */
.category-list em
{color: #d17ca6;}/* g right */
header.main h1, .global-search .btClose, .member-menu-top a, .member-menu-top .name, .flatMember .btSubmit, .flatBoard .btSubmit, .read-control .num2 span, .m-element .notice-list li .notice-text, .member-top-title, .top-title {color: #FFF;} /* @mCol_l */
.member-menu-logged li a, .social-login h2, .main-search button
{color: #FFF;} /* @mCol_l2 */
.m-list-reply
{color: #344d62;} /* @sCol_l3 */
.login-body .btLogin, .btDark, .lang-list li button
{color: #c7d0dd;} /* @sCol_l */
.m-element nav a, .member-header .member-menu li a
{color: #FFF; opacity: 0.4;} /* @sCol_l2 */
.m-element nav li.active a, .m-element section h3 span, .member-header .member-menu li a.active
{color: #FFF; opacity: 0.8;}
/* etc */
.login-body, .signup-body, .find-body, .flatBoard .origin-body, .flatBoard .message-body
{box-shadow: 0 0 10px rgba(0,0,0,0.2); -moz-box-shadow: 0 0 10px rgba(0,0,0,0.2); -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.2);}
/* pad color */
@media screen and (min-width: 768px){
.leftCol .m-element nav ul, .leftCol .m-element section h3 {background: -webkit-gradient(linear, left top, right top, from(#825f8a), to(#5e5890)); background: -<API key>(left, #5e5890, #825f8a);}
.rightCol .m-element nav ul, .rightCol .m-element section h3 {background: -webkit-gradient(linear, left top, right top, from(#a76385), to(#825f8a)); background: -<API key>(left, #825f8a, #a76385);}
}
/* phone color */
@media screen and (max-width: 767px){
/* board comment */
.comment-control li span {background-color: #8e8cc0; border-bottom: 1px solid #7371b4;} /* mCol_l2 */
.comment-control li span.im {background-color: #7371b4; border-bottom: 1px solid #6a68a5;} /* @mCol_line */
}
|
// The libMesh Finite Element Library.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should have received a copy of the GNU Lesser General Public
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// Local includes
#include "quadrature_clough.h"
#include "quadrature_gauss.h"
namespace libMesh
{
void QClough::init_2D(const ElemType _type,
unsigned int p)
{
#if LIBMESH_DIM > 1
QGauss gauss_rule(2, _order);
gauss_rule.init(TRI6, p);
// 2D quadrature rules
switch (_type)
{
// Triangle quadrature rules
case TRI3:
case TRI6:
{
std::vector<Point> &gausspoints = gauss_rule.get_points();
std::vector<Real> &gaussweights = gauss_rule.get_weights();
unsigned int numgausspts = gausspoints.size();
_points.resize(numgausspts*3);
_weights.resize(numgausspts*3);
for (unsigned int i = 0; i != numgausspts; ++i)
{
_points[3*i](0) = gausspoints[i](0) +
gausspoints[i](1) / 3.;
_points[3*i](1) = gausspoints[i](1) / 3.;
_points[3*i+1](0) = gausspoints[i](1) / 3.;
_points[3*i+1](1) = gausspoints[i](0) +
gausspoints[i](1) / 3.;
_points[3*i+2](0) = 1./3. +
gausspoints[i](0) * 2./3. -
gausspoints[i](1) / 3.;
_points[3*i+2](1) = 1./3. -
gausspoints[i](0) / 3. +
gausspoints[i](1) * 2./3.;
_weights[3*i] = gaussweights[i] / 3.;
_weights[3*i+1] = _weights[3*i];
_weights[3*i+2] = _weights[3*i];
}
return;
}
// Unsupported type
default:
{
libMesh::err << "Element type not supported!:" << _type << std::endl;
libmesh_error();
}
}
libmesh_error();
return;
#endif
}
} // namespace libMesh
|
package org.hibernate.spatial.testing.dialects.h2geodb;
import org.hibernate.spatial.testing.<API key>;
import org.hibernate.spatial.testing.NativeSQLStatement;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.geom.Point;
import org.geolatte.geom.ByteBuffer;
import org.geolatte.geom.codec.Wkb;
import org.geolatte.geom.jts.JTS;
/**
* A Factory class that generates expected {@link org.hibernate.spatial.testing.NativeSQLStatement}s for GeoDB
* version < 0.4. These versions don't support storage of the SRID value with
* the geometry.
*
* @author Jan Boonen, Geodan IT b.v.
*/
@Deprecated //Class no longer used. Remove.
public class <API key> extends <API key> {
public <API key>(<API key> dataSourceUtils) {
super( dataSourceUtils );
}
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, ST_AsEWKB(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, ST_AsText(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>() {
throw new <API key>(
"Method ST_Bounday() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>(Double distance) {
return <API key>(
"select t.id, ST_Buffer(t.geom,?) from GEOMTEST t where ST_SRID(t.geom) = 4326",
new Object[] { distance }
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, ST_Contains(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Contains(t.geom, ST_GeomFromText(?, 4326)) = 1",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
throw new <API key>(
"Method ST_ConvexHull() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, ST_Crosses(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Crosses(t.geom, ST_GeomFromText(?, 4326)) = 1",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
throw new <API key>(
"Method ST_Difference() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>() {
throw new <API key>(
"Method ST_Dimension() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, ST_Disjoint(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Disjoint(t.geom, ST_GeomFromText(?, 4326)) = 1",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>(int epsg) {
throw new <API key>();
}
@Override
protected NativeSQLStatement <API key>(int srid) {
return <API key>( "select t.id, (st_srid(t.geom) = " + srid + ") from GeomTest t where ST_SRID(t.geom) = " + srid );
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, st_distance(t.geom, ST_GeomFromText(?, 4326)) from GeomTest t where ST_SRID(t.geom) = 4326",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, ST_Envelope(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, ST_Equals(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Equals(t.geom, ST_GeomFromText(?, 4326)) = 1",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
throw new <API key>(
"Method ST_MBRIntersects() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
throw new <API key>(
"Method ST_GeomUnion() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, GeometryType(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
throw new <API key>(
"Method ST_Intersection() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, ST_Intersects(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Intersects(t.geom, ST_GeomFromText(?, 4326)) = 1",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, ST_IsEmpty(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, not ST_IsEmpty(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, ST_IsSimple(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, ST_Overlaps(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Overlaps(t.geom, ST_GeomFromText(?, 4326)) = 1",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom,
String matrix) {
throw new <API key>(
"Method ST_Relate() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>(Point geom, double distance) {
String sql = "select t.id, st_dwithin(t.geom, ST_GeomFromText(?, 4326), " + distance + " ) from GeomTest t where st_dwithin(t.geom, ST_GeomFromText(?, 4326), " + distance + ") = 'true' and ST_SRID(t.geom) = 4326";
return <API key>( sql, geom.toText() );
}
/*
* (non-Javadoc)
*
* @seeorg.hibernatespatial.test.<API key>#
* <API key>()
*/
@Override
protected NativeSQLStatement <API key>() {
return <API key>( "select id, ST_SRID(geom) from GEOMTEST" );
}
@Override
protected NativeSQLStatement <API key>(
Geometry geom) {
throw new <API key>(
"Method ST_SymDifference() is not implemented in the current version of GeoDB."
);
}
@Override
protected NativeSQLStatement <API key>(Geometry geom) {
return <API key>(
"select t.id, ST_Touches(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Touches(t.geom, ST_GeomFromText(?, 4326)) = 1",
geom.toText()
);
}
@Override
protected NativeSQLStatement <API key>(
Geometry testPolygon) {
return <API key>(
"select t.id, ST_Within(t.geom, ST_GeomFromText(?, 4326)) from GEOMTEST t where ST_Within(t.geom, ST_GeomFromText(?, 4326)) = 1 and ST_SRID(t.geom) = 4326",
testPolygon.toText()
);
}
@Override
protected Geometry decode(Object o) {
return JTS.to( Wkb.fromWkb( ByteBuffer.from( (byte[]) o ) ) );
}
}
|
/* $Id: glade-databox.c 4 2008-06-22 09:19:11Z rbock $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
#include <glade/glade-init.h>
#include <glade/glade-build.h>
#include <gtkdatabox.h>
#include <gtkdatabox_ruler.h>
/* this macro puts a version check function into the module */
<API key> void
<API key> (void)
{
glade_require ("gtk");
<API key> (GTK_TYPE_DATABOX, <API key>, NULL,
NULL);
<API key> (<API key>, <API key>,
NULL, NULL);
glade_provide ("databox");
}
|
// in all regexp "\" must be replaced by "\\"
var datas= {
"default": { // the name of this definition group. It's posisble to have different rules inside the same definition file
"REGEXP": { "before_word": "[^a-zA-Z0-9_]|^"
,"<API key>": "[a-zA-Z0-9_]+"
,"<API key>": "[^a-zA-Z0-9_]|$"
,"prefix_separator": "\\.|->"
}
,"CASE_SENSITIVE": true
,"MAX_TEXT_LENGTH": 100 // the length of the text being analyzed before the cursor position
,"KEYWORDS": [
// 0 : the keyword the user is typing
// 1 : the string inserted in code ("{_@_}" being the new position of the cursor)
// 2 : the needed prefix
// 3 : the text the appear in the suggestion box (if empty, the string to insert will be displayed
['Array', 'Array()', '', 'alert( String message )']
,['alert', 'alert({_@_})', '', 'alert(message)']
,['ascrollTo', 'scrollTo({_@_})', '', 'scrollTo(x,y)']
,['alert', 'alert({_@_},bouh);', '', 'alert(message, message2)']
,['aclose', 'close({_@_})', '', 'alert(message)']
,['aconfirm', 'confirm({_@_})', '', 'alert(message)']
,['aonfocus', 'onfocus', '', '']
,['aonerror', 'onerror', '', 'blabla']
,['aonerror', 'onerror', '', '']
,['window', '', '', '']
,['location', 'location', 'window', '']
,['document', 'document', 'window', '']
,['href', 'href', 'location', '']
]
}
};
// the second identifier must be the same as the one of the syntax coloring definition file
<API key>.<API key>( datas, "php" );
|
/* Test driver for thbrk
*/
#define MAXLINELENGTH 1000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <thai/thbrk.h>
/* run with "-i" argument to get the interactive version
otherwise it will run the self test and exit */
int main (int argc, char* argv[])
{
thchar_t str[MAXLINELENGTH];
thchar_t out[MAXLINELENGTH*6+1];
int pos[MAXLINELENGTH];
int outputLength;
int numCut, i;
int interactive = 0;
ThBrk *brk;
if (argc >= 2) {
if (0 == strcmp (argv[1], "-i"))
interactive = 1;
}
brk = th_brk_new (NULL);
if (!brk) {
printf ("Unable to create word breaker!\n");
exit (-1);
}
if (interactive) {
while (!feof (stdin)) {
printf ("Please enter thai words/sentences: ");
if (!fgets ((char *)str, MAXLINELENGTH-1, stdin)) {
numCut = th_brk_find_breaks (brk, str, pos, MAXLINELENGTH);
printf ("Total %d cut points.", numCut);
if (numCut > 0) {
printf ("Cut points list: %d", pos[0]);
for (i = 1; i < numCut; i++) {
printf(", %d", pos[i]);
}
}
printf("\n");
outputLength = <API key> (brk, str, out, sizeof out,
"<WBR>");
printf ("Output string length is %d\n", outputLength-1); /* the penultimate is \n */
printf ("Output string is %s", out);
printf("***********************************************************************\n");
}
}
} else {
strcpy ((char *)str, "ÊÇÑÊ´Õ¤ÃѺ ¡Í.ÃÁ¹. ¹Õèà»ç¹¡Ò÷´ÊͺµÑÇàͧ");
printf ("Testing with string: %s\n", str);
numCut = th_brk_find_breaks (brk, str, pos, MAXLINELENGTH);
printf ("Total %d cut points.", numCut);
if (numCut != 7) {
printf("Error! should be 7.. test th_brk_find_breaks() failed...\n");
exit (-1);
}
printf("Cut points list: %d", pos[0]);
for (i = 1; i < numCut; i++) {
printf(", %d", pos[i]);
}
printf("\n");
outputLength = <API key> (brk, str, out, sizeof out, "<WBR>");
printf ("Output string is %s\n", out);
printf ("Output string length is %d\n", outputLength);
if (outputLength != 75) {
printf ("Error! should be 75.. test <API key>() failed...\n");
exit (-1);
}
printf ("*** End of thbrk self test ******\n");
}
th_brk_delete (brk);
return 0;
}
|
# This file is part of the GOsa framework.
import pkg_resources
from gosa.common.components import PluginRegistry
from gosa.common.utils import N_
from gosa.common.error import GosaErrorHandler as C
# Register the errors handled by us
C.register_codes(dict(
BACKEND_NOT_FOUND=N_("Backend '%(topic)s' not found"),
))
class <API key>(object):
instance = None
backends = {}
uuidAttr = "entryUUID"
__index = None
def __init__(self):
# Load available backends
for entry in pkg_resources.iter_entry_points("gosa.object.backend"):
clazz = entry.load()
<API key>.backends[clazz.__name__] = clazz()
def dn2uuid(self, backend, dn, from_db_only=False):
uuid = <API key>.backends[backend].dn2uuid(dn)
if uuid is None and from_db_only is True:
# fallback to db
if self.__index is None:
self.__index = PluginRegistry.getInstance("ObjectIndex")
res = self.__index.search({'dn': dn}, {'uuid': 1})
if len(res) == 1:
uuid = res[0]['_uuid']
return uuid
def uuid2dn(self, backend, uuid, from_db_only=False):
dn = <API key>.backends[backend].uuid2dn(uuid)
if dn is None and from_db_only is True:
# fallback to db
if self.__index is None:
self.__index = PluginRegistry.getInstance("ObjectIndex")
res = self.__index.search({'uuid': uuid}, {'dn': 1})
if len(res) == 1:
dn = res[0]['dn']
return dn
def get_timestamps(self, backend, dn):
return <API key>.backends[backend].get_timestamps(dn)
@staticmethod
def getInstance():
if not <API key>.instance:
<API key>.instance = <API key>()
return <API key>.instance
@staticmethod
def getBackend(name):
if not name in <API key>.backends:
raise ValueError(C.make_error("BACKEND_NOT_FOUND", name))
return <API key>.backends[name]
|
package org.herac.tuxguitar.gui.actions.transport;
import org.eclipse.swt.events.TypedEvent;
import org.herac.tuxguitar.gui.TuxGuitar;
import org.herac.tuxguitar.gui.actions.Action;
/**
* @author julian
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class TransportStopAction extends Action {
public static final String NAME = "action.transport.stop";
public TransportStopAction() {
super(NAME, AUTO_LOCK | AUTO_UNLOCK | AUTO_UPDATE | <API key>);
}
protected int execute(TypedEvent e) {
TuxGuitar.instance().getTransport().stop();
return 0;
}
}
|
<?php
// Only one consumer per queue is allowed.
// Set $queue name to test exclusiveness
include(__DIR__ . '/config.php');
use PhpAmqpLib\Connection\<API key>;
$exchange = '<API key>';
$queue = ''; // if empty let RabbitMQ create a queue name
// set a queue name and run multiple instances
// to test exclusiveness
$consumerTag = 'consumer' . getmypid();
$connection = new <API key>(HOST, PORT, USER, PASS, VHOST);
$channel = $connection->channel();
/*
name: $queue // should be unique in fanout exchange. Let RabbitMQ create
// a queue name for us
passive: false // don't check if a queue with the same name exists
durable: false // the queue will not survive server restarts
exclusive: true // the queue can not be accessed by other channels
auto_delete: true //the queue will be deleted once the channel is closed.
*/
list($queueName, ,) = $channel->queue_declare($queue, false, false, true, true);
/*
name: $exchange
type: direct
passive: false // don't check if a exchange with the same name exists
durable: false // the exchange will not survive server restarts
auto_delete: true //the exchange will be deleted once the channel is closed.
*/
$channel->exchange_declare($exchange, 'fanout', false, false, true);
$channel->queue_bind($queueName, $exchange);
/**
* @param \PhpAmqpLib\Message\AMQPMessage $message
*/
function process_message($message)
{
echo "\n
echo $message->body;
echo "\n
$message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag']);
// Send a message with the string "quit" to cancel the consumer.
if ($message->body === 'quit') {
$message->delivery_info['channel']->basic_cancel($message->delivery_info['consumer_tag']);
}
}
/*
queue: Queue from where to get the messages
consumer_tag: Consumer identifier
no_local: Don't receive messages published by this consumer.
no_ack: Tells the server if the consumer will acknowledge the messages.
exclusive: Request exclusive consumer access, meaning only this consumer can access the queue
nowait: don't wait for a server response. In case of error the server will raise a channel
exception
callback: A PHP Callback
*/
$channel->basic_consume($queueName, $consumerTag, false, false, true, false, 'process_message');
/**
* @param \PhpAmqpLib\Channel\AMQPChannel $channel
* @param \PhpAmqpLib\Connection\AbstractConnection $connection
*/
function shutdown($channel, $connection)
{
$channel->close();
$connection->close();
}
<API key>('shutdown', $channel, $connection);
// Loop as long as the channel has callbacks registered
while (count($channel->callbacks)) {
$channel->wait();
}
|
// Math.NET Numerics, part of the Math.NET Project
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
// included in all copies or substantial portions of the Software.
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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.
namespace MathNet.Numerics.Algorithms.LinearAlgebra.Acml
{
using System;
using System.Security;
using Properties;
<summary>
AMD Core Math Library (ACML) linear algebra provider.
</summary>
public partial class <API key>
{
<summary>
Computes the dot product of x and y.
</summary>
<param name="x">The vector x.</param>
<param name="y">The vector y.</param>
<returns>The dot product of x and y.</returns>
<remarks>This is equivalent to the DOT BLAS routine.</remarks>
[<API key>]
public override float DotProduct(float[] x, float[] y)
{
if (y == null)
{
throw new <API key>("y");
}
if (x == null)
{
throw new <API key>("x");
}
if (x.Length != y.Length)
{
throw new ArgumentException(Resources.<API key>);
}
return SafeNativeMethods.s_dot_product(x.Length, x, y);
}
<summary>
Adds a scaled vector to another: <c>result = y + alpha*x</c>.
</summary>
<param name="y">The vector to update.</param>
<param name="alpha">The value to scale <paramref name="x"/> by.</param>
<param name="x">The vector to add to <paramref name="y"/>.</param>
<param name="result">The result of the addition.</param>
<remarks>This is similar to the AXPY BLAS routine.</remarks>
[<API key>]
public override void <API key>(float[] y, float alpha, float[] x, float[] result)
{
if (y == null)
{
throw new <API key>("y");
}
if (x == null)
{
throw new <API key>("x");
}
if (y.Length != x.Length)
{
throw new ArgumentException(Resources.<API key>);
}
if (!ReferenceEquals(y, result))
{
Array.Copy(y, 0, result, 0, y.Length);
}
if (alpha == 0.0f)
{
return;
}
SafeNativeMethods.s_axpy(y.Length, alpha, x, result);
}
<summary>
Scales an array. Can be used to scale a vector and a matrix.
</summary>
<param name="alpha">The scalar.</param>
<param name="x">The values to scale.</param>
<param name="result">This result of the scaling.</param>
<remarks>This is similar to the SCAL BLAS routine.</remarks>
[<API key>]
public override void ScaleArray(float alpha, float[] x, float[] result)
{
if (x == null)
{
throw new <API key>("x");
}
if (!ReferenceEquals(x, result))
{
Array.Copy(x, 0, result, 0, x.Length);
}
if (alpha == 1.0f)
{
return;
}
SafeNativeMethods.s_scale(x.Length, alpha, result);
}
<summary>
Multiples two matrices. <c>result = x * y</c>
</summary>
<param name="x">The x matrix.</param>
<param name="rowsX">The number of rows in the x matrix.</param>
<param name="columnsX">The number of columns in the x matrix.</param>
<param name="y">The y matrix.</param>
<param name="rowsY">The number of rows in the y matrix.</param>
<param name="columnsY">The number of columns in the y matrix.</param>
<param name="result">Where to store the result of the multiplication.</param>
<remarks>This is a simplified version of the BLAS GEMM routine with alpha
set to 1.0f and beta set to 0.0f, and x and y are not transposed.</remarks>
public override void MatrixMultiply(float[] x, int rowsX, int columnsX, float[] y, int rowsY, int columnsY, float[] result)
{
<API key>(Transpose.DontTranspose, Transpose.DontTranspose, 1.0f, x, rowsX, columnsX, y, rowsY, columnsY, 0.0f, result);
}
<summary>
Multiplies two matrices and updates another with the result. <c>c = alpha*op(a)*op(b) + beta*c</c>
</summary>
<param name="transposeA">How to transpose the <paramref name="a"/> matrix.</param>
<param name="transposeB">How to transpose the <paramref name="b"/> matrix.</param>
<param name="alpha">The value to scale <paramref name="a"/> matrix.</param>
<param name="a">The a matrix.</param>
<param name="rowsA">The number of rows in the <paramref name="a"/> matrix.</param>
<param name="columnsA">The number of columns in the <paramref name="a"/> matrix.</param>
<param name="b">The b matrix</param>
<param name="rowsB">The number of rows in the <paramref name="b"/> matrix.</param>
<param name="columnsB">The number of columns in the <paramref name="b"/> matrix.</param>
<param name="beta">The value to scale the <paramref name="c"/> matrix.</param>
<param name="c">The c matrix.</param>
[<API key>]
public override void <API key>(Transpose transposeA, Transpose transposeB, float alpha, float[] a, int rowsA, int columnsA, float[] b, int rowsB, int columnsB, float beta, float[] c)
{
if (a == null)
{
throw new <API key>("a");
}
if (b == null)
{
throw new <API key>("b");
}
if (c == null)
{
throw new <API key>("c");
}
var m = transposeA == Transpose.DontTranspose ? rowsA : columnsA;
var n = transposeB == Transpose.DontTranspose ? columnsB : rowsB;
var k = transposeA == Transpose.DontTranspose ? columnsA : rowsA;
var l = transposeB == Transpose.DontTranspose ? rowsB : columnsB;
if (c.Length != m * n)
{
throw new ArgumentException(Resources.<API key>);
}
if (k != l)
{
throw new ArgumentException(Resources.<API key>);
}
SafeNativeMethods.s_matrix_multiply(transposeA, transposeB, m, n, k, alpha, a, b, beta, c);
}
<summary>
Computes the LUP factorization of A. P*A = L*U.
</summary>
<param name="data">An <paramref name="order"/> by <paramref name="order"/> matrix. The matrix is overwritten with the
the LU factorization on exit. The lower triangular factor L is stored in under the diagonal of <paramref name="data"/> (the diagonal is always 1.0f
for the L factor). The upper triangular factor U is stored on and above the diagonal of <paramref name="data"/>.</param>
<param name="order">The order of the square matrix <paramref name="data"/>.</param>
<param name="ipiv">On exit, it contains the pivot indices. The size of the array must be <paramref name="order"/>.</param>
<remarks>This is equivalent to the GETRF LAPACK routine.</remarks>
[<API key>]
public override void LUFactor(float[] data, int order, int[] ipiv)
{
if (data == null)
{
throw new <API key>("data");
}
if (ipiv == null)
{
throw new <API key>("ipiv");
}
if (data.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "data");
}
if (ipiv.Length != order)
{
throw new ArgumentException(Resources.<API key>, "ipiv");
}
SafeNativeMethods.s_lu_factor(order, data, ipiv);
}
<summary>
Computes the inverse of matrix using LU factorization.
</summary>
<param name="a">The N by N matrix to invert. Contains the inverse On exit.</param>
<param name="order">The order of the square matrix <paramref name="a"/>.</param>
<remarks>This is equivalent to the GETRF and GETRI LAPACK routines.</remarks>
[<API key>]
public override void LUInverse(float[] a, int order)
{
if (a == null)
{
throw new <API key>("a");
}
if (a.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "a");
}
var work = new float[order];
SafeNativeMethods.s_lu_inverse(order, a, work, work.Length);
}
<summary>
Computes the inverse of a previously factored matrix.
</summary>
<param name="a">The LU factored N by N matrix. Contains the inverse On exit.</param>
<param name="order">The order of the square matrix <paramref name="a"/>.</param>
<param name="ipiv">The pivot indices of <paramref name="a"/>.</param>
<remarks>This is equivalent to the GETRI LAPACK routine.</remarks>
[<API key>]
public override void LUInverseFactored(float[] a, int order, int[] ipiv)
{
if (a == null)
{
throw new <API key>("a");
}
if (ipiv == null)
{
throw new <API key>("ipiv");
}
if (a.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "a");
}
if (ipiv.Length != order)
{
throw new ArgumentException(Resources.<API key>, "ipiv");
}
var work = new float[order];
SafeNativeMethods.<API key>(order, a, ipiv, work, order);
}
<summary>
Computes the inverse of matrix using LU factorization.
</summary>
<param name="a">The N by N matrix to invert. Contains the inverse On exit.</param>
<param name="order">The order of the square matrix <paramref name="a"/>.</param>
<param name="work">The work array. The array must have a length of at least N,
but should be N*blocksize. The blocksize is machine dependent. On exit, work[0] contains the optimal
work size value.</param>
<remarks>This is equivalent to the GETRF and GETRI LAPACK routines.</remarks>
[<API key>]
public override void LUInverse(float[] a, int order, float[] work)
{
if (a == null)
{
throw new <API key>("a");
}
if (a.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "a");
}
if (work == null)
{
throw new <API key>("work");
}
if (work.Length < order)
{
throw new ArgumentException(Resources.WorkArrayTooSmall, "work");
}
SafeNativeMethods.s_lu_inverse(order, a, work, work.Length);
}
<summary>
Computes the inverse of a previously factored matrix.
</summary>
<param name="a">The LU factored N by N matrix. Contains the inverse On exit.</param>
<param name="order">The order of the square matrix <paramref name="a"/>.</param>
<param name="ipiv">The pivot indices of <paramref name="a"/>.</param>
<param name="work">The work array. The array must have a length of at least N,
but should be N*blocksize. The blocksize is machine dependent. On exit, work[0] contains the optimal
work size value.</param>
<remarks>This is equivalent to the GETRI LAPACK routine.</remarks>
[<API key>]
public override void LUInverseFactored(float[] a, int order, int[] ipiv, float[] work)
{
if (a == null)
{
throw new <API key>("a");
}
if (ipiv == null)
{
throw new <API key>("ipiv");
}
if (a.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "a");
}
if (ipiv.Length != order)
{
throw new ArgumentException(Resources.<API key>, "ipiv");
}
if (work == null)
{
throw new <API key>("work");
}
if (work.Length < order)
{
throw new ArgumentException(Resources.WorkArrayTooSmall, "work");
}
SafeNativeMethods.<API key>(order, a, ipiv, work, order);
}
<summary>
Solves A*X=B for X using LU factorization.
</summary>
<param name="columnsOfB">The number of columns of B.</param>
<param name="a">The square matrix A.</param>
<param name="order">The order of the square matrix <paramref name="a"/>.</param>
<param name="b">On entry the B matrix; on exit the X matrix.</param>
<remarks>This is equivalent to the GETRF and GETRS LAPACK routines.</remarks>
[<API key>]
public override void LUSolve(int columnsOfB, float[] a, int order, float[] b)
{
if (a == null)
{
throw new <API key>("a");
}
if (a.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "a");
}
if (b.Length != columnsOfB * order)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (ReferenceEquals(a, b))
{
throw new ArgumentException(Resources.<API key>);
}
SafeNativeMethods.s_lu_solve(order, columnsOfB, a, b);
}
<summary>
Solves A*X=B for X using a previously factored A matrix.
</summary>
<param name="columnsOfB">The number of columns of B.</param>
<param name="a">The factored A matrix.</param>
<param name="order">The order of the square matrix <paramref name="a"/>.</param>
<param name="ipiv">The pivot indices of <paramref name="a"/>.</param>
<param name="b">On entry the B matrix; on exit the X matrix.</param>
<remarks>This is equivalent to the GETRS LAPACK routine.</remarks>
[<API key>]
public override void LUSolveFactored(int columnsOfB, float[] a, int order, int[] ipiv, float[] b)
{
if (a == null)
{
throw new <API key>("a");
}
if (ipiv == null)
{
throw new <API key>("ipiv");
}
if (a.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "a");
}
if (ipiv.Length != order)
{
throw new ArgumentException(Resources.<API key>, "ipiv");
}
if (b.Length != columnsOfB * order)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (ReferenceEquals(a, b))
{
throw new ArgumentException(Resources.<API key>);
}
SafeNativeMethods.s_lu_solve_factored(order, columnsOfB, a, ipiv, b);
}
<summary>
Computes the Cholesky factorization of A.
</summary>
<param name="a">On entry, a square, positive definite matrix. On exit, the matrix is overwritten with the
the Cholesky factorization.</param>
<param name="order">The number of rows or columns in the matrix.</param>
<remarks>This is equivalent to the POTRF LAPACK routine.</remarks>
[<API key>]
public override void CholeskyFactor(float[] a, int order)
{
if (a == null)
{
throw new <API key>("a");
}
if (order < 1)
{
throw new ArgumentException(Resources.<API key>, "order");
}
if (a.Length != order * order)
{
throw new ArgumentException(Resources.<API key>, "a");
}
var info = SafeNativeMethods.s_cholesky_factor(order, a);
if (info > 0)
{
throw new ArgumentException(Resources.<API key>);
}
}
<summary>
Solves A*X=B for X using Cholesky factorization.
</summary>
<param name="a">The square, positive definite matrix A.</param>
<param name="orderA">The number of rows and columns in A.</param>
<param name="b">On entry the B matrix; on exit the X matrix.</param>
<param name="columnsB">The number of columns in the B matrix.</param>
<remarks>This is equivalent to the POTRF add POTRS LAPACK routines.
</remarks>
[<API key>]
public override void CholeskySolve(float[] a, int orderA, float[] b, int columnsB)
{
if (a == null)
{
throw new <API key>("a");
}
if (b == null)
{
throw new <API key>("b");
}
if (b.Length != orderA * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (ReferenceEquals(a, b))
{
throw new ArgumentException(Resources.<API key>);
}
SafeNativeMethods.s_cholesky_solve(orderA, columnsB, a, b);
}
<summary>
Solves A*X=B for X using a previously factored A matrix.
</summary>
<param name="a">The square, positive definite matrix A.</param>
<param name="orderA">The number of rows and columns in A.</param>
<param name="b">On entry the B matrix; on exit the X matrix.</param>
<param name="columnsB">The number of columns in the B matrix.</param>
<remarks>This is equivalent to the POTRS LAPACK routine.</remarks>
[<API key>]
public override void <API key>(float[] a, int orderA, float[] b, int columnsB)
{
if (a == null)
{
throw new <API key>("a");
}
if (b == null)
{
throw new <API key>("b");
}
if (b.Length != orderA * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (ReferenceEquals(a, b))
{
throw new ArgumentException(Resources.<API key>);
}
SafeNativeMethods.<API key>(orderA, columnsB, a, b);
}
<summary>
Computes the QR factorization of A.
</summary>
<param name="r">On entry, it is the M by N A matrix to factor. On exit,
it is overwritten with the R matrix of the QR factorization. </param>
<param name="rowsR">The number of rows in the A matrix.</param>
<param name="columnsR">The number of columns in the A matrix.</param>
<param name="q">On exit, A M by M matrix that holds the Q matrix of the
QR factorization.</param>
<param name="tau">A min(m,n) vector. On exit, contains additional information
to be used by the QR solve routine.</param>
<remarks>This is similar to the GEQRF and ORGQR LAPACK routines.</remarks>
[<API key>]
public override void QRFactor(float[] r, int rowsR, int columnsR, float[] q, float[] tau)
{
if (r == null)
{
throw new <API key>("r");
}
if (q == null)
{
throw new <API key>("q");
}
if (r.Length != rowsR * columnsR)
{
throw new ArgumentException(string.Format(Resources.<API key>, "rowsR * columnsR"), "r");
}
if (tau.Length < Math.Min(rowsR, columnsR))
{
throw new ArgumentException(string.Format(Resources.ArrayTooSmall, "min(m,n)"), "tau");
}
if (q.Length != rowsR * rowsR)
{
throw new ArgumentException(string.Format(Resources.<API key>, "rowsR * rowsR"), "q");
}
var work = new float[columnsR * Control.BlockSize];
SafeNativeMethods.s_qr_factor(rowsR, columnsR, r, tau, q, work, work.Length);
}
<summary>
Computes the QR factorization of A.
</summary>
<param name="r">On entry, it is the M by N A matrix to factor. On exit,
it is overwritten with the R matrix of the QR factorization. </param>
<param name="rowsR">The number of rows in the A matrix.</param>
<param name="columnsR">The number of columns in the A matrix.</param>
<param name="q">On exit, A M by M matrix that holds the Q matrix of the
QR factorization.</param>
<param name="tau">A min(m,n) vector. On exit, contains additional information
to be used by the QR solve routine.</param>
<param name="work">The work array. The array must have a length of at least N,
but should be N*blocksize. The blocksize is machine dependent. On exit, work[0] contains the optimal
work size value.</param>
<remarks>This is similar to the GEQRF and ORGQR LAPACK routines.</remarks>
[<API key>]
public override void QRFactor(float[] r, int rowsR, int columnsR, float[] q, float[] tau, float[] work)
{
if (r == null)
{
throw new <API key>("r");
}
if (q == null)
{
throw new <API key>("q");
}
if (work == null)
{
throw new <API key>("work");
}
if (r.Length != rowsR * columnsR)
{
throw new ArgumentException(string.Format(Resources.<API key>, "rowsR * columnsR"), "r");
}
if (tau.Length < Math.Min(rowsR, columnsR))
{
throw new ArgumentException(string.Format(Resources.ArrayTooSmall, "min(m,n)"), "tau");
}
if (q.Length != rowsR * rowsR)
{
throw new ArgumentException(string.Format(Resources.<API key>, "rowsR * rowsR"), "q");
}
if (work.Length < columnsR * Control.BlockSize)
{
work[0] = columnsR * Control.BlockSize;
throw new ArgumentException(Resources.WorkArrayTooSmall, "work");
}
SafeNativeMethods.s_qr_factor(rowsR, columnsR, r, tau, q, work, work.Length);
}
<summary>
Solves A*X=B for X using QR factorization of A.
</summary>
<param name="a">The A matrix.</param>
<param name="rows">The number of rows in the A matrix.</param>
<param name="columns">The number of columns in the A matrix.</param>
<param name="b">The B matrix.</param>
<param name="columnsB">The number of columns of B.</param>
<param name="x">On exit, the solution matrix.</param>
<remarks>Rows must be greater or equal to columns.</remarks>
public override void QRSolve(float[] a, int rows, int columns, float[] b, int columnsB, float[] x)
{
if (a == null)
{
throw new <API key>("a");
}
if (b == null)
{
throw new <API key>("b");
}
if (x == null)
{
throw new <API key>("x");
}
if (a.Length != rows * columns)
{
throw new ArgumentException(Resources.<API key>, "a");
}
if (b.Length != rows * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (x.Length != columns * columnsB)
{
throw new ArgumentException(Resources.<API key>, "x");
}
if (rows < columns)
{
throw new ArgumentException(Resources.RowsLessThanColumns);
}
var work = new float[columns * Control.BlockSize];
QRSolve(a, rows, columns, b, columnsB, x, work);
}
<summary>
Solves A*X=B for X using QR factorization of A.
</summary>
<param name="a">The A matrix.</param>
<param name="rows">The number of rows in the A matrix.</param>
<param name="columns">The number of columns in the A matrix.</param>
<param name="b">The B matrix.</param>
<param name="columnsB">The number of columns of B.</param>
<param name="x">On exit, the solution matrix.</param>
<param name="work">The work array. The array must have a length of at least N,
but should be N*blocksize. The blocksize is machine dependent. On exit, work[0] contains the optimal
work size value.</param>
<remarks>Rows must be greater or equal to columns.</remarks>
public override void QRSolve(float[] a, int rows, int columns, float[] b, int columnsB, float[] x, float[] work)
{
if (a == null)
{
throw new <API key>("a");
}
if (b == null)
{
throw new <API key>("b");
}
if (x == null)
{
throw new <API key>("x");
}
if (work == null)
{
throw new <API key>("work");
}
if (a.Length != rows * columns)
{
throw new ArgumentException(Resources.<API key>, "a");
}
if (b.Length != rows * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (x.Length != columns * columnsB)
{
throw new ArgumentException(Resources.<API key>, "x");
}
if (rows < columns)
{
throw new ArgumentException(Resources.RowsLessThanColumns);
}
if (work.Length < 1)
{
work[0] = rows * Control.BlockSize;
throw new ArgumentException(Resources.WorkArrayTooSmall, "work");
}
SafeNativeMethods.s_qr_solve(rows, columns, columnsB, a, b, x, work, work.Length);
}
<summary>
Solves A*X=B for X using a previously QR factored matrix.
</summary>
<param name="q">The Q matrix obtained by calling <see cref="QRFactor(float[],int,int,float[],float[])"/>.</param>
<param name="r">The R matrix obtained by calling <see cref="QRFactor(float[],int,int,float[],float[])"/>. </param>
<param name="rowsR">The number of rows in the A matrix.</param>
<param name="columnsR">The number of columns in the A matrix.</param>
<param name="tau">Contains additional information on Q. Only used for the native solver
and can be <c>null</c> for the managed provider.</param>
<param name="b">The B matrix.</param>
<param name="columnsB">The number of columns of B.</param>
<param name="x">On exit, the solution matrix.</param>
<remarks>Rows must be greater or equal to columns.</remarks>
[<API key>]
public override void QRSolveFactored(float[] q, float[] r, int rowsR, int columnsR, float[] tau, float[] b, int columnsB, float[] x)
{
if (r == null)
{
throw new <API key>("r");
}
if (q == null)
{
throw new <API key>("q");
}
if (b == null)
{
throw new <API key>("q");
}
if (x == null)
{
throw new <API key>("q");
}
if (r.Length != rowsR * columnsR)
{
throw new ArgumentException(Resources.<API key>, "r");
}
if (q.Length != rowsR * rowsR)
{
throw new ArgumentException(Resources.<API key>, "q");
}
if (b.Length != rowsR * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (x.Length != columnsR * columnsB)
{
throw new ArgumentException(Resources.<API key>, "x");
}
if (rowsR < columnsR)
{
throw new ArgumentException(Resources.RowsLessThanColumns);
}
var work = new float[columnsR * Control.BlockSize];
QRSolveFactored(q, r, rowsR, columnsR, tau, b, columnsB, x, work);
}
<summary>
Solves A*X=B for X using a previously QR factored matrix.
</summary>
<param name="q">The Q matrix obtained by QR factor. This is only used for the managed provider and can be
<c>null</c> for the native provider. The native provider uses the Q portion stored in the R matrix.</param>
<param name="r">The R matrix obtained by calling <see cref="QRFactor(float[],int,int,float[],float[])"/>. </param>
<param name="rowsR">The number of rows in the A matrix.</param>
<param name="columnsR">The number of columns in the A matrix.</param>
<param name="tau">Contains additional information on Q. Only used for the native solver
and can be <c>null</c> for the managed provider.</param>
<param name="b">On entry the B matrix; on exit the X matrix.</param>
<param name="columnsB">The number of columns of B.</param>
<param name="x">On exit, the solution matrix.</param>
<param name="work">The work array - only used in the native provider. The array must have a length of at least N,
but should be N*blocksize. The blocksize is machine dependent. On exit, work[0] contains the optimal
work size value.</param>
<remarks>Rows must be greater or equal to columns.</remarks>
public override void QRSolveFactored(float[] q, float[] r, int rowsR, int columnsR, float[] tau, float[] b, int columnsB, float[] x, float[] work)
{
if (r == null)
{
throw new <API key>("r");
}
if (q == null)
{
throw new <API key>("q");
}
if (b == null)
{
throw new <API key>("q");
}
if (x == null)
{
throw new <API key>("q");
}
if (work == null)
{
throw new <API key>("work");
}
if (r.Length != rowsR * columnsR)
{
throw new ArgumentException(Resources.<API key>, "r");
}
if (q.Length != rowsR * rowsR)
{
throw new ArgumentException(Resources.<API key>, "q");
}
if (b.Length != rowsR * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (x.Length != columnsR * columnsB)
{
throw new ArgumentException(Resources.<API key>, "x");
}
if (rowsR < columnsR)
{
throw new ArgumentException(Resources.RowsLessThanColumns);
}
if (work.Length < 1)
{
work[0] = rowsR * Control.BlockSize;
throw new ArgumentException(Resources.WorkArrayTooSmall, "work");
}
SafeNativeMethods.s_qr_solve_factored(rowsR, columnsR, columnsB, r, b, tau, x, work, work.Length);
}
<summary>
Computes the singular value decomposition of A.
</summary>
<param name="computeVectors">Compute the singular U and VT vectors or not.</param>
<param name="a">On entry, the M by N matrix to decompose. On exit, A may be overwritten.</param>
<param name="rowsA">The number of rows in the A matrix.</param>
<param name="columnsA">The number of columns in the A matrix.</param>
<param name="s">The singular values of A in ascending value.</param>
<param name="u">If <paramref name="computeVectors"/> is <c>true</c>, on exit U contains the left
singular vectors.</param>
<param name="vt">If <paramref name="computeVectors"/> is <c>true</c>, on exit VT contains the transposed
right singular vectors.</param>
<remarks>This is equivalent to the GESVD LAPACK routine.</remarks>
[<API key>]
public override void <API key>(bool computeVectors, float[] a, int rowsA, int columnsA, float[] s, float[] u, float[] vt)
{
if (a == null)
{
throw new <API key>("a");
}
if (s == null)
{
throw new <API key>("s");
}
if (u == null)
{
throw new <API key>("u");
}
if (vt == null)
{
throw new <API key>("vt");
}
if (u.Length != rowsA * rowsA)
{
throw new ArgumentException(Resources.<API key>, "u");
}
if (vt.Length != columnsA * columnsA)
{
throw new ArgumentException(Resources.<API key>, "vt");
}
if (s.Length != Math.Min(rowsA, columnsA))
{
throw new ArgumentException(Resources.<API key>, "s");
}
var work = new float[Math.Max(((3 * Math.Min(rowsA, columnsA)) + Math.Max(rowsA, columnsA)), 5 * Math.Min(rowsA, columnsA))];
<API key>(computeVectors, a, rowsA, columnsA, s, u, vt, work);
}
<summary>
Solves A*X=B for X using the singular value decomposition of A.
</summary>
<param name="a">On entry, the M by N matrix to decompose.</param>
<param name="rowsA">The number of rows in the A matrix.</param>
<param name="columnsA">The number of columns in the A matrix.</param>
<param name="b">The B matrix.</param>
<param name="columnsB">The number of columns of B.</param>
<param name="x">On exit, the solution matrix.</param>
public override void SvdSolve(float[] a, int rowsA, int columnsA, float[] b, int columnsB, float[] x)
{
if (a == null)
{
throw new <API key>("a");
}
if (b == null)
{
throw new <API key>("b");
}
if (x == null)
{
throw new <API key>("x");
}
if (b.Length != rowsA * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
if (x.Length != columnsA * columnsB)
{
throw new ArgumentException(Resources.<API key>, "b");
}
var work = new float[Math.Max(((3 * Math.Min(rowsA, columnsA)) + Math.Max(rowsA, columnsA)), 5 * Math.Min(rowsA, columnsA))];
var s = new float[Math.Min(rowsA, columnsA)];
var u = new float[rowsA * rowsA];
var vt = new float[columnsA * columnsA];
var clone = new float[a.Length];
a.Copy(clone);
<API key>(true, clone, rowsA, columnsA, s, u, vt, work);
SvdSolveFactored(rowsA, columnsA, s, u, vt, b, columnsB, x);
}
<summary>
Computes the singular value decomposition of A.
</summary>
<param name="computeVectors">Compute the singular U and VT vectors or not.</param>
<param name="a">On entry, the M by N matrix to decompose. On exit, A may be overwritten.</param>
<param name="rowsA">The number of rows in the A matrix.</param>
<param name="columnsA">The number of columns in the A matrix.</param>
<param name="s">The singular values of A in ascending value.</param>
<param name="u">If <paramref name="computeVectors"/> is <c>true</c>, on exit U contains the left
singular vectors.</param>
<param name="vt">If <paramref name="computeVectors"/> is <c>true</c>, on exit VT contains the transposed
right singular vectors.</param>
<param name="work">The work array. For real matrices, the work array should be at least
Max(3*Min(M, N) + Max(M, N), 5*Min(M,N)). For complex matrices, 2*Min(M, N) + Max(M, N).
On exit, work[0] contains the optimal work size value.</param>
<remarks>This is equivalent to the GESVD LAPACK routine.</remarks>
[<API key>]
public override void <API key>(bool computeVectors, float[] a, int rowsA, int columnsA, float[] s, float[] u, float[] vt, float[] work)
{
if (a == null)
{
throw new <API key>("a");
}
if (s == null)
{
throw new <API key>("s");
}
if (u == null)
{
throw new <API key>("u");
}
if (vt == null)
{
throw new <API key>("vt");
}
if (work == null)
{
throw new <API key>("work");
}
if (u.Length != rowsA * rowsA)
{
throw new ArgumentException(Resources.<API key>, "u");
}
if (vt.Length != columnsA * columnsA)
{
throw new ArgumentException(Resources.<API key>, "vt");
}
if (s.Length != Math.Min(rowsA, columnsA))
{
throw new ArgumentException(Resources.<API key>, "s");
}
if (work.Length == 0)
{
throw new ArgumentException(Resources.<API key>, "work");
}
if (work.Length < Math.Max(((3 * Math.Min(rowsA, columnsA)) + Math.Max(rowsA, columnsA)), 5 * Math.Min(rowsA, columnsA)))
{
work[0] = Math.Max((3 * Math.Min(rowsA, columnsA)) + Math.Max(rowsA, columnsA), 5 * Math.Min(rowsA, columnsA));
throw new ArgumentException(Resources.WorkArrayTooSmall, "work");
}
SafeNativeMethods.s_svd_factor(computeVectors, rowsA, columnsA, a, s, u, vt, work, work.Length);
}
}
}
|
import java.io.IOException;
import jade.core.AID;
import java.util.ArrayList;
import java.util.Scanner;
import jade.core.Agent;
public class DutchModel {
public static void main(String[] args) throws IOException {
String option="";
ArrayList<BiderAgent> bidders= new ArrayList<BiderAgent>();
System.out.println("Welcome to Fish Dutch Auction!");
System.out.println("Press 1 to sell a product.");
System.out.println("Press 2 to Bid for a product.");
Scanner scan= new Scanner(System.in);
option= scan.nextLine();
System.out.println(option);
if(option.equals("1"))
{
}
else if(option.equals("2"))
{
Loader bidderxml = new Loader("Bidders.xml");
bidders=bidderxml.loadXmlBidders();
Product p1= new Product("gg",1,"g1",null);
AuctioneerAgent Ag = new AuctioneerAgent(10,1,1200);
SellerAgent s1= new SellerAgent (p1);
AID sel = s1.getSellerAid();
Ag.setSellerAid(sel);
Ag.setup();
s1.setup();
}
else
{
System.out.println("Wrong input... Time Out!");
}
}
}
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_40) on Wed Feb 10 11:30:58 CST 2016 -->
<title>Uses of Class org.hibernate.engine.FetchStrategy (Hibernate JavaDocs)</title>
<meta name="date" content="2016-02-10">
<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.hibernate.engine.FetchStrategy (Hibernate JavaDocs)";
}
}
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/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">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/hibernate/engine/class-use/FetchStrategy.html" target="_top">Frames</a></li>
<li><a href="FetchStrategy.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.hibernate.engine.FetchStrategy" class="title">Uses of Class<br>org.hibernate.engine.FetchStrategy</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/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </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.hibernate.loader.plan.build.internal">org.hibernate.loader.plan.build.internal</a></td>
<td class="colLast">
<div class="block">Contains the internal implementations used for building a metamodel-driven LoadPlan.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.hibernate.loader.plan.build.internal.returns">org.hibernate.loader.plan.build.internal.returns</a></td>
<td class="colLast">
<div class="block">Contains the internal implementations of the building blocks that make up a metamodel-driven LoadPlan.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.hibernate.loader.plan.build.internal.spaces">org.hibernate.loader.plan.build.internal.spaces</a></td>
<td class="colLast">
<div class="block">Contains the internal implementations of query spaces in a metamodel-driven LoadPlan.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.hibernate.loader.plan.build.spi">org.hibernate.loader.plan.build.spi</a></td>
<td class="colLast">
<div class="block">Defines the SPI for building a metamodel-driven LoadPlan</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.hibernate.loader.plan.spi">org.hibernate.loader.plan.spi</a></td>
<td class="colLast">
<div class="block">Defines the SPI for the building blocks that make up a LoadPlan.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.hibernate.persister.walking.internal">org.hibernate.persister.walking.internal</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.hibernate.persister.walking.spi">org.hibernate.persister.walking.spi</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.hibernate.tuple.component">org.hibernate.tuple.component</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.hibernate.tuple.entity">org.hibernate.tuple.entity</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.hibernate.loader.plan.build.internal">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/loader/plan/build/internal/package-summary.html">org.hibernate.loader.plan.build.internal</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../org/hibernate/loader/plan/build/internal/package-summary.html">org.hibernate.loader.plan.build.internal</a> declared as <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected static <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#DEFAULT_EAGER">DEFAULT_EAGER</a></span></code>
<div class="block">The JPA 2.1 SPEC's Entity Graph only defines _WHEN_ to load an attribute, it doesn't define _HOW_ to load it
So I'm here just making an assumption that when it is EAGER, then we use JOIN, and when it is LAZY, then we use SELECT.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#DEFAULT_LAZY">DEFAULT_LAZY</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/loader/plan/build/internal/package-summary.html">org.hibernate.loader.plan.build.internal</a> that return <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code>
<div class="block">If required by this strategy, returns a different <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine"><code>FetchStrategy</code></a> from what is specified
for the given association attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected abstract <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected abstract <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/loader/plan/build/internal/package-summary.html">org.hibernate.loader.plan.build.internal</a> with parameters of type <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code>
<div class="block">If required by this strategy, returns a different <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine"><code>FetchStrategy</code></a> from what is specified
for the given association attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.loader.plan.build.internal.returns">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/loader/plan/build/internal/returns/package-summary.html">org.hibernate.loader.plan.build.internal.returns</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../org/hibernate/loader/plan/build/internal/returns/package-summary.html">org.hibernate.loader.plan.build.internal.returns</a> declared as <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected static <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#FETCH_STRATEGY">FETCH_STRATEGY</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/loader/plan/build/internal/returns/package-summary.html">org.hibernate.loader.plan.build.internal.returns</a> that return <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#getFetchStrategy--">getFetchStrategy</a></span>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#getFetchStrategy--">getFetchStrategy</a></span>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#getFetchStrategy--">getFetchStrategy</a></span>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#getFetchStrategy--">getFetchStrategy</a></span>()</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/loader/plan/build/internal/returns/package-summary.html">org.hibernate.loader.plan.build.internal.returns</a> with parameters of type <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/AnyAttributeFetch.html" title="interface in org.hibernate.loader.plan.spi">AnyAttributeFetch</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/<API key>.html" title="interface in org.hibernate.loader.plan.spi"><API key></a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-org.hibernate.loader.plan.spi.EntityReference-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/loader/plan/spi/EntityReference.html" title="interface in org.hibernate.loader.plan.spi">EntityReference</a> <API key>)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/<API key>.html" title="interface in org.hibernate.loader.plan.spi"><API key></a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/<API key>.html" title="interface in org.hibernate.loader.plan.spi"><API key></a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/EntityFetch.html" title="interface in org.hibernate.loader.plan.spi">EntityFetch</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">EntityReturnImpl.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/EntityReturnImpl.html#<API key>.hibernate.engine.FetchStrategy-org.hibernate.persister.walking.spi.AttributeDefinition-">validateFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/persister/walking/spi/AttributeDefinition.html" title="interface in org.hibernate.persister.walking.spi">AttributeDefinition</a> attributeDefinition)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.engine.FetchStrategy-org.hibernate.persister.walking.spi.AttributeDefinition-">validateFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/persister/walking/spi/AttributeDefinition.html" title="interface in org.hibernate.persister.walking.spi">AttributeDefinition</a> attributeDefinition)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.engine.FetchStrategy-org.hibernate.persister.walking.spi.AttributeDefinition-">validateFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/persister/walking/spi/AttributeDefinition.html" title="interface in org.hibernate.persister.walking.spi">AttributeDefinition</a> attributeDefinition)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.engine.FetchStrategy-org.hibernate.persister.walking.spi.AttributeDefinition-">validateFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/persister/walking/spi/AttributeDefinition.html" title="interface in org.hibernate.persister.walking.spi">AttributeDefinition</a> attributeDefinition)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.engine.FetchStrategy-org.hibernate.persister.walking.spi.AttributeDefinition-">validateFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/persister/walking/spi/AttributeDefinition.html" title="interface in org.hibernate.persister.walking.spi">AttributeDefinition</a> attributeDefinition)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../../../org/hibernate/loader/plan/build/internal/returns/package-summary.html">org.hibernate.loader.plan.build.internal.returns</a> with parameters of type <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.loader.plan.spi.FetchSource-org.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/loader/plan/spi/FetchSource.html" title="interface in org.hibernate.loader.plan.spi">FetchSource</a> fetchSource,
<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> fetchedAttribute,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.loader.plan.build.spi.<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-org.hibernate.loader.plan.build.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html" title="interface in org.hibernate.loader.plan.build.spi"><API key></a> fetchSource,
<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> fetchedAttribute,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html" title="interface in org.hibernate.loader.plan.build.spi"><API key></a> <API key>)</code> </td>
</tr>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/returns/<API key>.html#<API key>.hibernate.loader.plan.build.spi.<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-org.hibernate.loader.plan.build.spi.<API key>-"><API key></a></span>(<a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html" title="interface in org.hibernate.loader.plan.build.spi"><API key></a> fetchSource,
<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> fetchedAttribute,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html" title="interface in org.hibernate.loader.plan.build.spi"><API key></a> entityQuerySpace)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.loader.plan.build.internal.spaces">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/loader/plan/build/internal/spaces/package-summary.html">org.hibernate.loader.plan.build.internal.spaces</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/loader/plan/build/internal/spaces/package-summary.html">org.hibernate.loader.plan.build.internal.spaces</a> with parameters of type <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html" title="interface in org.hibernate.loader.plan.build.spi"><API key></a></code></td>
<td class="colLast"><span class="typeNameLabel">QuerySpaceHelper.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/spaces/QuerySpaceHelper.html#<API key>.hibernate.loader.plan.build.spi.<API key>.hibernate.persister.walking.spi.<API key>.lang.String-org.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/loader/plan/build/spi/ExpandingQuerySpace.html" title="interface in org.hibernate.loader.plan.build.spi">ExpandingQuerySpace</a> lhsQuerySpace,
<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> querySpaceUid,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html" title="interface in org.hibernate.loader.plan.build.spi"><API key></a></code></td>
<td class="colLast"><span class="typeNameLabel">QuerySpaceHelper.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/spaces/QuerySpaceHelper.html#<API key>.hibernate.loader.plan.build.spi.<API key>.hibernate.persister.walking.spi.<API key>.lang.String-org.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/loader/plan/build/spi/ExpandingQuerySpace.html" title="interface in org.hibernate.loader.plan.build.spi">ExpandingQuerySpace</a> lhsQuerySpace,
<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attribute,
<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> querySpaceUid,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><span class="typeNameLabel">QuerySpaceHelper.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/internal/spaces/QuerySpaceHelper.html#<API key>.hibernate.engine.FetchStrategy-">shouldIncludeJoin</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.loader.plan.build.spi">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/loader/plan/build/spi/package-summary.html">org.hibernate.loader.plan.build.spi</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/loader/plan/build/spi/package-summary.html">org.hibernate.loader.plan.build.spi</a> with parameters of type <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/AnyAttributeFetch.html" title="interface in org.hibernate.loader.plan.spi">AnyAttributeFetch</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code>
<div class="block">Builds a fetch for an "any" attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/<API key>.html" title="interface in org.hibernate.loader.plan.spi"><API key></a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-org.hibernate.loader.plan.spi.EntityReference-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/loader/plan/spi/EntityReference.html" title="interface in org.hibernate.loader.plan.spi">EntityReference</a> <API key>)</code>
<div class="block">Builds a bidirectional entity reference for an entity attribute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/<API key>.html" title="interface in org.hibernate.loader.plan.spi"><API key></a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code>
<div class="block">Builds a fetch for a collection attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/loader/plan/spi/EntityFetch.html" title="interface in org.hibernate.loader.plan.spi">EntityFetch</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html#<API key>.hibernate.persister.walking.spi.<API key>.hibernate.engine.FetchStrategy-"><API key></a></span>(<a href="../../../../org/hibernate/persister/walking/spi/<API key>.html" title="interface in org.hibernate.persister.walking.spi"><API key></a> attributeDefinition,
<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code>
<div class="block">Builds a fetch for an entity attribute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/build/spi/<API key>.html#<API key>.hibernate.engine.FetchStrategy-org.hibernate.persister.walking.spi.AttributeDefinition-">validateFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy,
<a href="../../../../org/hibernate/persister/walking/spi/AttributeDefinition.html" title="interface in org.hibernate.persister.walking.spi">AttributeDefinition</a> attributeDefinition)</code>
<div class="block">Is the asserted plan valid from this owner to a fetch?</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.loader.plan.spi">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/loader/plan/spi/package-summary.html">org.hibernate.loader.plan.spi</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/loader/plan/spi/package-summary.html">org.hibernate.loader.plan.spi</a> that return <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel">Fetch.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/loader/plan/spi/Fetch.html#getFetchStrategy--">getFetchStrategy</a></span>()</code>
<div class="block">Gets the fetch strategy for this fetch.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.persister.walking.internal">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/persister/walking/internal/package-summary.html">org.hibernate.persister.walking.internal</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/persister/walking/internal/package-summary.html">org.hibernate.persister.walking.internal</a> with parameters of type <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><span class="typeNameLabel">FetchStrategyHelper.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/persister/walking/internal/FetchStrategyHelper.html#isJoinFetched-org.hibernate.engine.FetchStrategy-">isJoinFetched</a></span>(<a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> fetchStrategy)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.persister.walking.spi">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/persister/walking/spi/package-summary.html">org.hibernate.persister.walking.spi</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/persister/walking/spi/package-summary.html">org.hibernate.persister.walking.spi</a> that return <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/persister/walking/spi/<API key>.html#<API key>.hibernate.engine.spi.<API key>.hibernate.loader.PropertyPath-">determineFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/spi/<API key>.html" title="class in org.hibernate.engine.spi"><API key></a> <API key>,
<a href="../../../../org/hibernate/loader/PropertyPath.html" title="class in org.hibernate.loader">PropertyPath</a> propertyPath)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.tuple.component">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/tuple/component/package-summary.html">org.hibernate.tuple.component</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/tuple/component/package-summary.html">org.hibernate.tuple.component</a> that return <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/tuple/component/<API key>.html#<API key>.hibernate.engine.spi.<API key>.hibernate.loader.PropertyPath-">determineFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/spi/<API key>.html" title="class in org.hibernate.engine.spi"><API key></a> <API key>,
<a href="../../../../org/hibernate/loader/PropertyPath.html" title="class in org.hibernate.loader">PropertyPath</a> propertyPath)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.hibernate.tuple.entity">
</a>
<h3>Uses of <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a> in <a href="../../../../org/hibernate/tuple/entity/package-summary.html">org.hibernate.tuple.entity</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../org/hibernate/tuple/entity/package-summary.html">org.hibernate.tuple.entity</a> that return <a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">FetchStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../org/hibernate/tuple/entity/<API key>.html#<API key>.hibernate.engine.spi.<API key>.hibernate.loader.PropertyPath-">determineFetchPlan</a></span>(<a href="../../../../org/hibernate/engine/spi/<API key>.html" title="class in org.hibernate.engine.spi"><API key></a> <API key>,
<a href="../../../../org/hibernate/loader/PropertyPath.html" title="class in org.hibernate.loader">PropertyPath</a> propertyPath)</code> </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/hibernate/engine/FetchStrategy.html" title="class in org.hibernate.engine">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/hibernate/engine/class-use/FetchStrategy.html" target="_top">Frames</a></li>
<li><a href="FetchStrategy.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>
<p class="legalCopy"><small>Copyright © 2001-2016 <a href="http:
</body>
</html>
|
DESTDIR = "/"
LENS_DEST = "$(DESTDIR)/usr/share/augeas/lenses"
LENS_TEST_DEST = "$(LENS_DEST)/tests"
install:
install -d -m0755 $(LENS_DEST)
install -d -m0755 $(LENS_TEST_DEST)
install -m0644 gitolite.aug $(LENS_DEST)
install -m0644 tests/test_gitolite.aug $(LENS_TEST_DEST)
test:
augparse -I . tests/test_gitolite.aug
|
package org.trancecode.collection;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicates;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSet.Builder;
import com.google.common.collect.Iterables;
import java.util.Set;
/**
* Utility methods related to {@link Set}.
*
* @author Herve Quiroz
*/
public final class TcSets
{
public static <T> ImmutableSet<T> immutableSet(final Iterable<T> set, final T element)
{
Preconditions.checkNotNull(set);
Preconditions.checkNotNull(element);
if (set instanceof Set && ((Set<?>) set).contains(element))
{
return ImmutableSet.copyOf(set);
}
final Builder<T> builder = ImmutableSet.builder();
return builder.addAll(set).add(element).build();
}
public static <T> ImmutableSet<T> immutableSet(final Set<T> set1, final Set<T> set2)
{
Preconditions.checkNotNull(set1);
Preconditions.checkNotNull(set2);
if (set1.isEmpty())
{
return ImmutableSet.copyOf(set2);
}
if (set2.isEmpty())
{
return ImmutableSet.copyOf(set1);
}
final Builder<T> builder = ImmutableSet.builder();
return builder.addAll(set1).addAll(set2).build();
}
public static <T> ImmutableSet<T> immutableSetWithout(final Iterable<T> elements, final T element)
{
Preconditions.checkNotNull(elements);
Preconditions.checkNotNull(element);
if (elements instanceof Set && !((Set<?>) elements).contains(element))
{
return ImmutableSet.copyOf(elements);
}
return ImmutableSet.copyOf(Iterables.filter(elements, Predicates.not(Predicates.equalTo(element))));
}
private TcSets()
{
// No instantiation
}
}
|
// The libMesh Finite Element Library.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should have received a copy of the GNU Lesser General Public
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifndef LIBMESH_SYSTEM_H
#define LIBMESH_SYSTEM_H
// Local Includes
#include "libmesh/auto_ptr.h"
#include "libmesh/elem_range.h"
#include "libmesh/enum_norm_type.h"
#include "libmesh/enum_xdr_mode.h"
#include "libmesh/<API key>.h"
#include "libmesh/enum_parallel_type.h"
#include "libmesh/fem_function_base.h"
#include "libmesh/libmesh_common.h"
#include "libmesh/parallel_object.h"
#include "libmesh/qoi_set.h"
#include "libmesh/<API key>.h"
#include "libmesh/tensor_value.h" // For point_hessian
#include "libmesh/variable.h"
// C++ includes
#include <cstddef>
#include <set>
#include <vector>
namespace libMesh
{
// Forward Declarations
class System;
class EquationSystems;
class MeshBase;
class Xdr;
class DofMap;
template <typename Output> class FunctionBase;
class Parameters;
class ParameterVector;
class Point;
class SensitivityData;
template <typename T> class NumericVector;
template <typename T> class VectorValue;
typedef VectorValue<Number> NumberVectorValue;
typedef NumberVectorValue Gradient;
class SystemSubset;
class FEType;
class SystemNorm;
/**
* This is the base class for classes which contain
* information related to any physical process that might be simulated.
* Such information may range from the actual solution values to
* algorithmic flags that may be used to control the numerical methods
* employed. In general, use an \p EqnSystems<T_sys> object to handle
* one or more of the children of this class.
* Note that templating \p EqnSystems relaxes the use of virtual members.
*
* \author Benjamin S. Kirk
* \date 2003-2004
*/
class System : public <API key><System>,
public ParallelObject
{
public:
/**
* Constructor. Optionally initializes required
* data structures.
*/
System (EquationSystems & es,
const std::string & name,
const unsigned int number);
/**
* Abstract base class to be used for sysem initialization.
* A user class derived from this class may be used to
* intialize the system values by attaching an object
* with the method \p attach_init_object.
*/
class Initialization
{
public:
/**
* Destructor. Virtual because we will have virtual functions.
*/
virtual ~Initialization () {}
/**
* Initialization function. This function will be called
* to initialize the system values upon creation and must
* be provided by the user in a derived class.
*/
virtual void initialize () = 0;
};
/**
* Abstract base class to be used for sysem assembly.
* A user class derived from this class may be used to
* assemble the system by attaching an object
* with the method \p <API key>.
*/
class Assembly
{
public:
/**
* Destructor. Virtual because we will have virtual functions.
*/
virtual ~Assembly () {}
/**
* Assembly function. This function will be called
* to assemble the system prior to a solve and must
* be provided by the user in a derived class.
*/
virtual void assemble () = 0;
};
/**
* Abstract base class to be used for sysem constraints.
* A user class derived from this class may be used to
* constrain the system by attaching an object
* with the method \p <API key>.
*/
class Constraint
{
public:
/**
* Destructor. Virtual because we will have virtual functions.
*/
virtual ~Constraint () {}
/**
* Constraint function. This function will be called
* to constrain the system prior to a solve and must
* be provided by the user in a derived class.
*/
virtual void constrain () = 0;
};
/**
* Abstract base class to be used for quantities of interest.
* A user class derived from this class may be used to
* compute quantities of interest by attaching an object
* with the method \p attach_QOI_object.
*/
class QOI
{
public:
/**
* Destructor. Virtual because we will have virtual functions.
*/
virtual ~QOI () {}
/**
* Quantitiy of interest function. This function will be called
* to compute quantities of interest and must be provided by the
* user in a derived class.
*/
virtual void qoi (const QoISet & qoi_indices) = 0;
};
/**
* Abstract base class to be used for derivatives of quantities
* of interest. A user class derived from this class may be used
* to compute quantities of interest by attaching an object
* with the method \p <API key>.
*/
class QOIDerivative
{
public:
/**
* Destructor. Virtual because we will have virtual functions.
*/
virtual ~QOIDerivative () {}
/**
* Quantitiy of interest derivative function. This function will
* be called to compute derivatived of quantities of interest and
* must be provided by the user in a derived class.
*/
virtual void qoi_derivative (const QoISet & qoi_indices,
bool include_liftfunc,
bool apply_constraints) = 0;
};
/**
* Destructor.
*/
virtual ~System ();
/**
* The type of system.
*/
typedef System sys_type;
/**
* @returns a clever pointer to the system.
*/
sys_type & system () { return *this; }
/**
* Clear all the data structures associated with
* the system.
*/
virtual void clear ();
/**
* Initializes degrees of freedom on the current mesh.
* Sets the
*/
void init ();
/**
* Reinitializes degrees of freedom and other
* required data on the current mesh. Note that the matrix
* is not initialized at this time since it may not be required
* for all applications. @e Should be overloaded in derived classes.
*/
virtual void reinit ();
/**
* Reinitializes the constraints for this system.
*/
virtual void reinit_constraints ();
/**
* Returns true iff this system has been initialized.
*/
bool is_initialized();
/**
* Update the local values to reflect the solution
* on neighboring processors.
*/
virtual void update ();
/**
* Prepares \p matrix and \p _dof_map for matrix assembly.
* Does not actually assemble anything. For matrix assembly,
* use the \p assemble() in derived classes.
* @e Should be overloaded in derived classes.
*/
virtual void assemble ();
/**
* Calls user qoi function.
* @e Can be overloaded in derived classes.
*/
virtual void assemble_qoi (const QoISet & qoi_indices = QoISet());
/**
* Calls user qoi derivative function.
* @e Can be overloaded in derived classes.
*/
virtual void <API key> (const QoISet & qoi_indices = QoISet(),
bool include_liftfunc = true,
bool apply_constraints = true);
/**
* Calls residual parameter derivative function.
*
* Library subclasses use finite differences by default.
*
* This should assemble the sensitivity rhs vectors to hold
* -(partial R / partial p_i), making them ready to solve
* the forward sensitivity equation.
*
* This method is only implemented in some derived classes.
*/
virtual void <API key> (const ParameterVector & parameters);
/**
* After calling this method, any solve will be restricted to the
* given subdomain. To disable this mode, call this method with \p
* subset being a \p NULL pointer.
*/
virtual void restrict_solve_to (const SystemSubset * subset,
const SubsetSolveMode subset_solve_mode=SUBSET_ZERO);
/**
* Solves the system. Should be overloaded in derived systems.
*/
virtual void solve () {}
/**
* Solves the sensitivity system, for the provided parameters.
* Must be overloaded in derived systems.
*
* Returns a pair with the total number of linear iterations
* performed and the (sum of the) final residual norms
*
* This method is only implemented in some derived classes.
*/
virtual std::pair<unsigned int, Real>
sensitivity_solve (const ParameterVector & parameters);
/**
* Assembles & solves the linear system(s) (dR/du)*u_w = sum(w_p*-dR/dp), for
* those parameters p contained within \p parameters weighted by the
* values w_p found within \p weights.
*
* Returns a pair with the total number of linear iterations
* performed and the (sum of the) final residual norms
*
* This method is only implemented in some derived classes.
*/
virtual std::pair<unsigned int, Real>
<API key> (const ParameterVector & parameters,
const ParameterVector & weights);
/**
* Solves the adjoint system, for the specified qoi indices, or for
* every qoi if \p qoi_indices is NULL. Must be overloaded in
* derived systems.
*
* Returns a pair with the total number of linear iterations
* performed and the (sum of the) final residual norms
*
* This method is only implemented in some derived classes.
*/
virtual std::pair<unsigned int, Real>
adjoint_solve (const QoISet & qoi_indices = QoISet());
/**
* Assembles & solves the linear system(s)
* (dR/du)^T*z_w = sum(w_p*(d^2q/dudp - d^2R/dudp*z)), for those
* parameters p contained within \p parameters, weighted by the
* values w_p found within \p weights.
*
* Assumes that adjoint_solve has already calculated z for each qoi
* in \p qoi_indices.
*
* Returns a pair with the total number of linear iterations
* performed and the (sum of the) final residual norms
*
* This method is only implemented in some derived classes.
*/
virtual std::pair<unsigned int, Real>
<API key> (const ParameterVector & parameters,
const ParameterVector & weights,
const QoISet & qoi_indices = QoISet());
/**
* Accessor for the <API key> boolean
*/
bool <API key>() const
{ return <API key>;}
/**
* Setter for the <API key> boolean
*/
void <API key>(bool setting)
{ <API key> = setting;}
/**
* Solves for the derivative of each of the system's quantities of
* interest q in \p qoi[qoi_indices] with respect to each parameter
* in \p parameters, placing the result for qoi \p i and parameter
* \p j into \p sensitivities[i][j].
*
* Note that parameters is a const vector, not a vector-of-const;
* parameter values in this vector need to be mutable for finite
* differencing to work.
*
* Automatically chooses the forward method for problems with more
* quantities of interest than parameters, or the adjoint method
* otherwise.
*
* This method is only usable in derived classes which overload
* an implementation.
*/
virtual void <API key> (const QoISet & qoi_indices,
const ParameterVector & parameters,
SensitivityData & sensitivities);
/**
* Solves for parameter sensitivities using the adjoint method.
*
* This method is only implemented in some derived classes.
*/
virtual void <API key> (const QoISet & qoi_indices,
const ParameterVector & parameters,
SensitivityData & sensitivities);
/**
* Solves for parameter sensitivities using the forward method.
*
* This method is only implemented in some derived classes.
*/
virtual void <API key> (const QoISet & qoi_indices,
const ParameterVector & parameters,
SensitivityData & sensitivities);
/**
* For each of the system's quantities of interest q in
* \p qoi[qoi_indices], and for a vector of parameters p, the
* parameter sensitivity Hessian H_ij is defined as
* H_ij = (d^2 q)/(d p_i d p_j)
* This Hessian is the output of this method, where for each q_i,
* H_jk is stored in \p hessian.second_derivative(i,j,k).
*
* This method is only implemented in some derived classes.
*/
virtual void <API key>(const QoISet & qoi_indices,
const ParameterVector & parameters,
SensitivityData & hessian);
/**
* For each of the system's quantities of interest q in
* \p qoi[qoi_indices], and for a vector of parameters p, the
* parameter sensitivity Hessian H_ij is defined as
* H_ij = (d^2 q)/(d p_i d p_j)
* The Hessian-vector product, for a vector v_k in parameter space, is
* S_j = H_jk v_k
* This product is the output of this method, where for each q_i,
* S_j is stored in \p sensitivities[i][j].
*
* This method is only implemented in some derived classes.
*/
virtual void <API key>(const QoISet & qoi_indices,
const ParameterVector & parameters,
const ParameterVector & vector,
SensitivityData & product);
/**
* @returns \p true when the other system contains
* identical data, up to the given threshold. Outputs
* some diagnostic info when \p verbose is set.
*/
virtual bool compare (const System & other_system,
const Real threshold,
const bool verbose) const;
/**
* @returns the system name.
*/
const std::string & name () const;
/**
* @returns the type of system, helpful in identifying
* which system type to use when reading equation system
* data from file. Should be overloaded in derived classes.
*/
virtual std::string system_type () const { return "Basic"; }
/**
* Projects arbitrary functions onto the current solution.
* The function value \p f and its gradient \p g are
* user-provided cloneable functors.
* A gradient \p g is only required/used for projecting onto finite
* element spaces with continuous derivatives.
* If non-default \p Parameters are to be used, they can be provided
* in the \p parameters argument.
*/
void project_solution (FunctionBase<Number> * f,
FunctionBase<Gradient> * g = NULL) const;
/**
* Projects arbitrary functions onto the current solution.
* The function value \p f and its gradient \p g are
* user-provided cloneable functors.
* A gradient \p g is only required/used for projecting onto finite
* element spaces with continuous derivatives.
* If non-default \p Parameters are to be used, they can be provided
* in the \p parameters argument.
*/
void project_solution (FEMFunctionBase<Number> * f,
FEMFunctionBase<Gradient> * g = NULL) const;
/**
* Projects arbitrary functions onto the current solution.
* The function value \p fptr and its gradient \p gptr are
* represented by function pointers.
* A gradient \p gptr is only required/used for projecting onto
* finite element spaces with continuous derivatives.
*/
void project_solution (Number fptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
Gradient gptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
const Parameters & parameters) const;
/**
* Projects arbitrary functions onto a vector of degree of freedom
* values for the current system.
* The function value \p f and its gradient \p g are
* user-provided cloneable functors.
* A gradient \p g is only required/used for projecting onto finite
* element spaces with continuous derivatives.
* If non-default \p Parameters are to be used, they can be provided
* in the \p parameters argument.
*
* Constrain the new vector using the requested adjoint rather than
* primal constraints if is_adjoint is non-negative.
*/
void project_vector (NumericVector<Number> & new_vector,
FunctionBase<Number> * f,
FunctionBase<Gradient> * g = NULL,
int is_adjoint = -1) const;
/**
* Projects arbitrary functions onto a vector of degree of freedom
* values for the current system.
* The function value \p f and its gradient \p g are
* user-provided cloneable functors.
* A gradient \p g is only required/used for projecting onto finite
* element spaces with continuous derivatives.
* If non-default \p Parameters are to be used, they can be provided
* in the \p parameters argument.
*
* Constrain the new vector using the requested adjoint rather than
* primal constraints if is_adjoint is non-negative.
*/
void project_vector (NumericVector<Number> & new_vector,
FEMFunctionBase<Number> * f,
FEMFunctionBase<Gradient> * g = NULL,
int is_adjoint = -1) const;
/**
* Projects arbitrary functions onto a vector of degree of freedom
* values for the current system.
* The function value \p fptr and its gradient \p gptr are
* represented by function pointers.
* A gradient \p gptr is only required/used for projecting onto
* finite element spaces with continuous derivatives.
*
* Constrain the new vector using the requested adjoint rather than
* primal constraints if is_adjoint is non-negative.
*/
void project_vector (Number fptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
Gradient gptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
const Parameters & parameters,
NumericVector<Number> & new_vector,
int is_adjoint = -1) const;
/**
* Projects arbitrary boundary functions onto a vector of degree of
* freedom values for the current system.
* Only degrees of freedom which affect the function's trace on a
* boundary in the set \p b are affected.
* Only degrees of freedom associated with the variables listed in
* the vector \p variables are projected.
* The function value \p f and its gradient \p g are
* user-provided cloneable functors.
* A gradient \p g is only required/used for projecting onto finite
* element spaces with continuous derivatives.
* If non-default \p Parameters are to be used, they can be provided
* in the \p parameters argument.
*/
void <API key> (const std::set<boundary_id_type> & b,
const std::vector<unsigned int> & variables,
FunctionBase<Number> * f,
FunctionBase<Gradient> * g = NULL);
/**
* Projects arbitrary boundary functions onto a vector of degree of
* freedom values for the current system.
* Only degrees of freedom which affect the function's trace on a
* boundary in the set \p b are affected.
* Only degrees of freedom associated with the variables listed in
* the vector \p variables are projected.
* The function value \p fptr and its gradient \p gptr are
* represented by function pointers.
* A gradient \p gptr is only required/used for projecting onto
* finite element spaces with continuous derivatives.
*/
void <API key> (const std::set<boundary_id_type> & b,
const std::vector<unsigned int> & variables,
Number fptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
Gradient gptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
const Parameters & parameters);
/**
* Projects arbitrary boundary functions onto a vector of degree of
* freedom values for the current system.
* Only degrees of freedom which affect the function's trace on a
* boundary in the set \p b are affected.
* Only degrees of freedom associated with the variables listed in
* the vector \p variables are projected.
* The function value \p f and its gradient \p g are
* user-provided cloneable functors.
* A gradient \p g is only required/used for projecting onto finite
* element spaces with continuous derivatives.
* If non-default \p Parameters are to be used, they can be provided
* in the \p parameters argument.
*
* Constrain the new vector using the requested adjoint rather than
* primal constraints if is_adjoint is non-negative.
*/
void <API key> (const std::set<boundary_id_type> & b,
const std::vector<unsigned int> & variables,
NumericVector<Number> & new_vector,
FunctionBase<Number> * f,
FunctionBase<Gradient> * g = NULL,
int is_adjoint = -1) const;
/**
* Projects arbitrary boundary functions onto a vector of degree of
* freedom values for the current system.
* Only degrees of freedom which affect the function's trace on a
* boundary in the set \p b are affected.
* Only degrees of freedom associated with the variables listed in
* the vector \p variables are projected.
* The function value \p fptr and its gradient \p gptr are
* represented by function pointers.
* A gradient \p gptr is only required/used for projecting onto
* finite element spaces with continuous derivatives.
*
* Constrain the new vector using the requested adjoint rather than
* primal constraints if is_adjoint is non-negative.
*/
void <API key> (const std::set<boundary_id_type> & b,
const std::vector<unsigned int> & variables,
Number fptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
Gradient gptr(const Point & p,
const Parameters & parameters,
const std::string & sys_name,
const std::string & unknown_name),
const Parameters & parameters,
NumericVector<Number> & new_vector,
int is_adjoint = -1) const;
/**
* @returns the system number.
*/
unsigned int number () const;
/**
* Fill the input vector \p global_soln so that it contains
* the global solution on all processors.
* Requires communication with all other processors.
*/
void <API key> (std::vector<Number> & global_soln) const;
/**
* Fill the input vector \p global_soln so that it contains
* the global solution on processor \p dest_proc.
* Requires communication with all other processors.
*/
void <API key> (std::vector<Number> & global_soln,
const processor_id_type dest_proc) const;
/**
* @returns a constant reference to this systems's \p _mesh.
*/
const MeshBase & get_mesh() const;
/**
* @returns a reference to this systems's \p _mesh.
*/
MeshBase & get_mesh();
/**
* @returns a constant reference to this system's \p _dof_map.
*/
const DofMap & get_dof_map() const;
/**
* @returns a writeable reference to this system's \p _dof_map.
*/
DofMap & get_dof_map();
/**
* @returns a constant reference to this system's parent EquationSystems object.
*/
const EquationSystems & <API key>() const { return _equation_systems; }
/**
* @returns a reference to this system's parent EquationSystems object.
*/
EquationSystems & <API key>() { return _equation_systems; }
/**
* @returns \p true if the system is active, \p false otherwise.
* An active system will be solved.
*/
bool active () const;
/**
* Activates the system. Only active systems are solved.
*/
void activate ();
/**
* Deactivates the system. Only active systems are solved.
*/
void deactivate ();
/**
* Sets the system to be "basic only": i.e. advanced system
* components such as ImplicitSystem matrices may not be
* initialized. This is useful for efficiency in certain utility
* programs that never use System::solve(). This method must be
* called after the System or derived class is created but before it
* is initialized; e.g. from within EquationSystems::read()
*/
void <API key> ();
/**
* Vector iterator typedefs.
*/
typedef std::map<std::string, NumericVector<Number> *>::iterator vectors_iterator;
typedef std::map<std::string, NumericVector<Number> *>::const_iterator <API key>;
/**
* Beginning of vectors container
*/
vectors_iterator vectors_begin ();
/**
* Beginning of vectors container
*/
<API key> vectors_begin () const;
/**
* End of vectors container
*/
vectors_iterator vectors_end ();
/**
* End of vectors container
*/
<API key> vectors_end () const;
/**
* Adds the additional vector \p vec_name to this system. All the
* additional vectors are similarly distributed, like the \p
* solution, and inititialized to zero.
*
* By default vectors added by add_vector are projected to changed grids by
* reinit(). To zero them instead (more efficient), pass "false" as the
* second argument
*/
NumericVector<Number> & add_vector (const std::string & vec_name,
const bool projections=true,
const ParallelType type = PARALLEL);
/**
* Removes the additional vector \p vec_name from this system
*/
void remove_vector(const std::string & vec_name);
/**
* Tells the System whether or not to project the solution vector onto new
* grids when the system is reinitialized. The solution will be projected
* unless <API key>() = false is called.
*/
bool & <API key> (void)
{ return <API key>; }
/**
* @returns \p true if this \p System has a vector associated with the
* given name, \p false otherwise.
*/
bool have_vector (const std::string & vec_name) const;
/**
* @returns a const pointer to the vector if this \p System has a
* vector associated with the given name, \p NULL otherwise.
*/
const NumericVector<Number> * request_vector (const std::string & vec_name) const;
/**
* @returns a pointer to the vector if this \p System has a
* vector associated with the given name, \p NULL otherwise.
*/
NumericVector<Number> * request_vector (const std::string & vec_name);
/**
* @returns a const pointer to this system's @e additional vector
* number \p vec_num (where the vectors are counted starting with
* 0), or returns \p NULL if the system has no such vector.
*/
const NumericVector<Number> * request_vector (const unsigned int vec_num) const;
/**
* @returns a writeable pointer to this system's @e additional
* vector number \p vec_num (where the vectors are counted starting
* with 0), or returns \p NULL if the system has no such vector.
*/
NumericVector<Number> * request_vector (const unsigned int vec_num);
/**
* @returns a const reference to this system's @e additional vector
* named \p vec_name. Access is only granted when the vector is already
* properly initialized.
*/
const NumericVector<Number> & get_vector (const std::string & vec_name) const;
/**
* @returns a writeable reference to this system's @e additional vector
* named \p vec_name. Access is only granted when the vector is already
* properly initialized.
*/
NumericVector<Number> & get_vector (const std::string & vec_name);
/**
* @returns a const reference to this system's @e additional vector
* number \p vec_num (where the vectors are counted starting with
* 0).
*/
const NumericVector<Number> & get_vector (const unsigned int vec_num) const;
/**
* @returns a writeable reference to this system's @e additional
* vector number \p vec_num (where the vectors are counted starting
* with 0).
*/
NumericVector<Number> & get_vector (const unsigned int vec_num);
/**
* @returns the name of this system's @e additional vector number \p
* vec_num (where the vectors are counted starting with 0).
*/
const std::string & vector_name (const unsigned int vec_num) const;
/**
* @returns the name of a system vector, given a reference to that vector
*/
const std::string & vector_name (const NumericVector<Number> & vec_reference) const;
/**
* Allows one to set the QoI index controlling whether the vector
* identified by vec_name represents a solution from the adjoint
* (qoi_num >= 0) or primal (qoi_num == -1) space. This becomes
* significant if those spaces have differing heterogeneous
* Dirichlet constraints.
*
* qoi_num == -2 can be used to indicate a vector which should not
* be affected by constraints during projection operations.
*/
void <API key> (const std::string & vec_name, int qoi_num);
/**
* @returns the int describing whether the vector identified by
* vec_name represents a solution from an adjoint (non-negative) or
* the primal (-1) space.
*/
int vector_is_adjoint (const std::string & vec_name) const;
/**
* Allows one to set the boolean controlling whether the vector
* identified by vec_name should be "preserved": projected to new
* meshes, saved, etc.
*/
void <API key> (const std::string & vec_name, bool preserve);
/**
* @returns the boolean describing whether the vector identified by
* vec_name should be "preserved": projected to new meshes, saved,
* etc.
*/
bool vector_preservation (const std::string & vec_name) const;
/**
* @returns a reference to one of the system's adjoint solution
* vectors, by default the one corresponding to the first qoi.
* Creates the vector if it doesn't already exist.
*/
NumericVector<Number> & <API key>(unsigned int i=0);
/**
* @returns a reference to one of the system's adjoint solution
* vectors, by default the one corresponding to the first qoi.
*/
NumericVector<Number> & <API key>(unsigned int i=0);
/**
* @returns a reference to one of the system's adjoint solution
* vectors, by default the one corresponding to the first qoi.
*/
const NumericVector<Number> & <API key>(unsigned int i=0) const;
/**
* @returns a reference to one of the system's solution sensitivity
* vectors, by default the one corresponding to the first parameter.
* Creates the vector if it doesn't already exist.
*/
NumericVector<Number> & <API key>(unsigned int i=0);
/**
* @returns a reference to one of the system's solution sensitivity
* vectors, by default the one corresponding to the first parameter.
*/
NumericVector<Number> & <API key>(unsigned int i=0);
/**
* @returns a reference to one of the system's solution sensitivity
* vectors, by default the one corresponding to the first parameter.
*/
const NumericVector<Number> & <API key>(unsigned int i=0) const;
/**
* @returns a reference to one of the system's weighted sensitivity
* adjoint solution vectors, by default the one corresponding to the
* first qoi.
* Creates the vector if it doesn't already exist.
*/
NumericVector<Number> & <API key>(unsigned int i=0);
/**
* @returns a reference to one of the system's weighted sensitivity
* adjoint solution vectors, by default the one corresponding to the
* first qoi.
*/
NumericVector<Number> & <API key>(unsigned int i=0);
/**
* @returns a reference to one of the system's weighted sensitivity
* adjoint solution vectors, by default the one corresponding to the
* first qoi.
*/
const NumericVector<Number> & <API key>(unsigned int i=0) const;
/**
* @returns a reference to the solution of the last weighted
* sensitivity solve
* Creates the vector if it doesn't already exist.
*/
NumericVector<Number> & <API key>();
/**
* @returns a reference to the solution of the last weighted
* sensitivity solve
*/
NumericVector<Number> & <API key>();
/**
* @returns a reference to the solution of the last weighted
* sensitivity solve
*/
const NumericVector<Number> & <API key>() const;
/**
* @returns a reference to one of the system's adjoint rhs
* vectors, by default the one corresponding to the first qoi.
* Creates the vector if it doesn't already exist.
*/
NumericVector<Number> & add_adjoint_rhs(unsigned int i=0);
/**
* @returns a reference to one of the system's adjoint rhs
* vectors, by default the one corresponding to the first qoi.
* This what the user's QoI derivative code should assemble
* when setting up an adjoint problem
*/
NumericVector<Number> & get_adjoint_rhs(unsigned int i=0);
/**
* @returns a reference to one of the system's adjoint rhs
* vectors, by default the one corresponding to the first qoi.
*/
const NumericVector<Number> & get_adjoint_rhs(unsigned int i=0) const;
/**
* @returns a reference to one of the system's sensitivity rhs
* vectors, by default the one corresponding to the first parameter.
* Creates the vector if it doesn't already exist.
*/
NumericVector<Number> & add_sensitivity_rhs(unsigned int i=0);
/**
* @returns a reference to one of the system's sensitivity rhs
* vectors, by default the one corresponding to the first parameter.
* By default these vectors are built by the library, using finite
* differences, when \p <API key>() is called.
*
* When assembled, this vector should hold
* -(partial R / partial p_i)
*/
NumericVector<Number> & get_sensitivity_rhs(unsigned int i=0);
/**
* @returns a reference to one of the system's sensitivity rhs
* vectors, by default the one corresponding to the first parameter.
*/
const NumericVector<Number> & get_sensitivity_rhs(unsigned int i=0) const;
/**
* @returns the number of vectors (in addition to the solution)
* handled by this system
* This is the size of the \p _vectors map
*/
unsigned int n_vectors () const;
/**
* @returns the number of matrices
* handled by this system.
*
* This will return 0 by default but can be overriden.
*/
virtual unsigned int n_matrices () const;
/**
* @returns the number of variables in the system
*/
unsigned int n_vars() const;
/**
* @returns the number of \p VariableGroup variable groups in the system
*/
unsigned int n_variable_groups() const;
/**
* @returns the total number of scalar components in the system's
* variables. This will equal \p n_vars() in the case of all
* scalar-valued variables.
*/
unsigned int n_components() const;
/**
* @returns the number of degrees of freedom in the system
*/
dof_id_type n_dofs() const;
/**
* Returns the number of active degrees of freedom
* for this System.
*/
dof_id_type n_active_dofs() const;
/**
* @returns the total number of constrained degrees of freedom
* in the system.
*/
dof_id_type n_constrained_dofs() const;
/**
* @returns the number of constrained degrees of freedom
* on this processor.
*/
dof_id_type <API key>() const;
/**
* @returns the number of degrees of freedom local
* to this processor
*/
dof_id_type n_local_dofs() const;
/**
* Adds the variable \p var to the list of variables
* for this system. Returns the index number for the new variable.
*/
unsigned int add_variable (const std::string & var,
const FEType & type,
const std::set<subdomain_id_type> * const active_subdomains = NULL);
/**
* Adds the variable \p var to the list of variables
* for this system. Same as before, but assumes \p LAGRANGE
* as default value for \p FEType.family.
*/
unsigned int add_variable (const std::string & var,
const Order order = FIRST,
const FEFamily = LAGRANGE,
const std::set<subdomain_id_type> * const active_subdomains = NULL);
/**
* Adds the variable \p var to the list of variables
* for this system. Returns the index number for the new variable.
*/
unsigned int add_variables (const std::vector<std::string> & vars,
const FEType & type,
const std::set<subdomain_id_type> * const active_subdomains = NULL);
/**
* Adds the variable \p var to the list of variables
* for this system. Same as before, but assumes \p LAGRANGE
* as default value for \p FEType.family.
*/
unsigned int add_variables (const std::vector<std::string> & vars,
const Order order = FIRST,
const FEFamily = LAGRANGE,
const std::set<subdomain_id_type> * const active_subdomains = NULL);
/**
* Return a constant reference to \p Variable \p var.
*/
const Variable & variable (unsigned int var) const;
/**
* Return a constant reference to \p VariableGroup \p vg.
*/
const VariableGroup & variable_group (unsigned int vg) const;
/**
* @returns true if a variable named \p var exists in this System
*/
bool has_variable(const std::string & var) const;
/**
* @returns the name of variable \p i.
*/
const std::string & variable_name(const unsigned int i) const;
/**
* @returns the variable number assoicated with
* the user-specified variable named \p var.
*/
unsigned short int variable_number (const std::string & var) const;
/**
* Fills \p <API key> with all the variable numbers for the
* variables that have been added to this system.
*/
void <API key>(std::vector<unsigned int> & <API key>) const;
/**
* @returns an index, starting from 0 for the first component of the
* first variable, and incrementing for each component of each
* (potentially vector-valued) variable in the system in order.
* For systems with only scalar-valued variables, this will be the
* same as \p variable_number(var)
*
* Irony: currently our only non-scalar-valued variable type is
* SCALAR.
*/
unsigned int <API key> (const std::string & var,
unsigned int component) const;
/**
* @returns an index, starting from 0 for the first component of the
* first variable, and incrementing for each component of each
* (potentially vector-valued) variable in the system in order.
* For systems with only scalar-valued variables, this will be the
* same as \p var_num
*
* Irony: currently our only non-scalar-valued variable type is
* SCALAR.
*/
unsigned int <API key> (unsigned int var_num,
unsigned int component) const;
/**
* @returns the finite element type variable number \p i.
*/
const FEType & variable_type (const unsigned int i) const;
/**
* @returns the finite element type for variable \p var.
*/
const FEType & variable_type (const std::string & var) const;
/**
* @returns \p true when \p VariableGroup structures should be
* automatically identified, \p false otherwise.
*/
bool <API key> () const;
/**
* Toggle automatic \p VariableGroup identification.
*/
void <API key> (const bool);
/**
* @returns a norm of variable \p var in the vector \p v, in the specified
* norm (e.g. L2, L_INF, H1)
*/
Real calculate_norm(const NumericVector<Number> & v,
unsigned int var,
FEMNormType norm_type,
std::set<unsigned int> * skip_dimensions=NULL) const;
/**
* @returns a norm of the vector \p v, using \p component_norm and \p
* component_scale to choose and weight the norms of each variable.
*/
Real calculate_norm(const NumericVector<Number> & v,
const SystemNorm & norm,
std::set<unsigned int> * skip_dimensions=NULL) const;
/**
* Reads the basic data header for this System.
*/
void read_header (Xdr & io,
const std::string & version,
const bool read_header=true,
const bool <API key>=true,
const bool read_legacy_format=false);
/**
* Reads additional data, namely vectors, for this System.
*/
void read_legacy_data (Xdr & io,
const bool <API key>=true);
/**
* Reads additional data, namely vectors, for this System.
* This method may safely be called on a distributed-memory mesh.
*/
template <typename ValType>
void <API key> (Xdr & io,
const bool <API key>=true);
/**
* Non-templated version for backward compatibility.
*
* Reads additional data, namely vectors, for this System.
* This method may safely be called on a distributed-memory mesh.
*/
void <API key> (Xdr & io,
const bool <API key>=true)
{ <API key><Number>(io, <API key>); }
/**
* Read a number of identically distributed vectors. This method
* allows for optimization for the multiple vector case by only communicating
* the metadata once.
*/
template <typename InValType>
std::size_t <API key> (Xdr & io,
const std::vector<NumericVector<Number> *> & vectors) const;
/**
* Non-templated version for backward compatibility.
*
* Read a number of identically distributed vectors. This method
* allows for optimization for the multiple vector case by only communicating
* the metadata once.
*/
std::size_t <API key> (Xdr & io,
const std::vector<NumericVector<Number> *> & vectors) const
{ return <API key><Number>(io, vectors); }
/**
* Reads additional data, namely vectors, for this System.
* This method may safely be called on a distributed-memory mesh.
* This method will read an individual file for each processor in the simulation
* where the local solution components for that processor are stored.
*/
template <typename InValType>
void read_parallel_data (Xdr & io,
const bool <API key>);
/**
* Non-templated version for backward compatibility.
*
* Reads additional data, namely vectors, for this System.
* This method may safely be called on a distributed-memory mesh.
* This method will read an individual file for each processor in the simulation
* where the local solution components for that processor are stored.
*/
void read_parallel_data (Xdr & io,
const bool <API key>)
{ read_parallel_data<Number>(io, <API key>); }
/**
* Writes the basic data header for this System.
*/
void write_header (Xdr & io,
const std::string & version,
const bool <API key>) const;
/**
* Writes additional data, namely vectors, for this System.
* This method may safely be called on a distributed-memory mesh.
*/
void <API key> (Xdr & io,
const bool <API key> = true) const;
/**
* Serialize & write a number of identically distributed vectors. This method
* allows for optimization for the multiple vector case by only communicating
* the metadata once.
*/
std::size_t <API key> (Xdr & io,
const std::vector<const NumericVector<Number> *> & vectors) const;
/**
* Writes additional data, namely vectors, for this System.
* This method may safely be called on a distributed-memory mesh.
* This method will create an individual file for each processor in the simulation
* where the local solution components for that processor will be stored.
*/
void write_parallel_data (Xdr & io,
const bool <API key>) const;
/**
* @returns a string containing information about the
* system.
*/
std::string get_info () const;
/**
* Register a user function to use in initializing the system.
*/
void <API key> (void fptr(EquationSystems & es,
const std::string & name));
/**
* Register a user class to use to initialize the system.
* Note this is exclusive with the \p <API key>.
*/
void attach_init_object (Initialization & init);
/**
* Register a user function to use in assembling the system
* matrix and RHS.
*/
void <API key> (void fptr(EquationSystems & es,
const std::string & name));
/**
* Register a user object to use in assembling the system
* matrix and RHS.
*/
void <API key> (Assembly & assemble);
/**
* Register a user function for imposing constraints.
*/
void <API key> (void fptr(EquationSystems & es,
const std::string & name));
/**
* Register a user object for imposing constraints.
*/
void <API key> (Constraint & constrain);
/**
* Register a user function for evaluating the quantities of interest,
* whose values should be placed in \p System::qoi
*/
void attach_QOI_function (void fptr(EquationSystems & es,
const std::string & name,
const QoISet & qoi_indices));
/**
* Register a user object for evaluating the quantities of interest,
* whose values should be placed in \p System::qoi
*/
void attach_QOI_object (QOI & qoi);
/**
* Register a user function for evaluating derivatives of a quantity
* of interest with respect to test functions, whose values should
* be placed in \p System::rhs
*/
void <API key> (void fptr(EquationSystems & es,
const std::string & name,
const QoISet & qoi_indices,
bool include_liftfunc,
bool apply_constraints));
/**
* Register a user object for evaluating derivatives of a quantity
* of interest with respect to test functions, whose values should
* be placed in \p System::rhs
*/
void <API key> (QOIDerivative & qoi_derivative);
/**
* Calls user's attached initialization function, or is overloaded by
* the user in derived classes.
*/
virtual void user_initialization ();
/**
* Calls user's attached assembly function, or is overloaded by
* the user in derived classes.
*/
virtual void user_assembly ();
/**
* Calls user's attached constraint function, or is overloaded by
* the user in derived classes.
*/
virtual void user_constrain ();
/**
* Calls user's attached quantity of interest function, or is
* overloaded by the user in derived classes.
*/
virtual void user_QOI (const QoISet & qoi_indices);
/**
* Calls user's attached quantity of interest derivative function,
* or is overloaded by the user in derived classes.
*/
virtual void user_QOI_derivative (const QoISet & qoi_indices = QoISet(),
bool include_liftfunc = true,
bool apply_constraints = true);
/**
* Re-update the local values when the mesh has changed.
* This method takes the data updated by \p update() and
* makes it up-to-date on the current mesh.
*/
virtual void re_update ();
/**
* Restrict vectors after the mesh has coarsened
*/
virtual void restrict_vectors ();
/**
* Prolong vectors after the mesh has refined
*/
virtual void prolong_vectors ();
/**
* Flag which tells the system to whether or not to
* call the user assembly function during each call to solve().
* By default, every call to solve() begins with a call to the
* user assemble, so this flag is true. (For explicit systems,
* "solving" the system occurs during the assembly step, so this
* flag is always true for explicit systems.)
*
* You will only want to set this to false if you need direct
* control over when the system is assembled, and are willing to
* track the state of its assembly yourself. An example of such a
* case is an implicit system with multiple right hand sides. In
* this instance, a single assembly would likely be followed with
* multiple calls to solve.
*
* The frequency system and Newmark system have their own versions
* of this flag, called _finished_assemble, which might be able to
* be replaced with this more general concept.
*/
bool <API key>;
/**
* Avoids use of any cached data that might affect any solve result. Should
* be overloaded in derived systems.
*/
virtual void disable_cache ();
/**
* A boolean to be set to true by systems using elem_fixed_solution,
* for optional use by e.g. stabilized methods.
* False by default.
*
* Note for FEMSystem users:
* Warning: if this variable is set to true, it must be before init_data() is
* called.
*/
bool use_fixed_solution;
/**
* A member int that can be employed to indicate increased or
* reduced quadrature order.
*
* Note for FEMSystem users:
* By default, when calling the user-defined residual functions, the
* FEMSystem will first set up an appropriate
* FEType::<API key>() object for performing the integration.
* This rule will integrate elements of order up to 2*p+1 exactly (where p is
* the sum of the base FEType and local p refinement levels), but if
* additional (or reduced) quadrature accuracy is desired then this
* <API key> (default 0) will be added.
*/
int <API key>;
// The solution and solution access members
/**
* @returns the current solution for the specified global
* DOF.
*/
Number current_solution (const dof_id_type global_dof_number) const;
/**
* Data structure to hold solution values.
*/
UniquePtr<NumericVector<Number> > solution;
/**
* All the values I need to compute my contribution
* to the simulation at hand. Think of this as the
* current solution with any ghost values needed from
* other processors. This vector is necessarily larger
* than the \p solution vector in the case of a parallel
* simulation. The \p update() member is used to synchronize
* the contents of the \p solution and \p <API key>
* vectors.
*/
UniquePtr<NumericVector<Number> > <API key>;
/**
* For time-dependent problems, this is the time t at the beginning of
* the current timestep.
*
* Note for <API key> users:
* do *not* access this time during an assembly!
* Use the DiffContext::time value instead to get correct
* results.
*/
Real time;
/**
* Values of the quantities of interest. This vector needs
* to be both resized and filled by the user before any quantity of
* interest assembly is done and before any sensitivities are
* calculated.
*/
std::vector<Number> qoi;
/**
* Returns the value of the solution variable \p var at the physical
* point \p p in the mesh, without knowing a priori which element
* contains \p p.
*
* Note that this function uses \p MeshBase::sub_point_locator(); users
* may or may not want to call \p MeshBase::clear_point_locator()
* afterward. Also, point_locator() is expensive (N log N for
* initial construction, log N for evaluations). Avoid using this
* function in any context where you are already looping over
* elements.
*
* Because the element containing \p p may lie on any processor,
* this function is parallel-only.
*
* By default this method expects the point to reside inside the domain
* and will abort if no element can be found which contains \p p. The
* optional parameter \p insist_on_success can be set to false to allow
* the method to return 0 when the point is not located.
*/
Number point_value(unsigned int var, const Point & p,
const bool insist_on_success = true) const;
/**
* Returns the value of the solution variable \p var at the physical
* point \p p contained in local Elem \p e
*
* This version of point_value can be run in serial, but assumes \p e is in
* the local mesh partition.
*/
Number point_value(unsigned int var, const Point & p, const Elem & e) const;
/**
* Returns the gradient of the solution variable \p var at the physical
* point \p p in the mesh, similarly to point_value.
*/
Gradient point_gradient(unsigned int var, const Point & p,
const bool insist_on_success = true) const;
/**
* Returns the gradient of the solution variable \p var at the physical
* point \p p in local Elem \p e in the mesh, similarly to point_value.
*/
Gradient point_gradient(unsigned int var, const Point & p, const Elem & e) const;
/**
* Returns the second derivative tensor of the solution variable \p var
* at the physical point \p p in the mesh, similarly to point_value.
*/
Tensor point_hessian(unsigned int var, const Point & p,
const bool insist_on_success = true) const;
/**
* Returns the second derivative tensor of the solution variable \p var
* at the physical point \p p in local Elem \p e in the mesh, similarly to
* point_value.
*/
Tensor point_hessian(unsigned int var, const Point & p, const Elem & e) const;
/**
* Fills the std::set with the degrees of freedom on the local
* processor corresponding the the variable number passed in.
*/
void local_dof_indices (const unsigned int var,
std::set<dof_id_type> & var_indices) const;
/**
* Zeroes all dofs in \p v that correspond to variable number \p
* var_num.
*/
void zero_variable (NumericVector<Number> & v, unsigned int var_num) const;
/**
* Returns a writeable reference to a boolean that determines if this system
* can be written to file or not. If set to \p true, then
* \p EquationSystems::write will ignore this system.
*/
bool & hide_output() { return _hide_output; }
protected:
/**
* Initializes the data for the system. Note that this is called
* before any user-supplied intitialization function so that all
* required storage will be available.
*/
virtual void init_data ();
/**
* Projects the vector defined on the old mesh onto the
* new mesh.
*
* Constrain the new vector using the requested adjoint rather than
* primal constraints if is_adjoint is non-negative.
*/
void project_vector (NumericVector<Number> &,
int is_adjoint = -1) const;
/**
* Projects the vector defined on the old mesh onto the
* new mesh. The original vector is unchanged and the new vector
* is passed through the second argument.
*
* Constrain the new vector using the requested adjoint rather than
* primal constraints if is_adjoint is non-negative.
*/
void project_vector (const NumericVector<Number> &,
NumericVector<Number> &,
int is_adjoint = -1) const;
private:
/**
* This isn't a copyable object, so let's make sure nobody tries.
*
* We won't even bother implementing this; we'll just make sure that
* the compiler doesn't implement a default.
*/
System (const System &);
/**
* This isn't a copyable object, so let's make sure nobody tries.
*
* We won't even bother implementing this; we'll just make sure that
* the compiler doesn't implement a default.
*/
System & operator=(const System &);
/**
* Finds the discrete norm for the entries in the vector
* corresponding to Dofs associated with var.
*/
Real discrete_var_norm (const NumericVector<Number> & v,
unsigned int var,
FEMNormType norm_type) const;
/**
* Reads an input vector from the stream \p io and assigns
* the values to a set of \p DofObjects. This method uses
* blocked input and is safe to call on a distributed memory-mesh.
* Unless otherwise specified, all variables are read.
*/
template <typename iterator_type, typename InValType>
std::size_t <API key> (const dof_id_type n_objects,
const iterator_type begin,
const iterator_type end,
const InValType dummy,
Xdr & io,
const std::vector<NumericVector<Number> *> & vecs,
const unsigned int var_to_read=libMesh::invalid_uint) const;
/**
* Reads the SCALAR dofs from the stream \p io and assigns the values
* to the appropriate entries of \p vec.
*
* Returns the number of dofs read.
*/
unsigned int read_SCALAR_dofs (const unsigned int var,
Xdr & io,
NumericVector<Number> & vec) const;
/**
* Reads a vector for this System.
* This method may safely be called on a distributed-memory mesh.
*
* Returns the length of the vector read.
*/
template <typename InValType>
numeric_index_type <API key> (Xdr & io,
NumericVector<Number> & vec);
/**
* Non-templated version for backward compatibility.
*
* Reads a vector for this System.
* This method may safely be called on a distributed-memory mesh.
*
* Returns the length of the vector read.
*/
numeric_index_type <API key> (Xdr & io,
NumericVector<Number> & vec)
{ return <API key><Number>(io, vec); }
/**
* Writes an output vector to the stream \p io for a set of \p DofObjects.
* This method uses blocked output and is safe to call on a distributed memory-mesh.
*
* Returns the number of values written
*/
template <typename iterator_type>
std::size_t <API key> (const std::vector<const NumericVector<Number> *> & vecs,
const dof_id_type n_objects,
const iterator_type begin,
const iterator_type end,
Xdr & io,
const unsigned int var_to_write=libMesh::invalid_uint) const;
/**
* Writes the SCALAR dofs associated with var to the stream \p io.
*
* Returns the number of values written.
*/
unsigned int write_SCALAR_dofs (const NumericVector<Number> & vec,
const unsigned int var,
Xdr & io) const;
/**
* Writes a vector for this System.
* This method may safely be called on a distributed-memory mesh.
*
* Returns the number of values written.
*/
dof_id_type <API key> (Xdr & io,
const NumericVector<Number> & vec) const;
/**
* Function that initializes the system.
*/
void (* <API key>) (EquationSystems & es,
const std::string & name);
/**
* Object that initializes the system.
*/
Initialization * _init_system_object;
/**
* Function that assembles the system.
*/
void (* <API key>) (EquationSystems & es,
const std::string & name);
/**
* Object that assembles the system.
*/
Assembly * <API key>;
/**
* Function to impose constraints.
*/
void (* <API key>) (EquationSystems & es,
const std::string & name);
/**
* Object that constrains the system.
*/
Constraint * <API key>;
/**
* Function to evaluate quantity of interest
*/
void (* <API key>) (EquationSystems & es,
const std::string & name,
const QoISet & qoi_indices);
/**
* Object to compute quantities of interest.
*/
QOI * <API key>;
/**
* Function to evaluate quantity of interest derivative
*/
void (* <API key>) (EquationSystems & es,
const std::string & name,
const QoISet & qoi_indices,
bool include_liftfunc,
bool apply_constraints);
/**
* Object to compute derivatives of quantities of interest.
*/
QOIDerivative * <API key>;
/**
* Data structure describing the relationship between
* nodes, variables, etc... and degrees of freedom.
*/
UniquePtr<DofMap> _dof_map;
/**
* Constant reference to the \p EquationSystems object
* used for the simulation.
*/
EquationSystems & _equation_systems;
/**
* Constant reference to the \p mesh data structure used
* for the simulation.
*/
MeshBase & _mesh;
/**
* A name associated with this system.
*/
const std::string _sys_name;
/**
* The number associated with this system
*/
const unsigned int _sys_number;
/**
* The \p Variable in this \p System.
*/
std::vector<Variable> _variables;
/**
* The \p VariableGroup in this \p System.
*/
std::vector<VariableGroup> _variable_groups;
/**
* The variable numbers corresponding to user-specified
* names, useful for name-based lookups.
*/
std::map<std::string, unsigned short int> _variable_numbers;
/**
* Flag stating if the system is active or not.
*/
bool _active;
/**
* Some systems need an arbitrary number of vectors.
* This map allows names to be associated with arbitrary
* vectors. All the vectors in this map will be distributed
* in the same way as the solution vector.
*/
std::map<std::string, NumericVector<Number> * > _vectors;
/**
* Holds true if a vector by that name should be projected
* onto a changed grid, false if it should be zeroed.
*/
std::map<std::string, bool> _vector_projections;
/**
* Holds non-negative if a vector by that name should be projected
* using adjoint constraints/BCs, -1 if primal
*/
std::map<std::string, int> _vector_is_adjoint;
/**
* Holds the type of a vector
*/
std::map<std::string, ParallelType> _vector_types;
/**
* Holds true if the solution vector should be projected
* onto a changed grid, false if it should be zeroed.
* This is true by default.
*/
bool <API key>;
/**
* Holds true if the components of more advanced system types (e.g.
* system matrices) should not be initialized.
*/
bool _basic_system_only;
/**
* \p true when additional vectors and variables do not require
* immediate initialization, \p false otherwise.
*/
bool _is_initialized;
/**
* \p true when \p VariableGroup structures should be automatically
* identified, \p false otherwise. Defaults to \p true.
*/
bool <API key>;
/**
* This flag is used only when *reading* in a system from file.
* Based on the system header, it keeps track of whether or not
* additional vectors were actually written for this file.
*/
bool <API key>;
/**
* This vector is used only when *reading* in a system from file.
* Based on the system header, it keeps track of any index remapping
* between variable names in the data file and variable names in the
* already-constructed system. I.e. if we have a system with
* variables "A1", "A2", "B1", and "B2", but we read in a data file with
* only "A1" and "B1" defined, then we don't want to try and read in
* A2 or B2, and we don't want to assign A1 and B1 values to
* different dof indices.
*/
std::vector<unsigned int> <API key>;
/**
* Has the adjoint problem already been solved? If the user sets
* \p <API key> to \p true, we won't waste time solving
* it again.
*/
bool <API key>;
/**
* Are we allowed to write this system to file? If \p _hide_output is
* \p true, then \p EquationSystems::write will ignore this system.
*/
bool _hide_output;
};
// System inline methods
inline
const std::string & System::name() const
{
return _sys_name;
}
inline
unsigned int System::number() const
{
return _sys_number;
}
inline
const MeshBase & System::get_mesh() const
{
return _mesh;
}
inline
MeshBase & System::get_mesh()
{
return _mesh;
}
inline
const DofMap & System::get_dof_map() const
{
return *_dof_map;
}
inline
DofMap & System::get_dof_map()
{
return *_dof_map;
}
inline
bool System::active() const
{
return _active;
}
inline
void System::activate ()
{
_active = true;
}
inline
void System::deactivate ()
{
_active = false;
}
inline
bool System::is_initialized ()
{
return _is_initialized;
}
inline
void System::<API key> ()
{
_basic_system_only = true;
}
inline
unsigned int System::n_vars() const
{
return cast_int<unsigned int>(_variables.size());
}
inline
unsigned int System::n_variable_groups() const
{
return cast_int<unsigned int>(_variable_groups.size());
}
inline
unsigned int System::n_components() const
{
if (_variables.empty())
return 0;
const Variable & last = _variables.back();
return last.first_scalar_number() + last.n_components();
}
inline
const Variable & System::variable (const unsigned int i) const
{
libmesh_assert_less (i, _variables.size());
return _variables[i];
}
inline
const VariableGroup & System::variable_group (const unsigned int vg) const
{
libmesh_assert_less (vg, _variable_groups.size());
return _variable_groups[vg];
}
inline
const std::string & System::variable_name (const unsigned int i) const
{
libmesh_assert_less (i, _variables.size());
return _variables[i].name();
}
inline
unsigned int
System::<API key> (const std::string & var,
unsigned int component) const
{
return <API key>(this->variable_number(var), component);
}
inline
unsigned int
System::<API key> (unsigned int var_num,
unsigned int component) const
{
return _variables[var_num].first_scalar_number() + component;
}
inline
const FEType & System::variable_type (const unsigned int i) const
{
libmesh_assert_less (i, _variables.size());
return _variables[i].type();
}
inline
const FEType & System::variable_type (const std::string & var) const
{
return _variables[this->variable_number(var)].type();
}
inline
bool System::<API key> () const
{
return <API key>;
}
inline
void System::<API key> (const bool ivg)
{
<API key> = ivg;
}
inline
dof_id_type System::n_active_dofs() const
{
return this->n_dofs() - this->n_constrained_dofs();
}
inline
bool System::have_vector (const std::string & vec_name) const
{
return (_vectors.count(vec_name));
}
inline
unsigned int System::n_vectors () const
{
return cast_int<unsigned int>(_vectors.size());
}
inline
unsigned int System::n_matrices () const
{
return 0;
}
inline
System::vectors_iterator System::vectors_begin ()
{
return _vectors.begin();
}
inline
System::<API key> System::vectors_begin () const
{
return _vectors.begin();
}
inline
System::vectors_iterator System::vectors_end ()
{
return _vectors.end();
}
inline
System::<API key> System::vectors_end () const
{
return _vectors.end();
}
inline
void System::<API key> (const ParameterVector &)
{
<API key>();
}
inline
void System::disable_cache () { <API key> = true; }
inline
std::pair<unsigned int, Real>
System::sensitivity_solve (const ParameterVector &)
{
<API key>();
}
inline
std::pair<unsigned int, Real>
System::<API key> (const ParameterVector &,
const ParameterVector &)
{
<API key>();
}
inline
std::pair<unsigned int, Real>
System::adjoint_solve (const QoISet &)
{
<API key>();
}
inline
std::pair<unsigned int, Real>
System::<API key> (const ParameterVector &,
const ParameterVector &,
const QoISet &)
{
<API key>();
}
inline
void
System::<API key> (const QoISet &,
const ParameterVector &,
SensitivityData &)
{
<API key>();
}
inline
void
System::<API key> (const QoISet &,
const ParameterVector &,
SensitivityData &)
{
<API key>();
}
inline
void
System::<API key>(const QoISet &,
const ParameterVector &,
SensitivityData &)
{
<API key>();
}
inline
void
System::<API key>(const QoISet &,
const ParameterVector &,
const ParameterVector &,
SensitivityData &)
{
<API key>();
}
} // namespace libMesh
#endif // LIBMESH_SYSTEM_H
|
#include "<API key>.h"
#include "llviewerdisplayname.h"
// viewer includes
#include "llagent.h"
#include "llviewerregion.h"
#include "llvoavatar.h"
// library includes
#include "llavatarnamecache.h"
#include "llhttpclient.h"
#include "llhttpnode.h"
#include "llnotificationsutil.h"
#include "llui.h" // getLanguage()
#include "fsradar.h"
#include "lggcontactsets.h"
#include "llviewercontrol.h"
namespace LLViewerDisplayName
{
// Fired when viewer receives server response to display name change
set_name_signal_t <API key>;
// Fired when there is a change in the agent's name
<API key> sNameChangedSignal;
void <API key>(const <API key>::slot_type& cb)
{
sNameChangedSignal.connect(cb);
}
void doNothing() { }
}
class <API key> : public LLHTTPClient::Responder
{
public:
// only care about errors
/*virtual*/ void errorWithContent(U32 status, const std::string& reason, const LLSD& content)
{
LL_WARNS() << "<API key> error [status:"
<< status << "]: " << content << LL_ENDL;
LLViewerDisplayName::<API key>(false, "", LLSD());
LLViewerDisplayName::<API key>.<API key>();
}
};
void LLViewerDisplayName::set(const std::string& display_name, const set_name_slot_t& slot)
{
// TODO: simple validation here
LLViewerRegion* region = gAgent.getRegion();
llassert(region);
std::string cap_url = region->getCapability("SetDisplayName");
if (cap_url.empty())
{
// this server does not support display names, report error
slot(false, "unsupported", LLSD());
return;
}
// People API can return localized error messages. Indicate our
// language preference via header.
LLSD headers;
headers["Accept-Language"] = LLUI::getLanguage();
// People API requires both the old and new value to change a variable.
// Our display name will be in cache before the viewer's UI is available
// to request a change, so we can use direct lookup without callback.
LLAvatarName av_name;
if (!LLAvatarNameCache::get( gAgent.getID(), &av_name))
{
slot(false, "name unavailable", LLSD());
return;
}
// People API expects array of [ "old value", "new value" ]
LLSD change_array = LLSD::emptyArray();
change_array.append(av_name.getDisplayName());
change_array.append(display_name);
LL_INFOS() << "Set name POST to " << cap_url << LL_ENDL;
// Record our caller for when the server sends back a reply
<API key>.connect(slot);
// POST the requested change. The sim will not send a response back to
// this request directly, rather it will send a separate message after it
// communicates with the back-end.
LLSD body;
body["display_name"] = change_array;
LLHTTPClient::post(cap_url, body, new <API key>, headers);
}
class <API key> : public LLHTTPNode
{
LOG_CLASS(<API key>);
public:
/*virtual*/ void post(
LLHTTPNode::ResponsePtr response,
const LLSD& context,
const LLSD& input) const
{
LLSD body = input["body"];
S32 status = body["status"].asInteger();
bool success = (status == 200);
std::string reason = body["reason"].asString();
LLSD content = body["content"];
LL_INFOS() << "status " << status << " reason " << reason << LL_ENDL;
// If viewer's concept of display name is out-of-date, the set request
// will fail with 409 Conflict. If that happens, fetch up-to-date
// name information.
if (status == 409)
{
LLUUID agent_id = gAgent.getID();
// Flush stale data
LLAvatarNameCache::erase( agent_id );
// Queue request for new data: nothing to do on callback though...
// Note: no need to disconnect the callback as it never gets out of scope
LLAvatarNameCache::get(agent_id, boost::bind(&LLViewerDisplayName::doNothing));
// Kill name tag, as it is wrong
LLVOAvatar::invalidateNameTag( agent_id );
}
// inform caller of result
LLViewerDisplayName::<API key>(success, reason, content);
LLViewerDisplayName::<API key>.<API key>();
}
};
class LLDisplayNameUpdate : public LLHTTPNode
{
/*virtual*/ void post(
LLHTTPNode::ResponsePtr response,
const LLSD& context,
const LLSD& input) const
{
LLSD body = input["body"];
LLUUID agent_id = body["agent_id"];
std::string old_display_name = body["old_display_name"];
// By convention this record is called "agent" in the People API
LLSD name_data = body["agent"];
// Inject the new name data into cache
LLAvatarName av_name;
av_name.fromLLSD( name_data );
LL_INFOS() << "name-update now " << LLDate::now()
<< " next_update " << LLDate(av_name.mNextUpdate)
<< LL_ENDL;
// Name expiration time may be provided in headers, or we may use a
// default value
// *TODO: get actual headers out of ResponsePtr
//LLSD headers = response->mHeaders;
LLSD headers;
av_name.mExpires =
LLAvatarNameCache::<API key>(headers);
LLAvatarNameCache::insert(agent_id, av_name);
// force name tag to update
LLVOAvatar::invalidateNameTag(agent_id);
LLSD args;
args["OLD_NAME"] = old_display_name;
args["SLID"] = av_name.getUserName();
args["NEW_NAME"] = av_name.getDisplayName();
if (LGGContactSets::getInstance()->hasPseudonym(agent_id))
{
LLSD payload;
payload["agent_id"] = agent_id;
LLNotificationsUtil::add("<API key>", args, payload,
boost::bind(&LGGContactSets::callbackAliasReset, LGGContactSets::getInstance(), _1, _2));
}
else
{
// <FS:Ansariel> Optional hiding of display name update notification
if (gSavedSettings.getBOOL("<API key>"))
{
LLNotificationsUtil::add("DisplayNameUpdate", args);
}
// </FS:Ansariel> Optional hiding of display name update notification
}
if (agent_id == gAgent.getID())
{
LLViewerDisplayName::sNameChangedSignal();
}
// <FS:Ansariel> Update name in radar
else
{
FSRadar* radar = FSRadar::getInstance();
if (radar)
{
radar->updateName(agent_id);
}
}
// </FS:Ansariel>
}
};
LLHTTPRegistration<<API key>>
<API key>(
"/message/SetDisplayNameReply");
LLHTTPRegistration<LLDisplayNameUpdate>
<API key>(
"/message/DisplayNameUpdate");
|
// checkstyle: Checks Java source code for adherence to a set of rules.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// You should have received a copy of the GNU Lesser General Public
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.puppycrawl.tools.checkstyle.checks.coding;
import com.puppycrawl.tools.checkstyle.<API key>;
import com.puppycrawl.tools.checkstyle.<API key>;
import java.io.File;
import org.junit.Test;
/**
* Test fixture for the <API key>.
*
* @author Eric K. Roe
*/
public class <API key> extends <API key>
{
private static final String TEST_FILE = "coding" + File.separator
+ "<API key>.java";
@Test
public void testDefault() throws Exception
{
final <API key> checkConfig =
createCheckConfig(<API key>.class);
final String[] expected = {
"4:22: Unnecessary parentheses around assignment right-hand side.",
"4:29: Unnecessary parentheses around expression.",
"4:31: Unnecessary parentheses around identifier 'i'.",
"4:46: Unnecessary parentheses around assignment right-hand side.",
"5:15: Unnecessary parentheses around assignment right-hand side.",
"6:14: Unnecessary parentheses around identifier 'x'.",
"6:17: Unnecessary parentheses around assignment right-hand side.",
"7:15: Unnecessary parentheses around assignment right-hand side.",
"8:14: Unnecessary parentheses around identifier 'x'.",
"8:17: Unnecessary parentheses around assignment right-hand side.",
"11:22: Unnecessary parentheses around assignment right-hand side.",
"11:30: Unnecessary parentheses around identifier 'i'.",
"11:46: Unnecessary parentheses around assignment right-hand side.",
"15:17: Unnecessary parentheses around literal '0'.",
"25:11: Unnecessary parentheses around assignment right-hand side.",
"29:11: Unnecessary parentheses around assignment right-hand side.",
"31:11: Unnecessary parentheses around assignment right-hand side.",
"33:11: Unnecessary parentheses around assignment right-hand side.",
"34:16: Unnecessary parentheses around identifier 'a'.",
"35:14: Unnecessary parentheses around identifier 'a'.",
"35:20: Unnecessary parentheses around identifier 'b'.",
"35:26: Unnecessary parentheses around literal '600'.",
"35:40: Unnecessary parentheses around literal '12.5f'.",
"35:56: Unnecessary parentheses around identifier 'arg2'.",
"36:14: Unnecessary parentheses around string \"this\".",
"36:25: Unnecessary parentheses around string \"that\".",
"37:11: Unnecessary parentheses around assignment right-hand side.",
"37:14: Unnecessary parentheses around string \"this is a really, really...\".",
"39:16: Unnecessary parentheses around return value.",
"43:21: Unnecessary parentheses around literal '1'.",
"43:26: Unnecessary parentheses around literal '13.5'.",
"44:22: Unnecessary parentheses around literal 'true'.",
"45:17: Unnecessary parentheses around identifier 'b'.",
"49:17: Unnecessary parentheses around assignment right-hand side.",
"51:11: Unnecessary parentheses around assignment right-hand side.",
"53:16: Unnecessary parentheses around return value.",
"63:13: Unnecessary parentheses around expression.",
"67:16: Unnecessary parentheses around expression.",
"72:19: Unnecessary parentheses around expression.",
"73:23: Unnecessary parentheses around literal '4000'.",
"78:19: Unnecessary parentheses around assignment right-hand side.",
"80:11: Unnecessary parentheses around assignment right-hand side.",
"80:16: Unnecessary parentheses around literal '3'.",
"81:27: Unnecessary parentheses around assignment right-hand side.",
};
verify(checkConfig, getPath(TEST_FILE), expected);
}
@Test
public void test15Extensions() throws Exception
{
final <API key> checkConfig = createCheckConfig(<API key>.class);
final String[] expected = {};
verify(checkConfig, getPath("Input15Extensions.java"), expected);
}
}
|
/* -*-c++-*- $Id: Version,v 1.2 2004/04/20 12:26:04 andersb Exp $ */
#include <osgHaptics/HapticRenderLeaf.h>
#include <osgHaptics/<API key>.h>
#include <osgHaptics/HapticRenderBin.h>
#include <osgHaptics/Shape.h>
#include <osgUtil/StateGraph>
#include <osg/Geometry>
#include <osg/TriangleFunctor>
using namespace osgHaptics;
void HapticRenderLeaf::render(osg::RenderInfo& renderInfo,osgUtil::RenderLeaf* previous)
{
// don't draw this leaf if the abort rendering flag has been set.
if (renderInfo.getState()->getAbortRendering())
{
//cout << "early abort"<<endl;
return;
}
if (previous)
{
// apply matrices if required.
renderInfo.getState()-><API key>(_projection.get());
renderInfo.getState()-><API key>(_modelview.get());
// apply state if required.
osgUtil::StateGraph* prev_rg = previous->_parent;
osgUtil::StateGraph* prev_rg_parent = prev_rg->_parent;
osgUtil::StateGraph* rg = _parent;
if (prev_rg_parent!=rg->_parent)
{
osgUtil::StateGraph::moveStateGraph(*renderInfo.getState(),prev_rg_parent,rg->_parent);
// send state changes and matrix changes to OpenGL.
renderInfo.getState()->apply(rg->_stateset.get());
}
else if (rg!=prev_rg)
{
// send state changes and matrix changes to OpenGL.
renderInfo.getState()->apply(rg->_stateset.get());
}
const osgHaptics::Shape *shape = m_renderbin->getShape(renderInfo);
//--by SophiaSoo/CUHK: for two arms
// Does this shape contain the device currently rendered?
if (!shape || !shape-><API key>()) {
return;
}
bool render_shape=false;
render_shape = !m_renderbin->hasBeenDrawn(renderInfo);
// If we have a shape,
// and the device is reporting, Dont render haptic shape,
// then bail out and skip the rendering of this HapticRenderLeaf
if (shape && !shape->getHapticDevice()-><API key>())
return;
if (shape && render_shape) {
//shape = static_cast<const osgHaptics::Shape*> (sa);
shape->preDraw();
}
#ifdef <API key>
osg::Geometry* geom = dynamic_cast<osg::Geometry *>(_drawable.get());
#else
osg::Geometry* geom = dynamic_cast<osg::Geometry *>(_drawable);
#endif
if (geom) {
<API key> op;
geom->accept(op);
}
else
// draw the drawable
{
_drawable->draw(renderInfo);
}
if (shape && render_shape) {
shape->postDraw();
}
}
else
{
std::cerr << "!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl;
// apply matrices if required.
renderInfo.getState()-><API key>(_projection.get());
renderInfo.getState()-><API key>(_modelview.get());
// apply state if required.
osgUtil::StateGraph::moveStateGraph(*renderInfo.getState(),NULL,_parent->_parent);
#ifdef <API key>
renderInfo.getState()->apply(_parent->_stateset.get());
#else
renderInfo.getState()->apply(_parent->_stateset);
#endif
// draw the drawable
_drawable->draw(renderInfo);
}
}
|
package jade.core;
//#APIDOC_EXCLUDE_FILE
import jade.util.leap.Serializable;
import jade.security.JADEPrincipal;
import jade.security.Credentials;
/**
The <code>NodeDescriptor</code> class serves as a meta-level
description of a kernel-level service.
Instances of this class contain a <code>Node</code> object,
along with its name and properties, and are used in service
management operations, as well as in agent-level introspection of
platform-level entities.
@author Giovanni Rimassa - FRAMeTech s.r.l.
@see Node
*/
public class NodeDescriptor implements Serializable {
/**
Builds a new node descriptor, describing the given node with
the given name and properties.
@param nn The name of the described node.
@param node The described <code>Node</code> object.
*/
public NodeDescriptor(Node node) {
myName = node.getName();
myNode = node;
}
/**
Builds a node descriptor for a node hosting an agent container.
@param cid The container ID for the hosted container.
@param node The described <code>Node</code> object.
@param principal The principal of the node owner.
@param credentials The credentials of the node owner.
*/
public NodeDescriptor(ContainerID cid, Node node) {
myName = cid.getName();
myNode = node;
myContainer = cid;
}
/**
Builds an uninitialized node descriptor.
@see NodeDescriptor#setName(String sn)
@see NodeDescriptor#setNode(Node node)
*/
public NodeDescriptor() {
}
/**
Change the name (if any) of the described node.
@param nn The name to assign to the described node.
*/
public void setName(String nn) {
myName = nn;
}
/**
Retrieve the name (if any) of the described node.
@return The name of the described node, or <code>null</code>
if no name was set.
*/
public String getName() {
return myName;
}
/**
Change the described node (if any).
@param node The <code>Node</code> object that is to be
described by this node descriptor.
*/
public void setNode(Node node) {
myNode = node;
}
/**
Retrieve the described node.
@return The <code>Node</code> object described by this
node descriptor, or <code>null</code> if no node was set.
*/
public Node getNode() {
return myNode;
}
/**
Retrieve the ID of the container (if any) hosted by the
described node.
@return The <code>ContainerID</code> of the hosted container,
or <code>null</code> if no such container was set.
*/
public ContainerID getContainer() {
return myContainer;
}
public void setParentNode(Node n) {
parentNode = n;
}
public Node getParentNode() {
return parentNode;
}
/**
Set the username of the owner of the described node
*/
public void setUsername(String username) {
this.username = username;
}
/**
Retrieve the username of the owner of the described node
*/
public String getUsername() {
return username;
}
/**
Set the password of the owner of the described node
*/
public void setPassword(byte[] password) {
this.password = password;
}
/**
Retrieve the password of the owner of the described node
*/
public byte[] getPassword() {
return password;
}
/**
Set the principal of the described node
*/
public void setPrincipal(JADEPrincipal principal) {
myPrincipal = principal;
}
/**
Retrieve the principal of the described node
*/
public JADEPrincipal getPrincipal() {
return myPrincipal;
}
/**
Set the principal of the owner of this node
*/
public void setOwnerPrincipal(JADEPrincipal principal) {
ownerPrincipal = principal;
}
/**
Retrieve the principal of the owner of this node (if any)
@return The principal of the owner of this node, or
<code>null</code> if no principal was set.
*/
public JADEPrincipal getOwnerPrincipal() {
return ownerPrincipal;
}
/**
Set the credentials of the owner of this node
*/
public void setOwnerCredentials(Credentials credentials) {
ownerCredentials = credentials;
}
/**
Retrieve the credentials of the owner of this node (if any)
@return The credentials of the owner of this node, or
<code>null</code> if no credentials were set.
*/
public Credentials getOwnerCredentials() {
return ownerCredentials;
}
private String myName;
private Node myNode;
private Node parentNode;
private ContainerID myContainer;
private String username;
private byte[] password;
private JADEPrincipal myPrincipal;
private JADEPrincipal ownerPrincipal;
private Credentials ownerCredentials;
}
|
#include <gadget/gadgetConfig.h>
#include <boost/concept_check.hpp>
#include <vpr/Util/Debug.h>
#include <vpr/IO/ObjectWriter.h>
#include <vpr/IO/ObjectReader.h>
#include <gadget/Type/Command.h>
namespace gadget
{
const CommandData Command::getCommandData(int devNum)
{
SampleBuffer_t::buffer_t& stable_buffer = mCommandSamples.stableBuffer();
if ( (!stable_buffer.empty()) &&
(stable_buffer.back().size() > (unsigned)devNum) ) // If Have entry && devNum in range
{
return stable_buffer.back()[devNum];
}
else // No data or request out of range, return default value
{
if ( stable_buffer.empty() )
{
vprDEBUG(vprDBG_ALL, vprDBG_WARNING_LVL)
<< "WARNING: [gadget::Command::getCommandData()] "
<< "Stable buffer is empty. If this is not the first "
<< "read, then this is a problem.\n" << vprDEBUG_FLUSH;
}
else
{
vprDEBUG(vprDBG_ALL, vprDBG_CONFIG_LVL)
<< "WARNING: [gadget::Command::getCommandData()] "
<< "Requested devNum (" << devNum
<< ") is not in the range available. "
<< "This is probably a configuration error.\n" << vprDEBUG_FLUSH;
}
return mDefaultValue;
}
}
void Command::writeObject(vpr::ObjectWriter* writer)
{
writer->beginTag(Command::getInputTypeName());
SampleBuffer_t::buffer_t& stable_buffer = mCommandSamples.stableBuffer();
writer->beginAttribute(gadget::tokens::DataTypeAttrib);
// Write out the data type so that we can assert if reading in wrong
// place.
writer->writeUint16(MSG_DATA_COMMAND);
writer->endAttribute();
writer->beginAttribute(gadget::tokens::<API key>);
// Write the # of vectors in the stable buffer.
writer->writeUint16(stable_buffer.size());
writer->endAttribute();
if ( !stable_buffer.empty() )
{
mCommandSamples.lock();
for ( unsigned j = 0; j < stable_buffer.size(); ++j ) // For each vector in the stable buffer
{
writer->beginTag(gadget::tokens::BufferSampleTag);
writer->beginAttribute(gadget::tokens::<API key>);
writer->writeUint16(stable_buffer[j].size()); // Write the # of CommandDatas in the vector
writer->endAttribute();
for ( unsigned i = 0; i < stable_buffer[j].size(); ++i ) // For each CommandData in the vector
{
writer->beginTag(gadget::tokens::DigitalValue);
writer->beginAttribute(gadget::tokens::TimeStamp);
writer->writeUint64(stable_buffer[j][i].getTime().usec()); // Write Time Stamp vpr::Uint64
writer->endAttribute();
writer->writeUint32((vpr::Uint32)stable_buffer[j][i].getDigital()); // Write Command Data(int)
writer->endTag();
}
writer->endTag();
}
mCommandSamples.unlock();
}
writer->endTag();
}
void Command::readObject(vpr::ObjectReader* reader)
{
vprASSERT(reader->attribExists("rim.timestamp.delta"));
vpr::Uint64 delta = reader->getAttrib<vpr::Uint64>("rim.timestamp.delta");
// ASSERT if this data is really not Command Data
reader->beginTag(Command::getInputTypeName());
reader->beginAttribute(gadget::tokens::DataTypeAttrib);
vpr::Uint16 temp = reader->readUint16();
reader->endAttribute();
// XXX: Should there be error checking for the case when vprASSERT()
// is compiled out? -PH 8/21/2003
vprASSERT(temp==MSG_DATA_COMMAND && "[Remote Input Manager]Not Command Data");
boost::<API key>(temp);
std::vector<CommandData> dataSample;
unsigned numCommandDatas;
vpr::Uint32 value;
vpr::Uint64 timeStamp;
CommandData temp_command_data;
reader->beginAttribute(gadget::tokens::<API key>);
unsigned numVectors = reader->readUint16();
reader->endAttribute();
mCommandSamples.lock();
for ( unsigned i = 0; i < numVectors; ++i )
{
reader->beginTag(gadget::tokens::BufferSampleTag);
reader->beginAttribute(gadget::tokens::<API key>);
numCommandDatas = reader->readUint16();
reader->endAttribute();
dataSample.clear();
for ( unsigned j = 0; j < numCommandDatas; ++j )
{
reader->beginTag(gadget::tokens::DigitalValue);
reader->beginAttribute(gadget::tokens::TimeStamp);
timeStamp = reader->readUint64(); // read Time Stamp vpr::Uint64
reader->endAttribute();
value = reader->readUint32(); // read Command Data(int)
reader->endTag();
temp_command_data.setDigital(value);
temp_command_data.setTime(vpr::Interval(timeStamp + delta,vpr::Interval::Usec));
dataSample.push_back(temp_command_data);
}
mCommandSamples.addSample(dataSample);
reader->endTag();
}
mCommandSamples.unlock();
mCommandSamples.swapBuffers();
reader->endTag();
}
} // End of gadget namespace
|
#include "config.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <ctype.h>
#include <signal.h>
#include "alMain.h"
#include "alSource.h"
#include "AL/al.h"
#include "AL/alc.h"
#include "alThunk.h"
#include "alSource.h"
#include "alBuffer.h"
#include "alAuxEffectSlot.h"
#include "alError.h"
#include "bs2b.h"
#include "alu.h"
#define EmptyFuncs { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
static struct BackendInfo BackendList[] = {
#ifdef HAVE_PULSEAUDIO
{ "pulse", alc_pulse_init, alc_pulse_deinit, alc_pulse_probe, EmptyFuncs },
#endif
#ifdef HAVE_ALSA
{ "alsa", alc_alsa_init, alc_alsa_deinit, alc_alsa_probe, EmptyFuncs },
#endif
#ifdef HAVE_COREAUDIO
{ "core", alc_ca_init, alc_ca_deinit, alc_ca_probe, EmptyFuncs },
#endif
#ifdef HAVE_OSS
{ "oss", alc_oss_init, alc_oss_deinit, alc_oss_probe, EmptyFuncs },
#endif
#ifdef HAVE_SOLARIS
{ "solaris", alc_solaris_init, alc_solaris_deinit, alc_solaris_probe, EmptyFuncs },
#endif
#ifdef HAVE_SNDIO
{ "sndio", alc_sndio_init, alc_sndio_deinit, alc_sndio_probe, EmptyFuncs },
#endif
#ifdef HAVE_MMDEVAPI
{ "mmdevapi", alcMMDevApiInit, alcMMDevApiDeinit, alcMMDevApiProbe, EmptyFuncs },
#endif
#ifdef HAVE_DSOUND
{ "dsound", alcDSoundInit, alcDSoundDeinit, alcDSoundProbe, EmptyFuncs },
#endif
#ifdef HAVE_WINMM
{ "winmm", alcWinMMInit, alcWinMMDeinit, alcWinMMProbe, EmptyFuncs },
#endif
#ifdef HAVE_PORTAUDIO
{ "port", alc_pa_init, alc_pa_deinit, alc_pa_probe, EmptyFuncs },
#endif
#ifdef HAVE_OPENSL
{ "opensl", alc_opensl_init, alc_opensl_deinit, alc_opensl_probe, EmptyFuncs },
#endif
{ "null", alc_null_init, alc_null_deinit, alc_null_probe, EmptyFuncs },
#ifdef HAVE_WAVE
{ "wave", alc_wave_init, alc_wave_deinit, alc_wave_probe, EmptyFuncs },
#endif
{ NULL, NULL, NULL, NULL, EmptyFuncs }
};
static struct BackendInfo BackendLoopback = {
"loopback", alc_loopback_init, alc_loopback_deinit, alc_loopback_probe, EmptyFuncs
};
#undef EmptyFuncs
static struct BackendInfo PlaybackBackend;
static struct BackendInfo CaptureBackend;
typedef struct ALCfunction {
const ALCchar *funcName;
ALCvoid *address;
} ALCfunction;
typedef struct ALCenums {
const ALCchar *enumName;
ALCenum value;
} ALCenums;
#define DECL(x) { #x, (ALCvoid*)(x) }
static const ALCfunction alcFunctions[] = {
DECL(alcCreateContext),
DECL(<API key>),
DECL(alcProcessContext),
DECL(alcSuspendContext),
DECL(alcDestroyContext),
DECL(<API key>),
DECL(<API key>),
DECL(alcOpenDevice),
DECL(alcCloseDevice),
DECL(alcGetError),
DECL(<API key>),
DECL(alcGetProcAddress),
DECL(alcGetEnumValue),
DECL(alcGetString),
DECL(alcGetIntegerv),
DECL(<API key>),
DECL(<API key>),
DECL(alcCaptureStart),
DECL(alcCaptureStop),
DECL(alcCaptureSamples),
DECL(alcSetThreadContext),
DECL(alcGetThreadContext),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(alEnable),
DECL(alDisable),
DECL(alIsEnabled),
DECL(alGetString),
DECL(alGetBooleanv),
DECL(alGetIntegerv),
DECL(alGetFloatv),
DECL(alGetDoublev),
DECL(alGetBoolean),
DECL(alGetInteger),
DECL(alGetFloat),
DECL(alGetDouble),
DECL(alGetError),
DECL(<API key>),
DECL(alGetProcAddress),
DECL(alGetEnumValue),
DECL(alListenerf),
DECL(alListener3f),
DECL(alListenerfv),
DECL(alListeneri),
DECL(alListener3i),
DECL(alListeneriv),
DECL(alGetListenerf),
DECL(alGetListener3f),
DECL(alGetListenerfv),
DECL(alGetListeneri),
DECL(alGetListener3i),
DECL(alGetListeneriv),
DECL(alGenSources),
DECL(alDeleteSources),
DECL(alIsSource),
DECL(alSourcef),
DECL(alSource3f),
DECL(alSourcefv),
DECL(alSourcei),
DECL(alSource3i),
DECL(alSourceiv),
DECL(alGetSourcef),
DECL(alGetSource3f),
DECL(alGetSourcefv),
DECL(alGetSourcei),
DECL(alGetSource3i),
DECL(alGetSourceiv),
DECL(alSourcePlayv),
DECL(alSourceStopv),
DECL(alSourceRewindv),
DECL(alSourcePausev),
DECL(alSourcePlay),
DECL(alSourceStop),
DECL(alSourceRewind),
DECL(alSourcePause),
DECL(<API key>),
DECL(<API key>),
DECL(alGenBuffers),
DECL(alDeleteBuffers),
DECL(alIsBuffer),
DECL(alBufferData),
DECL(alBufferf),
DECL(alBuffer3f),
DECL(alBufferfv),
DECL(alBufferi),
DECL(alBuffer3i),
DECL(alBufferiv),
DECL(alGetBufferf),
DECL(alGetBuffer3f),
DECL(alGetBufferfv),
DECL(alGetBufferi),
DECL(alGetBuffer3i),
DECL(alGetBufferiv),
DECL(alDopplerFactor),
DECL(alDopplerVelocity),
DECL(alSpeedOfSound),
DECL(alDistanceModel),
DECL(alGenFilters),
DECL(alDeleteFilters),
DECL(alIsFilter),
DECL(alFilteri),
DECL(alFilteriv),
DECL(alFilterf),
DECL(alFilterfv),
DECL(alGetFilteri),
DECL(alGetFilteriv),
DECL(alGetFilterf),
DECL(alGetFilterfv),
DECL(alGenEffects),
DECL(alDeleteEffects),
DECL(alIsEffect),
DECL(alEffecti),
DECL(alEffectiv),
DECL(alEffectf),
DECL(alEffectfv),
DECL(alGetEffecti),
DECL(alGetEffectiv),
DECL(alGetEffectf),
DECL(alGetEffectfv),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(alBufferSubDataSOFT),
DECL(alBufferSamplesSOFT),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(alDeferUpdatesSOFT),
DECL(<API key>),
DECL(alGetSourcedSOFT),
DECL(alGetSource3dSOFT),
DECL(alGetSourcedvSOFT),
DECL(alGetSourcei64SOFT),
DECL(alGetSource3i64SOFT),
DECL(alGetSourcei64vSOFT),
{ NULL, NULL }
};
#undef DECL
#define DECL(x) { #x, (x) }
static const ALCenums enumeration[] = {
DECL(ALC_INVALID),
DECL(ALC_FALSE),
DECL(ALC_TRUE),
DECL(ALC_MAJOR_VERSION),
DECL(ALC_MINOR_VERSION),
DECL(ALC_ATTRIBUTES_SIZE),
DECL(ALC_ALL_ATTRIBUTES),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(ALC_EXTENSIONS),
DECL(ALC_FREQUENCY),
DECL(ALC_REFRESH),
DECL(ALC_SYNC),
DECL(ALC_MONO_SOURCES),
DECL(ALC_STEREO_SOURCES),
DECL(<API key>),
DECL(<API key>),
DECL(ALC_CAPTURE_SAMPLES),
DECL(ALC_CONNECTED),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(ALC_MONO_SOFT),
DECL(ALC_STEREO_SOFT),
DECL(ALC_QUAD_SOFT),
DECL(ALC_5POINT1_SOFT),
DECL(ALC_6POINT1_SOFT),
DECL(ALC_7POINT1_SOFT),
DECL(ALC_BYTE_SOFT),
DECL(<API key>),
DECL(ALC_SHORT_SOFT),
DECL(<API key>),
DECL(ALC_INT_SOFT),
DECL(<API key>),
DECL(ALC_FLOAT_SOFT),
DECL(ALC_NO_ERROR),
DECL(ALC_INVALID_DEVICE),
DECL(ALC_INVALID_CONTEXT),
DECL(ALC_INVALID_ENUM),
DECL(ALC_INVALID_VALUE),
DECL(ALC_OUT_OF_MEMORY),
DECL(AL_INVALID),
DECL(AL_NONE),
DECL(AL_FALSE),
DECL(AL_TRUE),
DECL(AL_SOURCE_RELATIVE),
DECL(AL_CONE_INNER_ANGLE),
DECL(AL_CONE_OUTER_ANGLE),
DECL(AL_PITCH),
DECL(AL_POSITION),
DECL(AL_DIRECTION),
DECL(AL_VELOCITY),
DECL(AL_LOOPING),
DECL(AL_BUFFER),
DECL(AL_GAIN),
DECL(AL_MIN_GAIN),
DECL(AL_MAX_GAIN),
DECL(AL_ORIENTATION),
DECL(<API key>),
DECL(AL_ROLLOFF_FACTOR),
DECL(AL_CONE_OUTER_GAIN),
DECL(AL_MAX_DISTANCE),
DECL(AL_SEC_OFFSET),
DECL(AL_SAMPLE_OFFSET),
DECL(<API key>),
DECL(AL_BYTE_OFFSET),
DECL(<API key>),
DECL(AL_SOURCE_TYPE),
DECL(AL_STATIC),
DECL(AL_STREAMING),
DECL(AL_UNDETERMINED),
DECL(AL_METERS_PER_UNIT),
DECL(<API key>),
DECL(AL_DIRECT_FILTER),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_SOURCE_STATE),
DECL(AL_INITIAL),
DECL(AL_PLAYING),
DECL(AL_PAUSED),
DECL(AL_STOPPED),
DECL(AL_BUFFERS_QUEUED),
DECL(<API key>),
DECL(AL_FORMAT_MONO8),
DECL(AL_FORMAT_MONO16),
DECL(<API key>),
DECL(<API key>),
DECL(AL_FORMAT_STEREO8),
DECL(AL_FORMAT_STEREO16),
DECL(<API key>),
DECL(<API key>),
DECL(AL_FORMAT_MONO_IMA4),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_FORMAT_QUAD8),
DECL(AL_FORMAT_QUAD16),
DECL(AL_FORMAT_QUAD32),
DECL(AL_FORMAT_51CHN8),
DECL(AL_FORMAT_51CHN16),
DECL(AL_FORMAT_51CHN32),
DECL(AL_FORMAT_61CHN8),
DECL(AL_FORMAT_61CHN16),
DECL(AL_FORMAT_61CHN32),
DECL(AL_FORMAT_71CHN8),
DECL(AL_FORMAT_71CHN16),
DECL(AL_FORMAT_71CHN32),
DECL(AL_FORMAT_REAR8),
DECL(AL_FORMAT_REAR16),
DECL(AL_FORMAT_REAR32),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_MONO8_SOFT),
DECL(AL_MONO16_SOFT),
DECL(AL_MONO32F_SOFT),
DECL(AL_STEREO8_SOFT),
DECL(AL_STEREO16_SOFT),
DECL(AL_STEREO32F_SOFT),
DECL(AL_QUAD8_SOFT),
DECL(AL_QUAD16_SOFT),
DECL(AL_QUAD32F_SOFT),
DECL(AL_REAR8_SOFT),
DECL(AL_REAR16_SOFT),
DECL(AL_REAR32F_SOFT),
DECL(AL_5POINT1_8_SOFT),
DECL(AL_5POINT1_16_SOFT),
DECL(AL_5POINT1_32F_SOFT),
DECL(AL_6POINT1_8_SOFT),
DECL(AL_6POINT1_16_SOFT),
DECL(AL_6POINT1_32F_SOFT),
DECL(AL_7POINT1_8_SOFT),
DECL(AL_7POINT1_16_SOFT),
DECL(AL_7POINT1_32F_SOFT),
DECL(AL_MONO_SOFT),
DECL(AL_STEREO_SOFT),
DECL(AL_QUAD_SOFT),
DECL(AL_REAR_SOFT),
DECL(AL_5POINT1_SOFT),
DECL(AL_6POINT1_SOFT),
DECL(AL_7POINT1_SOFT),
DECL(AL_BYTE_SOFT),
DECL(<API key>),
DECL(AL_SHORT_SOFT),
DECL(<API key>),
DECL(AL_INT_SOFT),
DECL(<API key>),
DECL(AL_FLOAT_SOFT),
DECL(AL_DOUBLE_SOFT),
DECL(AL_BYTE3_SOFT),
DECL(<API key>),
DECL(AL_FREQUENCY),
DECL(AL_BITS),
DECL(AL_CHANNELS),
DECL(AL_SIZE),
DECL(<API key>),
DECL(AL_BYTE_LENGTH_SOFT),
DECL(<API key>),
DECL(AL_SEC_LENGTH_SOFT),
DECL(AL_UNUSED),
DECL(AL_PENDING),
DECL(AL_PROCESSED),
DECL(AL_NO_ERROR),
DECL(AL_INVALID_NAME),
DECL(AL_INVALID_ENUM),
DECL(AL_INVALID_VALUE),
DECL(<API key>),
DECL(AL_OUT_OF_MEMORY),
DECL(AL_VENDOR),
DECL(AL_VERSION),
DECL(AL_RENDERER),
DECL(AL_EXTENSIONS),
DECL(AL_DOPPLER_FACTOR),
DECL(AL_DOPPLER_VELOCITY),
DECL(AL_DISTANCE_MODEL),
DECL(AL_SPEED_OF_SOUND),
DECL(<API key>),
DECL(<API key>),
DECL(AL_INVERSE_DISTANCE),
DECL(<API key>),
DECL(AL_LINEAR_DISTANCE),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_FILTER_TYPE),
DECL(AL_FILTER_NULL),
DECL(AL_FILTER_LOWPASS),
#if 0
DECL(AL_FILTER_HIGHPASS),
DECL(AL_FILTER_BANDPASS),
#endif
DECL(AL_LOWPASS_GAIN),
DECL(AL_LOWPASS_GAINHF),
DECL(AL_EFFECT_TYPE),
DECL(AL_EFFECT_NULL),
DECL(AL_EFFECT_REVERB),
DECL(AL_EFFECT_EAXREVERB),
#if 0
DECL(AL_EFFECT_CHORUS),
DECL(<API key>),
#endif
DECL(AL_EFFECT_ECHO),
#if 0
DECL(AL_EFFECT_FLANGER),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
#endif
DECL(<API key>),
#if 0
DECL(AL_EFFECT_AUTOWAH),
DECL(<API key>),
DECL(AL_EFFECT_EQUALIZER),
#endif
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_EAXREVERB_GAIN),
DECL(AL_EAXREVERB_GAINHF),
DECL(AL_EAXREVERB_GAINLF),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_REVERB_DENSITY),
DECL(AL_REVERB_DIFFUSION),
DECL(AL_REVERB_GAIN),
DECL(AL_REVERB_GAINHF),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_ECHO_DELAY),
DECL(AL_ECHO_LRDELAY),
DECL(AL_ECHO_DAMPING),
DECL(AL_ECHO_FEEDBACK),
DECL(AL_ECHO_SPREAD),
DECL(<API key>),
DECL(<API key>),
DECL(<API key>),
DECL(AL_DEDICATED_GAIN),
{ NULL, (ALCenum)0 }
};
#undef DECL
static const ALCchar alcNoError[] = "No Error";
static const ALCchar alcErrInvalidDevice[] = "Invalid Device";
static const ALCchar <API key>[] = "Invalid Context";
static const ALCchar alcErrInvalidEnum[] = "Invalid Enum";
static const ALCchar alcErrInvalidValue[] = "Invalid Value";
static const ALCchar alcErrOutOfMemory[] = "Out of Memory";
/* Enumerated device names */
static const ALCchar alcDefaultName[] = "OpenAL Soft\0";
static ALCchar *alcAllDevicesList;
static ALCchar *<API key>;
/* Sizes only include the first ending null character, not the second */
static size_t <API key>;
static size_t <API key>;
/* Default is always the first in the list */
static ALCchar *<API key>;
static ALCchar *<API key>;
/* Default context extensions */
static const ALchar alExtList[] =
"AL_EXT_ALAW AL_EXT_DOUBLE <API key> AL_EXT_FLOAT32 "
"AL_EXT_IMA4 <API key> AL_EXT_MCFORMATS AL_EXT_MULAW "
"<API key> AL_EXT_OFFSET <API key> "
"<API key> <API key> <API key> "
"<API key> <API key> AL_SOFT_loop_points";
static volatile ALCenum LastNullDeviceError = ALC_NO_ERROR;
/* Thread-local current context */
static pthread_key_t LocalContext;
/* Process-wide current context */
static ALCcontext *volatile GlobalContext = NULL;
/* Mixing thread piority level */
ALint RTPrioLevel;
FILE *LogFile;
#ifdef _DEBUG
enum LogLevel LogLevel = LogWarning;
#else
enum LogLevel LogLevel = LogError;
#endif
/* Flag to trap ALC device errors */
static ALCboolean TrapALCError = ALC_FALSE;
/* One-time configuration init control */
static pthread_once_t alc_config_once = PTHREAD_ONCE_INIT;
/* Default effect that applies to sources that don't have an effect on send 0 */
static ALeffect DefaultEffect;
static const ALCchar alcNoDeviceExtList[] =
"<API key> ALC_ENUMERATION_EXT ALC_EXT_CAPTURE "
"<API key> ALC_SOFT_loopback";
static const ALCchar alcExtensionList[] =
"<API key> ALC_ENUMERATION_EXT ALC_EXT_CAPTURE "
"ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX "
"<API key> ALC_SOFT_loopback";
static const ALCint alcMajorVersion = 1;
static const ALCint alcMinorVersion = 1;
static const ALCint alcEFXMajorVersion = 1;
static const ALCint alcEFXMinorVersion = 0;
static ALCdevice *volatile DeviceList = NULL;
static CRITICAL_SECTION ListLock;
static void LockLists(void)
{
<API key>(&ListLock);
}
static void UnlockLists(void)
{
<API key>(&ListLock);
}
#if defined(_WIN32)
static void alc_init(void);
static void alc_deinit(void);
static void alc_deinit_safe(void);
UIntMap TlsDestructor;
#ifndef AL_LIBTYPE_STATIC
BOOL APIENTRY DllMain(HINSTANCE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
{
ALsizei i;
// Perform actions based on the reason for calling.
switch(ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
/* Pin the DLL so we won't get unloaded until the process terminates */
GetModuleHandleExW(<API key> | <API key>,
(WCHAR*)hModule, &hModule);
InitUIntMap(&TlsDestructor, ~0);
alc_init();
break;
case DLL_THREAD_DETACH:
LockUIntMapRead(&TlsDestructor);
for(i = 0;i < TlsDestructor.size;i++)
{
void *ptr = pthread_getspecific(TlsDestructor.array[i].key);
void (*callback)(void*) = (void(*)(void*))TlsDestructor.array[i].value;
if(ptr && callback)
callback(ptr);
}
UnlockUIntMapRead(&TlsDestructor);
break;
case DLL_PROCESS_DETACH:
if(!lpReserved)
alc_deinit();
else
alc_deinit_safe();
ResetUIntMap(&TlsDestructor);
break;
}
return TRUE;
}
#elif defined(_MSC_VER)
#pragma section(".CRT$XCU",read)
static void alc_constructor(void);
static void alc_destructor(void);
__declspec(allocate(".CRT$XCU")) void (__cdecl* alc_constructor_)(void) = alc_constructor;
static void alc_constructor(void)
{
atexit(alc_destructor);
alc_init();
}
static void alc_destructor(void)
{
alc_deinit();
}
#elif defined(HAVE_GCC_DESTRUCTOR)
static void alc_init(void) __attribute__((constructor));
static void alc_deinit(void) __attribute__((destructor));
#else
#error "No static initialization available on this platform!"
#endif
#elif defined(HAVE_GCC_DESTRUCTOR)
static void alc_init(void) __attribute__((constructor));
static void alc_deinit(void) __attribute__((destructor));
#else
#error "No global initialization available on this platform!"
#endif
static void ReleaseThreadCtx(void *ptr);
static void alc_init(void)
{
const char *str;
LogFile = stderr;
str = getenv("<API key>");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
ConeScale *= 0.5f;
str = getenv("__ALSOFT_REVERSE_Z");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
ZScale *= -1.0f;
pthread_key_create(&LocalContext, ReleaseThreadCtx);
<API key>(&ListLock);
ThunkInit();
}
static void alc_initconfig(void)
{
const char *devs, *str;
ALuint capfilter;
float valf;
int i, n;
str = getenv("ALSOFT_LOGLEVEL");
if(str)
{
long lvl = strtol(str, NULL, 0);
if(lvl >= NoLog && lvl <= LogRef)
LogLevel = lvl;
}
str = getenv("ALSOFT_LOGFILE");
if(str && str[0])
{
FILE *logfile = fopen(str, "wat");
if(logfile) LogFile = logfile;
else ERR("Failed to open log file '%s'\n", str);
}
ReadALConfig();
capfilter = 0;
#ifdef HAVE_SSE
capfilter |= CPU_CAP_SSE;
#endif
#ifdef HAVE_NEON
capfilter |= CPU_CAP_NEON;
#endif
if(ConfigValueStr(NULL, "disable-cpu-exts", &str))
{
if(strcasecmp(str, "all") == 0)
capfilter = 0;
else
{
size_t len;
const char *next = str;
i = 0;
do {
str = next;
next = strchr(str, ',');
while(isspace(str[0]))
str++;
if(!str[0] || str[0] == ',')
continue;
len = (next ? ((size_t)(next-str)) : strlen(str));
if(strncasecmp(str, "sse", len) == 0)
capfilter &= ~CPU_CAP_SSE;
else if(strncasecmp(str, "neon", len) == 0)
capfilter &= ~CPU_CAP_NEON;
else
WARN("Invalid CPU extension \"%s\"\n", str);
} while(next++);
}
}
FillCPUCaps(capfilter);
#ifdef _WIN32
RTPrioLevel = 1;
#else
RTPrioLevel = 0;
#endif
ConfigValueInt(NULL, "rt-prio", &RTPrioLevel);
if(ConfigValueStr(NULL, "resampler", &str))
{
if(strcasecmp(str, "point") == 0 || strcasecmp(str, "none") == 0)
DefaultResampler = PointResampler;
else if(strcasecmp(str, "linear") == 0)
DefaultResampler = LinearResampler;
else if(strcasecmp(str, "cubic") == 0)
DefaultResampler = CubicResampler;
else
{
char *end;
n = strtol(str, &end, 0);
if(*end == '\0' && (n == PointResampler || n == LinearResampler || n == CubicResampler))
DefaultResampler = n;
else
WARN("Invalid resampler: %s\n", str);
}
}
str = getenv("ALSOFT_TRAP_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
{
TrapALError = AL_TRUE;
TrapALCError = AL_TRUE;
}
else
{
str = getenv("<API key>");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
TrapALError = AL_TRUE;
TrapALError = GetConfigValueBool(NULL, "trap-al-error", TrapALError);
str = getenv("<API key>");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
TrapALCError = ALC_TRUE;
TrapALCError = GetConfigValueBool(NULL, "trap-alc-error", TrapALCError);
}
if(ConfigValueFloat("reverb", "boost", &valf))
ReverbBoost *= powf(10.0f, valf / 20.0f);
EmulateEAXReverb = GetConfigValueBool("reverb", "emulate-eax", AL_FALSE);
if(((devs=getenv("ALSOFT_DRIVERS")) && devs[0]) ||
ConfigValueStr(NULL, "drivers", &devs))
{
int n;
size_t len;
const char *next = devs;
int endlist, delitem;
i = 0;
do {
devs = next;
next = strchr(devs, ',');
delitem = (devs[0] == '-');
if(devs[0] == '-') devs++;
if(!devs[0] || devs[0] == ',')
{
endlist = 0;
continue;
}
endlist = 1;
len = (next ? ((size_t)(next-devs)) : strlen(devs));
for(n = i;BackendList[n].Init;n++)
{
if(len == strlen(BackendList[n].name) &&
strncmp(BackendList[n].name, devs, len) == 0)
{
if(delitem)
{
do {
BackendList[n] = BackendList[n+1];
++n;
} while(BackendList[n].Init);
}
else
{
struct BackendInfo Bkp = BackendList[n];
while(n > i)
{
BackendList[n] = BackendList[n-1];
--n;
}
BackendList[n] = Bkp;
i++;
}
break;
}
}
} while(next++);
if(endlist)
{
BackendList[i].name = NULL;
BackendList[i].Init = NULL;
BackendList[i].Deinit = NULL;
BackendList[i].Probe = NULL;
}
}
for(i = 0;BackendList[i].Init && (!PlaybackBackend.name || !CaptureBackend.name);i++)
{
if(!BackendList[i].Init(&BackendList[i].Funcs))
{
WARN("Failed to initialize backend \"%s\"\n", BackendList[i].name);
continue;
}
TRACE("Initialized backend \"%s\"\n", BackendList[i].name);
if(BackendList[i].Funcs.OpenPlayback && !PlaybackBackend.name)
{
PlaybackBackend = BackendList[i];
TRACE("Added \"%s\" for playback\n", PlaybackBackend.name);
}
if(BackendList[i].Funcs.OpenCapture && !CaptureBackend.name)
{
CaptureBackend = BackendList[i];
TRACE("Added \"%s\" for capture\n", CaptureBackend.name);
}
}
BackendLoopback.Init(&BackendLoopback.Funcs);
if(ConfigValueStr(NULL, "excludefx", &str))
{
size_t len;
const char *next = str;
do {
str = next;
next = strchr(str, ',');
if(!str[0] || next == str)
continue;
len = (next ? ((size_t)(next-str)) : strlen(str));
for(n = 0;EffectList[n].name;n++)
{
if(len == strlen(EffectList[n].name) &&
strncmp(EffectList[n].name, str, len) == 0)
DisabledEffects[EffectList[n].type] = AL_TRUE;
}
} while(next++);
}
InitEffect(&DefaultEffect);
str = getenv("<API key>");
if((str && str[0]) || ConfigValueStr(NULL, "default-reverb", &str))
LoadReverbPreset(str, &DefaultEffect);
}
#define DO_INITCONFIG() pthread_once(&alc_config_once, alc_initconfig)
static void alc_cleanup(void)
{
ALCdevice *dev;
free(alcAllDevicesList); alcAllDevicesList = NULL;
<API key> = 0;
free(<API key>); <API key> = NULL;
<API key> = 0;
free(<API key>);
<API key> = NULL;
free(<API key>);
<API key> = NULL;
if((dev=ExchangePtr((XchgPtr*)&DeviceList, NULL)) != NULL)
{
ALCuint num = 0;
do {
num++;
} while((dev=dev->next) != NULL);
ERR("%u device%s not closed\n", num, (num>1)?"s":"");
}
}
static void alc_deinit_safe(void)
{
alc_cleanup();
FreeHrtfs();
FreeALConfig();
ThunkExit();
<API key>(&ListLock);
pthread_key_delete(LocalContext);
if(LogFile != stderr)
fclose(LogFile);
LogFile = NULL;
}
static void alc_deinit(void)
{
int i;
alc_cleanup();
memset(&PlaybackBackend, 0, sizeof(PlaybackBackend));
memset(&CaptureBackend, 0, sizeof(CaptureBackend));
for(i = 0;BackendList[i].Deinit;i++)
BackendList[i].Deinit();
BackendLoopback.Deinit();
alc_deinit_safe();
}
static void ProbeList(ALCchar **list, size_t *listsize, enum DevProbe type)
{
DO_INITCONFIG();
LockLists();
free(*list);
*list = NULL;
*listsize = 0;
if(type == ALL_DEVICE_PROBE && PlaybackBackend.Probe)
PlaybackBackend.Probe(type);
else if(type == <API key> && CaptureBackend.Probe)
CaptureBackend.Probe(type);
UnlockLists();
}
static void ProbeAllDevicesList(void)
{ ProbeList(&alcAllDevicesList, &<API key>, ALL_DEVICE_PROBE); }
static void <API key>(void)
{ ProbeList(&<API key>, &<API key>, <API key>); }
static void AppendList(const ALCchar *name, ALCchar **List, size_t *ListSize)
{
size_t len = strlen(name);
void *temp;
if(len == 0)
return;
temp = realloc(*List, (*ListSize) + len + 2);
if(!temp)
{
ERR("Realloc failed to add %s!\n", name);
return;
}
*List = temp;
memcpy((*List)+(*ListSize), name, len+1);
*ListSize += len+1;
(*List)[*ListSize] = 0;
}
#define <API key>(type) \
void Append##type##List(const ALCchar *name) \
{ AppendList(name, &alc##type##List, &alc##type##ListSize); }
<API key>(AllDevices)
<API key>(CaptureDevice)
#undef <API key>
const ALCchar *DevFmtTypeString(enum DevFmtType type)
{
switch(type)
{
case DevFmtByte: return "Signed Byte";
case DevFmtUByte: return "Unsigned Byte";
case DevFmtShort: return "Signed Short";
case DevFmtUShort: return "Unsigned Short";
case DevFmtInt: return "Signed Int";
case DevFmtUInt: return "Unsigned Int";
case DevFmtFloat: return "Float";
}
return "(unknown type)";
}
const ALCchar *<API key>(enum DevFmtChannels chans)
{
switch(chans)
{
case DevFmtMono: return "Mono";
case DevFmtStereo: return "Stereo";
case DevFmtQuad: return "Quadraphonic";
case DevFmtX51: return "5.1 Surround";
case DevFmtX51Side: return "5.1 Side";
case DevFmtX61: return "6.1 Surround";
case DevFmtX71: return "7.1 Surround";
}
return "(unknown channels)";
}
ALuint BytesFromDevFmt(enum DevFmtType type)
{
switch(type)
{
case DevFmtByte: return sizeof(ALbyte);
case DevFmtUByte: return sizeof(ALubyte);
case DevFmtShort: return sizeof(ALshort);
case DevFmtUShort: return sizeof(ALushort);
case DevFmtInt: return sizeof(ALint);
case DevFmtUInt: return sizeof(ALuint);
case DevFmtFloat: return sizeof(ALfloat);
}
return 0;
}
ALuint ChannelsFromDevFmt(enum DevFmtChannels chans)
{
switch(chans)
{
case DevFmtMono: return 1;
case DevFmtStereo: return 2;
case DevFmtQuad: return 4;
case DevFmtX51: return 6;
case DevFmtX51Side: return 6;
case DevFmtX61: return 7;
case DevFmtX71: return 8;
}
return 0;
}
static ALboolean DecomposeDevFormat(ALenum format, enum DevFmtChannels *chans,
enum DevFmtType *type)
{
static const struct {
ALenum format;
enum DevFmtChannels channels;
enum DevFmtType type;
} list[] = {
{ AL_FORMAT_MONO8, DevFmtMono, DevFmtUByte },
{ AL_FORMAT_MONO16, DevFmtMono, DevFmtShort },
{ <API key>, DevFmtMono, DevFmtFloat },
{ AL_FORMAT_STEREO8, DevFmtStereo, DevFmtUByte },
{ AL_FORMAT_STEREO16, DevFmtStereo, DevFmtShort },
{ <API key>, DevFmtStereo, DevFmtFloat },
{ AL_FORMAT_QUAD8, DevFmtQuad, DevFmtUByte },
{ AL_FORMAT_QUAD16, DevFmtQuad, DevFmtShort },
{ AL_FORMAT_QUAD32, DevFmtQuad, DevFmtFloat },
{ AL_FORMAT_51CHN8, DevFmtX51, DevFmtUByte },
{ AL_FORMAT_51CHN16, DevFmtX51, DevFmtShort },
{ AL_FORMAT_51CHN32, DevFmtX51, DevFmtFloat },
{ AL_FORMAT_61CHN8, DevFmtX61, DevFmtUByte },
{ AL_FORMAT_61CHN16, DevFmtX61, DevFmtShort },
{ AL_FORMAT_61CHN32, DevFmtX61, DevFmtFloat },
{ AL_FORMAT_71CHN8, DevFmtX71, DevFmtUByte },
{ AL_FORMAT_71CHN16, DevFmtX71, DevFmtShort },
{ AL_FORMAT_71CHN32, DevFmtX71, DevFmtFloat },
};
ALuint i;
for(i = 0;i < COUNTOF(list);i++)
{
if(list[i].format == format)
{
*chans = list[i].channels;
*type = list[i].type;
return AL_TRUE;
}
}
return AL_FALSE;
}
static ALCboolean IsValidALCType(ALCenum type)
{
switch(type)
{
case ALC_BYTE_SOFT:
case <API key>:
case ALC_SHORT_SOFT:
case <API key>:
case ALC_INT_SOFT:
case <API key>:
case ALC_FLOAT_SOFT:
return ALC_TRUE;
}
return ALC_FALSE;
}
static ALCboolean IsValidALCChannels(ALCenum channels)
{
switch(channels)
{
case ALC_MONO_SOFT:
case ALC_STEREO_SOFT:
case ALC_QUAD_SOFT:
case ALC_5POINT1_SOFT:
case ALC_6POINT1_SOFT:
case ALC_7POINT1_SOFT:
return ALC_TRUE;
}
return ALC_FALSE;
}
void <API key>(ALCdevice *device)
{
<API key>(&device->Mutex);
}
void <API key>(ALCdevice *device)
{
<API key>(&device->Mutex);
}
ALint64 <API key>(ALCdevice *device)
{
(void)device;
return 0;
}
/* <API key>
*
* Sets the default channel order used by WaveFormatEx.
*/
void <API key>(ALCdevice *device)
{
switch(device->FmtChans)
{
case DevFmtMono: device->DevChannels[0] = FrontCenter; break;
case DevFmtStereo: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight; break;
case DevFmtQuad: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight;
device->DevChannels[2] = BackLeft;
device->DevChannels[3] = BackRight; break;
case DevFmtX51: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight;
device->DevChannels[2] = FrontCenter;
device->DevChannels[3] = LFE;
device->DevChannels[4] = BackLeft;
device->DevChannels[5] = BackRight; break;
case DevFmtX51Side: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight;
device->DevChannels[2] = FrontCenter;
device->DevChannels[3] = LFE;
device->DevChannels[4] = SideLeft;
device->DevChannels[5] = SideRight; break;
case DevFmtX61: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight;
device->DevChannels[2] = FrontCenter;
device->DevChannels[3] = LFE;
device->DevChannels[4] = BackCenter;
device->DevChannels[5] = SideLeft;
device->DevChannels[6] = SideRight; break;
case DevFmtX71: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight;
device->DevChannels[2] = FrontCenter;
device->DevChannels[3] = LFE;
device->DevChannels[4] = BackLeft;
device->DevChannels[5] = BackRight;
device->DevChannels[6] = SideLeft;
device->DevChannels[7] = SideRight; break;
}
}
/* <API key>
*
* Sets the default channel order used by most <API key> APIs.
*/
void <API key>(ALCdevice *device)
{
switch(device->FmtChans)
{
case DevFmtX51: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight;
device->DevChannels[2] = BackLeft;
device->DevChannels[3] = BackRight;
device->DevChannels[4] = FrontCenter;
device->DevChannels[5] = LFE;
return;
case DevFmtX71: device->DevChannels[0] = FrontLeft;
device->DevChannels[1] = FrontRight;
device->DevChannels[2] = BackLeft;
device->DevChannels[3] = BackRight;
device->DevChannels[4] = FrontCenter;
device->DevChannels[5] = LFE;
device->DevChannels[6] = SideLeft;
device->DevChannels[7] = SideRight;
return;
/* Same as WFX order */
case DevFmtMono:
case DevFmtStereo:
case DevFmtQuad:
case DevFmtX51Side:
case DevFmtX61:
break;
}
<API key>(device);
}
/* alcSetError
*
* Stores the latest ALC device error
*/
static void alcSetError(ALCdevice *device, ALCenum errorCode)
{
if(TrapALCError)
{
#ifdef _WIN32
/* DebugBreak() will cause an exception if there is no debugger */
if(IsDebuggerPresent())
DebugBreak();
#elif defined(SIGTRAP)
raise(SIGTRAP);
#endif
}
if(device)
device->LastError = errorCode;
else
LastNullDeviceError = errorCode;
}
/* UpdateDeviceParams
*
* Updates device parameters according to the attribute list (caller is
* responsible for holding the list lock).
*/
static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
{
ALCcontext *context;
enum DevFmtChannels oldChans;
enum DevFmtType oldType;
ALCuint oldFreq;
FPUCtl oldMode;
ALuint i;
// Check for attributes
if(device->Type == Loopback)
{
enum {
GotFreq = 1<<0,
GotChans = 1<<1,
GotType = 1<<2,
GotAll = GotFreq|GotChans|GotType
};
ALCuint freq, numMono, numStereo, numSends;
enum DevFmtChannels schans;
enum DevFmtType stype;
ALCuint attrIdx = 0;
ALCint gotFmt = 0;
if(!attrList)
{
WARN("Missing attributes for loopback device\n");
return ALC_INVALID_VALUE;
}
numMono = device->NumMonoSources;
numStereo = device->NumStereoSources;
numSends = device->NumAuxSends;
schans = device->FmtChans;
stype = device->FmtType;
freq = device->Frequency;
while(attrList[attrIdx])
{
if(attrList[attrIdx] == <API key>)
{
ALCint val = attrList[attrIdx + 1];
if(!IsValidALCChannels(val) || !ChannelsFromDevFmt(val))
return ALC_INVALID_VALUE;
schans = val;
gotFmt |= GotChans;
}
if(attrList[attrIdx] == <API key>)
{
ALCint val = attrList[attrIdx + 1];
if(!IsValidALCType(val) || !BytesFromDevFmt(val))
return ALC_INVALID_VALUE;
stype = val;
gotFmt |= GotType;
}
if(attrList[attrIdx] == ALC_FREQUENCY)
{
freq = attrList[attrIdx + 1];
if(freq < MIN_OUTPUT_RATE)
return ALC_INVALID_VALUE;
gotFmt |= GotFreq;
}
if(attrList[attrIdx] == ALC_STEREO_SOURCES)
{
numStereo = attrList[attrIdx + 1];
if(numStereo > device->MaxNoOfSources)
numStereo = device->MaxNoOfSources;
numMono = device->MaxNoOfSources - numStereo;
}
if(attrList[attrIdx] == <API key>)
numSends = attrList[attrIdx + 1];
attrIdx += 2;
}
if(gotFmt != GotAll)
{
WARN("Missing format for loopback device\n");
return ALC_INVALID_VALUE;
}
ConfigValueUInt(NULL, "sends", &numSends);
numSends = minu(MAX_SENDS, numSends);
if((device->Flags&DEVICE_RUNNING))
<API key>(device);
device->Flags &= ~DEVICE_RUNNING;
device->Frequency = freq;
device->FmtChans = schans;
device->FmtType = stype;
device->NumMonoSources = numMono;
device->NumStereoSources = numStereo;
device->NumAuxSends = numSends;
}
else if(attrList && attrList[0])
{
ALCuint freq, numMono, numStereo, numSends;
ALCuint attrIdx = 0;
/* If a context is already running on the device, stop playback so the
* device attributes can be updated. */
if((device->Flags&DEVICE_RUNNING))
<API key>(device);
device->Flags &= ~DEVICE_RUNNING;
freq = device->Frequency;
numMono = device->NumMonoSources;
numStereo = device->NumStereoSources;
numSends = device->NumAuxSends;
while(attrList[attrIdx])
{
if(attrList[attrIdx] == ALC_FREQUENCY)
{
freq = attrList[attrIdx + 1];
device->Flags |= <API key>;
}
if(attrList[attrIdx] == ALC_STEREO_SOURCES)
{
numStereo = attrList[attrIdx + 1];
if(numStereo > device->MaxNoOfSources)
numStereo = device->MaxNoOfSources;
numMono = device->MaxNoOfSources - numStereo;
}
if(attrList[attrIdx] == <API key>)
numSends = attrList[attrIdx + 1];
attrIdx += 2;
}
ConfigValueUInt(NULL, "frequency", &freq);
freq = maxu(freq, MIN_OUTPUT_RATE);
ConfigValueUInt(NULL, "sends", &numSends);
numSends = minu(MAX_SENDS, numSends);
device->UpdateSize = (ALuint64)device->UpdateSize * freq /
device->Frequency;
/* SSE does best with the update size being a multiple of 4 */
if((CPUCapFlags&CPU_CAP_SSE))
device->UpdateSize = (device->UpdateSize+3)&~3;
device->Frequency = freq;
device->NumMonoSources = numMono;
device->NumStereoSources = numStereo;
device->NumAuxSends = numSends;
}
if((device->Flags&DEVICE_RUNNING))
return ALC_NO_ERROR;
oldFreq = device->Frequency;
oldChans = device->FmtChans;
oldType = device->FmtType;
TRACE("Format pre-setup: %s%s, %s%s, %uhz%s, %u update size x%d\n",
<API key>(device->FmtChans),
(device->Flags&<API key>)?" (requested)":"",
DevFmtTypeString(device->FmtType),
(device->Flags&<API key>)?" (requested)":"",
device->Frequency,
(device->Flags&<API key>)?" (requested)":"",
device->UpdateSize, device->NumUpdates);
if(<API key>(device) == ALC_FALSE)
return ALC_INVALID_DEVICE;
if(device->FmtChans != oldChans && (device->Flags&<API key>))
{
ERR("Failed to set %s, got %s instead\n", <API key>(oldChans),
<API key>(device->FmtChans));
device->Flags &= ~<API key>;
}
if(device->FmtType != oldType && (device->Flags&<API key>))
{
ERR("Failed to set %s, got %s instead\n", DevFmtTypeString(oldType),
DevFmtTypeString(device->FmtType));
device->Flags &= ~<API key>;
}
if(device->Frequency != oldFreq && (device->Flags&<API key>))
{
ERR("Failed to set %uhz, got %uhz instead\n", oldFreq, device->Frequency);
device->Flags &= ~<API key>;
}
TRACE("Format post-setup: %s, %s, %uhz, %u update size x%d\n",
<API key>(device->FmtChans),
DevFmtTypeString(device->FmtType), device->Frequency,
device->UpdateSize, device->NumUpdates);
aluInitPanning(device);
for(i = 0;i < MaxChannels;i++)
{
device->ClickRemoval[i] = 0.0f;
device->PendingClicks[i] = 0.0f;
}
device->Hrtf = NULL;
if(device->Type != Loopback && GetConfigValueBool(NULL, "hrtf", AL_FALSE))
device->Hrtf = GetHrtf(device);
TRACE("HRTF %s\n", device->Hrtf?"enabled":"disabled");
if(!device->Hrtf && device->Bs2bLevel > 0 && device->Bs2bLevel <= 6)
{
if(!device->Bs2b)
{
device->Bs2b = calloc(1, sizeof(*device->Bs2b));
bs2b_clear(device->Bs2b);
}
bs2b_set_srate(device->Bs2b, device->Frequency);
bs2b_set_level(device->Bs2b, device->Bs2bLevel);
TRACE("BS2B level %d\n", device->Bs2bLevel);
}
else
{
free(device->Bs2b);
device->Bs2b = NULL;
TRACE("BS2B disabled\n");
}
device->Flags &= ~DEVICE_WIDE_STEREO;
if(device->Type != Loopback && !device->Hrtf && GetConfigValueBool(NULL, "wide-stereo", AL_FALSE))
device->Flags |= DEVICE_WIDE_STEREO;
if(!device->Hrtf && (device->UpdateSize&3))
{
if((CPUCapFlags&CPU_CAP_SSE))
WARN("SSE performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize);
}
SetMixerFPUMode(&oldMode);
ALCdevice_Lock(device);
context = device->ContextList;
while(context)
{
ALsizei pos;
context->UpdateSources = AL_FALSE;
LockUIntMapRead(&context->EffectSlotMap);
for(pos = 0;pos < context->EffectSlotMap.size;pos++)
{
ALeffectslot *slot = context->EffectSlotMap.array[pos].value;
if(<API key>(slot->EffectState, device) == AL_FALSE)
{
UnlockUIntMapRead(&context->EffectSlotMap);
ALCdevice_Unlock(device);
RestoreFPUMode(&oldMode);
return ALC_INVALID_DEVICE;
}
slot->NeedsUpdate = AL_FALSE;
<API key>(slot->EffectState, device, slot);
}
UnlockUIntMapRead(&context->EffectSlotMap);
LockUIntMapRead(&context->SourceMap);
for(pos = 0;pos < context->SourceMap.size;pos++)
{
ALsource *source = context->SourceMap.array[pos].value;
ALuint s = device->NumAuxSends;
while(s < MAX_SENDS)
{
if(source->Send[s].Slot)
DecrementRef(&source->Send[s].Slot->ref);
source->Send[s].Slot = NULL;
source->Send[s].Gain = 1.0f;
source->Send[s].GainHF = 1.0f;
s++;
}
source->NeedsUpdate = AL_FALSE;
ALsource_Update(source, context);
}
UnlockUIntMapRead(&context->SourceMap);
context = context->next;
}
if(device->DefaultSlot)
{
ALeffectslot *slot = device->DefaultSlot;
if(<API key>(slot->EffectState, device) == AL_FALSE)
{
ALCdevice_Unlock(device);
RestoreFPUMode(&oldMode);
return ALC_INVALID_DEVICE;
}
slot->NeedsUpdate = AL_FALSE;
<API key>(slot->EffectState, device, slot);
}
ALCdevice_Unlock(device);
RestoreFPUMode(&oldMode);
if(<API key>(device) == ALC_FALSE)
return ALC_INVALID_DEVICE;
device->Flags |= DEVICE_RUNNING;
return ALC_NO_ERROR;
}
/* FreeDevice
*
* Frees the device structure, and destroys any objects the app failed to
* delete. Called once there's no more references on the device.
*/
static ALCvoid FreeDevice(ALCdevice *device)
{
TRACE("%p\n", device);
if(device->Type != Capture)
<API key>(device);
else
<API key>(device);
if(device->DefaultSlot)
{
<API key>(device->DefaultSlot->EffectState);
device->DefaultSlot->EffectState = NULL;
}
if(device->BufferMap.size > 0)
{
WARN("(%p) Deleting %d Buffer(s)\n", device, device->BufferMap.size);
ReleaseALBuffers(device);
}
ResetUIntMap(&device->BufferMap);
if(device->EffectMap.size > 0)
{
WARN("(%p) Deleting %d Effect(s)\n", device, device->EffectMap.size);
ReleaseALEffects(device);
}
ResetUIntMap(&device->EffectMap);
if(device->FilterMap.size > 0)
{
WARN("(%p) Deleting %d Filter(s)\n", device, device->FilterMap.size);
ReleaseALFilters(device);
}
ResetUIntMap(&device->FilterMap);
free(device->Bs2b);
device->Bs2b = NULL;
free(device->DeviceName);
device->DeviceName = NULL;
<API key>(&device->Mutex);
al_free(device);
}
void ALCdevice_IncRef(ALCdevice *device)
{
RefCount ref;
ref = IncrementRef(&device->ref);
TRACEREF("%p increasing refcount to %u\n", device, ref);
}
void ALCdevice_DecRef(ALCdevice *device)
{
RefCount ref;
ref = DecrementRef(&device->ref);
TRACEREF("%p decreasing refcount to %u\n", device, ref);
if(ref == 0) FreeDevice(device);
}
/* VerifyDevice
*
* Checks if the device handle is valid, and increments its ref count if so.
*/
static ALCdevice *VerifyDevice(ALCdevice *device)
{
ALCdevice *tmpDevice;
if(!device)
return NULL;
LockLists();
tmpDevice = DeviceList;
while(tmpDevice && tmpDevice != device)
tmpDevice = tmpDevice->next;
if(tmpDevice)
ALCdevice_IncRef(tmpDevice);
UnlockLists();
return tmpDevice;
}
/* InitContext
*
* Initializes context fields
*/
static ALvoid InitContext(ALCcontext *Context)
{
ALint i, j;
//Initialise listener
Context->Listener.Gain = 1.0f;
Context->Listener.MetersPerUnit = 1.0f;
Context->Listener.Position[0] = 0.0f;
Context->Listener.Position[1] = 0.0f;
Context->Listener.Position[2] = 0.0f;
Context->Listener.Velocity[0] = 0.0f;
Context->Listener.Velocity[1] = 0.0f;
Context->Listener.Velocity[2] = 0.0f;
Context->Listener.Forward[0] = 0.0f;
Context->Listener.Forward[1] = 0.0f;
Context->Listener.Forward[2] = -1.0f;
Context->Listener.Up[0] = 0.0f;
Context->Listener.Up[1] = 1.0f;
Context->Listener.Up[2] = 0.0f;
for(i = 0;i < 4;i++)
{
for(j = 0;j < 4;j++)
Context->Listener.Matrix[i][j] = ((i==j) ? 1.0f : 0.0f);
}
//Validate Context
Context->LastError = AL_NO_ERROR;
Context->UpdateSources = AL_FALSE;
Context->ActiveSourceCount = 0;
InitUIntMap(&Context->SourceMap, Context->Device->MaxNoOfSources);
InitUIntMap(&Context->EffectSlotMap, Context->Device-><API key>);
//Set globals
Context->DistanceModel = <API key>;
Context->SourceDistanceModel = AL_FALSE;
Context->DopplerFactor = 1.0f;
Context->DopplerVelocity = 1.0f;
Context->SpeedOfSound = <API key>;
Context->DeferUpdates = AL_FALSE;
Context->ExtensionList = alExtList;
}
/* FreeContext
*
* Cleans up the context, and destroys any remaining objects the app failed to
* delete. Called once there's no more references on the context.
*/
static ALCvoid FreeContext(ALCcontext *context)
{
TRACE("%p\n", context);
if(context->SourceMap.size > 0)
{
ERR("(%p) Deleting %d Source(s)\n", context, context->SourceMap.size);
ReleaseALSources(context);
}
ResetUIntMap(&context->SourceMap);
if(context->EffectSlotMap.size > 0)
{
ERR("(%p) Deleting %d AuxiliaryEffectSlot(s)\n", context, context->EffectSlotMap.size);
<API key>(context);
}
ResetUIntMap(&context->EffectSlotMap);
context->ActiveSourceCount = 0;
free(context->ActiveSources);
context->ActiveSources = NULL;
context->MaxActiveSources = 0;
context-><API key> = 0;
free(context->ActiveEffectSlots);
context->ActiveEffectSlots = NULL;
context-><API key> = 0;
ALCdevice_DecRef(context->Device);
context->Device = NULL;
//Invalidate context
memset(context, 0, sizeof(ALCcontext));
free(context);
}
/* ReleaseContext
*
* Removes the context reference from the given device and removes it from
* being current on the running thread or globally.
*/
static void ReleaseContext(ALCcontext *context, ALCdevice *device)
{
ALCcontext *volatile*tmp_ctx;
if(pthread_getspecific(LocalContext) == context)
{
WARN("%p released while current on thread\n", context);
pthread_setspecific(LocalContext, NULL);
ALCcontext_DecRef(context);
}
if(CompExchangePtr((XchgPtr*)&GlobalContext, context, NULL))
ALCcontext_DecRef(context);
ALCdevice_Lock(device);
tmp_ctx = &device->ContextList;
while(*tmp_ctx)
{
if(CompExchangePtr((XchgPtr*)tmp_ctx, context, context->next))
break;
tmp_ctx = &(*tmp_ctx)->next;
}
ALCdevice_Unlock(device);
ALCcontext_DecRef(context);
}
void ALCcontext_IncRef(ALCcontext *context)
{
RefCount ref;
ref = IncrementRef(&context->ref);
TRACEREF("%p increasing refcount to %u\n", context, ref);
}
void ALCcontext_DecRef(ALCcontext *context)
{
RefCount ref;
ref = DecrementRef(&context->ref);
TRACEREF("%p decreasing refcount to %u\n", context, ref);
if(ref == 0) FreeContext(context);
}
static void ReleaseThreadCtx(void *ptr)
{
WARN("%p current for thread being destroyed\n", ptr);
ALCcontext_DecRef(ptr);
}
/* VerifyContext
*
* Checks that the given context is valid, and increments its reference count.
*/
static ALCcontext *VerifyContext(ALCcontext *context)
{
ALCdevice *dev;
LockLists();
dev = DeviceList;
while(dev)
{
ALCcontext *tmp_ctx = dev->ContextList;
while(tmp_ctx)
{
if(tmp_ctx == context)
{
ALCcontext_IncRef(tmp_ctx);
UnlockLists();
return tmp_ctx;
}
tmp_ctx = tmp_ctx->next;
}
dev = dev->next;
}
UnlockLists();
return NULL;
}
/* GetContextRef
*
* Returns the currently active context for this thread, and adds a reference
* without locking it.
*/
ALCcontext *GetContextRef(void)
{
ALCcontext *context;
context = pthread_getspecific(LocalContext);
if(context)
ALCcontext_IncRef(context);
else
{
LockLists();
context = GlobalContext;
if(context)
ALCcontext_IncRef(context);
UnlockLists();
}
return context;
}
/* alcGetError
*
* Return last ALC generated error code for the given device
*/
ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device)
{
ALCenum errorCode;
if(VerifyDevice(device))
{
errorCode = ExchangeInt(&device->LastError, ALC_NO_ERROR);
ALCdevice_DecRef(device);
}
else
errorCode = ExchangeInt(&LastNullDeviceError, ALC_NO_ERROR);
return errorCode;
}
/* alcSuspendContext
*
* Not functional
*/
ALC_API ALCvoid ALC_APIENTRY alcSuspendContext(ALCcontext *Context)
{
(void)Context;
}
/* alcProcessContext
*
* Not functional
*/
ALC_API ALCvoid ALC_APIENTRY alcProcessContext(ALCcontext *Context)
{
(void)Context;
}
/* alcGetString
*
* Returns information about the device, and error strings
*/
ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *Device, ALCenum param)
{
const ALCchar *value = NULL;
switch(param)
{
case ALC_NO_ERROR:
value = alcNoError;
break;
case ALC_INVALID_ENUM:
value = alcErrInvalidEnum;
break;
case ALC_INVALID_VALUE:
value = alcErrInvalidValue;
break;
case ALC_INVALID_DEVICE:
value = alcErrInvalidDevice;
break;
case ALC_INVALID_CONTEXT:
value = <API key>;
break;
case ALC_OUT_OF_MEMORY:
value = alcErrOutOfMemory;
break;
case <API key>:
value = alcDefaultName;
break;
case <API key>:
if(VerifyDevice(Device))
{
value = Device->DeviceName;
ALCdevice_DecRef(Device);
}
else
{
ProbeAllDevicesList();
value = alcAllDevicesList;
}
break;
case <API key>:
if(VerifyDevice(Device))
{
value = Device->DeviceName;
ALCdevice_DecRef(Device);
}
else
{
<API key>();
value = <API key>;
}
break;
/* Default devices are always first in the list */
case <API key>:
value = alcDefaultName;
break;
case <API key>:
if(!alcAllDevicesList)
ProbeAllDevicesList();
Device = VerifyDevice(Device);
free(<API key>);
<API key> = strdup(alcAllDevicesList ?
alcAllDevicesList : "");
if(!<API key>)
alcSetError(Device, ALC_OUT_OF_MEMORY);
value = <API key>;
if(Device) ALCdevice_DecRef(Device);
break;
case <API key>:
if(!<API key>)
<API key>();
Device = VerifyDevice(Device);
free(<API key>);
<API key> = strdup(<API key> ?
<API key> : "");
if(!<API key>)
alcSetError(Device, ALC_OUT_OF_MEMORY);
value = <API key>;
if(Device) ALCdevice_DecRef(Device);
break;
case ALC_EXTENSIONS:
if(!VerifyDevice(Device))
value = alcNoDeviceExtList;
else
{
value = alcExtensionList;
ALCdevice_DecRef(Device);
}
break;
default:
Device = VerifyDevice(Device);
alcSetError(Device, ALC_INVALID_ENUM);
if(Device) ALCdevice_DecRef(Device);
break;
}
return value;
}
/* alcGetIntegerv
*
* Returns information about the device and the version of OpenAL
*/
ALC_API ALCvoid ALC_APIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALsizei size,ALCint *data)
{
device = VerifyDevice(device);
if(size == 0 || data == NULL)
{
alcSetError(device, ALC_INVALID_VALUE);
if(device) ALCdevice_DecRef(device);
return;
}
if(!device)
{
switch(param)
{
case ALC_MAJOR_VERSION:
*data = alcMajorVersion;
break;
case ALC_MINOR_VERSION:
*data = alcMinorVersion;
break;
case ALC_ATTRIBUTES_SIZE:
case ALC_ALL_ATTRIBUTES:
case ALC_FREQUENCY:
case ALC_REFRESH:
case ALC_SYNC:
case ALC_MONO_SOURCES:
case ALC_STEREO_SOURCES:
case ALC_CAPTURE_SAMPLES:
case <API key>:
case <API key>:
alcSetError(NULL, ALC_INVALID_DEVICE);
break;
default:
alcSetError(NULL, ALC_INVALID_ENUM);
break;
}
}
else if(device->Type == Capture)
{
switch(param)
{
case ALC_CAPTURE_SAMPLES:
LockLists();
/* Re-validate the device since it may have been closed */
ALCdevice_DecRef(device);
if((device=VerifyDevice(device)) != NULL)
*data = <API key>(device);
else
alcSetError(NULL, ALC_INVALID_DEVICE);
UnlockLists();
break;
case ALC_CONNECTED:
*data = device->Connected;
break;
default:
alcSetError(device, ALC_INVALID_ENUM);
break;
}
}
else /* render device */
{
switch(param)
{
case ALC_MAJOR_VERSION:
*data = alcMajorVersion;
break;
case ALC_MINOR_VERSION:
*data = alcMinorVersion;
break;
case <API key>:
*data = alcEFXMajorVersion;
break;
case <API key>:
*data = alcEFXMinorVersion;
break;
case ALC_ATTRIBUTES_SIZE:
*data = 13;
break;
case ALC_ALL_ATTRIBUTES:
if(size < 13)
alcSetError(device, ALC_INVALID_VALUE);
else
{
int i = 0;
data[i++] = ALC_FREQUENCY;
data[i++] = device->Frequency;
if(device->Type != Loopback)
{
data[i++] = ALC_REFRESH;
data[i++] = device->Frequency / device->UpdateSize;
data[i++] = ALC_SYNC;
data[i++] = ALC_FALSE;
}
else
{
data[i++] = <API key>;
data[i++] = device->FmtChans;
data[i++] = <API key>;
data[i++] = device->FmtType;
}
data[i++] = ALC_MONO_SOURCES;
data[i++] = device->NumMonoSources;
data[i++] = ALC_STEREO_SOURCES;
data[i++] = device->NumStereoSources;
data[i++] = <API key>;
data[i++] = device->NumAuxSends;
data[i++] = 0;
}
break;
case ALC_FREQUENCY:
*data = device->Frequency;
break;
case ALC_REFRESH:
if(device->Type == Loopback)
alcSetError(device, ALC_INVALID_DEVICE);
else
*data = device->Frequency / device->UpdateSize;
break;
case ALC_SYNC:
if(device->Type == Loopback)
alcSetError(device, ALC_INVALID_DEVICE);
else
*data = ALC_FALSE;
break;
case <API key>:
if(device->Type != Loopback)
alcSetError(device, ALC_INVALID_DEVICE);
else
*data = device->FmtChans;
break;
case <API key>:
if(device->Type != Loopback)
alcSetError(device, ALC_INVALID_DEVICE);
else
*data = device->FmtType;
break;
case ALC_MONO_SOURCES:
*data = device->NumMonoSources;
break;
case ALC_STEREO_SOURCES:
*data = device->NumStereoSources;
break;
case <API key>:
*data = device->NumAuxSends;
break;
case ALC_CONNECTED:
*data = device->Connected;
break;
default:
alcSetError(device, ALC_INVALID_ENUM);
break;
}
}
if(device)
ALCdevice_DecRef(device);
}
/* <API key>
*
* Determines if there is support for a particular extension
*/
ALC_API ALCboolean ALC_APIENTRY <API key>(ALCdevice *device, const ALCchar *extName)
{
ALCboolean bResult = ALC_FALSE;
device = VerifyDevice(device);
if(!extName)
alcSetError(device, ALC_INVALID_VALUE);
else
{
size_t len = strlen(extName);
const char *ptr = (device ? alcExtensionList : alcNoDeviceExtList);
while(ptr && *ptr)
{
if(strncasecmp(ptr, extName, len) == 0 &&
(ptr[len] == '\0' || isspace(ptr[len])))
{
bResult = ALC_TRUE;
break;
}
if((ptr=strchr(ptr, ' ')) != NULL)
{
do {
++ptr;
} while(isspace(*ptr));
}
}
}
if(device)
ALCdevice_DecRef(device);
return bResult;
}
/* alcGetProcAddress
*
* Retrieves the function address for a particular extension function
*/
ALC_API ALCvoid* ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcName)
{
ALCvoid *ptr = NULL;
if(!funcName)
{
device = VerifyDevice(device);
alcSetError(device, ALC_INVALID_VALUE);
if(device) ALCdevice_DecRef(device);
}
else
{
ALsizei i = 0;
while(alcFunctions[i].funcName && strcmp(alcFunctions[i].funcName, funcName) != 0)
i++;
ptr = alcFunctions[i].address;
}
return ptr;
}
/* alcGetEnumValue
*
* Get the value for a particular ALC enumeration name
*/
ALC_API ALCenum ALC_APIENTRY alcGetEnumValue(ALCdevice *device, const ALCchar *enumName)
{
ALCenum val = 0;
if(!enumName)
{
device = VerifyDevice(device);
alcSetError(device, ALC_INVALID_VALUE);
if(device) ALCdevice_DecRef(device);
}
else
{
ALsizei i = 0;
while(enumeration[i].enumName && strcmp(enumeration[i].enumName, enumName) != 0)
i++;
val = enumeration[i].value;
}
return val;
}
/* alcCreateContext
*
* Create and attach a context to the given device.
*/
ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCint *attrList)
{
ALCcontext *ALContext;
ALCenum err;
LockLists();
if(!(device=VerifyDevice(device)) || device->Type == Capture || !device->Connected)
{
UnlockLists();
alcSetError(device, ALC_INVALID_DEVICE);
if(device) ALCdevice_DecRef(device);
return NULL;
}
device->LastError = ALC_NO_ERROR;
if((err=UpdateDeviceParams(device, attrList)) != ALC_NO_ERROR)
{
UnlockLists();
alcSetError(device, err);
if(err == ALC_INVALID_DEVICE)
aluHandleDisconnect(device);
ALCdevice_DecRef(device);
return NULL;
}
ALContext = calloc(1, sizeof(ALCcontext));
if(ALContext)
{
ALContext->ref = 1;
ALContext->MaxActiveSources = 256;
ALContext->ActiveSources = malloc(sizeof(ALContext->ActiveSources[0]) *
ALContext->MaxActiveSources);
}
if(!ALContext || !ALContext->ActiveSources)
{
if(!device->ContextList)
{
<API key>(device);
device->Flags &= ~DEVICE_RUNNING;
}
UnlockLists();
free(ALContext);
ALContext = NULL;
alcSetError(device, ALC_OUT_OF_MEMORY);
ALCdevice_DecRef(device);
return NULL;
}
ALContext->Device = device;
ALCdevice_IncRef(device);
InitContext(ALContext);
do {
ALContext->next = device->ContextList;
} while(!CompExchangePtr((XchgPtr*)&device->ContextList, ALContext->next, ALContext));
UnlockLists();
ALCdevice_DecRef(device);
TRACE("Created context %p\n", ALContext);
return ALContext;
}
/* alcDestroyContext
*
* Remove a context from its device
*/
ALC_API ALCvoid ALC_APIENTRY alcDestroyContext(ALCcontext *context)
{
ALCdevice *Device;
LockLists();
/* <API key> sets an error for invalid contexts */
Device = <API key>(context);
if(Device)
{
ReleaseContext(context, Device);
if(!Device->ContextList)
{
<API key>(Device);
Device->Flags &= ~DEVICE_RUNNING;
}
}
UnlockLists();
}
/* <API key>
*
* Returns the currently active context on the calling thread
*/
ALC_API ALCcontext* ALC_APIENTRY <API key>(void)
{
ALCcontext *Context;
Context = pthread_getspecific(LocalContext);
if(!Context) Context = GlobalContext;
return Context;
}
/* alcGetThreadContext
*
* Returns the currently active thread-local context
*/
ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void)
{
ALCcontext *Context;
Context = pthread_getspecific(LocalContext);
return Context;
}
/* <API key>
*
* Makes the given context the active process-wide context, and removes the
* thread-local context for the calling thread.
*/
ALC_API ALCboolean ALC_APIENTRY <API key>(ALCcontext *context)
{
/* context must be valid or NULL */
if(context && !(context=VerifyContext(context)))
{
alcSetError(NULL, ALC_INVALID_CONTEXT);
return ALC_FALSE;
}
/* context's reference count is already incremented */
context = ExchangePtr((XchgPtr*)&GlobalContext, context);
if(context) ALCcontext_DecRef(context);
if((context=pthread_getspecific(LocalContext)) != NULL)
{
pthread_setspecific(LocalContext, NULL);
ALCcontext_DecRef(context);
}
return ALC_TRUE;
}
/* alcSetThreadContext
*
* Makes the given context the active context for the current thread
*/
ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context)
{
ALCcontext *old;
/* context must be valid or NULL */
if(context && !(context=VerifyContext(context)))
{
alcSetError(NULL, ALC_INVALID_CONTEXT);
return ALC_FALSE;
}
/* context's reference count is already incremented */
old = pthread_getspecific(LocalContext);
pthread_setspecific(LocalContext, context);
if(old) ALCcontext_DecRef(old);
return ALC_TRUE;
}
/* <API key>
*
* Returns the device that a particular context is attached to
*/
ALC_API ALCdevice* ALC_APIENTRY <API key>(ALCcontext *Context)
{
ALCdevice *Device;
if(!(Context=VerifyContext(Context)))
{
alcSetError(NULL, ALC_INVALID_CONTEXT);
return NULL;
}
Device = Context->Device;
ALCcontext_DecRef(Context);
return Device;
}
/* alcOpenDevice
*
* Opens the named device.
*/
ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
{
const ALCchar *fmt;
ALCdevice *device;
ALCenum err;
DO_INITCONFIG();
if(!PlaybackBackend.name)
{
alcSetError(NULL, ALC_INVALID_VALUE);
return NULL;
}
if(deviceName && (!deviceName[0] || strcasecmp(deviceName, alcDefaultName) == 0 || strcasecmp(deviceName, "openal-soft") == 0))
deviceName = NULL;
device = al_calloc(16, sizeof(ALCdevice)+15+sizeof(ALeffectslot));
if(!device)
{
alcSetError(NULL, ALC_OUT_OF_MEMORY);
return NULL;
}
//Validate device
device->Funcs = &PlaybackBackend.Funcs;
device->ref = 1;
device->Connected = ALC_TRUE;
device->Type = Playback;
<API key>(&device->Mutex);
device->LastError = ALC_NO_ERROR;
device->Flags = 0;
device->Bs2b = NULL;
device->Bs2bLevel = 0;
device->DeviceName = NULL;
device->ContextList = NULL;
device->MaxNoOfSources = 256;
device-><API key> = 4;
device->NumAuxSends = MAX_SENDS;
InitUIntMap(&device->BufferMap, ~0);
InitUIntMap(&device->EffectMap, ~0);
InitUIntMap(&device->FilterMap, ~0);
//Set output format
device->FmtChans = <API key>;
device->FmtType = DevFmtTypeDefault;
device->Frequency = DEFAULT_OUTPUT_RATE;
device->NumUpdates = 4;
device->UpdateSize = 1024;
if(ConfigValueStr(NULL, "channels", &fmt))
{
static const struct {
const char name[16];
enum DevFmtChannels chans;
} chanlist[] = {
{ "mono", DevFmtMono },
{ "stereo", DevFmtStereo },
{ "quad", DevFmtQuad },
{ "surround51", DevFmtX51 },
{ "surround61", DevFmtX61 },
{ "surround71", DevFmtX71 },
};
size_t i;
for(i = 0;i < COUNTOF(chanlist);i++)
{
if(strcasecmp(chanlist[i].name, fmt) == 0)
{
device->FmtChans = chanlist[i].chans;
device->Flags |= <API key>;
break;
}
}
if(i == COUNTOF(chanlist))
ERR("Unsupported channels: %s\n", fmt);
}
if(ConfigValueStr(NULL, "sample-type", &fmt))
{
static const struct {
const char name[16];
enum DevFmtType type;
} typelist[] = {
{ "int8", DevFmtByte },
{ "uint8", DevFmtUByte },
{ "int16", DevFmtShort },
{ "uint16", DevFmtUShort },
{ "int32", DevFmtInt },
{ "uint32", DevFmtUInt },
{ "float32", DevFmtFloat },
};
size_t i;
for(i = 0;i < COUNTOF(typelist);i++)
{
if(strcasecmp(typelist[i].name, fmt) == 0)
{
device->FmtType = typelist[i].type;
device->Flags |= <API key>;
break;
}
}
if(i == COUNTOF(typelist))
ERR("Unsupported sample-type: %s\n", fmt);
}
#define <API key> (<API key>|<API key>)
if((device->Flags&<API key>) != <API key> &&
ConfigValueStr(NULL, "format", &fmt))
{
static const struct {
const char name[32];
enum DevFmtChannels channels;
enum DevFmtType type;
} formats[] = {
{ "AL_FORMAT_MONO32", DevFmtMono, DevFmtFloat },
{ "AL_FORMAT_STEREO32", DevFmtStereo, DevFmtFloat },
{ "AL_FORMAT_QUAD32", DevFmtQuad, DevFmtFloat },
{ "AL_FORMAT_51CHN32", DevFmtX51, DevFmtFloat },
{ "AL_FORMAT_61CHN32", DevFmtX61, DevFmtFloat },
{ "AL_FORMAT_71CHN32", DevFmtX71, DevFmtFloat },
{ "AL_FORMAT_MONO16", DevFmtMono, DevFmtShort },
{ "AL_FORMAT_STEREO16", DevFmtStereo, DevFmtShort },
{ "AL_FORMAT_QUAD16", DevFmtQuad, DevFmtShort },
{ "AL_FORMAT_51CHN16", DevFmtX51, DevFmtShort },
{ "AL_FORMAT_61CHN16", DevFmtX61, DevFmtShort },
{ "AL_FORMAT_71CHN16", DevFmtX71, DevFmtShort },
{ "AL_FORMAT_MONO8", DevFmtMono, DevFmtByte },
{ "AL_FORMAT_STEREO8", DevFmtStereo, DevFmtByte },
{ "AL_FORMAT_QUAD8", DevFmtQuad, DevFmtByte },
{ "AL_FORMAT_51CHN8", DevFmtX51, DevFmtByte },
{ "AL_FORMAT_61CHN8", DevFmtX61, DevFmtByte },
{ "AL_FORMAT_71CHN8", DevFmtX71, DevFmtByte }
};
size_t i;
ERR("Option 'format' is deprecated, please use 'channels' and 'sample-type'\n");
for(i = 0;i < COUNTOF(formats);i++)
{
if(strcasecmp(fmt, formats[i].name) == 0)
{
if(!(device->Flags&<API key>))
device->FmtChans = formats[i].channels;
if(!(device->Flags&<API key>))
device->FmtType = formats[i].type;
device->Flags |= <API key>;
break;
}
}
if(i == COUNTOF(formats))
ERR("Unsupported format: %s\n", fmt);
}
#undef <API key>
if(ConfigValueUInt(NULL, "frequency", &device->Frequency))
{
device->Flags |= <API key>;
if(device->Frequency < MIN_OUTPUT_RATE)
ERR("%uhz request clamped to %uhz minimum\n", device->Frequency, MIN_OUTPUT_RATE);
device->Frequency = maxu(device->Frequency, MIN_OUTPUT_RATE);
}
ConfigValueUInt(NULL, "periods", &device->NumUpdates);
device->NumUpdates = clampu(device->NumUpdates, 2, 16);
ConfigValueUInt(NULL, "period_size", &device->UpdateSize);
device->UpdateSize = clampu(device->UpdateSize, 64, 8192);
if((CPUCapFlags&CPU_CAP_SSE))
device->UpdateSize = (device->UpdateSize+3)&~3;
ConfigValueUInt(NULL, "sources", &device->MaxNoOfSources);
if(device->MaxNoOfSources == 0) device->MaxNoOfSources = 256;
ConfigValueUInt(NULL, "slots", &device-><API key>);
if(device-><API key> == 0) device-><API key> = 4;
ConfigValueUInt(NULL, "sends", &device->NumAuxSends);
if(device->NumAuxSends > MAX_SENDS) device->NumAuxSends = MAX_SENDS;
ConfigValueInt(NULL, "cf_level", &device->Bs2bLevel);
device->NumStereoSources = 1;
device->NumMonoSources = device->MaxNoOfSources - device->NumStereoSources;
// Find a playback device to open
LockLists();
if((err=<API key>(device, deviceName)) != ALC_NO_ERROR)
{
UnlockLists();
<API key>(&device->Mutex);
al_free(device);
alcSetError(NULL, err);
return NULL;
}
UnlockLists();
if(DefaultEffect.type != AL_EFFECT_NULL)
{
device->DefaultSlot = (ALeffectslot*)((ALintptrEXT)(device+1)&~15);
if(InitEffectSlot(device->DefaultSlot) != AL_NO_ERROR)
{
device->DefaultSlot = NULL;
ERR("Failed to initialize the default effect slot\n");
}
else if(InitializeEffect(device, device->DefaultSlot, &DefaultEffect) != AL_NO_ERROR)
{
<API key>(device->DefaultSlot->EffectState);
device->DefaultSlot = NULL;
ERR("Failed to initialize the default effect\n");
}
}
do {
device->next = DeviceList;
} while(!CompExchangePtr((XchgPtr*)&DeviceList, device->next, device));
TRACE("Created device %p, \"%s\"\n", device, device->DeviceName);
return device;
}
/* alcCloseDevice
*
* Closes the given device.
*/
ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *Device)
{
ALCdevice *volatile*list;
ALCcontext *ctx;
LockLists();
list = &DeviceList;
while(*list && *list != Device)
list = &(*list)->next;
if(!*list || (*list)->Type == Capture)
{
alcSetError(*list, ALC_INVALID_DEVICE);
UnlockLists();
return ALC_FALSE;
}
*list = (*list)->next;
UnlockLists();
while((ctx=Device->ContextList) != NULL)
{
WARN("Releasing context %p\n", ctx);
ReleaseContext(ctx, Device);
}
if((Device->Flags&DEVICE_RUNNING))
<API key>(Device);
Device->Flags &= ~DEVICE_RUNNING;
ALCdevice_DecRef(Device);
return ALC_TRUE;
}
ALC_API ALCdevice* ALC_APIENTRY <API key>(const ALCchar *deviceName, ALCuint frequency, ALCenum format, ALCsizei samples)
{
ALCdevice *device = NULL;
ALCenum err;
DO_INITCONFIG();
if(!CaptureBackend.name)
{
alcSetError(NULL, ALC_INVALID_VALUE);
return NULL;
}
if(samples <= 0)
{
alcSetError(NULL, ALC_INVALID_VALUE);
return NULL;
}
if(deviceName && (!deviceName[0] || strcasecmp(deviceName, alcDefaultName) == 0 || strcasecmp(deviceName, "openal-soft") == 0))
deviceName = NULL;
device = al_calloc(16, sizeof(ALCdevice));
if(!device)
{
alcSetError(NULL, ALC_OUT_OF_MEMORY);
return NULL;
}
//Validate device
device->Funcs = &CaptureBackend.Funcs;
device->ref = 1;
device->Connected = ALC_TRUE;
device->Type = Capture;
<API key>(&device->Mutex);
InitUIntMap(&device->BufferMap, ~0);
InitUIntMap(&device->EffectMap, ~0);
InitUIntMap(&device->FilterMap, ~0);
device->DeviceName = NULL;
device->Flags |= <API key>;
device->Frequency = frequency;
device->Flags |= <API key> | <API key>;
if(DecomposeDevFormat(format, &device->FmtChans, &device->FmtType) == AL_FALSE)
{
<API key>(&device->Mutex);
al_free(device);
alcSetError(NULL, ALC_INVALID_ENUM);
return NULL;
}
device->UpdateSize = samples;
device->NumUpdates = 1;
LockLists();
if((err=<API key>(device, deviceName)) != ALC_NO_ERROR)
{
UnlockLists();
<API key>(&device->Mutex);
al_free(device);
alcSetError(NULL, err);
return NULL;
}
UnlockLists();
do {
device->next = DeviceList;
} while(!CompExchangePtr((XchgPtr*)&DeviceList, device->next, device));
TRACE("Created device %p\n", device);
return device;
}
ALC_API ALCboolean ALC_APIENTRY <API key>(ALCdevice *Device)
{
ALCdevice *volatile*list;
LockLists();
list = &DeviceList;
while(*list && *list != Device)
list = &(*list)->next;
if(!*list || (*list)->Type != Capture)
{
alcSetError(*list, ALC_INVALID_DEVICE);
UnlockLists();
return ALC_FALSE;
}
*list = (*list)->next;
UnlockLists();
ALCdevice_DecRef(Device);
return ALC_TRUE;
}
ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device)
{
LockLists();
if(!(device=VerifyDevice(device)) || device->Type != Capture)
{
UnlockLists();
alcSetError(device, ALC_INVALID_DEVICE);
if(device) ALCdevice_DecRef(device);
return;
}
if(device->Connected)
{
if(!(device->Flags&DEVICE_RUNNING))
<API key>(device);
device->Flags |= DEVICE_RUNNING;
}
UnlockLists();
ALCdevice_DecRef(device);
}
ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device)
{
LockLists();
if(!(device=VerifyDevice(device)) || device->Type != Capture)
{
UnlockLists();
alcSetError(device, ALC_INVALID_DEVICE);
if(device) ALCdevice_DecRef(device);
return;
}
if((device->Flags&DEVICE_RUNNING))
<API key>(device);
device->Flags &= ~DEVICE_RUNNING;
UnlockLists();
ALCdevice_DecRef(device);
}
ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
{
ALCenum err = ALC_INVALID_DEVICE;
LockLists();
if((device=VerifyDevice(device)) != NULL && device->Type == Capture)
{
err = ALC_INVALID_VALUE;
if(samples >= 0 && <API key>(device) >= (ALCuint)samples)
err = <API key>(device, buffer, samples);
}
UnlockLists();
if(err != ALC_NO_ERROR)
alcSetError(device, err);
if(device) ALCdevice_DecRef(device);
}
/* <API key>
*
* Open a loopback device, for manual rendering.
*/
ALC_API ALCdevice* ALC_APIENTRY <API key>(const ALCchar *deviceName)
{
ALCdevice *device;
DO_INITCONFIG();
/* Make sure the device name, if specified, is us. */
if(deviceName && strcmp(deviceName, alcDefaultName) != 0)
{
alcSetError(NULL, ALC_INVALID_VALUE);
return NULL;
}
device = al_calloc(16, sizeof(ALCdevice));
if(!device)
{
alcSetError(NULL, ALC_OUT_OF_MEMORY);
return NULL;
}
//Validate device
device->Funcs = &BackendLoopback.Funcs;
device->ref = 1;
device->Connected = ALC_TRUE;
device->Type = Loopback;
<API key>(&device->Mutex);
device->LastError = ALC_NO_ERROR;
device->Flags = 0;
device->Bs2b = NULL;
device->Bs2bLevel = 0;
device->DeviceName = NULL;
device->ContextList = NULL;
device->MaxNoOfSources = 256;
device-><API key> = 4;
device->NumAuxSends = MAX_SENDS;
InitUIntMap(&device->BufferMap, ~0);
InitUIntMap(&device->EffectMap, ~0);
InitUIntMap(&device->FilterMap, ~0);
//Set output format
device->NumUpdates = 0;
device->UpdateSize = 0;
device->Frequency = DEFAULT_OUTPUT_RATE;
device->FmtChans = <API key>;
device->FmtType = DevFmtTypeDefault;
ConfigValueUInt(NULL, "sources", &device->MaxNoOfSources);
if(device->MaxNoOfSources == 0) device->MaxNoOfSources = 256;
ConfigValueUInt(NULL, "slots", &device-><API key>);
if(device-><API key> == 0) device-><API key> = 4;
ConfigValueUInt(NULL, "sends", &device->NumAuxSends);
if(device->NumAuxSends > MAX_SENDS) device->NumAuxSends = MAX_SENDS;
device->NumStereoSources = 1;
device->NumMonoSources = device->MaxNoOfSources - device->NumStereoSources;
// Open the "backend"
<API key>(device, "Loopback");
do {
device->next = DeviceList;
} while(!CompExchangePtr((XchgPtr*)&DeviceList, device->next, device));
TRACE("Created device %p\n", device);
return device;
}
/* <API key>
*
* Determines if the loopback device supports the given format for rendering.
*/
ALC_API ALCboolean ALC_APIENTRY <API key>(ALCdevice *device, ALCsizei freq, ALCenum channels, ALCenum type)
{
ALCboolean ret = ALC_FALSE;
if(!(device=VerifyDevice(device)) || device->Type != Loopback)
alcSetError(device, ALC_INVALID_DEVICE);
else if(freq <= 0)
alcSetError(device, ALC_INVALID_VALUE);
else
{
if(IsValidALCType(type) && BytesFromDevFmt(type) > 0 &&
IsValidALCChannels(channels) && ChannelsFromDevFmt(channels) > 0 &&
freq >= MIN_OUTPUT_RATE)
ret = ALC_TRUE;
}
if(device) ALCdevice_DecRef(device);
return ret;
}
/* <API key>
*
* Renders some samples into a buffer, using the format last set by the
* attributes given to alcCreateContext.
*/
ALC_API void ALC_APIENTRY <API key>(ALCdevice *device, ALCvoid *buffer, ALCsizei samples)
{
if(!(device=VerifyDevice(device)) || device->Type != Loopback)
alcSetError(device, ALC_INVALID_DEVICE);
else if(samples < 0 || (samples > 0 && buffer == NULL))
alcSetError(device, ALC_INVALID_VALUE);
else
aluMixData(device, buffer, samples);
if(device) ALCdevice_DecRef(device);
}
|
#ifndef __NEURO_H
#define __NEURO_H
#define OK 0
#define rassert(x) if (!(x)) { void exit(int); fprintf(stderr, "FAIL: %s:%d:%s\n", __FILE__, __LINE__, #x); exit(1); }
#include <neuro/stringtable.h>
#include <neuro/cmdhandler.h>
#include <neuro/ns2net.h>
#endif
|
using System;
using System.Linq;
using System.Threading;
using BruTile;
using Mapsui.Layers;
using Mapsui.Providers;
using NUnit.Framework;
using BruTile.Predefined;
using Mapsui.Rendering;
using Mapsui.Rendering.Xaml;
namespace Mapsui.Tests.Layers
{
[TestFixture]
public class <API key>
{
[Test]
public void TestTimer()
{
// arrange
var layer = new RasterizingLayer(CreatePointLayer());
var schema = new <API key>();
var box = schema.Extent.ToBoundingBox();
var resolution = schema.Resolutions.First().Value.UnitsPerPixel;
var waitHandle = new AutoResetEvent(false);
<API key>.Create = () => new MapRenderer(); // Using xaml renderer here to test rasterizer. Suboptimal.
Assert.AreEqual(0, layer.GetFeaturesInView(box, resolution).Count());
layer.DataChanged += (sender, args) =>
{
// assert
waitHandle.Set();
};
// act
layer.RefreshData(box, resolution, true);
waitHandle.WaitOne();
Assert.AreEqual(layer.GetFeaturesInView(box, resolution).Count(), 1);
}
private static MemoryLayer CreatePointLayer()
{
var random = new Random();
var features = new Features();
for (var i = 0; i < 100; i++)
{
var feature = new Feature
{
Geometry = new Geometries.Point(random.Next(100000, 5000000), random.Next(100000, 5000000))
};
features.Add(feature);
}
var provider = new MemoryProvider(features);
return new MemoryLayer { DataSource = provider };
}
}
}
|
package org.quickserver.security;
import java.io.*;
import java.util.logging.*;
import org.quickserver.util.xmlreader.*;
import org.quickserver.util.io.*;
import javax.net.ssl.*;
import java.security.*;
import org.quickserver.swing.*;
/**
* Class that loads Key Managers, Trust Managers, SSLContext and other secure
* objects from QuickServer configuration passed. See <<API key>>
* in <secure-store> to set new manger to load your SecureStore. This
* class can be overridden to change the way QuickServer configures the
* secure mode.
* @see org.quickserver.util.xmlreader.SecureStore
* @author Akshathkumar Shetty
* @since 1.4
*/
public class SecureStoreManager {
private static Logger logger = Logger.getLogger(
SecureStoreManager.class.getName());
private SensitiveInput sensitiveInput = null;
/**
* Loads KeyManagers. KeyManagers are responsible for managing
* the key material which is used to authenticate the local
* SSLSocket to its peer. Can return null.
*/
public KeyManager[] loadKeyManagers(QuickServerConfig config)
throws <API key>, IOException {
Secure secure = config.getSecure();
SecureStore secureStore = secure.getSecureStore();
if(secureStore==null) {
logger.fine("SecureStore configuration not set! "+
"So returning null for KeyManager");
return null;
}
KeyStoreInfo keyStoreInfo = secureStore.getKeyStoreInfo();
if(keyStoreInfo==null) {
logger.fine("KeyStoreInfo configuration not set! "+
"So returning null for KeyManager");
return null;
}
logger.finest("Loading KeyManagers");
KeyStore ks = getKeyStoreForKey(secureStore.getType(),
secureStore.getProvider());
logger.info("KeyManager Provider: "+ks.getProvider());
char storepass[] = null;
if(keyStoreInfo.getStorePassword()!=null) {
logger.finest("KeyStore: Store password was present!");
storepass = keyStoreInfo.getStorePassword().toCharArray();
} else {
logger.finest("KeyStore: Store password was not set.. so asking!");
if(sensitiveInput==null) {
sensitiveInput = new SensitiveInput(config.getName()+" - Input Prompt");
}
storepass = sensitiveInput.getInput("Store password for KeyStore");
if(storepass==null) {
logger.finest("No password entered.. will pass null");
}
}
InputStream keyStoreStream = null;
try {
if(keyStoreInfo.getStoreFile().equalsIgnoreCase("none")==false) {
logger.finest("KeyStore location: "+
ConfigReader.<API key>(keyStoreInfo.getStoreFile(),
config));
keyStoreStream = new FileInputStream(
ConfigReader.<API key>(keyStoreInfo.getStoreFile(),
config));
}
ks.load(keyStoreStream, storepass);
logger.finest("KeyStore loaded");
} finally {
if(keyStoreStream != null) {
keyStoreStream.close();
keyStoreStream = null;
}
}
char keypass[] = null;
if(keyStoreInfo.getKeyPassword()!=null) {
logger.finest("KeyStore: key password was present!");
keypass = keyStoreInfo.getKeyPassword().toCharArray();
} else {
logger.finest("KeyStore: Key password was not set.. so asking!");
if(sensitiveInput==null) {
sensitiveInput = new SensitiveInput(config.getName()+" - Input Prompt");
}
keypass = sensitiveInput.getInput("Key password for KeyStore");
if(keypass==null) {
logger.finest("No password entered.. will pass blank");
keypass = "".toCharArray();
}
}
KeyManagerFactory kmf = KeyManagerFactory.getInstance(
secureStore.getAlgorithm());
kmf.init(ks, keypass);
storepass = " ".toCharArray();
storepass = null;
keypass = " ".toCharArray();
keypass = null;
return kmf.getKeyManagers();
}
/**
* Loads TrustManagers. TrustManagers are responsible for managing the
* trust material that is used when making trust decisions, and for
* deciding whether credentials presented by a peer should be accepted.
* Can return null.
*/
public TrustManager[] loadTrustManagers(QuickServerConfig config)
throws <API key>, IOException {
Secure secure = config.getSecure();
SecureStore secureStore = secure.getSecureStore();
TrustStoreInfo trustStoreInfo = secureStore.getTrustStoreInfo();
if(trustStoreInfo==null) {
return null;
}
logger.finest("Loading TrustManagers");
String type = null;
if(trustStoreInfo.getType()!=null && trustStoreInfo.getType().trim().length()!=0)
type = trustStoreInfo.getType();
else
type = secureStore.getType();
String provider = null;
if(trustStoreInfo.getProvider()!=null && trustStoreInfo.getProvider().trim().length()!=0)
provider = trustStoreInfo.getProvider();
else
provider = secureStore.getProvider();
KeyStore ts = getKeyStoreForTrust(type, provider);
char trustpass[] = null;
if(trustStoreInfo.getStorePassword()!=null) {
logger.finest("TrustStore: Store password was present!");
trustpass = trustStoreInfo.getStorePassword().toCharArray();
} else {
logger.finest("TrustStore: Store password was not set.. so asking!");
if(sensitiveInput==null) {
sensitiveInput = new SensitiveInput(config.getName()+" - Input Prompt");
}
trustpass = sensitiveInput.getInput("Store password for TrustStore");
if(trustpass==null) {
logger.finest("No password entered.. will pass null");
}
}
InputStream trustStoreStream = null;
try {
if(trustStoreInfo.getStoreFile().equalsIgnoreCase("none")==false) {
logger.finest("TrustStore location: "+
ConfigReader.<API key>(
trustStoreInfo.getStoreFile(), config));
trustStoreStream = new FileInputStream(
ConfigReader.<API key>(
trustStoreInfo.getStoreFile(), config));
}
ts.load(trustStoreStream, trustpass);
logger.finest("TrustStore loaded");
} finally {
if(trustStoreStream!=null) {
trustStoreStream.close();
trustStoreStream = null;
}
}
TrustManagerFactory tmf = TrustManagerFactory.getInstance(
secureStore.getAlgorithm());
tmf.init(ts);
return tmf.getTrustManagers();
}
/**
* Generates a SSLContext object that implements the specified secure
* socket protocol.
*/
public SSLContext getSSLContext(String protocol)
throws <API key> {
return SSLContext.getInstance(protocol);
}
public SSLContext getSSLContext(QuickServerConfig config)
throws <API key>, <API key> {
if(config.getSecure().getSecureStore().getProvider()!=null) {
return SSLContext.getInstance(
config.getSecure().getProtocol(),
config.getSecure().getSecureStore().getProvider());
} else {
return SSLContext.getInstance(config.getSecure().getProtocol());
}
}
/**
* Generates a keystore object for the specified keystore type from
* the specified provider to be used for loading/storeing keys.
* @param type the type of keystore
* @param provider the name of the provider if <code>null</code> any
* provider package that implements this type of key may be given based
* on the priority.
*/
protected KeyStore getKeyStoreForKey(String type, String provider)
throws KeyStoreException, <API key> {
if(provider==null)
return KeyStore.getInstance(type);
return KeyStore.getInstance(type, provider);
}
/**
* Generates a keystore object for the specified keystore type from
* the specified provider to be used for loading/storing trusted
* keys/certificates.
* @param type the type of keystore
* @param provider the name of the provider if <code>null</code> any
* provider package that implements this type of key may be given based
* on the priority.
*/
protected KeyStore getKeyStoreForTrust(String type, String provider)
throws KeyStoreException, <API key> {
if(provider==null)
return KeyStore.getInstance(type);
return KeyStore.getInstance(type, provider);
}
/**
* Returns a SSLSocketFactory object to be used for creating SSLSockets.
*/
public SSLSocketFactory getSocketFactory(SSLContext context) {
return context.getSocketFactory();
}
/**
* Can be used to log details about the SSLServerSocket used to
* create a secure server [SSL/TLS]. This method can also be
* overridden to change the enabled cipher suites and/or enabled protocols.
*/
public void <API key>(SSLServerSocket sslServerSocket) {
if(logger.isLoggable(Level.FINEST)==false) {
return;
}
logger.finest("SecureServer Info: ClientAuth: "+
sslServerSocket.getNeedClientAuth());
logger.finest("SecureServer Info: ClientMode: "+
sslServerSocket.getUseClientMode());
String supportedSuites[] = sslServerSocket.<API key>();
logger.finest("SecureServer Info: Supported Cipher Suites
for(int i=0;i<supportedSuites.length;i++)
logger.finest(supportedSuites[i]);
logger.finest("
String enabledSuites[] = sslServerSocket.<API key>();
logger.finest("SecureServer Info: Enabled Cipher Suites
for(int i=0;i<enabledSuites.length;i++)
logger.finest(enabledSuites[i]);
logger.finest("
String supportedProtocols[] = sslServerSocket.<API key>();
logger.finest("SecureServer Info: Supported Protocols
for(int i=0;i<supportedProtocols.length;i++)
logger.finest(supportedProtocols[i]);
logger.finest("
String enabledProtocols[] = sslServerSocket.getEnabledProtocols();
logger.finest("SecureServer Info: Enabled Protocols
for(int i=0;i<enabledProtocols.length;i++)
logger.finest(enabledProtocols[i]);
logger.finest("
}
}
|
#include <mystdlib.h>
#include "meshing.hpp"
namespace netgen
{
extern double minother;
extern double minwithoutother;
static double CalcElementBadness (const Array<Point3d, PointIndex::BASE> & points,
const Element & elem)
{
double vol, l, l4, l5, l6;
if (elem.GetNP() != 4)
{
if (elem.GetNP() == 5)
{
double z = points[elem.PNum(5)].Z();
if (z > -1e-8) return 1e8;
return (-1 / z) - z;
}
return 0;
}
Vec3d v1 = points[elem.PNum(2)] - points[elem.PNum(1)];
Vec3d v2 = points[elem.PNum(3)] - points[elem.PNum(1)];
Vec3d v3 = points[elem.PNum(4)] - points[elem.PNum(1)];
vol = - (Cross (v1, v2) * v3);
l4 = Dist (points[elem.PNum(2)], points[elem.PNum(3)]);
l5 = Dist (points[elem.PNum(2)], points[elem.PNum(4)]);
l6 = Dist (points[elem.PNum(3)], points[elem.PNum(4)]);
l = v1.Length() + v2.Length() + v3.Length() + l4 + l5 + l6;
// testout << "vol = " << vol << " l = " << l << endl;
if (vol < 1e-8) return 1e10;
// (*testout) << "l^3/vol = " << (l*l*l / vol) << endl;
double err = pow (l*l*l/vol, 1.0/3.0) / 12;
return err;
}
int Meshing3 :: ApplyRules
(
Array<Point3d, PointIndex::BASE> & lpoints, // in: local points, out: old+new local points
Array<int, PointIndex::BASE> & allowpoint, // in: 2 .. it is allowed to use pointi, 1..will be allowed later, 0..no means
Array<MiniElement2d> & lfaces, // in: local faces, out: old+new local faces
INDEX lfacesplit, // for local faces in outer radius
INDEX_2_HASHTABLE<int> & connectedpairs, // connected pairs for prism-meshing
Array<Element> & elements, // out: new elements
Array<INDEX> & delfaces, // out: face indices of faces to delete
int tolerance, // quality class: 1 best
double sloppy, // quality strength
int rotind1, // how to rotate base element
float & retminerr // element error
)
{
NgProfiler::RegionTimer regtot(97);
float err, minerr, teterr, minteterr;
char ok, found, hc;
// vnetrule * rule;
Vector oldu, newu, newu1, newu2, allp;
Vec3d ui;
Point3d np;
const MiniElement2d * locface = NULL;
int loktestmode;
Array<int, PointIndex::BASE> pused; // point is already mapped, number of uses
Array<char> fused; // face is already mapped
Array<PointIndex> pmap; // map of reference point to local point
Array<bool> pfixed; // point mapped by face-map
Array<int> fmapi; // face in reference is mapped to face nr ...
Array<int> fmapr; // face in reference is rotated to map
Array<Point3d> transfreezone; // transformed free-zone
<API key><int> ledges(100); // edges in local environment
Array<Point3d> tempnewpoints;
Array<MiniElement2d> tempnewfaces;
Array<int> tempdelfaces;
Array<Element> tempelements;
Array<Box3d> triboxes; // bounding boxes of local faces
Array<int, PointIndex::BASE> pnearness;
Array<int> fnearness;
static int cnt = 0;
cnt++;
delfaces.SetSize (0);
elements.SetSize (0);
// determine topological distance of faces and points to
// base element
pnearness.SetSize (lpoints.Size());
fnearness.SetSize (lfacesplit);
pnearness = INT_MAX/10;
for (PointIndex pi : lfaces[0].PNums())
pnearness[pi] = 0;
NgProfiler::RegionTimer reg2(98);
NgProfiler::StartTimer (90);
for (int loop = 0; loop < 2; loop++)
{
for (int i = 0; i < lfacesplit; i++)
{
const MiniElement2d & hface = lfaces[i];
int minn = INT_MAX-1;
for (PointIndex pi : hface.PNums())
{
int hi = pnearness[pi];
if (hi < minn) minn = hi;
}
if (minn < INT_MAX/10)
for (PointIndex pi : hface.PNums())
if (pnearness[pi] > minn+1)
pnearness[pi] = minn+1;
}
for (int i = 1; i <= connectedpairs.GetNBags(); i++)
for (int j = 1; j <= connectedpairs.GetBagSize(i); j++)
{
INDEX_2 edge;
int val;
connectedpairs.GetData (i, j, edge, val);
if (pnearness[edge.I1()] > pnearness[edge.I2()] + 1)
pnearness[edge.I1()] = pnearness[edge.I2()] + 1;
if (pnearness[edge.I2()] > pnearness[edge.I1()] + 1)
pnearness[edge.I2()] = pnearness[edge.I1()] + 1;
}
}
for (int i : fnearness.Range())
{
int sum = 0;
for (PointIndex pi : lfaces[i].PNums())
sum += pnearness[pi];
fnearness[i] = sum;
}
NgProfiler::StopTimer (90);
NgProfiler::StartTimer (91);
// find bounding boxes of faces
triboxes.SetSize (lfaces.Size());
// for (int i = 0; i < lfaces.Size(); i++)
for (auto i : lfaces.Range())
{
const MiniElement2d & face = lfaces[i];
triboxes[i].SetPoint (lpoints[face[0]]);
for (int j = 1; j < face.GetNP(); j++)
triboxes[i].AddPoint (lpoints[face[j]]);
}
NgProfiler::StopTimer (91);
NgProfiler::StartTimer (92);
bool useedges = false;
for (int ri = 0; ri < rules.Size(); ri++)
if (rules[ri]->GetNEd()) useedges = true;
if (useedges)
{
ledges.SetSize (5 * lfacesplit);
for (int j = 0; j < lfacesplit; j++)
// if (fnearness[j] <= 5)
{
const MiniElement2d & face = lfaces[j];
int newp, oldp;
newp = face[face.GetNP()-1];
for (int k = 0; k < face.GetNP(); k++)
{
oldp = newp;
newp = face[k];
ledges.Set (INDEX_2::Sort(oldp, newp), 1);
}
}
}
NgProfiler::StopTimer (92);
NgProfiler::RegionTimer reg3(99);
pused.SetSize (lpoints.Size());
fused.SetSize (lfaces.Size());
found = 0;
minerr = tolfak * tolerance * tolerance;
minteterr = sloppy * tolerance;
if (testmode)
(*testout) << "cnt = " << cnt << " class = " << tolerance << endl;
// impossible, if no rule can be applied at any tolerance class
bool impossible = 1;
// check each rule:
for (int ri = 1; ri <= rules.Size(); ri++)
{
int base = (lfaces[0].GetNP() == 3) ? 100 : 200;
NgProfiler::RegionTimer regx1(base);
NgProfiler::RegionTimer regx(base+ri);
// sprintf (problems.Elem(ri), "");
*problems.Elem(ri) = '\0';
vnetrule * rule = rules.Get(ri);
if (rule->GetNP(1) != lfaces[0].GetNP())
continue;
if (rule->GetQuality() > tolerance)
{
if (rule->GetQuality() < 100) impossible = 0;
if (testmode)
sprintf (problems.Elem(ri), "Quality not ok");
continue;
}
if (testmode)
sprintf (problems.Elem(ri), "no mapping found");
loktestmode = testmode || rule->TestFlag ('t') || tolerance > 5;
if (loktestmode)
(*testout) << "Rule " << ri << " = " << rule->Name() << endl;
pmap.SetSize (rule->GetNP());
fmapi.SetSize (rule->GetNF());
fmapr.SetSize (rule->GetNF());
fused = 0;
pused = 0;
for (auto & p : pmap) p.Invalidate();
fmapi = 0;
for (int i : fmapr.Range())
fmapr[i] = rule->GetNP(i+1);
fused[0] = 1;
fmapi[0] = 1;
fmapr[0] = rotind1;
for (int j = 1; j <= lfaces[0].GetNP(); j++)
{
PointIndex locpi = lfaces[0].PNumMod (j+rotind1);
pmap.Set (rule->GetPointNr (1, j), locpi);
pused[locpi]++;
}
/*
map all faces
nfok .. first nfok-1 faces are mapped properly
*/
int nfok = 2;
NgProfiler::RegionTimer regfa(300);
NgProfiler::RegionTimer regx2(base+50+ri);
while (nfok >= 2)
{
if (nfok <= rule->GetNOldF())
{
// not all faces mapped
ok = 0;
int locfi = fmapi.Get(nfok);
int locfr = fmapr.Get(nfok);
int actfnp = rule->GetNP(nfok);
while (!ok)
{
locfr++;
if (locfr == actfnp + 1)
{
locfr = 1;
locfi++;
if (locfi > lfacesplit) break;
}
if (fnearness.Get(locfi) > rule->GetFNearness (nfok) ||
fused.Get(locfi) ||
actfnp != lfaces.Get(locfi).GetNP() )
{
// face not feasible in any rotation
locfr = actfnp;
}
else
{
ok = 1;
locface = &lfaces.Get(locfi);
// reference point already mapped differently ?
for (int j = 1; j <= actfnp && ok; j++)
{
PointIndex locpi = pmap.Get(rule->GetPointNr (nfok, j));
if (locpi.IsValid() && locpi != locface->PNumMod(j+locfr))
ok = 0;
}
// local point already used or point outside tolerance ?
for (int j = 1; j <= actfnp && ok; j++)
{
int refpi = rule->GetPointNr (nfok, j);
if (!pmap.Get(refpi).IsValid())
{
PointIndex locpi = locface->PNumMod (j + locfr);
if (pused[locpi])
ok = 0;
else
{
const Point3d & lp = lpoints[locpi];
const Point3d & rp = rule->GetPoint(refpi);
if ( Dist2 (lp, rp) * rule->PointDistFactor(refpi) > minerr)
{
impossible = 0;
ok = 0;
}
}
}
}
}
}
if (ok)
{
// map face nfok
fmapi.Set (nfok, locfi);
fmapr.Set (nfok, locfr);
fused.Set (locfi, 1);
for (int j = 1; j <= rule->GetNP (nfok); j++)
{
PointIndex locpi = locface->PNumMod(j+locfr);
if (rule->GetPointNr (nfok, j) <= 3 &&
pmap.Get(rule->GetPointNr(nfok, j)) != locpi)
(*testout) << "change face1 point, mark1" << endl;
pmap.Set(rule->GetPointNr (nfok, j), locpi);
pused[locpi]++;
}
nfok++;
}
else
{
// backtrack one face
fmapi.Set (nfok, 0);
fmapr.Set (nfok, rule->GetNP(nfok));
nfok
fused.Set (fmapi.Get(nfok), 0);
for (int j = 1; j <= rule->GetNP (nfok); j++)
{
int refpi = rule->GetPointNr (nfok, j);
pused[pmap.Get(refpi)]
if (pused[pmap.Get(refpi)] == 0)
{
// pmap.Set(refpi, 0);
pmap.Elem(refpi).Invalidate();
}
}
}
}
else
{
NgProfiler::RegionTimer regfb(301);
// all faces are mapped
// now map all isolated points:
if (loktestmode)
{
(*testout) << "Faces Ok" << endl;
sprintf (problems.Elem(ri), "Faces Ok");
}
int npok = 1;
int incnpok = 1;
pfixed.SetSize (pmap.Size());
/*
for (int i = 1; i <= pmap.Size(); i++)
pfixed.Set(i, (pmap.Get(i) != 0) );
*/
for (int i : pmap.Range())
pfixed[i] = pmap[i].IsValid();
while (npok >= 1)
{
if (npok <= rule->GetNOldP())
{
if (pfixed.Get(npok))
{
if (incnpok)
npok++;
else
npok
}
else
{
PointIndex locpi = pmap.Elem(npok);
ok = 0;
if (locpi.IsValid())
pused[locpi]
while (!ok && locpi < lpoints.Size()-1+PointIndex::BASE)
{
ok = 1;
locpi++;
if (pused[locpi] ||
pnearness[locpi] > rule->GetPNearness(npok))
{
ok = 0;
}
else if (allowpoint[locpi] != 2)
{
ok = 0;
if (allowpoint[locpi] == 1)
impossible = 0;
}
else
{
const Point3d & lp = lpoints[locpi];
const Point3d & rp = rule->GetPoint(npok);
if ( Dist2 (lp, rp) * rule->PointDistFactor(npok) > minerr)
{
ok = 0;
impossible = 0;
}
}
}
if (ok)
{
pmap.Set (npok, locpi);
if (npok <= 3)
(*testout) << "set face1 point, mark3" << endl;
pused[locpi]++;
npok++;
incnpok = 1;
}
else
{
// pmap.Set (npok, 0);
pmap.Elem(npok).Invalidate();
if (npok <= 3)
(*testout) << "set face1 point, mark4" << endl;
npok
incnpok = 0;
}
}
}
else
{
NgProfiler::RegionTimer regfa2(302);
// all points are mapped
if (loktestmode)
{
(*testout) << "Mapping found!!: Rule " << rule->Name() << endl;
for (auto pi : pmap)
(*testout) << pi << " ";
(*testout) << endl;
sprintf (problems.Elem(ri), "mapping found");
(*testout) << rule->GetNP(1) << " = " << lfaces.Get(1).GetNP() << endl;
}
ok = 1;
// check mapedges:
for (int i = 1; i <= rule->GetNEd(); i++)
{
INDEX_2 in2(pmap.Get(rule->GetEdge(i).i1),
pmap.Get(rule->GetEdge(i).i2));
in2.Sort();
if (!ledges.Used (in2)) ok = 0;
}
// check prism edges:
for (int i = 1; i <= rule->GetNE(); i++)
{
const Element & el = rule->GetElement (i);
if (el.GetType() == PRISM)
{
for (int j = 1; j <= 3; j++)
{
INDEX_2 in2(pmap.Get(el.PNum(j)),
pmap.Get(el.PNum(j+3)));
in2.Sort();
if (!connectedpairs.Used (in2)) ok = 0;
}
}
if (el.GetType() == PYRAMID)
{
if (loktestmode)
(*testout) << "map pyramid, rule = " << rule->Name() << endl;
for (int j = 1; j <= 2; j++)
{
INDEX_2 in2;
if (j == 1)
{
in2.I1() = pmap.Get(el.PNum(2));
in2.I2() = pmap.Get(el.PNum(3));
}
else
{
in2.I1() = pmap.Get(el.PNum(1));
in2.I2() = pmap.Get(el.PNum(4));
}
in2.Sort();
if (!connectedpairs.Used (in2))
{
ok = 0;
if (loktestmode)
(*testout) << "no pair" << endl;
}
}
}
}
for (int i = rule->GetNOldF() + 1; i <= rule->GetNF(); i++)
fmapi.Set(i, 0);
if (ok)
{
foundmap.Elem(ri)++;
}
// deviation of existing points
oldu.SetSize (3 * rule->GetNOldP());
newu.SetSize (3 * (rule->GetNP() - rule->GetNOldP()));
allp.SetSize (3 * rule->GetNP());
for (int i = 1; i <= rule->GetNOldP(); i++)
{
const Point3d & lp = lpoints[pmap.Get(i)];
const Point3d & rp = rule->GetPoint(i);
oldu (3*i-3) = lp.X()-rp.X();
oldu (3*i-2) = lp.Y()-rp.Y();
oldu (3*i-1) = lp.Z()-rp.Z();
allp (3*i-3) = lp.X();
allp (3*i-2) = lp.Y();
allp (3*i-1) = lp.Z();
}
if (rule->GetNP() > rule->GetNOldP())
{
newu.SetSize (rule->GetOldUToNewU().Height());
rule->GetOldUToNewU().Mult (oldu, newu);
}
// int idiff = 3 * (rule->GetNP()-rule->GetNOldP());
int idiff = 3 * rule->GetNOldP();
for (int i = rule->GetNOldP()+1; i <= rule->GetNP(); i++)
{
const Point3d & rp = rule->GetPoint(i);
allp (3*i-3) = rp.X() + newu(3*i-3 - idiff);
allp (3*i-2) = rp.Y() + newu(3*i-2 - idiff);
allp (3*i-1) = rp.Z() + newu(3*i-1 - idiff);
}
rule-><API key> (allp,
tolerance + int(sloppy));
if (!rule->ConvexFreeZone())
{
ok = 0;
sprintf (problems.Elem(ri), "Freezone not convex");
if (loktestmode)
(*testout) << "Freezone not convex" << endl;
}
if (loktestmode)
{
const Array<Point3d> & fz = rule->GetTransFreeZone();
(*testout) << "Freezone: " << endl;
for (int i = 1; i <= fz.Size(); i++)
(*testout) << fz.Get(i) << endl;
}
// check freezone:
for (int i = 1; i <= lpoints.Size(); i++)
{
if ( !pused.Get(i) )
{
const Point3d & lp = lpoints.Get(i);
if (rule->fzbox.IsIn (lp))
{
if (rule->IsInFreeZone(lp))
{
if (loktestmode)
{
(*testout) << "Point " << i
<< " in Freezone" << endl;
sprintf (problems.Elem(ri),
"locpoint %d in Freezone", i);
}
ok = 0;
break;
}
}
}
}
for (int i = 1; i <= lfaces.Size() && ok; i++)
{
static Array<int> lpi(4);
if (!fused.Get(i))
{
int triin;
const MiniElement2d & lfacei = lfaces.Get(i);
if (!triboxes.Elem(i).Intersect (rule->fzbox))
triin = 0;
else
{
int li, lj;
for (li = 1; li <= lfacei.GetNP(); li++)
{
int lpii = 0;
PointIndex pi = lfacei.PNum(li);
for (lj = 1; lj <= rule->GetNOldP(); lj++)
if (pmap.Get(lj) == pi)
lpii = lj;
lpi.Elem(li) = lpii;
}
if (lfacei.GetNP() == 3)
{
triin = rule-><API key>
(
lpoints[lfacei.PNum(1)],
lpoints[lfacei.PNum(2)],
lpoints[lfacei.PNum(3)], lpi, 1
);
}
else
{
triin = rule->IsQuadInFreeZone
(
lpoints[lfacei.PNum(1)],
lpoints[lfacei.PNum(2)],
lpoints[lfacei.PNum(3)],
lpoints[lfacei.PNum(4)],
lpi, 1
);
}
}
if (triin == -1)
{
ok = 0;
}
if (triin == 1)
{
#ifdef TEST_JS
ok = 0;
if (loktestmode)
{
(*testout) << "El with " << lfaces.Get(i).GetNP() << " points in freezone: "
<< lfaces.Get(i).PNum(1) << " - "
<< lfaces.Get(i).PNum(2) << " - "
<< lfaces.Get(i).PNum(3) << " - "
<< lfaces.Get(i).PNum(4) << endl;
for (int lj = 1; lj <= lfaces.Get(i).GetNP(); lj++)
(*testout) << lpoints[lfaces.Get(i).PNum(lj)] << " ";
(*testout) << endl;
sprintf (problems.Elem(ri), "triangle (%d, %d, %d) in Freezone",
lfaces.Get(i).PNum(1), lfaces.Get(i).PNum(2),
lfaces.Get(i).PNum(3));
}
#else
if (loktestmode)
{
if (lfacei.GetNP() == 3)
{
(*testout) << "Triangle in freezone: "
<< lfacei.PNum(1) << " - "
<< lfacei.PNum(2) << " - "
<< lfacei.PNum(3)
<< ", or "
<< lpoints[lfacei.PNum(1)] << " - "
<< lpoints[lfacei.PNum(2)] << " - "
<< lpoints[lfacei.PNum(3)]
<< endl;
(*testout) << "lpi = " << lpi.Get(1) << ", "
<< lpi.Get(2) << ", " << lpi.Get(3) << endl;
}
else
(*testout) << "Quad in freezone: "
<< lfacei.PNum(1) << " - "
<< lfacei.PNum(2) << " - "
<< lfacei.PNum(3) << " - "
<< lfacei.PNum(4)
<< ", or "
<< lpoints[lfacei.PNum(1)] << " - "
<< lpoints[lfacei.PNum(2)] << " - "
<< lpoints[lfacei.PNum(3)] << " - "
<< lpoints[lfacei.PNum(4)]
<< endl;
sprintf (problems.Elem(ri), "triangle (%d, %d, %d) in Freezone",
int(lfaces.Get(i).PNum(1)),
int(lfaces.Get(i).PNum(2)),
int(lfaces.Get(i).PNum(3)));
}
hc = 0;
for (int k = rule->GetNOldF() + 1; k <= rule->GetNF(); k++)
{
if (rule->GetPointNr(k, 1) <= rule->GetNOldP() &&
rule->GetPointNr(k, 2) <= rule->GetNOldP() &&
rule->GetPointNr(k, 3) <= rule->GetNOldP())
{
for (int j = 1; j <= 3; j++)
if (lfaces.Get(i).PNumMod(j ) == pmap.Get(rule->GetPointNr(k, 1)) &&
lfaces.Get(i).PNumMod(j+1) == pmap.Get(rule->GetPointNr(k, 3)) &&
lfaces.Get(i).PNumMod(j+2) == pmap.Get(rule->GetPointNr(k, 2)))
{
fmapi.Elem(k) = i;
hc = 1;
// (*testout) << "found from other side: "
// << rule->Name()
// << " ( " << pmap.Get (rule->GetPointNr(k, 1))
// << " - " << pmap.Get (rule->GetPointNr(k, 2))
// << " - " << pmap.Get (rule->GetPointNr(k, 3)) << " ) "
// << endl;
strcpy (problems.Elem(ri), "other");
}
}
}
if (!hc)
{
if (loktestmode)
{
(*testout) << "Triangle in freezone: "
<< lfaces.Get(i).PNum(1) << " - "
<< lfaces.Get(i).PNum(2) << " - "
<< lfaces.Get(i).PNum(3) << endl;
sprintf (problems.Elem(ri), "triangle (%d, %d, %d) in Freezone",
int (lfaces.Get(i).PNum(1)),
int (lfaces.Get(i).PNum(2)),
int (lfaces.Get(i).PNum(3)));
}
ok = 0;
}
#endif
}
}
}
if (ok)
{
err = 0;
for (int i = 1; i <= rule->GetNOldP(); i++)
{
double hf = rule->CalcPointDist (i, lpoints[pmap.Get(i)]);
if (hf > err) err = hf;
}
if (loktestmode)
{
(*testout) << "Rule ok" << endl;
sprintf (problems.Elem(ri), "Rule ok, err = %f", err);
}
// newu = rule->GetOldUToNewU() * oldu;
// set new points:
int oldnp = rule->GetNOldP();
int noldlp = lpoints.Size();
int noldlf = lfaces.Size();
for (int i = oldnp + 1; i <= rule->GetNP(); i++)
{
np = rule->GetPoint(i);
np.X() += newu (3 * (i-oldnp) - 3);
np.Y() += newu (3 * (i-oldnp) - 2);
np.Z() += newu (3 * (i-oldnp) - 1);
lpoints.Append (np);
pmap.Elem(i) = lpoints.Size()-1+PointIndex::BASE;
}
// Set new Faces:
for (int i = rule->GetNOldF() + 1; i <= rule->GetNF(); i++)
if (!fmapi.Get(i))
{
MiniElement2d nface(rule->GetNP(i));
for (int j = 1; j <= nface.GetNP(); j++)
nface.PNum(j) = pmap.Get(rule->GetPointNr (i, j));
lfaces.Append (nface);
}
// Delete old Faces:
for (int i = 1; i <= rule->GetNDelF(); i++)
delfaces.Append (fmapi.Get(rule->GetDelFace(i)));
for (int i = rule->GetNOldF()+1; i <= rule->GetNF(); i++)
if (fmapi.Get(i))
{
delfaces.Append (fmapi.Get(i));
fmapi.Elem(i) = 0;
}
// check orientation
for (int i = 1; i <= rule->GetNO() && ok; i++)
{
const fourint * fouri;
fouri = &rule->GetOrientation(i);
Vec3d v1 (lpoints[pmap.Get(fouri->i1)],
lpoints[pmap.Get(fouri->i2)]);
Vec3d v2 (lpoints[pmap.Get(fouri->i1)],
lpoints[pmap.Get(fouri->i3)]);
Vec3d v3 (lpoints[pmap.Get(fouri->i1)],
lpoints[pmap.Get(fouri->i4)]);
Vec3d n;
Cross (v1, v2, n);
//if (n * v3 >= -1e-7*n.Length()*v3.Length()) // OR -1e-7???
if (n * v3 >= -1e-9)
{
if (loktestmode)
{
sprintf (problems.Elem(ri), "Orientation wrong");
(*testout) << "Orientation wrong ("<< n*v3 << ")" << endl;
}
ok = 0;
}
}
// new points in free-zone ?
for (int i = rule->GetNOldP() + 1; i <= rule->GetNP() && ok; i++)
if (!rule->IsInFreeZone (lpoints.Get(pmap.Get(i))))
{
if (loktestmode)
{
(*testout) << "Newpoint " << lpoints.Get(pmap.Get(i))
<< " outside convex hull" << endl;
sprintf (problems.Elem(ri), "newpoint outside convex hull");
}
ok = 0;
}
// insert new elements
for (int i = 1; i <= rule->GetNE(); i++)
{
elements.Append (rule->GetElement(i));
for (int j = 1; j <= elements.Get(i).NP(); j++)
elements.Elem(i).PNum(j) = pmap.Get(elements.Get(i).PNum(j));
}
// Calculate Element badness
teterr = 0;
for (int i = 1; i <= elements.Size(); i++)
{
double hf = CalcElementBadness (lpoints, elements.Get(i));
if (hf > teterr) teterr = hf;
}
/*
// keine gute Erfahrung am 25.1.2000, js
if (ok && teterr < 100 &&
(rule->TestFlag('b') || tolerance > 10) )
{
(*mycout) << "Reset teterr "
<< rule->Name()
<< " err = " << teterr
<< endl;
teterr = 1;
}
*/
// compare edgelength
if (rule->TestFlag('l'))
{
double oldlen = 0;
double newlen = 0;
for (int i = 1; i <= rule->GetNDelF(); i++)
{
const Element2d & face =
rule->GetFace (rule->GetDelFace(i));
for (int j = 1; j <= 3; j++)
{
const Point3d & p1 =
lpoints[pmap.Get(face.PNumMod(j))];
const Point3d & p2 =
lpoints[pmap.Get(face.PNumMod(j+1))];
oldlen += Dist(p1, p2);
}
}
for (int i = rule->GetNOldF()+1; i <= rule->GetNF(); i++)
{
const Element2d & face = rule->GetFace (i);
for (int j = 1; j <= 3; j++)
{
const Point3d & p1 =
lpoints[pmap.Get(face.PNumMod(j))];
const Point3d & p2 =
lpoints[pmap.Get(face.PNumMod(j+1))];
newlen += Dist(p1, p2);
}
}
if (oldlen < newlen)
{
ok = 0;
if (loktestmode)
sprintf (problems.Elem(ri), "oldlen < newlen");
}
}
if (loktestmode)
(*testout) << "ok = " << int(ok)
<< "teterr = " << teterr
<< "minteterr = " << minteterr << endl;
if (ok && teterr < tolerance)
{
canuse.Elem(ri) ++;
/*
(*testout) << "can use rule " << rule->Name()
<< ", err = " << teterr << endl;
for (i = 1; i <= pmap.Size(); i++)
(*testout) << pmap.Get(i) << " ";
(*testout) << endl;
*/
if (strcmp (problems.Elem(ri), "other") == 0)
{
if (teterr < minother)
minother = teterr;
}
else
{
if (teterr < minwithoutother)
minwithoutother = teterr;
}
}
if (teterr > minteterr) impossible = 0;
if (ok && teterr < minteterr)
{
if (loktestmode)
(*testout) << "use rule" << endl;
found = ri;
minteterr = teterr;
if (testmode)
{
for (int i = 1; i <= rule->GetNOldP(); i++)
{
(*testout) << "P" << i << ": Ref: "
<< rule->GetPoint (i) << " is: "
<< lpoints.Get(pmap.Get(i)) << endl;
}
}
tempnewpoints.SetSize (0);
for (int i = noldlp+1; i <= lpoints.Size(); i++)
tempnewpoints.Append (lpoints.Get(i));
tempnewfaces.SetSize (0);
for (int i = noldlf+1; i <= lfaces.Size(); i++)
tempnewfaces.Append (lfaces.Get(i));
tempdelfaces.SetSize (0);
for (int i = 1; i <= delfaces.Size(); i++)
tempdelfaces.Append (delfaces.Get(i));
tempelements.SetSize (0);
for (int i = 1; i <= elements.Size(); i++)
tempelements.Append (elements.Get(i));
}
lpoints.SetSize (noldlp);
lfaces.SetSize (noldlf);
delfaces.SetSize (0);
elements.SetSize (0);
}
npok = rule->GetNOldP();
incnpok = 0;
}
}
nfok = rule->GetNOldF();
for (int j = 1; j <= rule->GetNP (nfok); j++)
{
int refpi = rule->GetPointNr (nfok, j);
pused[pmap.Get(refpi)]
if (pused[pmap.Get(refpi)] == 0)
pmap.Elem(refpi).Invalidate();
}
}
}
if (loktestmode)
(*testout) << "end rule" << endl;
}
if (found)
{
/*
for (i = 1; i <= tempnewpoints.Size(); i++)
lpoints.Append (tempnewpoints.Get(i));
*/
for (Point3d p : tempnewpoints)
lpoints.Append(p);
/*
for (i = 1; i <= tempnewfaces.Size(); i++)
if (tempnewfaces.Get(i).PNum(1))
lfaces.Append (tempnewfaces.Get(i));
*/
for (int i : tempnewfaces.Range())
if (tempnewfaces[i].PNum(1).IsValid())
lfaces.Append (tempnewfaces[i]);
/*
for (i = 1; i <= tempdelfaces.Size(); i++)
delfaces.Append (tempdelfaces.Get(i));
*/
for (int i : tempdelfaces.Range())
delfaces.Append (tempdelfaces[i]);
/*
for (i = 1; i <= tempelements.Size(); i++)
elements.Append (tempelements.Get(i));
*/
for (int i : tempelements.Range())
elements.Append (tempelements[i]);
}
retminerr = minerr;
if (impossible && found == 0)
return -1;
return found;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.