code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30 values | license stringclasses 15 values | size int64 3 1.01M |
|---|---|---|---|---|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dpdgraph: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.6 / dpdgraph - 1.0+8.14</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
dpdgraph
<small>
1.0+8.14
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-14 11:53:07 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-14 11:53:07 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.6 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "palmskog@gmail.com"
homepage: "https://github.com/coq-community/coq-dpdgraph"
dev-repo: "git+https://github.com/coq-community/coq-dpdgraph.git"
bug-reports: "https://github.com/coq-community/coq-dpdgraph/issues"
license: "LGPL-2.1-only"
synopsis: "Compute dependencies between Coq objects (definitions, theorems) and produce graphs"
description: """
Coq plugin that extracts the dependencies between Coq objects,
and produces files with dependency information. Includes tools
to visualize dependency graphs and find unused definitions."""
build: [
["./configure"]
[make "-j%{jobs}%" "WARN_ERR="]
]
install: [make "install" "BINDIR=%{bin}%"]
depends: [
"ocaml" {>= "4.05.0"}
"coq" {>= "8.14" & < "8.15~"}
"ocamlgraph"
]
tags: [
"category:Miscellaneous/Coq Extensions"
"keyword:dependency graph"
"keyword:dependency analysis"
"logpath:dpdgraph"
"date:2021-10-07"
]
authors: [
"Anne Pacalet"
"Yves Bertot"
"Olivier Pons"
]
url {
src: "https://github.com/coq-community/coq-dpdgraph/releases/download/v1.0%2B8.14/coq-dpdgraph-1.0-8.14.tgz"
checksum: "sha512=e4f4258133f809852d88bdd757c22140f8f2a8c0148c50af0ba78d25b40e249261c6b6e719855ec78a4315abaf2410b4454d1ec0ff3db8349f0a26e83e344eeb"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-dpdgraph.1.0+8.14 coq.8.6</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.6).
The following dependencies couldn't be met:
- coq-dpdgraph -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-dpdgraph.1.0+8.14</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.6/dpdgraph/1.0+8.14.html | HTML | mit | 7,417 |
package finTools;
//import finGUI.Controller3;
//import inter_X00022027.*;
import finController.*;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public abstract class finError //static
{
private static File logFile = null;
private static File logBackupFile = null;
private final static String logFileName = new String("finLog.log");
private final static String logBackupFileName = new String("finLog_Backup.log");
private static String Error_type = new String();
private static boolean error = false;
public static String getBackuplogFileName()
{
return logBackupFileName;
}
public static String getlogFileName()
{
return logFileName;
}
public static void add2ErrorLog(String Exception) //save the java error to the log file
{
add2ErrorLog(Error_type,Exception); //get the coder error and the java error and save them
}
public static void testErrorLog() //run test to see if the log file is there
{
logFile = new File(logFileName);
if(logFile.exists() == false)
{
setError("Missing file "+logFileName); //will call the add to log wiech will create a new log file
}
}
public static void clearLogFile()
{
int delete = 0;
delete = JOptionPane.showConfirmDialog(new JFrame(),
"Do you want to clear the log file?",// \n once cleard it can not be ercherved!!",
"erase log file",
JOptionPane.YES_NO_OPTION);
finSound.playSound("Click");
if(0 == delete)
{
logBackupFile = new File(logBackupFileName);
if(logBackupFile.exists())
logBackupFile.delete();
logFile = new File(logFileName);
if(logFile.exists())
logFile.renameTo(new File(logBackupFileName));
buildlogFile();
add2ErrorLog("Log file erasted by user","");
finInterface.setStatus("Log file erasted");
}
else
{
finInterface.setStatus("no change to log file");
}
}
public static void add2ErrorLog(String message,String Exception)
{
if ("" == Exception)
Exception = "none";
try
{
logFile = new File(logFileName);
if(logFile.exists())
{
BufferedWriter buf = new BufferedWriter(new FileWriter(logFileName, true));
String user = System.getProperty("user.name","not specified");
String txt;
String errorColour = new String("bgcolor=#FF0000");
String normalColour = new String("bgcolor=#FFFFFF");
if(getError() == false)
{
txt = new String ("<TR><TH "+normalColour+">"+finToolBox.getTime()+"</TH><TH "+normalColour+">"+finToolBox.getDate()+"</TH><TH "+normalColour+">"+user+"</TH><TH "+normalColour+">"+message+"</TH><TH "+normalColour+">"+Exception+"</TH></TR>");
}
else
{
txt = new String ("<TR><TH "+errorColour+">"+finToolBox.getTime()+"</TH><TH "+errorColour+">"+finToolBox.getDate()+"</TH><TH "+errorColour+">"+user+"</TH><TH "+errorColour+">"+message+"</TH><TH "+errorColour+">"+Exception+"</TH></TR>");
}
buf.write(txt);
buf.flush();
buf.close();
}
else
{
buildlogFile();
add2ErrorLog("Missing file "+logFileName,"");
add2ErrorLog(message,Exception);
}
}
catch(FileNotFoundException null_ex)//file not found
{
setError("Missing file "+logFileName);
}
catch (Exception e3)
{
setError("reader file "+logFileName);
}
}
public static void buildlogFile()
{
try
{
BufferedWriter buf = new BufferedWriter(new FileWriter(logFileName));
buf.write("<body><div align="center">"); buf.newLine();//start of html
buf.write("<h1>finShare v1 - Error log viewer</h1>"); buf.newLine();//titel
buf.write("<TABLE width=100% border= 1 summary="This table gives the user info about the histry of the programe.">"); buf.newLine();//start of table
buf.write("<TR><TD>Time</TD><TD>Date</TD><TD>User</TD><TD>message</TD><TD>System print out</TD></TR>"); buf.newLine();//table head
buf.flush();
buf.close();
}
catch (Exception e3)
{
setError("reader file "+logFileName);
}
}
public static boolean getError()
{
return error;
}
public static String getError_type()
{
return Error_type;
}
public static void setError()//call the error spoces
{
error = true; // glode val
finInterface.setStatus(""); // desplay the error
finSound.playSound("Error_Big");// play an error sound
}
public static void setError(String txt_type)//set the error message to desplay for the user
{
Error_type = new String(txt_type);
setError();
}
}
| codemeasandwich/finshare | finTools/finError.java | Java | mit | 4,601 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("MathParser")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MathParser")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("e25a68a5-025b-41b4-b27d-4e54e9127c2e")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| Bomberus/MathParser | Properties/AssemblyInfo.cs | C# | mit | 1,509 |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<title>paper-autocomplete demo</title>
<script src="../../webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../../paper-toast/paper-toast.html">
<link rel="import" href="../../paper-input/paper-input.html">
<link rel="import" href="../../elliptical-sass/elliptical-sass.html">
<link rel="import" href="../../css-docs/css-docs.html">
<link rel="import" href="../paper-autocomplete-suggestions.html">
<link rel="stylesheet" href="demo.css">
<style is="custom-style" include="demo-pages-shared-styles">
.vertical-section-container {
max-width: 800px;
}
.autocomplete-wrapper {
position: relative;
}
</style>
</head>
<body unresolved>
<div class="vertical-section-container centered">
<h3>Using in combination with paper-input</h3>
<p>
Directly bind a local array to paper-autocomplete. The component internally will filter suggestions based on the
component attribute settings.
</p>
<blockquote class="info">
<span class="bold">LOCAL DATA BINDING</span><br>
<div>
The component internally remaps the passed array to the template binding array (which will be an array of
objects with a `text` and `value` properties). The passed array can be a simple array of strings.
</div>
<br>
<div>
Public properties, `textProperty` and `valueProperty`, can be declaratively set in the element attributes,
allowing to bind an arbitrary object array to the component's <span class="bold">source</span> property.
</div>
</blockquote>
<demo-snippet>
<template is="dom-bind">
<div class="autocomplete-wrapper">
<paper-input id="myInput" label="Select State"></paper-input>
<paper-autocomplete-suggestions for="myInput" source="[[accounts]]"></paper-autocomplete-suggestions>
</div>
<script>
window.addEventListener('WebComponentsReady', function () {
// Async call needed here for IE11/Edge compatibility.
Polymer.Base.async(function () {
var states = [
{"text": "Alabama", "value": "AL"},
{"text": "Alaska", "value": "AK"},
{"text": "American Samoa", "value": "AS"},
{"text": "Arizona", "value": "AZ"},
{"text": "Arkansas", "value": "AR"},
{"text": "California", "value": "CA"},
{"text": "Colorado", "value": "CO"},
{"text": "Connecticut", "value": "CT"},
{"text": "Delaware", "value": "DE"},
{"text": "District Of Columbia", "value": "DC"},
{"text": "Federated States Of Micronesia", "value": "FM"},
{"text": "Florida", "value": "FL"},
{"text": "Georgia", "value": "GA"},
{"text": "Guam", "value": "GU"},
{"text": "Hawaii", "value": "HI"},
{"text": "Idaho", "value": "ID"},
{"text": "Illinois", "value": "IL"},
{"text": "Indiana", "value": "IN"},
{"text": "Iowa", "value": "IA"},
{"text": "Kansas", "value": "KS"},
{"text": "Kentucky", "value": "KY"},
{"text": "Louisiana", "value": "LA"},
{"text": "Maine", "value": "ME"},
{"text": "Marshall Islands", "value": "MH"},
{"text": "Maryland", "value": "MD"},
{"text": "Massachusetts", "value": "MA"},
{"text": "Michigan", "value": "MI"},
{"text": "Minnesota", "value": "MN"},
{"text": "Mississippi", "value": "MS"},
{"text": "Missouri", "value": "MO"},
{"text": "Montana", "value": "MT"},
{"text": "Nebraska", "value": "NE"},
{"text": "Nevada", "value": "NV"},
{"text": "New Hampshire", "value": "NH"},
{"text": "New Jersey", "value": "NJ"},
{"text": "New Mexico", "value": "NM"},
{"text": "New York", "value": "NY"},
{"text": "North Carolina", "value": "NC"},
{"text": "North Dakota", "value": "ND"},
{"text": "Northern Mariana Islands", "value": "MP"},
{"text": "Ohio", "value": "OH"},
{"text": "Oklahoma", "value": "OK"},
{"text": "Oregon", "value": "OR"},
{"text": "Palau", "value": "PW"},
{"text": "Pennsylvania", "value": "PA"},
{"text": "Puerto Rico", "value": "PR"},
{"text": "Rhode Island", "value": "RI"},
{"text": "South Carolina", "value": "SC"},
{"text": "South Dakota", "value": "SD"},
{"text": "Tennessee", "value": "TN"},
{"text": "Texas", "value": "TX"},
{"text": "Utah", "value": "UT"},
{"text": "Vermont", "value": "VT"},
{"text": "Virgin Islands", "value": "VI"},
{"text": "Virginia", "value": "VA"},
{"text": "Washington", "value": "WA"},
{"text": "West Virginia", "value": "WV"},
{"text": "Wisconsin", "value": "WI"},
{"text": "Wyoming", "value": "WY"}
];
var autocompleteSuggestions = document.querySelector('paper-autocomplete-suggestions');
autocompleteSuggestions.source = states;
autocompleteSuggestions.addEventListener('autocomplete-selected', function () {
var paperToast = document.querySelector('paper-toast');
var selected = event.detail.text;
paperToast.text = 'Selected: ' + selected;
paperToast.show();
});
});
});
</script>
</template>
</demo-snippet>
</div>
<paper-toast></paper-toast>
</body>
</html>
| cityofsandiego/seaboard | src/assets/bower_components/paper-autocomplete/demo/paper-autocomplete-suggestions-demo.html | HTML | mit | 6,316 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca -->
<head>
<!-- Title begins / Début du titre -->
<title>
Centre International de Valve Inc. -
Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada
</title>
<!-- Title ends / Fin du titre -->
<!-- Meta-data begins / Début des métadonnées -->
<meta charset="utf-8" />
<meta name="dcterms.language" title="ISO639-2" content="eng" />
<meta name="dcterms.title" content="" />
<meta name="description" content="" />
<meta name="dcterms.description" content="" />
<meta name="dcterms.type" content="report, data set" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.issued" title="W3CDTF" content="" />
<meta name="dcterms.modified" title="W3CDTF" content="" />
<meta name="keywords" content="" />
<meta name="dcterms.creator" content="" />
<meta name="author" content="" />
<meta name="dcterms.created" title="W3CDTF" content="" />
<meta name="dcterms.publisher" content="" />
<meta name="dcterms.audience" title="icaudience" content="" />
<meta name="dcterms.spatial" title="ISO3166-1" content="" />
<meta name="dcterms.spatial" title="gcgeonames" content="" />
<meta name="dcterms.format" content="HTML" />
<meta name="dcterms.identifier" title="ICsiteProduct" content="536" />
<!-- EPI-11240 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- MCG-202 -->
<meta content="width=device-width,initial-scale=1" name="viewport">
<!-- EPI-11567 -->
<meta name = "format-detection" content = "telephone=no">
<!-- EPI-12603 -->
<meta name="robots" content="noarchive">
<!-- EPI-11190 - Webtrends -->
<script>
var startTime = new Date();
startTime = startTime.getTime();
</script>
<!--[if gte IE 9 | !IE ]><!-->
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css">
<!--<![endif]-->
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css">
<!--[if lt IE 9]>
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<![endif]-->
<noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript>
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<script>dataLayer1 = [];</script>
<!-- End Google Tag Manager -->
<!-- EPI-11235 -->
<link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" />
</head>
<body class="home" vocab="http://schema.org/" typeof="WebPage">
<!-- EPIC HEADER BEGIN -->
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script>
<!-- End Google Tag Manager -->
<!-- EPI-12801 -->
<span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span>
<ul id="wb-tphp">
<li class="wb-slc">
<a class="wb-sl" href="#wb-cont">Skip to main content</a>
</li>
<li class="wb-slc visible-sm visible-md visible-lg">
<a class="wb-sl" href="#wb-info">Skip to "About this site"</a>
</li>
</ul>
<header role="banner">
<div id="wb-bnr" class="container">
<section id="wb-lng" class="visible-md visible-lg text-right">
<h2 class="wb-inv">Language selection</h2>
<div class="row">
<div class="col-md-12">
<ul class="list-inline mrgn-bttm-0">
<li><a href="nvgt.do?V_TOKEN=1492274707089&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=9570&V_SEARCH.docsStart=9569&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn//magmi/web/download_file.php?_flId?_flxKy=e1s1&estblmntNo=234567041301&profileId=61&_evId=bck&lang=eng&V_SEARCH.showStricts=false&prtl=1&_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li>
</ul>
</div>
</div>
</section>
<div class="row">
<div class="brand col-xs-8 col-sm-9 col-md-6">
<a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a>
</div>
<section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn">
<h2>Search and menus</h2>
<ul class="list-inline text-right chvrn">
<li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li>
</ul>
<div id="mb-pnl"></div>
</section>
<!-- Site Search Removed -->
</div>
</div>
<nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement">
<h2 class="wb-inv">Topics menu</h2>
<div class="container nvbar">
<div class="row">
<ul class="list-inline menu">
<li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li>
<li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li>
<li><a href="https://travel.gc.ca/">Travel</a></li>
<li><a href="https://www.canada.ca/en/services/business.html">Business</a></li>
<li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li>
<li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li>
<li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li>
<li><a href="https://www.canada.ca/en/services.html">More services</a></li>
</ul>
</div>
</div>
</nav>
<!-- EPIC BODY BEGIN -->
<nav role="navigation" id="wb-bc" class="" property="breadcrumb">
<h2 class="wb-inv">You are here:</h2>
<div class="container">
<div class="row">
<ol class="breadcrumb">
<li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li>
<li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li>
<li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li>
</ol>
</div>
</div>
</nav>
</header>
<main id="wb-cont" role="main" property="mainContentOfPage" class="container">
<!-- End Header -->
<!-- Begin Body -->
<!-- Begin Body Title -->
<!-- End Body Title -->
<!-- Begin Body Head -->
<!-- End Body Head -->
<!-- Begin Body Content -->
<br>
<!-- Complete Profile -->
<!-- Company Information above tabbed area-->
<input id="showMore" type="hidden" value='more'/>
<input id="showLess" type="hidden" value='less'/>
<h1 id="wb-cont">
Company profile - Canadian Company Capabilities
</h1>
<div class="profileInfo hidden-print">
<ul class="list-inline">
<li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&rstBtn.x=" class="btn btn-link">New Search</a> |</li>
<li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do">
<input type="hidden" name="lang" value="eng" />
<input type="hidden" name="profileId" value="" />
<input type="hidden" name="prtl" value="1" />
<input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" />
<input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" />
<input type="hidden" name="V_SEARCH.depth" value="1" />
<input type="hidden" name="V_SEARCH.showStricts" value="false" />
<input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" />
</form></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=9568&V_DOCUMENT.docRank=9569&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492274736414&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=234567105774&profileId=&key.newSearchLabel=">Previous Company</a></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=9570&V_DOCUMENT.docRank=9571&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492274736414&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=123456233276&profileId=&key.newSearchLabel=">Next Company</a></li>
</ul>
</div>
<details>
<summary>Third-Party Information Liability Disclaimer</summary>
<p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p>
</details>
<h2>
Centre International de Valve Inc.
</h2>
<div class="row">
<div class="col-md-5">
<h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2>
<p>Centre International de Valve Inc.</p>
<div class="mrgn-tp-md"></div>
<p class="mrgn-bttm-0" ><a href="http://www.civ.qc.ca/"
target="_blank" title="Website URL">http://www.civ.qc.ca/</a></p>
<p><a href="mailto:info@civ-valve.com" title="info@civ-valve.com">info@civ-valve.com</a></p>
</div>
<div class="col-md-4 mrgn-sm-sm">
<h2 class="h5 mrgn-bttm-0">Mailing Address:</h2>
<address class="mrgn-bttm-md">
3415, av. du Port<br/>
LA BAIE,
Quebec<br/>
G7B 0H2
<br/>
</address>
<h2 class="h5 mrgn-bttm-0">Location Address:</h2>
<address class="mrgn-bttm-md">
3415, av. du Port<br/>
LA BAIE,
Quebec<br/>
G7B 0H2
<br/>
</address>
<p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>:
(418) 697-7777
</p>
<p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>:
(888) 813-2724</p>
<p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>:
(418) 697-7779</p>
</div>
<div class="col-md-3 mrgn-tp-md">
</div>
</div>
<div class="row mrgn-tp-md mrgn-bttm-md">
<div class="col-md-12">
<h2 class="wb-inv">Company Profile</h2>
<br> Recyclage de valves et de pompes industrielles et fabrication de valves neuves<br>
</div>
</div>
<!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> -->
<div class="wb-tabs ignore-session">
<div class="tabpanels">
<details id="details-panel1">
<summary>
Full profile
</summary>
<!-- Tab 1 -->
<h2 class="wb-invisible">
Full profile
</h2>
<!-- Contact Information -->
<h3 class="page-header">
Contact information
</h3>
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Martin
Vallée
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
Chief Executive Officer
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(418) 697-7777
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Ext:
</strong>
</div>
<div class="col-md-7">
224
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(418) 697-7779
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
mvallee@barsatech.ca
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Company Description -->
<h3 class="page-header">
Company description
</h3>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Year Established:
</strong>
</div>
<div class="col-md-7">
1985
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
Yes
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Quality Certification:
</strong>
</div>
<div class="col-md-7">
ISO 9001.
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
332710 - Machine Shops
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Alternate Industries (NAICS):
</strong>
</div>
<div class="col-md-7">
332910 - Metal Valve Manufacturing<br>
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Manufacturer / Processor / Producer
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Total Sales ($CDN):
</strong>
</div>
<div class="col-md-7">
$1,000,000 to $4,999,999
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Export Sales ($CDN):
</strong>
</div>
<div class="col-md-7">
$100,000 to $199,999
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Number of Employees:
</strong>
</div>
<div class="col-md-7">
30
</div>
</div>
</section>
<!-- Products / Services / Licensing -->
<h3 class="page-header">
Product / Service / Licensing
</h3>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Product Name:
</strong>
</div>
<div class="col-md-9">
valves and pumps <br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
valves
<br>
pompes
<br>
recyclage<br>
<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Product Name:
</strong>
</div>
<div class="col-md-9">
VENTE DE VALVES <br>
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Technology Profile -->
<!-- Market Profile -->
<!-- Sector Information -->
<details class="mrgn-tp-md mrgn-bttm-md">
<summary>
Third-Party Information Liability Disclaimer
</summary>
<p>
Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.
</p>
</details>
</details>
<details id="details-panel2">
<summary>
Contacts
</summary>
<h2 class="wb-invisible">
Contact information
</h2>
<!-- Contact Information -->
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Martin
Vallée
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
Chief Executive Officer
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(418) 697-7777
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Ext:
</strong>
</div>
<div class="col-md-7">
224
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(418) 697-7779
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
mvallee@barsatech.ca
</div>
</div>
</section>
</details>
<details id="details-panel3">
<summary>
Description
</summary>
<h2 class="wb-invisible">
Company description
</h2>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Year Established:
</strong>
</div>
<div class="col-md-7">
1985
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
Yes
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Quality Certification:
</strong>
</div>
<div class="col-md-7">
ISO 9001.
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
332710 - Machine Shops
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Alternate Industries (NAICS):
</strong>
</div>
<div class="col-md-7">
332910 - Metal Valve Manufacturing<br>
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Manufacturer / Processor / Producer
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Total Sales ($CDN):
</strong>
</div>
<div class="col-md-7">
$1,000,000 to $4,999,999
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Export Sales ($CDN):
</strong>
</div>
<div class="col-md-7">
$100,000 to $199,999
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Number of Employees:
</strong>
</div>
<div class="col-md-7">
30
</div>
</div>
</section>
</details>
<details id="details-panel4">
<summary>
Products, services and licensing
</summary>
<h2 class="wb-invisible">
Product / Service / Licensing
</h2>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Product Name:
</strong>
</div>
<div class="col-md-9">
valves and pumps <br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
valves
<br>
pompes
<br>
recyclage<br>
<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Product Name:
</strong>
</div>
<div class="col-md-9">
VENTE DE VALVES <br>
</div>
</div>
</section>
</details>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
Last Update Date 2017-03-03
</div>
</div>
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
<!-- End Body Content -->
<!-- Begin Body Foot -->
<!-- End Body Foot -->
<!-- END MAIN TABLE -->
<!-- End body -->
<!-- Begin footer -->
<div class="row pagedetails">
<div class="col-sm-5 col-xs-12 datemod">
<dl id="wb-dtmd">
<dt class=" hidden-print">Date Modified:</dt>
<dd class=" hidden-print">
<span><time>2017-03-02</time></span>
</dd>
</dl>
</div>
<div class="clear visible-xs"></div>
<div class="col-sm-4 col-xs-6">
</div>
<div class="col-sm-3 col-xs-6 text-right">
</div>
<div class="clear visible-xs"></div>
</div>
</main>
<footer role="contentinfo" id="wb-info">
<nav role="navigation" class="container wb-navcurr">
<h2 class="wb-inv">About government</h2>
<!-- EPIC FOOTER BEGIN -->
<!-- EPI-11638 Contact us -->
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&from=Industries">Contact us</a></li>
<li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li>
<li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li>
<li><a href="https://www.canada.ca/en/news.html">News</a></li>
<li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li>
<li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li>
<li><a href="http://pm.gc.ca/eng">Prime Minister</a></li>
<li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li>
<li><a href="http://open.canada.ca/en/">Open government</a></li>
</ul>
</nav>
<div class="brand">
<div class="container">
<div class="row">
<nav class="col-md-10 ftr-urlt-lnk">
<h2 class="wb-inv">About this site</h2>
<ul>
<li><a href="https://www.canada.ca/en/social.html">Social media</a></li>
<li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li>
<li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li>
</ul>
</nav>
<div class="col-xs-6 visible-sm visible-xs tofpg">
<a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a>
</div>
<div class="col-xs-6 col-md-2 text-right">
<object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object>
</div>
</div>
</div>
</div>
</footer>
<!--[if gte IE 9 | !IE ]><!-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script>
<!--<![endif]-->
<!--[if lt IE 9]>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script>
<![endif]-->
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script>
<!-- EPI-10519 -->
<span class="wb-sessto"
data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span>
<script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script>
<!-- EPI-11190 - Webtrends -->
<script src="/eic/home.nsf/js/webtrends.js"></script>
<script>var endTime = new Date();</script>
<noscript>
<div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=9.4.0&dcssip=www.ic.gc.ca"/></div>
</noscript>
<!-- /Webtrends -->
<!-- JS deps -->
<script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script>
<!-- EPI-11262 - Util JS -->
<script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script>
<!-- EPI-11383 -->
<script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script>
<span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span>
</body></html>
<!-- End Footer -->
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
| GoC-Spending/data-corporations | html/123456167385.html | HTML | mit | 41,100 |

XHTumblrMenu
============
Tumblr iOS app like menu view.
Completely created using core animation.
Easy to drop into your project.
You can add as many items as you want, the XHTumblrMenu will layout them automatically.
## Requirements ##
XHTumblrMenu requires Xcode 5, targeting either iOS 5.0 and above, ARC-enabled.
## Installation
CocoaPods is the recommended method of installing XHTumblrMenu, just add the following line to your Podfile:
Podfile
```ruby
pod 'XHTumblrMenu'
```
## How to use ##
Drag XHTumblrMenu.h amd XHTumblrMenu.m files to your project.
No other frameworks required.
```objective-c
#import "XHTumblrMenu.h"
XHTumblrMenu *tumblrMenu = [[XHTumblrMenu alloc] init];
for (int i = 0; i < 6; i ++) {
XHTumblrMenuItem *tumblrMenuItem = [[XHTumblrMenuItem alloc] init];
tumblrMenuItem.title = [NSString stringWithFormat:@"Title%d", i];
tumblrMenuItem.iconImage = [UIImage imageNamed:[NSString stringWithFormat:@"Title%d.png", i]];
tumblrMenuItem.tumblrMenuViewSelectedBlock = ^(XHTumblrMenu *tumblrMenu, XHTumblrMenuItem *tumblrMenuItem) {
NSLog(@"title : %@ index : %d", tumblrMenuItem.title, tumblrMenuItem.index);
};
[tumblrMenu addMenuItemWithTumblrMenuItem:tumblrMenuItem];
}
[tumblrMenu show];
```
## public Api
```objective-c
// background
@property (nonatomic, strong) UIImageView *backgroundImgView;
// show property
@property (nonatomic, assign) NSTimeInterval tumblrMenuViewShowItemAnimationTime; // default is 0.37
// dissMiss
@property (nonatomic, assign) XHTumblrMenuDissmissAnimationType dissmissAnimationType; // default is kXHFade
@property (nonatomic, assign) NSTimeInterval dissMissDuration; // default is 0.1;
```
## Lincense ##
XHTumblrMenu is available under the MIT license. See the LICENSE file for more info.
| darcy1992/XHTumblrMenu | README.md | Markdown | mit | 1,899 |
/*
* misc-private.h: Miscellaneous internal support functions
*
* Author:
* Dick Porter (dick@ximian.com)
*
* (C) 2002 Ximian, Inc.
*/
#ifndef _WAPI_MISC_PRIVATE_H_
#define _WAPI_MISC_PRIVATE_H_
#include <glib.h>
#include <sys/time.h>
#include <time.h>
extern void _wapi_calc_timeout(struct timespec *timeout, guint32 ms);
#endif /* _WAPI_MISC_PRIVATE_H_ */
| jbatonnet/system | Source/[Libraries]/Mono/mono/io-layer/misc-private.h | C | mit | 370 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {AST, TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstElement, TmplAstNode, TmplAstTemplate, TmplAstTextAttribute} from '@angular/compiler';
import {NgCompiler} from '@angular/compiler-cli/src/ngtsc/core';
import {isExternalResource} from '@angular/compiler-cli/src/ngtsc/metadata';
import {DirectiveSymbol, DomBindingSymbol, ElementSymbol, ShimLocation, Symbol, SymbolKind, TemplateSymbol} from '@angular/compiler-cli/src/ngtsc/typecheck/api';
import * as ts from 'typescript';
import {getTargetAtPosition, TargetNodeKind} from './template_target';
import {findTightestNode, getParentClassDeclaration} from './ts_utils';
import {flatMap, getDirectiveMatchesForAttribute, getDirectiveMatchesForElementTag, getTemplateInfoAtPosition, getTextSpanOfNode, isDollarEvent, isTypeScriptFile, TemplateInfo, toTextSpan} from './utils';
interface DefinitionMeta {
node: AST|TmplAstNode;
parent: AST|TmplAstNode|null;
symbol: Symbol;
}
interface HasShimLocation {
shimLocation: ShimLocation;
}
export class DefinitionBuilder {
constructor(private readonly tsLS: ts.LanguageService, private readonly compiler: NgCompiler) {}
getDefinitionAndBoundSpan(fileName: string, position: number): ts.DefinitionInfoAndBoundSpan
|undefined {
const templateInfo = getTemplateInfoAtPosition(fileName, position, this.compiler);
if (templateInfo === undefined) {
// We were unable to get a template at the given position. If we are in a TS file, instead
// attempt to get an Angular definition at the location inside a TS file (examples of this
// would be templateUrl or a url in styleUrls).
if (!isTypeScriptFile(fileName)) {
return;
}
return getDefinitionForExpressionAtPosition(fileName, position, this.compiler);
}
const definitionMetas = this.getDefinitionMetaAtPosition(templateInfo, position);
if (definitionMetas === undefined) {
return undefined;
}
const definitions: ts.DefinitionInfo[] = [];
for (const definitionMeta of definitionMetas) {
// The `$event` of event handlers would point to the $event parameter in the shim file, as in
// `_outputHelper(_t3["x"]).subscribe(function ($event): any { $event }) ;`
// If we wanted to return something for this, it would be more appropriate for something like
// `getTypeDefinition`.
if (isDollarEvent(definitionMeta.node)) {
continue;
}
definitions.push(
...(this.getDefinitionsForSymbol({...definitionMeta, ...templateInfo}) ?? []));
}
if (definitions.length === 0) {
return undefined;
}
return {definitions, textSpan: getTextSpanOfNode(definitionMetas[0].node)};
}
private getDefinitionsForSymbol({symbol, node, parent, component}: DefinitionMeta&
TemplateInfo): readonly ts.DefinitionInfo[]|undefined {
switch (symbol.kind) {
case SymbolKind.Directive:
case SymbolKind.Element:
case SymbolKind.Template:
case SymbolKind.DomBinding:
// Though it is generally more appropriate for the above symbol definitions to be
// associated with "type definitions" since the location in the template is the
// actual definition location, the better user experience would be to allow
// LS users to "go to definition" on an item in the template that maps to a class and be
// taken to the directive or HTML class.
return this.getTypeDefinitionsForTemplateInstance(symbol, node);
case SymbolKind.Pipe: {
if (symbol.tsSymbol !== null) {
return this.getDefinitionsForSymbols(symbol);
} else {
// If there is no `ts.Symbol` for the pipe transform, we want to return the
// type definition (the pipe class).
return this.getTypeDefinitionsForSymbols(symbol.classSymbol);
}
}
case SymbolKind.Output:
case SymbolKind.Input: {
const bindingDefs = this.getDefinitionsForSymbols(...symbol.bindings);
// Also attempt to get directive matches for the input name. If there is a directive that
// has the input name as part of the selector, we want to return that as well.
const directiveDefs = this.getDirectiveTypeDefsForBindingNode(node, parent, component);
return [...bindingDefs, ...directiveDefs];
}
case SymbolKind.Variable:
case SymbolKind.Reference: {
const definitions: ts.DefinitionInfo[] = [];
if (symbol.declaration !== node) {
definitions.push({
name: symbol.declaration.name,
containerName: '',
containerKind: ts.ScriptElementKind.unknown,
kind: ts.ScriptElementKind.variableElement,
textSpan: getTextSpanOfNode(symbol.declaration),
contextSpan: toTextSpan(symbol.declaration.sourceSpan),
fileName: symbol.declaration.sourceSpan.start.file.url,
});
}
if (symbol.kind === SymbolKind.Variable) {
definitions.push(
...this.getDefinitionsForSymbols({shimLocation: symbol.initializerLocation}));
}
return definitions;
}
case SymbolKind.Expression: {
return this.getDefinitionsForSymbols(symbol);
}
}
}
private getDefinitionsForSymbols(...symbols: HasShimLocation[]): ts.DefinitionInfo[] {
return flatMap(symbols, ({shimLocation}) => {
const {shimPath, positionInShimFile} = shimLocation;
return this.tsLS.getDefinitionAtPosition(shimPath, positionInShimFile) ?? [];
});
}
getTypeDefinitionsAtPosition(fileName: string, position: number):
readonly ts.DefinitionInfo[]|undefined {
const templateInfo = getTemplateInfoAtPosition(fileName, position, this.compiler);
if (templateInfo === undefined) {
return;
}
const definitionMetas = this.getDefinitionMetaAtPosition(templateInfo, position);
if (definitionMetas === undefined) {
return undefined;
}
const definitions: ts.DefinitionInfo[] = [];
for (const {symbol, node, parent} of definitionMetas) {
switch (symbol.kind) {
case SymbolKind.Directive:
case SymbolKind.DomBinding:
case SymbolKind.Element:
case SymbolKind.Template:
definitions.push(...this.getTypeDefinitionsForTemplateInstance(symbol, node));
break;
case SymbolKind.Output:
case SymbolKind.Input: {
const bindingDefs = this.getTypeDefinitionsForSymbols(...symbol.bindings);
definitions.push(...bindingDefs);
// Also attempt to get directive matches for the input name. If there is a directive that
// has the input name as part of the selector, we want to return that as well.
const directiveDefs =
this.getDirectiveTypeDefsForBindingNode(node, parent, templateInfo.component);
definitions.push(...directiveDefs);
break;
}
case SymbolKind.Pipe: {
if (symbol.tsSymbol !== null) {
definitions.push(...this.getTypeDefinitionsForSymbols(symbol));
} else {
// If there is no `ts.Symbol` for the pipe transform, we want to return the
// type definition (the pipe class).
definitions.push(...this.getTypeDefinitionsForSymbols(symbol.classSymbol));
}
break;
}
case SymbolKind.Reference:
definitions.push(
...this.getTypeDefinitionsForSymbols({shimLocation: symbol.targetLocation}));
break;
case SymbolKind.Expression:
definitions.push(...this.getTypeDefinitionsForSymbols(symbol));
break;
case SymbolKind.Variable: {
definitions.push(
...this.getTypeDefinitionsForSymbols({shimLocation: symbol.initializerLocation}));
break;
}
}
return definitions;
}
}
private getTypeDefinitionsForTemplateInstance(
symbol: TemplateSymbol|ElementSymbol|DomBindingSymbol|DirectiveSymbol,
node: AST|TmplAstNode): ts.DefinitionInfo[] {
switch (symbol.kind) {
case SymbolKind.Template: {
const matches = getDirectiveMatchesForElementTag(symbol.templateNode, symbol.directives);
return this.getTypeDefinitionsForSymbols(...matches);
}
case SymbolKind.Element: {
const matches = getDirectiveMatchesForElementTag(symbol.templateNode, symbol.directives);
// If one of the directive matches is a component, we should not include the native element
// in the results because it is replaced by the component.
return Array.from(matches).some(dir => dir.isComponent) ?
this.getTypeDefinitionsForSymbols(...matches) :
this.getTypeDefinitionsForSymbols(...matches, symbol);
}
case SymbolKind.DomBinding: {
if (!(node instanceof TmplAstTextAttribute)) {
return [];
}
const dirs = getDirectiveMatchesForAttribute(
node.name, symbol.host.templateNode, symbol.host.directives);
return this.getTypeDefinitionsForSymbols(...dirs);
}
case SymbolKind.Directive:
return this.getTypeDefinitionsForSymbols(symbol);
}
}
private getDirectiveTypeDefsForBindingNode(
node: TmplAstNode|AST, parent: TmplAstNode|AST|null, component: ts.ClassDeclaration) {
if (!(node instanceof TmplAstBoundAttribute) && !(node instanceof TmplAstTextAttribute) &&
!(node instanceof TmplAstBoundEvent)) {
return [];
}
if (parent === null ||
!(parent instanceof TmplAstTemplate || parent instanceof TmplAstElement)) {
return [];
}
const templateOrElementSymbol =
this.compiler.getTemplateTypeChecker().getSymbolOfNode(parent, component);
if (templateOrElementSymbol === null ||
(templateOrElementSymbol.kind !== SymbolKind.Template &&
templateOrElementSymbol.kind !== SymbolKind.Element)) {
return [];
}
const dirs =
getDirectiveMatchesForAttribute(node.name, parent, templateOrElementSymbol.directives);
return this.getTypeDefinitionsForSymbols(...dirs);
}
private getTypeDefinitionsForSymbols(...symbols: HasShimLocation[]): ts.DefinitionInfo[] {
return flatMap(symbols, ({shimLocation}) => {
const {shimPath, positionInShimFile} = shimLocation;
return this.tsLS.getTypeDefinitionAtPosition(shimPath, positionInShimFile) ?? [];
});
}
private getDefinitionMetaAtPosition({template, component}: TemplateInfo, position: number):
DefinitionMeta[]|undefined {
const target = getTargetAtPosition(template, position);
if (target === null) {
return undefined;
}
const {context, parent} = target;
const nodes =
context.kind === TargetNodeKind.TwoWayBindingContext ? context.nodes : [context.node];
const definitionMetas: DefinitionMeta[] = [];
for (const node of nodes) {
const symbol = this.compiler.getTemplateTypeChecker().getSymbolOfNode(node, component);
if (symbol === null) {
continue;
}
definitionMetas.push({node, parent, symbol});
}
return definitionMetas.length > 0 ? definitionMetas : undefined;
}
}
/**
* Gets an Angular-specific definition in a TypeScript source file.
*/
function getDefinitionForExpressionAtPosition(
fileName: string, position: number, compiler: NgCompiler): ts.DefinitionInfoAndBoundSpan|
undefined {
const sf = compiler.getNextProgram().getSourceFile(fileName);
if (sf === undefined) {
return;
}
const expression = findTightestNode(sf, position);
if (expression === undefined) {
return;
}
const classDeclaration = getParentClassDeclaration(expression);
if (classDeclaration === undefined) {
return;
}
const componentResources = compiler.getComponentResources(classDeclaration);
if (componentResources === null) {
return;
}
const allResources = [...componentResources.styles, componentResources.template];
const resourceForExpression = allResources.find(resource => resource.expression === expression);
if (resourceForExpression === undefined || !isExternalResource(resourceForExpression)) {
return;
}
const templateDefinitions: ts.DefinitionInfo[] = [{
kind: ts.ScriptElementKind.externalModuleName,
name: resourceForExpression.path,
containerKind: ts.ScriptElementKind.unknown,
containerName: '',
// Reading the template is expensive, so don't provide a preview.
// TODO(ayazhafiz): Consider providing an actual span:
// 1. We're likely to read the template anyway
// 2. We could show just the first 100 chars or so
textSpan: {start: 0, length: 0},
fileName: resourceForExpression.path,
}];
return {
definitions: templateDefinitions,
textSpan: {
// Exclude opening and closing quotes in the url span.
start: expression.getStart() + 1,
length: expression.getWidth() - 2,
},
};
}
| blesh/angular | packages/language-service/ivy/definitions.ts | TypeScript | mit | 13,198 |
#include "../../std_lib_facilities.h"
// 13. Write a function that takes a vector<string> argument and returns a vector<int> containing the number of characters in
// each string. Also find the longest and the shortest string and the lexicographically first and last string.
// How many separate functions would you use for these tasks? Why?
vector<int> countChars(const vector<string>& argument)
{
vector<int> toReturn;
for (int i = 0; i < argument.size(); i++)
{
int length = argument[i].size();
toReturn.push_back(length);
}
return toReturn;
}
string longest(const vector<string>& argument)
{
vector<int> lengths;
for (int i = 0; i < argument.size(); i++)
{
int length = argument[i].size();
lengths.push_back(length);
}
int max = 0;
int max_index = 0;
for (int i = 0; i < lengths.size(); i++)
{
if (lengths[i] > max)
{
max = lengths[i];
max_index = i;
}
}
return argument[max_index];
}
string shortest(const vector<string>& argument)
{
vector<int> lengths;
for (int i = 0; i < argument.size(); i++)
{
int length = argument[i].size();
lengths.push_back(length);
}
int min = INT_MAX;
int min_index = 0;
for (int i = 0; i < lengths.size(); i++)
{
if (lengths[i] < min)
{
min = lengths[i];
min_index = i;
}
}
return argument[min_index];
}
// In retrospect, lfirst and llast don't really work so well - what if you have two words that start with the same letter,
// say letter "a"? Step through the code and see for yourself.
string lfirst (const vector<string>& argument)
{
string first = argument[0]; // some error checking might go here; to avoid out-of-range indexes
for (int i = 1; i < argument.size(); i++)
{
if (first < argument[i])
{
first = argument[i];
}
}
return first;
}
string llast(const vector<string>& argument)
{
string last = argument[0]; // some error checking might go here; to avoid out-of-range indexes
for (int i = 1; i < argument.size(); i++)
{
if (last > argument[i])
{
last = argument[i];
}
}
return last;
}
int main()
{
vector<string> argument {"Mislav", "baka", "dido", "Filip"};
vector<int> lengths = countChars(argument);
for (int i = 0; i < lengths.size(); i++)
{
cout << lengths[i] << endl;
}
string longe = longest(argument);
string shorte = shortest(argument);
string lex_first = lfirst(argument);
string lex_last = llast(argument);
cout << longe << " " << shorte << " " << lex_first << " " << lex_last << endl;
}
| MislavJuric/programming_principles_and_practice | Chapter 8/Exercise13.cpp | C++ | mit | 2,758 |
body {
height: 100%;
}
html {
font-family: arial;
height: 100%;
margin: 0px;
padding: 0px;
font-family: arial;
background: rgba(221, 221, 221, 1.0);
}
.ember-view {
height: 99%;
}
.leaflet-container {
width: 100%;
height: 99%;
}
.search-bar {
padding: 10px;
top: 50px;
left: 75px;
height: 2%;
width: 30%;
background-color: #ffffff;
visibility: visible;
position: absolute;
z-index: 10;
background: rgba(255, 255, 255, 0.6);
outline: none;
outline-width: 0;
font-size: 20px;
}
.side-bar {
padding: 10px;
top: 50px;
right: 75px;
height: 80%;
width: 20%;
background-color: #ffffff;
visibility: visible;
position: absolute;
z-index: 10;
background: rgba(255, 255, 255, 0.6);
border-radius: 25px;
box-shadow: 10px 10px 15px #888888;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.leaflet-popup-close-button,
.leaflet-popup-content {
visibility: hidden;
position: relative;
}
.leaflet-container {
z-index: 1;
}
.country-info,
.twitter-info,
.music-info {
padding-top: 10px;
height: 19%;
}
.twitter-comp {
vertical-align: bottom;
position: absolute;
text: center;
bottom: 0px;
width: 95%;
}
.country {
padding-top: 25px;
padding-bottom: 20px;
font-size: 35px;
text-align: center;
}
.twitter-timeline {
text-align: center;
}
.population {
padding-left: 30px;
padding-bottom: 5px;
font-size: 15px;
}
@media only screen and (max-height: 810px) {
.twitter-info,
.twitter-timeline {
display: none !important;
}
}
@media only screen and (max-width: 910px) {
.side-bar {
display: none !important;
}
}
| StayerX/CountriesPallete | music-map-frontend/app/styles/app.css | CSS | mit | 1,634 |
require 'spock'
require 'trollop'
class Spock
module CLI
class << self
include Trollop
def run(args = ARGV)
opts = options args do
banner <<EOS
Usage: spock [CONFIG]
Merge multiple directories into one using symlinks.
If CONFIG is not given, try ~/.spockrc, ~/Dropbox/.spockrc, ~/Dropbox/Apps/Spock/spockrc, in that order.
EOS
opt :dry_run, "Don't actually merge anything; just print",
:short => '-n'
version Spock::VERSION
end
spock = Spock.new ARGV[0], opts
spock.merge
end
end
end
end
| ariofrio/spock | lib/spock/cli.rb | Ruby | mit | 606 |
require 'rails_helper'
RSpec.describe Users::AuthController, type: :controller do
let(:user) { FactoryBot.create(:user, name: 'foobar', email: 'foobar@foobar.com') }
context 'sign in' do
before(:each) do
@cached_domain_env = ENV['GATE_HOSTED_DOMAINS']
@cached_sign_in_type = ENV['SIGN_IN_TYPE']
ENV['GATE_HOSTED_DOMAINS'] = 'foobar.com'
ENV['SIGN_IN_TYPE'] = 'form'
end
after(:each) do
ENV['GATE_HOSTED_DOMAINS'] = @cached_domain_env
ENV['SIGN_IN_TYPE'] = @cached_sign_in_type
end
it 'should redirect to home when success' do
post :log_in, params: { name: user.name, email: user.email }
expect(response).to redirect_to(root_path)
end
it 'should produce error and unauthorized status when email domain is unsupported' do
post :log_in, params: { name: user.name, email: 'foobar@notfoobar.com' }
expect(response).to have_http_status(401)
expect(response.body).to eq('Your domain is unauthorized')
end
it 'should generate two factor auth when success' do
post :log_in, params: { name: user.name, email: user.email }
user.reload
expect(user.auth_key).not_to be_nil
end
it 'should set user session when success' do
post :log_in, params: { name: user.name, email: user.email }
expect(subject.current_user).to eq(user)
end
it 'should redirect to home when sign in type is not form' do
ENV['SIGN_IN_TYPE'] = 'not_form'
post :log_in, params: { name: user.name, email: user.email }
expect(response).to redirect_to(root_path)
end
end
end
| gate-sso/gate | spec/controllers/users/auth_controller_spec.rb | Ruby | mit | 1,616 |
import path from 'node:path';
import test from 'ava';
import slash from 'slash';
import {
isIgnoredByIgnoreFiles,
isIgnoredByIgnoreFilesSync,
isGitIgnored,
isGitIgnoredSync,
} from '../ignore.js';
import {
PROJECT_ROOT,
getPathValues,
} from './utilities.js';
const runIsIgnoredByIgnoreFiles = async (t, patterns, options, fn) => {
const promisePredicate = await isIgnoredByIgnoreFiles(patterns, options);
const syncPredicate = isIgnoredByIgnoreFilesSync(patterns, options);
const promiseResult = fn(promisePredicate);
const syncResult = fn(syncPredicate);
t[Array.isArray(promiseResult) ? 'deepEqual' : 'is'](
promiseResult,
syncResult,
'isIgnoredByIgnoreFilesSync() result is different than isIgnoredByIgnoreFiles()',
);
return promiseResult;
};
const runIsGitIgnored = async (t, options, fn) => {
const promisePredicate = await isGitIgnored(options);
const syncPredicate = isGitIgnoredSync(options);
const promiseResult = fn(promisePredicate);
const syncResult = fn(syncPredicate);
t[Array.isArray(promiseResult) ? 'deepEqual' : 'is'](
promiseResult,
syncResult,
'isGitIgnoredSync() result is different than isGitIgnored()',
);
return promiseResult;
};
test('ignore', async t => {
for (const cwd of getPathValues(path.join(PROJECT_ROOT, 'fixtures/gitignore'))) {
// eslint-disable-next-line no-await-in-loop
const actual = await runIsGitIgnored(
t,
{cwd},
isIgnored => ['foo.js', 'bar.js'].filter(file => !isIgnored(file)),
);
const expected = ['bar.js'];
t.deepEqual(actual, expected);
}
});
test('ignore - mixed path styles', async t => {
const directory = path.join(PROJECT_ROOT, 'fixtures/gitignore');
for (const cwd of getPathValues(directory)) {
t.true(
// eslint-disable-next-line no-await-in-loop
await runIsGitIgnored(
t,
{cwd},
isIgnored => isIgnored(slash(path.resolve(directory, 'foo.js'))),
),
);
}
});
test('ignore - os paths', async t => {
const directory = path.join(PROJECT_ROOT, 'fixtures/gitignore');
for (const cwd of getPathValues(directory)) {
t.true(
// eslint-disable-next-line no-await-in-loop
await runIsGitIgnored(
t,
{cwd},
isIgnored => isIgnored(path.resolve(directory, 'foo.js')),
),
);
}
});
test('negative ignore', async t => {
for (const cwd of getPathValues(path.join(PROJECT_ROOT, 'fixtures/negative'))) {
// eslint-disable-next-line no-await-in-loop
const actual = await runIsGitIgnored(
t,
{cwd},
isIgnored => ['foo.js', 'bar.js'].filter(file => !isIgnored(file)),
);
const expected = ['foo.js'];
t.deepEqual(actual, expected);
}
});
test('multiple negation', async t => {
for (const cwd of getPathValues(path.join(PROJECT_ROOT, 'fixtures/multiple-negation'))) {
// eslint-disable-next-line no-await-in-loop
const actual = await runIsGitIgnored(
t,
{cwd},
isIgnored => [
'!!!unicorn.js',
'!!unicorn.js',
'!unicorn.js',
'unicorn.js',
].filter(file => !isIgnored(file)),
);
const expected = ['!!unicorn.js', '!unicorn.js'];
t.deepEqual(actual, expected);
}
});
test('check file', async t => {
const directory = path.join(PROJECT_ROOT, 'fixtures/gitignore');
for (const ignoredFile of getPathValues(path.join(directory, 'foo.js'))) {
t.true(
// eslint-disable-next-line no-await-in-loop
await runIsGitIgnored(
t,
{cwd: directory},
isIgnored => isIgnored(ignoredFile),
),
);
}
for (const notIgnoredFile of getPathValues(path.join(directory, 'bar.js'))) {
t.false(
// eslint-disable-next-line no-await-in-loop
await runIsGitIgnored(
t,
{cwd: directory},
isIgnored => isIgnored(notIgnoredFile),
),
);
}
});
test('custom ignore files', async t => {
const cwd = path.join(PROJECT_ROOT, 'fixtures/ignore-files');
const files = [
'ignored-by-eslint.js',
'ignored-by-prettier.js',
'not-ignored.js',
];
t.deepEqual(
await runIsIgnoredByIgnoreFiles(
t,
'.eslintignore',
{cwd},
isEslintIgnored => files.filter(file => isEslintIgnored(file)),
),
[
'ignored-by-eslint.js',
],
);
t.deepEqual(
await runIsIgnoredByIgnoreFiles(
t,
'.prettierignore',
{cwd},
isPrettierIgnored => files.filter(file => isPrettierIgnored(file)),
),
[
'ignored-by-prettier.js',
],
);
t.deepEqual(
await runIsIgnoredByIgnoreFiles(
t,
'.{prettier,eslint}ignore',
{cwd},
isEslintOrPrettierIgnored => files.filter(file => isEslintOrPrettierIgnored(file)),
),
[
'ignored-by-eslint.js',
'ignored-by-prettier.js',
],
);
});
| sindresorhus/globby | tests/ignore.js | JavaScript | mit | 4,547 |
.description a {
color: white;
} | sofiaaacole/sofiaswebsite | assets/css/style.css | CSS | mit | 33 |
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" dir="rtl" lang="fa-IR">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" dir="rtl" lang="fa-IR">
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html dir="rtl" lang="fa-IR">
<!--<![endif]-->
<head>
<meta charset="utf-8"/>
<meta content="IE-edge,chrome=1" http-equiv="X-UA-Compatable"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="keywords" content="Google,Firebase,Android,iOS,WebApplication, فایربیس,معرفی"/>
<meta name="author" content="Sadra Isapanah Amlashi | صدرا عیسی پناه املشی"/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script>
(function(b,l,e,g,h,f){1!==parseInt(e.msDoNotTrack||b.doNotTrack||e.doNotTrack,10)&&b.addEventListener("load",function(){var r=(new Date).getTime();b.galite=b.galite||{};var m=new XMLHttpRequest,n="https://www.google-analytics.com/collect?cid="+(l.uid=l.uid||Math.random()+"."+Math.random())+"&v=1&tid="+galite.UA+"&dl="+f(h.location.href)+"&ul=en-us&de=UTF-8",a=function(b){var d="",c;for(c in b){if(void 0===b[c])return!1;d+=f(b[c])}return d},p={dt:[h.title],sd:[g.colorDepth,"-bit"],sr:[g.availHeight,
"x",g.availWidth],vp:[innerWidth,"x",innerHeight],dr:[h.referrer]},k;for(k in p){var q=k+"="+a(p[k]);q&&(n+="&"+q)}a=function(b,d){var c="",a;for(a in d)c+="&"+a+"="+f(d[a]);return function(){var a=n+c+(galite.anonymizeIp?"&aip=1":"")+"&t="+f(b)+"&z="+(new Date).getTime();if(e.sendBeacon)e.sendBeacon(a);else try{m.open("GET",a,!1),m.send()}catch(t){(new Image).src=a}}};setTimeout(a("pageview",null),100);b.addEventListener("unload",a("timing",{utc:"JS Dependencies",utv:"unload",utt:(new Date).getTime()-
r}))})})(window,localStorage,navigator,screen,document,encodeURIComponent);
var galite = galite || {};
galite.UA = 'UA-107934487-1'; // Insert your tracking code here
</script>
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@sadra_amlashi" />
<meta name="twitter:creator" content="@sadra_amlashi" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="fa_IR" />
<meta property="og:url" content="https://sadra.me/2017/set-fire-into-the-problems-with-firebase" />
<meta name="description" content="سلام! من صدرا عیسی پناه املشی هستم. توسعه دهنده اپلیکیشن iOS و Android.
"/>
<meta property="og:description" content="سلام! من صدرا عیسی پناه املشی هستم. توسعه دهنده اپلیکیشن iOS و Android.
"/>
<meta name="twitter:description" content="سلام! من صدرا عیسی پناه املشی هستم. توسعه دهنده اپلیکیشن iOS و Android.
"/>
<title>با Firebase مشکلاتتان را به آتش بکشید! | صدرا املشی</title>
<meta property="twitter:title" content="با Firebase مشکلاتتان را به آتش بکشید! | صدرا املشی"/>
<meta property="og:site_name" content="با Firebase مشکلاتتان را به آتش بکشید! | صدرا املشی"/>
<meta property="og:title" content="با Firebase مشکلاتتان را به آتش بکشید! | صدرا املشی"/>
<meta property="twitter:image" content="https://sadra.me/assets/img/post/2017-10-18/firebase-introduction.jpg" />
<meta property="og:image" content="https://sadra.me/assets/img/post/2017-10-18/firebase-introduction.jpg" />
<link rel="alternate" type="application/rss+xml" title="وبلاگ صدرا املشی » Feed" href="/site-map.xml"/>
<link rel="alternative" href="/site-map.xml" title="وبلاگ صدرا املشی" type="application/atom+xml"/>
<link rel="short icon" type="image/x-icon" href="https://sadra.me/assets/img/base/favicon.png"/>
<link rel="stylesheet" type="text/css" href="https://sadra.me/assets/css/styles.css"/>
</head>
<body dir="rtl" lang="Farsi" >
<!-- Header -->
<header class="header-rtl">
<nav class="nav-wrap">
<a href="/" class="nav-logo">وبلاگ صدرا املشی</a>
<ul class="navigation">
<li><a href="/">یادداشتها</a></li>
<li><a href="/list/items">موضوعات</a></li>
<li><a href="/about">درباره</a></li>
<li><a href="http://cv.sadra.me/">رزومه</a></li>
<li><a href="https://sadra.me/english">English</a></li>
</ul>
</nav>
</header>
<!-- /Header -->
<script xmlns:date="http://www.w3.org/1999/xhtml">
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
document.getElementById("back-to-top").style.display = (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) ? "block" : "none";
}
function topFunction() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
</script>
<div class="content">
<div class="blog-post-container">
<div class="post-title-container">
<h1 class="post-title">با Firebase مشکلاتتان را به آتش بکشید!</h1>
</div>
<div class="post_created">
<div class="author_avatar">
<img src="/assets/img/base/avatar.jpg" alt="صدرا املشی" id="avatar-img" />
</div>
<div class="post_info">
<p> <a href="/about">صدرا املشی</a> </p>
<small>توسعه دهنده</small><br/>
<small>چهارشنبه 26 مهر 1396</small>
</div>
</div>
<div class="post-cover">
<img src="https://sadra.me/assets/img/post/2017-10-18/firebase-introduction.jpg" alt="با Firebase مشکلاتتان را به آتش بکشید!">
</div>
<div class="post-content">
<h2 id="مصائب-مسیح">مصائب مسیح!</h2>
<p>تا به امروز اگر میخواستیم از سرویسی جهت جمع آوری اطلاعات و آمار درباره وبسایت یا اپلیکیشنمون استفاده کنیم، بیشک اولین انتخابمون <strong><a href="https://analytics.google.com/">Google Analytics</a></strong> بود، در درجه بعد سرویسهایی مثل <strong><a href="https://fabric.io">Fabric</a></strong> خودنمایی میکردند. وای به روزی که نیاز میشد تا از سرویسی برای ارسال <strong>PushNotification</strong> استفاده کنیم، اونوقت باید از <strong><a href="https://developers.google.com/cloud-messaging/">GCM</a></strong>، <strong><a href="">Parse</a></strong> یا <strong><a href="">پوشه</a></strong> استفاده میکردیم. بماند که برای اطلاع از کرشهای اپلیکیشن باید از <strong><a href="https://fabric.io/kits/crashlytics">CrashLystic</a></strong> استفاده میکردیم.</p>
<p>تنها برای همین ۳سرویس باید ۳ الی ۵ لایبرری مختلف از لایبرریهای گوگل گرفته تا توییتر و فیسبوک نصب میشد. چه روزهای طاقتفرسایی که برای مدیریت و نَویگِیت کردن بین این سرویسها طی نشد. همه اینها یکطرف، اینکه این سرویسهای اختصاص برای اپلیکیشنهای موبایلی لانچ نشده و سرویسهای هزارپاره هستند در طرفی دیگه.</p>
<h2 id="شب-برمیآید">شب برمیآید</h2>
<p>در سال ۲۰۱۱ دو مهندس به نامهای <a href="https://angel.co/james-tamplin">James Tamplin</a> و <a href="https://angel.co/andrew-lee">Andrew Lee</a> استارتاپی بنام Firebase لانچ کردند. این سرویس در ابتدا یه API چت بود که به توسعه دهندهها این امکان رو میداد تا سرویس چت رو در سایتشون پیاده کنن. بعد از مدتی به اطلاعات زیاد و عجیب منتقل شده بر این بستر مشکوک شدن، و پس از بررسیها معلوم شد که توسعه دهندهها از این سرویس برای ارسال اطلاعات در بازی یا نرمافزارهاشون استفاده میکردند، درواقع یه سرویس realtime انتقال دیتا.</p>
<p>در سال ۲۰۱۲ Andrew و James تصمیم گرفتن سرویس چت رو از ساختار RealTime اون جدا کنند، و اینگونه بود که فایربیس (بگونهای که الان میشناسیمش) خلق شد!</p>
<p>در سال ۲۰۱۴ شرکت گوگل، فایربیس رو خرید. پس از افزودن چند سرویس (مثل Analytics، Crash Report و … ) نهایتا در سال ۲۰۱۵ با خریدن <a href="https://divshot.com/">Divshot</a> (که یک سرویس کلاد خدمات وب، مثل Storage, CDN, SSL, API و غیره، است) و ادقام آن با سرویسهای قبلی، اَبَر سرویس فعلی فایبریس رو تشکیل داد.</p>
<h2 id="فایربیس-چه-کارهایی-میکند">فایربیس چه کارهایی میکند؟</h2>
<p>در ادامه به سرویسها و خدمات بیشمار، کاربردی و بعضا جالبی که فایربیس ارائه میده اشاره میکنم.</p>
<ol>
<li>
<h3 id="firebase-analytics">Firebase Analytics</h3>
<p>سرویس رایگان آنالیتیک فایبرس که مشابه Google Analytics، مُنتهی اختصاصی شده برای اپلیکیشن های موبایلی. این سرویس اطلاعات جالبی مثل تعداد نصب، تعداد Uninstall، نرخ بازگشت به اپ و غیره به ما میده. همچنین میتونیم با ایجاد فانل های آماری و دسته بندی کاربران اطلاعات دقیق، مورد به مورد و هدف گذاری شده نیز داشته باشیم. (بیشتر بدانید: <a href="https://firebase.google.com/docs/analytics">متن</a> - <a href="https://youtu.be/8iZpH7O6zXo">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-cloud-messagin">Firebase Cloud Messagin</h3>
<p>اگه با سرویس آشنایی دارید باید بگم، که <a href="https://en.wikipedia.org/wiki/Firebase_Cloud_Messaging">FCM</a> هم مشابه <a href="https://en.wikipedia.org/wiki/Google_Cloud_Messaging">Google Cloud Messaging</a> یک سرویس کراس پلتفرم و بهینه شده برای اپلیکیشنهای موبایلی Android, iOA و همچنین WebApplicationها ست، که بطور کاملا رایگان میتونید ازش استفاده کنید. (بیشتر بدانید: <a href="https://firebase.google.com/docs/cloud-messaging">متن</a> - <a href="https://youtu.be/sioEY4tWmLI?list=PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-auth">Firebase Auth</h3>
<p>سرویسیست که به شما این امکان رو میده تا از Client-Side کابرتون رو احراز هویت کنید. کاربر میتونه از طریق شبکههای اجتماعی مثل Facebook, Github, Twitter و Google به اپ لاگین کنه، همینطور شما میتونید فرآیند احراز هویت رو از طریق ایمیل پسورد انجام بدید. (بیشتر بدانید: <a href="https://firebase.google.com/docs/auth/">متن</a> - <a href="https://youtu.be/8sGY55yxicA?list=PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL">ویدئو</a> )</p>
</li>
<li>
<h3 id="realtime-database">Realtime Database</h3>
<p>سرویسی که به شما امکان ایجاد سرویسهای سمت بکاند (بر پایه REST API) و یک پایگاه داده Realtime میده. از این سرویس میتونید برای ایجاد بکاند خودتون برای استفاده در اپلیکیشن های Android, iOS, JavaScript, Java, Swift, NodeJs و غیره استفاده کنید. از دیتابیس Realtime هم با دسترسی بر پایه RESTP API میتونید در فریمورکهای جاوااسکریپتی مثل AngulatJs, React, Ember.js و BackBone.js استفاده کنید. (بیشتر بدانید: <a href="https://firebase.google.com/products/realtime-database/">متن</a> - <a href="https://youtu.be/U5aeM5dvUpA">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-cloud-store">Firebase Cloud Store</h3>
<p>فایربیس به شما امکان میده تا بتونید از یک فضای کلاد جهت ذخیره فایلهاتون مثل Audio, Image,Video و دیگر انواع فایل استفاده کنید. برای مثال اگه یه اپلیکیشن چت داشته باشید میتونید اطلاعاتش رو اونجا هاست کنید و کاربر بصورت کلاد به همه دیتاش در همه پلتفرمهای ممکن سرویستون دسترسی داره. (بیشتر بدانید: <a href="https://firebase.google.com/products/firestore/">متن</a> - <a href="https://youtu.be/QcsAb2RR52c">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-hosting">Firebase Hosting</h3>
<p>این سرویس هم به عنوان یک هاست برای شما عمل میکنه. روی این هاست میتونید از CSS, HTML و هرچیز Javascriptی استفاده کنید، در فرانت اند هرچیزی که میشناسین و در بکاند تنها Node.js. این سرویس از CDN و SSL پشتیبانی میکنه.(بیشتر بدانید: <a href="https://firebase.google.com/products/hosting">متن</a> - <a href="https://youtu.be/jsRVHeQd5kU">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-test-lab-برای-android">Firebase Test Lab برای Android</h3>
<p>این FTB یکی از جالبترین بخشهای فایربیسه. با این سرویس میتونید اپلیکیشنتون رو در انواع مختلفی از گوشهای اندروید با برندهای مختلف تست کنید و نتیجه رو بصورت Log، تصویر یا ویدئو دریافت کنید. فایربیس کلیه مراحل تست رو حتی اگر UnitTest برای اپتون ننوشته باشید انجام میده. با این سرویس شما این امکان رو دارید که علاوه بر UnitTestها، تستهای CI رو هم مورد آزمایش قرار داده و تستها رو پاس کنید. و در نهایت نتیجه و آنالیز تستهارو در اختیار داشته باشید. (بیشتر بدانید: <a href="https://firebase.google.com/products/test-lab/">متن</a> - <a href="https://youtu.be/4_ZEEX1x17k">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-crash-reporting">Firebase Crash Reporting</h3>
<p>اگه میخواید بدونید اپتون چه مواقعی کرش میکنه یا کاربرانتون معمولا با چه مشکلاتی و به چه دلیل مواجه میشن، این سرویس بهترین کمک رو بهتون میکنه.(بیشتر بدانید: <a href="https://firebase.google.com/products/crash/">متن</a> - <a href="https://youtu.be/B7mlLVAkcfU">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-perforamnce-monitoring">Firebase Perforamnce Monitoring</h3>
<p>سرویس FPM به شما کمک میکنه تا از پرفرمنس و عملکرد اپلیکیشن Android یا iOSتون در دستگاههای کاربرانتون اطلاعات دقیقی کسب کنید. با استفاده از SDK این سرویس اطلاعات مورد نیازتون جهت سنجش عملکرد اپ از تلفن همراه تک تک کاربرانتون جمعاوری میشه و پس آنالیز دیتاها در کنسول فایربیس قابل رویت هست. این سرویس به شما کمک میکنه تا بدونید چه کارهای باید انجام بدید تا عملکرد یا Perfromance اپتون رو بهبود ببخشید یا اینکه مشکلات حاصله رو رفع کنید. (بیشتر بدانید: <a href="https://firebase.google.com/docs/perf-mon/">متن</a> - <a href="https://youtu.be/0EHSPFvH7vk?list=PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-cloud-function">Firebase Cloud Function</h3>
<p>یکی از امکانات کاربردی فایبریس همین سرویس FCF هست. با این سرویس شما میتونید سمت بک اند موردنیازتون رو هم طراحی کنید و درنهایت یکسری API بر بستر پروتوکل HTTPS در دسترس داشته باشید. با استفاده از این سرویس شما دیگه نگران Scale کردن و نگهداری سرویسهاتون ندارید، تا موقعی که شما هستین، سرویسهاتون بر بستر امن و کلاد در اختیار کاربرانتون قرار داره. (بیشتر بدانید: <a href="https://firebase.google.com/docs/functions/">متن</a> - <a href="https://youtu.be/vr0Gfvp5v1A">ویدئو</a> )</p>
</li>
</ol>
<h2 id="سرویسهای-درحال-پیشرفت">سرویسهای درحال پیشرفت</h2>
<ol>
<li>
<h3 id="firebase-notifications">Firebase Notifications</h3>
<p>شما میتونید بدون استفاده از API و تنها از داخل پنل فایربیستون برای کاربران اپ نوتیفیکیشن بفرستید. این امکان رو دارید که کاربران رو فیلتر کنید و بر اساس User Propertyهایی که در پنل آنالیتیک فایبربیستون ایجاد کردید (مثلا جنسیت فلان) پیامهارو ارسال کنید.</p>
</li>
<li>
<h3 id="firebase-app-indexing">Firebase App Indexing</h3>
<p>از این سرویس برای بهبود رتبه اپ در جستجوی گوگل استفاده کنید، این سرویس همچنین بهتون کمک میکنه تا در query search گوگل پلی، پیشنهاد شده و راحتتر پیدا بشید. (بیشتر بدانید: <a href="https://firebase.google.com/products/app-indexing/">متن</a> - <a href="https://youtu.be/C35OSHlTNwA">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-dynamic-links">Firebase Dynamic Links</h3>
<p>داینامیک لینکها این امکان رو به شما میدن تا بتونید لینکهای هوشمند بسازید که در مواقع مختلف رفتار متفاوتی از خودشون نشون بدن. برای مثال شما در وبسایتتون یک محصول برای فروش گذاشتید، کاربر بعد از کلیک روی اون لینک (اگر سایت رو در موبایلش باز کرده باشه و بر اساس پلتفرم سیستم عاملش) به سمت اون صفحه از اپلیکیشن هدایت میشه که محصول بهش نشون داده یا همونجا فاکتور برای پرداخت براش صادر میشه تا خریدش رو سریعتر انجام بده. (بیشتر بدانید: <a href="https://firebase.google.com/docs/dynamic-links/">متن</a> - <a href="https://www.youtube.com/watch?v=LvY1JMcrPF8">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-invites">Firebase Invites</h3>
<p>این سرویس به شما کمک میکنه تا امکانی رو فراهم کنید برای اینکه کاربرانتون با ایمیل، SMS یا پیام در شبکههای اجتماعی دیگر دوستناشون رو برای نصب اپلیکیشن دعوت کنن، و البته این امکان رو هم در اختیار دارید تا میزان بازگشت و استفاده کاربران از دعوتهای انجام شده رو با آمار دقیق در اختیار داشته باشید. (بیشتر بدانید: <a href="https://firebase.google.com/docs/invites/">متن</a> - <a href="https://youtu.be/LkaIJCZ_HyM?list=PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL">ویدئو</a> )</p>
</li>
<li>
<h3 id="firebase-remote-config">Firebase Remote Config</h3>
<p>سرویس FRC یکی از امکانات دیگهی فایربیسه، که به شما این توانایی رو میده تا بصورت کلاد امکان تغییر تنظیمات اپلیکیشنتون رو داشته باشید، بدون اینکه نیاز باشه تا اپ رو آپدیت کنید. برای مثال تمامی استرینگ و متنهایی که در اپتون استفاده کردید بصورت یک فایل XML درمیارید، پسفردا اگه به مشکلی برخوردید و خواستید متن رو عوض کنید، یا مثلا رنگ دکمه رو عوض کنید یا هر تغییر دیگهای، فقط کافیه در ریموت کانفیگ اطلاعات رو ویرایش کرده و ارسال کنید تا همه اپها رو عوض کنید. (بیشتر بدانید: <a href="https://firebase.google.com/products/remote-config/">متن</a> - <a href="https://youtu.be/_CXXVFPO6f0">ویدئو</a> )</p>
</li>
<li>
<h3 id="adwords">Adwords</h3>
<p>جالب اینجاست که گوگل سرویس Adwordsش رو هم به فایربیس انتقال داده و شما میتونید با استفاده از این سرویس مثل سابق کاربران مورد نظرتون رو هدف قرار داده و نتیجه رو در <strong>Firebase Analytics</strong> مشاهده کنید. (بیشتر بدانید: <a href="https://firebase.google.com/docs/adwords/">متن</a> - <a href="https://youtu.be/YTgJjKU9GdQ">ویدئو</a> )</p>
</li>
</ol>
<h2 id="کسب-درآمد">کسب درآمد</h2>
<ul>
<li>
<h3 id="admob">Admob</h3>
<p>از سرویس admob جهت پخش تبلیغات و کسب درآمد در اپتون میتونید استفاده کنید. (بیشتر بدانید: <a href="https://firebase.google.com/docs/admob/">متن</a> - <a href="https://youtu.be/EPKmYheOmiw?list=PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL">ویدئو</a> )</p>
</li>
</ul>
<h2 id="پروژه-های-متنباز">پروژه های متنباز</h2>
<ol>
<li>
<h3 id="firepad">Firepad</h3>
<p>این یک سرویس ویرایش متن در لحظه و قابل اشتراکه. فایرپد از ادیتورهای مختلف مثل Altassian Stash Realtime و Koding در خودش استفاده میکنه. (<a href="https://firepad.io/">وبسایت</a>)</p>
</li>
<li>
<h3 id="firechat">Firechat</h3>
<p>فایرچت هم یه اپلیکیشن چت Realtime و اوپن سورس هست. (<a href="https://www.opengarden.com/firechat.html">وبسایت</a>)</p>
</li>
<li>
<h3 id="geofire">GeoFire</h3>
<p>جئوفایر هم بهمون کمک میکنه تا با استفاده از Firebase Databse بتونیم اطلاعات لوکیشن و جئومتریک کاربران اپلیکیشن رو در پایگاه داده آنلاینمون ذخیره کرده و نگهداری کنیم. (و احتمالا بعدا ازش استفاده کنیم 😈) (<a href="https://github.com/firebase/geofire">وبسایت</a>)</p>
</li>
</ol>
<h2 id="نتیجه-گیری">نتیجه گیری</h2>
<p>پس بجای استفاده از چندین سرویس، از یک سرویس کامل استفاده کنید. البته امیدوارم این امر برای شرکت گوگل انحصار ایجاد نکنه و استارتاپهای مختلف بتونن با ارائه سرویسهای خلاقانه و کاربردی مارو در مسیر بهبود خدمت و سرویس به کاربران یاری کنن.</p>
<p>لازمه که این مورد رو یادآور بشم که فقط سرویس FCM کاملا رایگان هست، و باقی سرویسهای فایبریس یا از پایه پولیهستن یا محدودیت دارن در حالت رایگان، پس قبل از برنامه ریزی برای توسعه، به بخش بیزنسیش هم فکر کنید.</p>
<p>اول که شروع کردم قرار بود راجع به پیادهسازی فایبربیس در اپلیکیشمون فایبرنت صحبت کنم. اما خب دلم نیومد راجع به سرویسهای فایبربیس ننویسم (چون جایی هم در منابع فارسی ندیدم که کامل راجع بهش نوشته باشه). انشالله در پست یا پستهای بعدی حسابی راجع به پیاده کردن چند سرویسی که استفاده کردم خواهم نوشت.</p>
<p>پس تا پست بعدی، اگه سوال مورد یا چیزی بود لطفا در <a href="https://twitter.com/sadra_amlashi">توئیتر</a> یا <a href="https://t.me/amlashi">تلگرام</a> با هم در ارتباط باشیم.</p>
</div>
<div class="post-routes-list">
<a class="category-link" href="/category/فایربیس">فایربیس</a>
<a class="category-link" href="/category/معرفی">معرفی</a>
<a class="tag-link" href="/tag/google">Google</a>
<a class="tag-link" href="/tag/firebase">Firebase</a>
<a class="tag-link" href="/tag/android">Android</a>
<a class="tag-link" href="/tag/ios">iOS</a>
<a class="tag-link" href="/tag/webapplication">WebApplication</a>
</div>
<div class="Prev-next-post-container">
<a class="previous-btn" href="/2017/bottom-navigation-view-challenges">نوشته قبلی: بهبود رابط کاربری با BottomNavigationView ←</a>
<a class="next-btn" href="/2017/how-to-fcm-android">→ نوشته بعدی: فایربیس ۱: سرویس Firebase Cloud Messaging</a>
</div>
<div class="commets-delimiter-space"></div>
<div class="commets-delimiter">
<span></span>
</div>
<script
data-isso-vote="true"
data-isso-avatar="true"
data-isso="https://isso.sadra.me/"
data-isso-lang="ru"
src="https://sadra.me/assets/js/embed.min.js"></script>
<section id="isso-thread">
</section>
</div>
</div>
<a id="back-to-top" class="back-to-top" role="button" title="Click to return on the top page" data-toggle="tooltip" data-placement="left" onclick="topFunction()">
<img src="/assets/img/base/arrow-up.png" class="arrow-up"/>
</a>
<!-- Footer -->
<footer class="footer-wrapper">
<div class="delimiter">
<a href="/" class="footer-logo">
<img src="https://sadra.me/assets/img/base/favicon.png" class="logo-wrapper">
</a>
</div>
<p class="footer-copyright">
2008 - 2017<br>
مطالب تحت لیسانس <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" rel="license" target="_blank">کریتیو کامنز</a> منتشر میشوند.
</p>
<div class="footer-social-links">
<a href="https://twitter.com/sadra-amlashi" title="Twitter" target="_blank"><i class="fa fa-twitter"></i></a>
<a href="https://github.com/sadra" title="Github" target="_blank"><i class="fa fa-github"></i></a>
<a href="https://medium.com/sadra" title="Medium" target="_blank"><i class="fa fa-medium"></i></a>
<a href="https://www.linkedin.com/in/amlashisadra/" title="Linkedin" target="_blank"><i class="fa fa-linkedin"></i></a>
<a href="https://facebook.com/sadra.am123" title="Facebook" target="_blank"><i class="fa fa-facebook"></i></a>
</div>
</footer>
<!-- /Footer -->
</body>
</html>
| sadra/sadra.github.io | 2017/set-fire-into-the-problems-with-firebase.html | HTML | mit | 28,287 |
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2000 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
// BCGVisualManagerXP.h: interface for the CBCGVisualManagerXP class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BCGVISUALMANAGERXP_H__062013FA_7440_4CEC_AA78_67893D195FFA__INCLUDED_)
#define AFX_BCGVISUALMANAGERXP_H__062013FA_7440_4CEC_AA78_67893D195FFA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "bcgcontrolbar.h"
#include "BCGVisualManager.h"
class BCGCONTROLBARDLLEXPORT CBCGVisualManagerXP : public CBCGVisualManager
{
DECLARE_DYNCREATE(CBCGVisualManagerXP)
protected:
CBCGVisualManagerXP(BOOL bIsTemporary = FALSE);
public:
virtual ~CBCGVisualManagerXP();
protected:
virtual void OnUpdateSystemColors ();
virtual void OnDrawBarGripper (CDC* pDC, CRect rectGripper, BOOL bHorz, CControlBar* pBar);
virtual void OnFillBarBackground (CDC* pDC, CControlBar* pBar,
CRect rectClient, CRect rectClip,
BOOL bNCArea);
virtual void OnDrawBarBorder (CDC* pDC, CControlBar* pBar, CRect& rect);
virtual void OnDrawMenuBorder (CDC* pDC, CBCGPopupMenu* pMenu, CRect rect);
virtual void OnDrawSeparator (CDC* pDC, CControlBar* pBar, CRect rect, BOOL bIsHoriz);
virtual void OnFillButtonInterior (CDC* pDC,
CBCGToolbarButton* pButton, CRect rect, CBCGVisualManager::BCGBUTTON_STATE state);
virtual void OnDrawButtonBorder (CDC* pDC,
CBCGToolbarButton* pButton, CRect rect, CBCGVisualManager::BCGBUTTON_STATE state);
virtual void OnHighlightMenuItem (CDC*pDC, CBCGToolbarMenuButton* pButton,
CRect rect, COLORREF& clrText);
virtual void OnHighlightRarelyUsedMenuItems (CDC* pDC, CRect rectRarelyUsed);
virtual void OnEraseTabsArea (CDC* pDC, CRect rect, const CBCGTabWnd* pTabWnd);
virtual void OnDrawTab (CDC* pDC, CRect rectTab,
int iTab, BOOL bIsActive, const CBCGTabWnd* pTabWnd);
virtual void OnDrawCaptionButton (CDC* pDC, CBCGSCBButton* pButton,
BOOL bHorz, BOOL bMaximized, BOOL bDisabled);
virtual void OnDrawTearOffCaption (CDC* pDC, CRect rect, BOOL bIsActive);
virtual COLORREF OnFillCommandsListBackground (CDC* pDC, CRect rect, BOOL bIsSelected = FALSE);
virtual void OnDrawMenuSystemButton (CDC* pDC, CRect rect, UINT uiSystemCommand,
UINT nStyle, BOOL bHighlight);
virtual void OnDrawStatusBarPaneBorder (CDC* pDC, CBCGStatusBar* pBar,
CRect rectPane, UINT uiID, UINT nStyle);
virtual void OnDrawComboDropButton (CDC* pDC, CRect rect,
BOOL bDisabled,
BOOL bIsDropped,
BOOL bIsHighlighted,
CBCGToolbarComboBoxButton* pButton);
virtual void OnDrawComboBorder (CDC* pDC, CRect rect,
BOOL bDisabled,
BOOL bIsDropped,
BOOL bIsHighlighted,
CBCGToolbarComboBoxButton* pButton);
virtual COLORREF GetToolbarButtonTextColor (CBCGToolbarButton* pButton,
CBCGVisualManager::BCGBUTTON_STATE state);
virtual int GetMenuImageMargin () const
{
return 3;
}
BOOL IsLook2000Allowed () const
{
return FALSE;
}
CBrush m_brGripperHorz;
CBrush m_brGripperVert;
COLORREF m_clrBarBkgnd; // Control bar background color (expect menu bar)
CBrush m_brBarBkgnd;
COLORREF m_clrMenuLight; // Color of the light menu area
CBrush m_brMenuLight;
COLORREF m_clrHighlight; // Highlighted toolbar/menu item color
CBrush m_brHighlight;
COLORREF m_clrHighlightDn; // Highlighted and pressed toolbar item color
CBrush m_brHighlightDn;
COLORREF m_clrHighlightChecked;
CBrush m_brHighlightChecked;
CBrush m_brTabBack;
CPen m_penSeparator;
COLORREF m_clrPaneBorder; // Status bar pane border
COLORREF m_clrMenuBorder; // Menu border
COLORREF m_clrMenuItemBorder; // Highlighted menu item border
virtual void CreateGripperBrush ();
virtual void ExtendMenuButton (CBCGToolbarMenuButton* pMenuButton, CRect& rect);
};
#endif // !defined(AFX_BCGVISUALMANAGERXP_H__062013FA_7440_4CEC_AA78_67893D195FFA__INCLUDED_)
| segafan/wme1_jankavan_tlc_edition-repo | src/external_lib/BCG/BCGControlBar/BCGVisualManagerXP.h | C | mit | 4,478 |
require 'spec_helper'
require 'flapjack/gateways/jsonapi'
describe 'Flapjack::Gateways::JSONAPI::Methods::TestNotifications', :sinatra => true, :logger => true, :pact_fixture => true do
include_context "jsonapi"
let(:check) { double(Flapjack::Data::Check, :id => check_data[:id]) }
let(:check_2) { double(Flapjack::Data::Check, :id => check_2_data[:id]) }
it "creates a test notification for a check" do
expect(Flapjack::Data::Check).to receive(:find_by_ids!).
with(check.id).and_return([check])
expect(Flapjack::Data::Event).to receive(:test_notifications).
with('events', [check], an_instance_of(Hash))
post "/test_notifications",
Flapjack.dump_json(:test_notifications => notification_data.merge(:links => {:checks => [check.id]})),
jsonapi_post_env
expect(last_response.status).to eq(201)
expect(last_response.body).to eq(Flapjack.dump_json(:test_notifications =>
notification_data.merge(:links => {:checks => [check.id]})
))
end
it 'creates test notifications for multiple checks' do
expect(Flapjack::Data::Check).to receive(:find_by_ids!).
with(check.id, check_2.id).and_return([check, check_2])
expect(Flapjack::Data::Event).to receive(:test_notifications).
with('events', [check, check_2], an_instance_of(Hash))
post "/test_notifications",
Flapjack.dump_json(:test_notifications => notification_data.merge(:links => {:checks => [check.id, check_2.id]})),
jsonapi_post_env
expect(last_response.status).to eq(201)
expect(last_response.body).to eq(Flapjack.dump_json(:test_notifications =>
notification_data.merge(:links => {:checks => [check.id, check_2.id]})
))
end
it 'creates multiple test notifications for a check' do
expect(Flapjack::Data::Check).to receive(:find_by_ids!).
with(check.id).twice.and_return([check])
expect(Flapjack::Data::Event).to receive(:test_notifications).
with('events', [check], an_instance_of(Hash)).twice
post "/test_notifications",
Flapjack.dump_json(:test_notifications => [
notification_data.merge(:links => {:checks => [check.id]}),
notification_2_data.merge(:links => {:checks => [check.id]})
]),
jsonapi_post_env
expect(last_response.status).to eq(201)
expect(last_response.body).to eq(Flapjack.dump_json(:test_notifications => [
notification_data.merge(:links => {:checks => [check.id]}),
notification_2_data.merge(:links => {:checks => [check.id]})
]))
end
it 'creates multiple test notifications for multiple checks' do
expect(Flapjack::Data::Check).to receive(:find_by_ids!).
with(check.id, check_2.id).twice.and_return([check, check_2])
expect(Flapjack::Data::Event).to receive(:test_notifications).
with('events', [check, check_2], an_instance_of(Hash)).twice
post "/test_notifications",
Flapjack.dump_json(:test_notifications => [
notification_data.merge(:links => {:checks => [check.id, check_2.id]}),
notification_2_data.merge(:links => {:checks => [check.id, check_2.id]})
]),
jsonapi_post_env
expect(last_response.status).to eq(201)
expect(last_response.body).to eq(Flapjack.dump_json(:test_notifications => [
notification_data.merge(:links => {:checks => [check.id, check_2.id]}),
notification_2_data.merge(:links => {:checks => [check.id, check_2.id]})
]))
end
end
| cloudevelops/flapjack | spec/lib/flapjack/gateways/jsonapi/methods/test_notifications_spec.rb | Ruby | mit | 3,435 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unimath-substitution-systems: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">8.10.0 / unimath-substitution-systems - 0.1.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
unimath-substitution-systems
<small>
0.1.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2020-07-31 23:28:00 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-31 23:28:00 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.10.0 Formal proof management system
num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.07.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.07.1 Official release 4.07.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "opam@clarus.me"
homepage: "https://github.com/UniMath/UniMath"
dev-repo: "git+https://github.com/UniMath/UniMath.git"
bug-reports: "https://github.com/UniMath/UniMath/issues"
license: "Kind of MIT"
authors: ["The UniMath Development Team"]
build: [
["coq_makefile" "-f" "Make" "-o" "Makefile"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
depends: [
"ocaml"
"coq" {>= "8.5.0" & < "8.6"}
"coq-unimath-category-theory"
"coq-unimath-foundations"
]
synopsis: "Aims to formalize a substantial body of mathematics using the univalent point of view"
extra-files: ["Make" "md5=8606de3f7fc761f04872219361ba9c7d"]
url {
src: "https://github.com/UniMath/UniMath/archive/v0.1.tar.gz"
checksum: "md5=1ed57c1028e227a309f428a6dc5f0866"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-unimath-substitution-systems.0.1.0 coq.8.10.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.10.0).
The following dependencies couldn't be met:
- coq-unimath-substitution-systems -> coq < 8.6 -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-unimath-substitution-systems.0.1.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/extra-dev/8.10.0/unimath-substitution-systems/0.1.0.html | HTML | mit | 6,873 |
//By Jean-Pierre Bachmann
//http://www.codeproject.com/Articles/682642/Using-a-Plugin-Based-Application
//Questions? Ask me!
//Microsoft Public License (MS-PL)
/*
This license governs use of the accompanying software. If you use the software, you
accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
same meaning here as under U.S. copyright law.
A "contribution" is the original software, or any additions or changes to the software.
A "contributor" is any person that distributes its contribution under this license.
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
2. Grant of Rights
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
3. Conditions and Limitations
(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
All at all - Be carefull when using this code and do not remove the License!
*/
using System;
namespace JPB.Shell.Contracts.Interfaces.Metadata
{
/// <summary>
/// The Based Metadata interface
/// </summary>
public interface IServiceMetadata
{
Type[] Contracts { get; }
string Descriptor { get; }
bool IsDefauldService { get; }
bool ForceSynchronism { get; }
int Priority { get; }
}
} | JPVenson/MSEF | JPB.Shell/JPB.Shell.Contracts/Interfaces/Metadata/IServiceMetadata.cs | C# | mit | 3,250 |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: SailOrderPushInfoContainerItem.java
package com.sf.openapi.express.sample.wms.salesOrder.dto;
import com.sf.openapi.common.entity.BaseEntity;
import java.util.List;
public class SailOrderPushInfoContainerItem extends BaseEntity
{
public SailOrderPushInfoContainerItem()
{
}
public String getContainerId()
{
return containerId;
}
public void setContainerId(String containerId)
{
this.containerId = containerId;
}
public String getItem()
{
return item;
}
public void setItem(String item)
{
this.item = item;
}
public String getQuantity()
{
return quantity;
}
public void setQuantity(String quantity)
{
this.quantity = quantity;
}
public String getQuantityUm()
{
return quantityUm;
}
public void setQuantityUm(String quantityUm)
{
this.quantityUm = quantityUm;
}
public String getLot()
{
return lot;
}
public void setLot(String lot)
{
this.lot = lot;
}
public String getWeight()
{
return weight;
}
public void setWeight(String weight)
{
this.weight = weight;
}
public String getWeightUm()
{
return weightUm;
}
public void setWeightUm(String weightUm)
{
this.weightUm = weightUm;
}
public String getUserStamp()
{
return userStamp;
}
public void setUserStamp(String userStamp)
{
this.userStamp = userStamp;
}
public String getUserDef1()
{
return userDef1;
}
public void setUserDef1(String userDef1)
{
this.userDef1 = userDef1;
}
public String getUserDef2()
{
return userDef2;
}
public void setUserDef2(String userDef2)
{
this.userDef2 = userDef2;
}
public String getUserDef3()
{
return userDef3;
}
public void setUserDef3(String userDef3)
{
this.userDef3 = userDef3;
}
public String getUserDef4()
{
return userDef4;
}
public void setUserDef4(String userDef4)
{
this.userDef4 = userDef4;
}
public String getUserDef5()
{
return userDef5;
}
public void setUserDef5(String userDef5)
{
this.userDef5 = userDef5;
}
public String getUserDef6()
{
return userDef6;
}
public void setUserDef6(String userDef6)
{
this.userDef6 = userDef6;
}
public String getUserDef7()
{
return userDef7;
}
public void setUserDef7(String userDef7)
{
this.userDef7 = userDef7;
}
public String getUserDef8()
{
return userDef8;
}
public void setUserDef8(String userDef8)
{
this.userDef8 = userDef8;
}
public List getSerialNumberList()
{
return serialNumberList;
}
public void setSerialNumberList(List serialNumberList)
{
this.serialNumberList = serialNumberList;
}
private String containerId;
private String item;
private String quantity;
private String quantityUm;
private String lot;
private String weight;
private String weightUm;
private String userStamp;
private String userDef1;
private String userDef2;
private String userDef3;
private String userDef4;
private String userDef5;
private String userDef6;
private String userDef7;
private String userDef8;
private List serialNumberList;
}
| smjie2800/spring-cloud-microservice-redis-activemq-hibernate-mysql | microservice-provider-erp/src/main/java/com/sf/openapi/express/sample/wms/salesOrder/dto/SailOrderPushInfoContainerItem.java | Java | mit | 3,728 |
/* jshint expr:true */
import Ember from 'ember';
const {
run
} = Ember;
import { expect } from 'chai';
import { describeModel, it } from 'ember-mocha';
import { beforeEach } from 'mocha';
let store;
let m;
describeModel(
'parent',
'Unit | Model | foo',
{
// Specify the other units that are required for this test.
needs: ['model:child', 'model:pet'],
},
function() {
beforeEach( function () {
store = this.store();
return run(() => {
store.pushPayload({
data: null,
included: [
{
id: '1',
type: 'parents',
relationships: {
children: {
data: [
{id: '1', type: 'children'}
]
}
}
},
{
id: '1',
type: 'children'
},
{
id: '2',
type: 'children'
},
{
id: '1',
type: 'pets'
},
{
id: '2',
type: 'pets'
}
]
});
});
});
// Replace this with your real tests.
it('parent stains itself', function() {
const parent = store.peekRecord('parent', '1');
m = "Parent should not be initially dirty";
expect(parent.get('hasDirtyAttributes'), m).false;
run(() => {
parent.set('name', 'asdf');
});
m = "Parent should be dirty after updating an attribute on itself";
expect(parent.get('hasDirtyAttributes'), m).true;
});
// Replace this with your real tests.
it('dirty child stains parent', function() {
const child = store.peekRecord('child', '1');
const parent = store.peekRecord('parent', '1');
m = "Parent should not be initially dirty";
expect(parent.get('hasDirtyAttributes'), m).false;
run(() => {
child.set('name', 'foo');
});
m = "Parent should be dirty after updating an attribute on child";
expect(parent.get('hasDirtyAttributes'), m).true;
});
// Replace this with your real tests.
it('parent stains when children relationship is updated', function() {
const parent = store.peekRecord('parent', '1');
const child2 = store.peekRecord('child', '2');
m = "Parent should not be initially dirty";
expect(parent.get('hasDirtyAttributes'), m).false;
run(() => {
parent.get('children').pushObject(child2);
});
m = "Parent should be dirty after adding another child";
expect(parent.get('hasDirtyAttributes'), m).true;
});
}
);
| lolmaus/ember-cli-stained-by-children | tests/unit/models/foo-test.js | JavaScript | mit | 2,704 |
require_relative '../../test_helper'
class PagesTest < ActiveSupport::IntegrationCase
setup do
login!
@page_template = FactoryGirl.create(:hero_page_template)
end
test 'listing pages' do
Page.create_from_template(@page_template, :title => 'Page no1', :tag_names => 'tag1 tag2')
visit admin_items_path
assert page.find("table.pages").has_content?('Page no1'), 'Should display page in the pages list'
end
test 'searching for pages' do
Capybara.using_driver(:webkit) do
test_page = Page.create_from_template(@page_template, :title => 'Page no1', :tag_names => 'tag1 tag2')
stub_searchify_put
stub_request(:get, /api.searchify.com\/v1\/indexes\//).
to_return(:status => 200, :body => "{
\"matches\": 1,
\"query\": \"title:(test) OR uri:(test) OR tag_names:(test) OR data:(test) OR __any:(test) __type:(Page)\",
\"facets\": {},
\"search_time\": \"0.005\",
\"results\": [{\"docid\": \"Page #{test_page.id.to_s}\", \"__type\": \"Page\", \"__id\": \"#{test_page.id.to_s}\", \"query_relevance_score\": -6861131.0}] }")
User.delete_all
login!
visit admin_items_path
fill_in 'query', :with => 'no1'
page.execute_script("$('#items_search').submit()") # faking hitting enter in search form
within 'table.pages' do
assert page.has_content?('Page no1'), 'should see campaign in search results list'
assert page.has_content?(@page_template.label), 'should see page template label in search results list'
end
end
end
test 'listning pages by tag' do
page1 = Page.create_from_template(@page_template, :title => 'Page no1', :tag_names => 'tag1 tag2')
page2 = Page.create_from_template(@page_template, :title => 'Page no2', :tag_names => 'tag2')
page3 = Page.create_from_template(@page_template, :title => 'Page no3', :tag_names => 'tag1 tag3')
visit admin_items_path(:tags => ['tag1'])
assert page.find("table.pages").has_content?(page1.title), 'Should display page1 in the pages list'
assert page.find("table.pages").has_content?(page3.title), 'Should display page2 the pages list'
refute page.find("table.pages").has_content?(page2.title), 'Should not display page2 in the pages list'
end
test 'creating a page' do
visit admin_items_path
within('#sub_nav') do
click_link @page_template.label
end
within('.tools') do
click_link I18n.t(:'admin.items.index_for_page_template.create_new', :template => @page_template.label.downcase)
end
assert_equal new_admin_item_path, current_path
fill_in 'item_title', :with => 'Batman'
fill_in 'item_uri', :with => 'batman'
click_button I18n.t(:save)
assert page_was_saved?
assert_equal 'Batman', page.find('h1').text
end
test 'updating page and node details' do
Capybara.using_driver(:webkit) do
@page_template.update_attribute :allow_node_placements, true
root_node = FactoryGirl.create(:root_node, :handle => @page_template.handle)
User.delete_all
login!
batman = create_page
visit admin_item_path(batman)
publish
choose("node_parent_id_#{root_node.id}")
click_button I18n.t(:save)
within '#item_attributes' do
click_link I18n.t(:edit)
end
within 'form.edit_item' do
fill_in 'item_title', :with => 'Robin'
fill_in 'item_node_name', :with => "The robin page"
click_button I18n.t(:save)
end
assert page_was_saved?
assert page.find('.header .page_title h1').has_content?('Robin')
assert page.find('.navigation').has_content?('The robin page')
end
end
test 'marking a page as restricted' do
batman = create_page
node = Node.create(:controller => 'pages', :action => 'show', :resource => batman, :url => 'the-dark-knight', :status => -1)
visit admin_item_path(batman)
publish
visit page_path(batman)
assert page.has_content?(batman.title)
visit admin_item_path(batman)
within '.header' do
click_link I18n.t('edit')
end
within '.header form.edit_item' do
check 'item_restricted'
click_button I18n.t(:save)
end
assert page_was_saved?
logout!
visit page_path(batman)
assert_equal admin_login_path, current_path
end
test 'publishing a page' do
batman = create_page
batman.data.each { |d| d.required = false } && batman.save
assert batman.valid?
visit admin_item_path(batman.id)
publish
assert published?, "Should get published"
end
test 'unpublishing a page' do
batman = create_page
batman.data.each { |d| d.required = false } && batman.save
visit admin_item_path(batman.id)
publish
assert published?, "Should get published"
unpublish
refute published?, "Should get unpublished"
end
test 'editing page datum attributes' do
batman = create_page
visit admin_item_path(batman.id)
within "form#datum_#{batman.data['tagline'].id}_edit" do
fill_in 'Tagline', :with => 'Evil Fears The Knight'
click_button I18n.t(:save)
end
assert page_was_saved?
assert page.has_content?('Evil Fears The Knight'), "Should find the tagline within content"
end
test 'categorizing a page' do
Capybara.using_driver(:webkit) do
# Need to reset env/session for webkit
User.delete_all
login!
@page_template.update_attribute(:allow_categories, true)
new_page = Page.create_from_template(@page_template, :title => 'Category page')
visit admin_item_path(new_page)
within '#page_category' do
click_link I18n.t(:'admin.items.details.choose_category')
click_link I18n.t(:'admin.items.details.add_new_category')
fill_in "item_category_name", :with => 'Beverages'
click_button I18n.t(:save)
end
assert page.find('#page_category').has_content?('Beverages'), 'Category should be added'
refute page.find('#page_tags p').has_content?('Beverages'), 'category should not be listed as a tag'
end
end
test 'changing category for a page' do
Capybara.using_driver(:webkit) do
User.delete_all
login!
@page_template.update_attribute(:allow_categories, true)
sausage_page = FactoryGirl.create(:page, :page_template => @page_template, :"#{@page_template.handle}_tag_names" => 'Sausages')
new_page = FactoryGirl.create(:page, :page_template => @page_template, :"#{@page_template.handle}_tag_names" => 'Beverages')
visit admin_item_path(new_page)
click_link I18n.t(:'admin.items.details.edit_category')
select 'Sausages', :from => "item_#{@page_template.handle}_tag_names"
click_button I18n.t(:choose)
assert page.find('#page_category p').has_content?('Sausages'), "Category should be added"
end
end
test 'adding a note to a page' do
Capybara.using_driver(:webkit) do
User.delete_all
login!
new_page = Page.create_from_template(@page_template, :title => 'Category page')
visit admin_item_path(new_page)
click_link I18n.t(:'admin.items.details.add_note')
fill_in "item_note", :with => 'Pretty awesome'
click_button I18n.t(:save)
assert page.find('#page_note').has_content?('Pretty awesome'), 'note should be added'
end
end
test 'deleting a page' do
a_page = create_page
visit admin_item_path(a_page)
within 'div.header' do
click_link I18n.t(:destroy)
end
assert_equal confirm_delete_admin_item_path(a_page), current_path
click_button I18n.t("admin.items.confirm_delete.commit")
assert_equal admin_items_path, current_path
assert has_flash_message?(I18n.t(:'app.admin_general.deleted'))
end
protected
def create_page(attrs = {})
Page.create_from_template(@page_template, { title: 'Batman' }.merge(attrs))
end
def page_was_saved?
has_flash_message? I18n.t(:'app.admin_items.saved')
end
def publish
within "#page_current_publish_on_date" do
click_link I18n.t(:'admin.items.details.publish_now')
end
end
def unpublish
within "#page_current_publish_on_date" do
click_link I18n.t(:'admin.items.details.unpublish')
end
end
def published?
!page.has_content? I18n.t(:'admin.items.details.not_published')
end
end
| Oktavilla/Porthos-Engine | test/integration/admin/pages_test.rb | Ruby | mit | 8,348 |
/*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related documentation outside the terms of the EULA
* is strictly prohibited.
*
*/
//
// Template math library for common 3D functionality
//
// nvMatrix.h - template matrix code
//
// This code is in part deriver from glh, a cross platform glut helper library.
// The copyright for glh follows this notice.
//
// Copyright (c) NVIDIA Corporation. All rights reserved.
////////////////////////////////////////////////////////////////////////////////
/*
Copyright (c) 2000 Cass Everitt
Copyright (c) 2000 NVIDIA Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions and the following
disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials
provided with the distribution.
* The names of contributors to this software may not be used
to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Cass Everitt - cass@r3.nu
*/
#ifndef NV_MATRIX_H
#define NV_MATRIX_H
namespace nv
{
template <class T> class vec2;
template <class T> class vec3;
template <class T> class vec4;
////////////////////////////////////////////////////////////////////////////////
//
// Matrix
//
////////////////////////////////////////////////////////////////////////////////
template<class T>
class matrix4
{
public:
matrix4()
{
make_identity();
}
matrix4(T t)
{
set_value(t);
}
matrix4(const T *m)
{
set_value(m);
}
matrix4(T a00, T a01, T a02, T a03,
T a10, T a11, T a12, T a13,
T a20, T a21, T a22, T a23,
T a30, T a31, T a32, T a33) :
_11(a00), _12(a01), _13(a02), _14(a03),
_21(a10), _22(a11), _23(a12), _24(a13),
_31(a20), _32(a21), _33(a22), _34(a23),
_41(a30), _42(a31), _43(a32), _44(a33)
{}
void get_value(T *mp) const
{
int c = 0;
for (int j=0; j < 4; j++)
for (int i=0; i < 4; i++)
{
mp[c++] = element(i,j);
}
}
const T *get_value() const
{
return _array;
}
void set_value(T *mp)
{
int c = 0;
for (int j=0; j < 4; j++)
for (int i=0; i < 4; i++)
{
element(i,j) = mp[c++];
}
}
void set_value(T r)
{
for (int i=0; i < 4; i++)
for (int j=0; j < 4; j++)
{
element(i,j) = r;
}
}
void make_identity()
{
element(0,0) = 1.0;
element(0,1) = 0.0;
element(0,2) = 0.0;
element(0,3) = 0.0;
element(1,0) = 0.0;
element(1,1) = 1.0;
element(1,2) = 0.0;
element(1,3) = 0.0;
element(2,0) = 0.0;
element(2,1) = 0.0;
element(2,2) = 1.0;
element(2,3) = 0.0;
element(3,0) = 0.0;
element(3,1) = 0.0;
element(3,2) = 0.0;
element(3,3) = 1.0;
}
// set a uniform scale
void set_scale(T s)
{
element(0,0) = s;
element(1,1) = s;
element(2,2) = s;
}
void set_scale(const vec3<T> &s)
{
for (int i = 0; i < 3; i++)
{
element(i,i) = s[i];
}
}
void set_translate(const vec3<T> &t)
{
for (int i = 0; i < 3; i++)
{
element(i,3) = t[i];
}
}
void set_row(int r, const vec4<T> &t)
{
for (int i = 0; i < 4; i++)
{
element(r,i) = t[i];
}
}
void set_column(int c, const vec4<T> &t)
{
for (int i = 0; i < 4; i++)
{
element(i,c) = t[i];
}
}
vec4<T> get_row(int r) const
{
vec4<T> v;
for (int i = 0; i < 4; i++)
{
v[i] = element(r,i);
}
return v;
}
vec4<T> get_column(int c) const
{
vec4<T> v;
for (int i = 0; i < 4; i++)
{
v[i] = element(i,c);
}
return v;
}
friend matrix4 inverse(const matrix4 &m)
{
matrix4 minv;
T r1[8], r2[8], r3[8], r4[8];
T *s[4], *tmprow;
s[0] = &r1[0];
s[1] = &r2[0];
s[2] = &r3[0];
s[3] = &r4[0];
register int i,j,p,jj;
for (i=0; i<4; i++)
{
for (j=0; j<4; j++)
{
s[i][j] = m.element(i,j);
if (i==j)
{
s[i][j+4] = 1.0;
}
else
{
s[i][j+4] = 0.0;
}
}
}
T scp[4];
for (i=0; i<4; i++)
{
scp[i] = T(fabs(s[i][0]));
for (j=1; j<4; j++)
if (T(fabs(s[i][j])) > scp[i])
{
scp[i] = T(fabs(s[i][j]));
}
if (scp[i] == 0.0)
{
return minv; // singular matrix!
}
}
int pivot_to;
T scp_max;
for (i=0; i<4; i++)
{
// select pivot row
pivot_to = i;
scp_max = T(fabs(s[i][i]/scp[i]));
// find out which row should be on top
for (p=i+1; p<4; p++)
if (T(fabs(s[p][i]/scp[p])) > scp_max)
{
scp_max = T(fabs(s[p][i]/scp[p]));
pivot_to = p;
}
// Pivot if necessary
if (pivot_to != i)
{
tmprow = s[i];
s[i] = s[pivot_to];
s[pivot_to] = tmprow;
T tmpscp;
tmpscp = scp[i];
scp[i] = scp[pivot_to];
scp[pivot_to] = tmpscp;
}
T mji;
// perform gaussian elimination
for (j=i+1; j<4; j++)
{
mji = s[j][i]/s[i][i];
s[j][i] = 0.0;
for (jj=i+1; jj<8; jj++)
{
s[j][jj] -= mji*s[i][jj];
}
}
}
if (s[3][3] == 0.0)
{
return minv; // singular matrix!
}
//
// Now we have an upper triangular matrix.
//
// x x x x | y y y y
// 0 x x x | y y y y
// 0 0 x x | y y y y
// 0 0 0 x | y y y y
//
// we'll back substitute to get the inverse
//
// 1 0 0 0 | z z z z
// 0 1 0 0 | z z z z
// 0 0 1 0 | z z z z
// 0 0 0 1 | z z z z
//
T mij;
for (i=3; i>0; i--)
{
for (j=i-1; j > -1; j--)
{
mij = s[j][i]/s[i][i];
for (jj=j+1; jj<8; jj++)
{
s[j][jj] -= mij*s[i][jj];
}
}
}
for (i=0; i<4; i++)
for (j=0; j<4; j++)
{
minv(i,j) = s[i][j+4] / s[i][i];
}
return minv;
}
friend matrix4 transpose(const matrix4 &m)
{
matrix4 mtrans;
for (int i=0; i<4; i++)
for (int j=0; j<4; j++)
{
mtrans(i,j) = m.element(j,i);
}
return mtrans;
}
matrix4 &operator *= (const matrix4 &rhs)
{
matrix4 mt(*this);
set_value(T(0));
for (int i=0; i < 4; i++)
for (int j=0; j < 4; j++)
for (int c=0; c < 4; c++)
{
element(i,j) += mt(i,c) * rhs(c,j);
}
return *this;
}
friend matrix4 operator * (const matrix4 &lhs, const matrix4 &rhs)
{
matrix4 r(T(0));
for (int i=0; i < 4; i++)
for (int j=0; j < 4; j++)
for (int c=0; c < 4; c++)
{
r.element(i,j) += lhs(i,c) * rhs(c,j);
}
return r;
}
// dst = M * src
vec4<T> operator *(const vec4<T> &src) const
{
vec4<T> r;
for (int i = 0; i < 4; i++)
r[i] = (src[0] * element(i,0) + src[1] * element(i,1) +
src[2] * element(i,2) + src[3] * element(i,3));
return r;
}
// dst = src * M
friend vec4<T> operator *(const vec4<T> &lhs, const matrix4 &rhs)
{
vec4<T> r;
for (int i = 0; i < 4; i++)
r[i] = (lhs[0] * rhs.element(0,i) + lhs[1] * rhs.element(1,i) +
lhs[2] * rhs.element(2,i) + lhs[3] * rhs.element(3,i));
return r;
}
T &operator()(int row, int col)
{
return element(row,col);
}
const T &operator()(int row, int col) const
{
return element(row,col);
}
T &element(int row, int col)
{
return _array[row | (col<<2)];
}
const T &element(int row, int col) const
{
return _array[row | (col<<2)];
}
matrix4 &operator *= (const T &r)
{
for (int i = 0; i < 4; ++i)
{
element(0,i) *= r;
element(1,i) *= r;
element(2,i) *= r;
element(3,i) *= r;
}
return *this;
}
matrix4 &operator += (const matrix4 &mat)
{
for (int i = 0; i < 4; ++i)
{
element(0,i) += mat.element(0,i);
element(1,i) += mat.element(1,i);
element(2,i) += mat.element(2,i);
element(3,i) += mat.element(3,i);
}
return *this;
}
friend bool operator == (const matrix4 &lhs, const matrix4 &rhs)
{
bool r = true;
for (int i = 0; i < 16; i++)
{
r &= lhs._array[i] == rhs._array[i];
}
return r;
}
friend bool operator != (const matrix4 &lhs, const matrix4 &rhs)
{
bool r = true;
for (int i = 0; i < 16; i++)
{
r &= lhs._array[i] != rhs._array[i];
}
return r;
}
union
{
struct
{
T _11, _12, _13, _14; // standard names for components
T _21, _22, _23, _24; // standard names for components
T _31, _32, _33, _34; // standard names for components
T _41, _42, _43, _44; // standard names for components
};
T _array[16]; // array access
};
};
};
#endif
| nicolasrosa/StereoVision | CUDA/NVIDIA_CUDA-7.5_Samples/5_Simulations/smokeParticles/nvMatrix.h | C | mit | 14,871 |
/*
* ssd1306_i2c.c
*
* Created: 5/9/2017 6:25:16 PM
* Author: pvallone
*/
#include <asf.h>
#include "ssd1306_i2c.h"
void configure_i2c(void)
{
#if BOARD == SAMD21_XPLAINED_PRO
/* Initialize config structure and software module */
struct i2c_master_config config_i2c_master;
i2c_master_get_config_defaults(&config_i2c_master);
/* Change buffer timeout to something longer */
config_i2c_master.buffer_timeout = 65535;
config_i2c_master.transfer_speed = I2C_MASTER_SPEED_HIGH_SPEED;
/* Initialize and enable device with config */
while(i2c_master_init(&i2c_master_instance, CONF_I2C_MASTER_MODULE, &config_i2c_master) != STATUS_OK);
i2c_master_enable(&i2c_master_instance);
#elif BOARD == SAM4S_XPLAINED_PRO
gpio_configure_pin(TWI0_DATA_GPIO, TWI0_DATA_FLAGS);
gpio_configure_pin(TWI0_CLK_GPIO, TWI0_CLK_FLAGS);
uint32_t status;
pmc_enable_periph_clk(ID_TWI0);
//set options
twi_master_options_t opt;
opt.speed = TWI_SPEED;
opt.chip = (ADDRESS >> 1);
opt.master_clk = sysclk_get_cpu_hz();
// Init TWI Master
status = twi_master_setup(TWI_CHANNEL, &opt);
if (status != TWI_SUCCESS)
{
while(1); // wait to finish
}
twi_master_enable(TWI_CHANNEL);
#endif
}
void write_command(uint8_t cmd){
uint8_t buff[2];
buff[0] = I2C_WRITE;
buff[1] = cmd;
#if BOARD == SAMD21_XPLAINED_PRO
wr_packet.address = ADDRESS;
wr_packet.data_length = 2;
wr_packet.data = buff;
i2c_master_write_packet_wait(&i2c_master_instance, &wr_packet);
#elif BOARD == SAM4S_XPLAINED_PRO
packet.buffer = &buff;
/* Data length */
packet.length = 2;
/* Slave chip address */
packet.chip = (ADDRESS >> 1);
twi_master_write(TWI_CHANNEL, &packet);
#endif
}
| PhillyNJ/SAMD21 | oled/ssd1306_i2c.c | C | mit | 1,790 |
require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
Bundler.require(*Rails.groups)
require "favourite_object_paginative"
module Dummy
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
config.secret_key_base = "tdsfsdgfsfdgdfg"
end
end
| Papercloud/favourite_object_paginative | spec/dummy/config/application.rb | Ruby | mit | 1,154 |
#include "AppDX11.h"
#include "CloudsDX11.h"
Clouds* Clouds::CreateClouds()
{
return new CloudsDX11(AppDX11::Get());
}
CloudsDX11::~CloudsDX11()
{
if (VertexShader) VertexShader->Release();
if (PixelShader) PixelShader->Release();
if (VertexLayout) VertexLayout->Release();
}
CloudsDX11::CloudsDX11(AppDX11* app) : App(app), Device(app->Device)
{
DetailCubeWidth = 1024;
BinCubeWidth = 256;
//D3DObjects to create
ID3D11Texture2D* m_cubeTexture = NULL;
ID3D11ShaderResourceView* m_shaderResourceView = NULL;
//Description of each face
D3D11_TEXTURE2D_DESC texDesc = { 0 };
texDesc.Width = DetailCubeWidth;
texDesc.Height = DetailCubeWidth;
texDesc.MipLevels = 1;
texDesc.ArraySize = 6;
texDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
texDesc.CPUAccessFlags = 0;
texDesc.SampleDesc.Count = 1;
texDesc.SampleDesc.Quality = 0;
texDesc.Usage = D3D11_USAGE_DEFAULT;
texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET;
texDesc.CPUAccessFlags = 0;
texDesc.MiscFlags = D3D11_RESOURCE_MISC_TEXTURECUBE;
//The Shader Resource view description
D3D11_SHADER_RESOURCE_VIEW_DESC SMViewDesc;
SMViewDesc.Format = texDesc.Format;
SMViewDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURECUBE;
SMViewDesc.TextureCube.MipLevels = texDesc.MipLevels;
SMViewDesc.TextureCube.MostDetailedMip = 0;
std::vector<uint32_t> rgba(DetailCubeWidth*DetailCubeWidth);
for (int y = 0; y < DetailCubeWidth; y++)
for (int x = 0; x < DetailCubeWidth; x++)
rgba[x + y*DetailCubeWidth] = ((x / 8) ^ (y / 8)) % 2 ? 0xffffffff : 0x00000000;
//Array to fill which we will use to point D3D at our loaded CPU images.
D3D11_SUBRESOURCE_DATA pData[6] = { 0 };
for (int cubeMapFaceIndex = 0; cubeMapFaceIndex < 6; cubeMapFaceIndex++)
{
pData[cubeMapFaceIndex].pSysMem = rgba.data();
pData[cubeMapFaceIndex].SysMemPitch = DetailCubeWidth * sizeof(rgba[0]);
}
//Create the Texture Resource
HRESULT hr = Device->CreateTexture2D(&texDesc, &pData[0], &m_cubeTexture);
if (hr != S_OK)
{
throw std::exception("Couldn't CreateTexture2D");
}
//If we have created the texture resource for the six faces
//we create the Shader Resource View to use in our shaders.
hr = Device->CreateShaderResourceView(m_cubeTexture, &SMViewDesc, &m_shaderResourceView);
if (hr != S_OK)
{
throw std::exception("Couldn't CreateShaderResourceView");
}
ID3DBlob* vsBlob;
ID3DBlob* psBlob;
VertexShader = App->CreateVertexShader(L"Clouds.vs.hlsl", "VS", "vs_4_0", &vsBlob);
PixelShader = App->CreatePixelShader(L"Clouds.ps.hlsl", "PS", "ps_4_0", &psBlob);
if (!VertexShader || !PixelShader)
{
vsBlob->Release();
psBlob->Release();
throw std::exception("Couldn't create shaders");
}
struct VertLayout
{
float x, y, z;
float rayx, rayy, rayz;
};
D3D11_INPUT_ELEMENT_DESC vertLayout[] =
{
//LPCSTR SemanticName; UINT SemanticIndex; DXGI_FORMAT Format; UINT InputSlot; UINT AlignedByteOffset; D3D11_INPUT_CLASSIFICATION InputSlotClass; UINT InstanceDataStepRate;
{"POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, offsetof(VertLayout, x), D3D11_INPUT_PER_VERTEX_DATA, 0},
{"TEXCOORD", 0, DXGI_FORMAT_R32G32B32_FLOAT, 1, offsetof(VertLayout, rayx), D3D11_INPUT_PER_VERTEX_DATA, 0}
};
hr = Device->CreateInputLayout(vertLayout, _countof(vertLayout), vsBlob->GetBufferPointer(), vsBlob->GetBufferSize(), &VertexLayout);
if (FAILED(hr))
{
throw std::exception("Couldn't create input layout");
}
vsBlob->Release();
psBlob->Release();
}
| mpj500/creepy-capsicum | Standalone/VisBins/CloudsDX11.cpp | C++ | mit | 3,891 |
<div>
<h1 x-large class="sample-content">Your Content Here</h1>
<div *ngFor="let node of nodes">
<metadata [node]="node"></metadata>
</div>
<hr>
<div>
For hot module reloading run
<pre>npm run start:hmr</pre>
</div>
<hr>
<div>
<h4>Local State</h4>
<form (ngSubmit)="submitState(localState.value)" autocomplete="off">
<input
[value]="localState.value"
(input)="localState.value = $event.target.value"
placeholder="Submit Local State to App State"
autofocus>
<button>Submit Value</button>
</form>
<!--
<input type="text" [value]="localState.value" (input)="localState.value = $event.target.value" autofocus>
Rather than wiring up two-way data-binding ourselves with [value] and (input)
we can use Angular's [(ngModel)] syntax
<input type="text" name="textInput" [(ngModel)]="localState.value" autofocus>
-->
<pre>this.localState = {{ localState | json }}</pre>
</div>
</div>
| egucciar/angular2-webpack-starter-primeng-working | src/app/old-home/home.component.html | HTML | mit | 1,016 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FluentMvcTesting")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FluentMvcTesting")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("aed45540-c9cb-400b-921b-eea3faa8ec0a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| MehdiK/TestStackSamples | FluentMvcTesting/Properties/AssemblyInfo.cs | C# | mit | 1,408 |
### 2017-12-11
#### python
* [google/kubeflow](https://github.com/google/kubeflow): Machine Learning Toolkit for Kubernetes
* [dnouri/skorch](https://github.com/dnouri/skorch): A scikit-learn compatible neural network library that wraps pytorch
* [jwyang/faster-rcnn.pytorch](https://github.com/jwyang/faster-rcnn.pytorch):
* [tensorflow/models](https://github.com/tensorflow/models): Models and examples built with TensorFlow
* [PhilipTrauner/cmus-osx](https://github.com/PhilipTrauner/cmus-osx): Tightly integrates cmus command line music player into macOS.
* [fchollet/keras](https://github.com/fchollet/keras): Deep Learning library for Python. Runs on TensorFlow, Theano, or CNTK.
* [google/deepvariant](https://github.com/google/deepvariant): DeepVariant is an analysis pipeline that uses a deep neural network to call genetic variants from next-generation DNA sequencing data.
* [IOActive/XDiFF](https://github.com/IOActive/XDiFF): Extended Differential Fuzzing Framework
* [scikit-learn-contrib/imbalanced-learn](https://github.com/scikit-learn-contrib/imbalanced-learn): Python module to perform under sampling and over sampling with various techniques.
* [vinta/awesome-python](https://github.com/vinta/awesome-python): A curated list of awesome Python frameworks, libraries, software and resources
* [yidao620c/python3-cookbook](https://github.com/yidao620c/python3-cookbook): Python Cookbook 3rd Edition Translation
* [faneshion/MatchZoo](https://github.com/faneshion/MatchZoo): MatchZoo is a toolkit for text matching. It was developed to facilitate the designing, comparing, and sharing of deep text matching models.
* [V-E-O/PoC](https://github.com/V-E-O/PoC): PoC of CVE/Exploit
* [pytorch/pytorch](https://github.com/pytorch/pytorch): Tensors and Dynamic neural networks in Python with strong GPU acceleration
* [vi3k6i5/flashtext](https://github.com/vi3k6i5/flashtext): Extract Keywords from sentence or Replace keywords in sentences.
* [bitcoinbook/bitcoinbook](https://github.com/bitcoinbook/bitcoinbook): Mastering Bitcoin 2nd Edition - Programming the Open Blockchain
* [RaRe-Technologies/gensim](https://github.com/RaRe-Technologies/gensim): Topic Modelling for Humans
* [requests/requests](https://github.com/requests/requests): Python HTTP Requests for Humans
* [XX-net/XX-Net](https://github.com/XX-net/XX-Net): a web proxy tool
* [rg3/youtube-dl](https://github.com/rg3/youtube-dl): Command-line program to download videos from YouTube.com and other video sites
* [django/django](https://github.com/django/django): The Web framework for perfectionists with deadlines.
* [scikit-learn/scikit-learn](https://github.com/scikit-learn/scikit-learn): scikit-learn: machine learning in Python
* [apachecn/scikit-learn-doc-zh](https://github.com/apachecn/scikit-learn-doc-zh): scikit-learnsklearn
* [josephmisiti/awesome-machine-learning](https://github.com/josephmisiti/awesome-machine-learning): A curated list of awesome Machine Learning frameworks, libraries and software.
* [scrapy/scrapy](https://github.com/scrapy/scrapy): Scrapy, a fast high-level web crawling & scraping framework for Python.
#### go
* [celrenheit/sandglass](https://github.com/celrenheit/sandglass): Sandglass is a distributed, horizontally scalable, persistent, time sorted message queue.
* [ethereum/go-ethereum](https://github.com/ethereum/go-ethereum): Official Go implementation of the Ethereum protocol
* [kubernetes/kubernetes](https://github.com/kubernetes/kubernetes): Production-Grade Container Scheduling and Management
* [golang/go](https://github.com/golang/go): The Go programming language
* [getlantern/lantern](https://github.com/getlantern/lantern): Lantern Latest Download https://github.com/getlantern/lantern/releases/tag/latest https://github.com/getlantern/forum/issues/833
* [metrue/fx](https://github.com/metrue/fx): A tool helps you do Function as a Service with painless.
* [containous/traefik](https://github.com/containous/traefik): Trfik, a modern reverse proxy
* [lightningnetwork/lnd](https://github.com/lightningnetwork/lnd): Lightning Network Daemon
* [snagles/docker-registry-manager](https://github.com/snagles/docker-registry-manager): Web front end for managing multiple private docker registries
* [avelino/awesome-go](https://github.com/avelino/awesome-go): A curated list of awesome Go frameworks, libraries and software
* [gohugoio/hugo](https://github.com/gohugoio/hugo): A Fast and Flexible Static Site Generator built with love in GoLang.
* [kubernetes/minikube](https://github.com/kubernetes/minikube): Run Kubernetes locally
* [fatedier/frp](https://github.com/fatedier/frp): A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
* [astaxie/build-web-application-with-golang](https://github.com/astaxie/build-web-application-with-golang): A golang ebook intro how to build a web with golang
* [hyperledger/fabric](https://github.com/hyperledger/fabric): Read-only mirror of https://gerrit.hyperledger.org/r/#/admin/projects/fabric
* [prometheus/prometheus](https://github.com/prometheus/prometheus): The Prometheus monitoring system and time series database.
* [tj/node-prune](https://github.com/tj/node-prune): Remove unnecessary files from node_modules (.md, .ts, etc)
* [golang/dep](https://github.com/golang/dep): Go dependency management tool
* [drone/drone](https://github.com/drone/drone): Drone is a Continuous Delivery platform built on Docker, written in Go
* [grpc/grpc-go](https://github.com/grpc/grpc-go): The Go language implementation of gRPC. HTTP/2 based RPC
* [gin-gonic/gin](https://github.com/gin-gonic/gin): Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
* [kataras/iris](https://github.com/kataras/iris): The fastest web framework for Go in (THIS) Universe. HTTP/2 & MVC fully featured. Real-time support
* [stretchr/testify](https://github.com/stretchr/testify): A toolkit with common assertions and mocks that plays nicely with the standard library
* [coreos/etcd](https://github.com/coreos/etcd): Distributed reliable key-value store for the most critical data of a distributed system
* [gogits/gogs](https://github.com/gogits/gogs): Gogs is a painless self-hosted Git service.
#### cpp
* [apple/turicreate](https://github.com/apple/turicreate): Turi Create simplifies the development of custom machine learning models.
* [tensorflow/tensorflow](https://github.com/tensorflow/tensorflow): Computation using data flow graphs for scalable machine learning
* [voodooattack/nexusjs](https://github.com/voodooattack/nexusjs): Nexus.js - The next-gen JavaScript platform
* [bitcoin/bitcoin](https://github.com/bitcoin/bitcoin): Bitcoin Core integration/staging tree
* [davmac314/dasynq](https://github.com/davmac314/dasynq): Thread-safe cross-platform event loop library in C++
* [electron/electron](https://github.com/electron/electron): Build cross platform desktop apps with JavaScript, HTML, and CSS
* [mozilla/DeepSpeech](https://github.com/mozilla/DeepSpeech): A TensorFlow implementation of Baidu's DeepSpeech architecture
* [opencv/opencv](https://github.com/opencv/opencv): Open Source Computer Vision Library
* [google/protobuf](https://github.com/google/protobuf): Protocol Buffers - Google's data interchange format
* [thedmd/imgui-node-editor](https://github.com/thedmd/imgui-node-editor): Node Editor using ImGui prototype
* [litecoin-project/litecoin](https://github.com/litecoin-project/litecoin): Litecoin source tree
* [BVLC/caffe](https://github.com/BVLC/caffe): Caffe: a fast open framework for deep learning.
* [fireice-uk/xmr-stak](https://github.com/fireice-uk/xmr-stak): Unified All-in-one Monero miner
* [butor/blackbird](https://github.com/butor/blackbird): Blackbird Bitcoin Arbitrage: a long/short market-neutral strategy
* [apple/swift](https://github.com/apple/swift): The Swift Programming Language
* [vnpy/vnpy](https://github.com/vnpy/vnpy): python
* [ethz-asl/maplab](https://github.com/ethz-asl/maplab): An open visual-inertial mapping framework.
* [OpenGenus/cosmos](https://github.com/OpenGenus/cosmos): Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter
* [onnx/onnx](https://github.com/onnx/onnx): Open Neural Network Exchange
* [dmlc/xgboost](https://github.com/dmlc/xgboost): Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Flink and DataFlow
* [gcp/leela-zero](https://github.com/gcp/leela-zero): Go engine with no human-provided knowledge, modeled after the AlphaGo Zero paper.
* [carla-simulator/carla](https://github.com/carla-simulator/carla): Open-source simulator for autonomous driving research.
* [ethereum/solidity](https://github.com/ethereum/solidity): The Solidity Contract-Oriented Programming Language
* [monero-project/monero](https://github.com/monero-project/monero): Monero: the secure, private, untraceable cryptocurrency
* [PaddlePaddle/Paddle](https://github.com/PaddlePaddle/Paddle): PArallel Distributed Deep LEarning
#### javascript
* [parcel-bundler/parcel](https://github.com/parcel-bundler/parcel): Blazing fast, zero configuration web application bundler
* [githubsaturn/captainduckduck](https://github.com/githubsaturn/captainduckduck): Automated Scalable Ready Webserver Package | In experimental phase
* [learn-anything/learn-anything](https://github.com/learn-anything/learn-anything): Search Interactive Maps to Learn Anything
* [haltu/muuri](https://github.com/haltu/muuri): Responsive, sortable, filterable and draggable grid layouts
* [hql287/Manta](https://github.com/hql287/Manta): Flexible invoicing desktop app with beautiful & customizable templates.
* [thedaviddias/Front-End-Checklist](https://github.com/thedaviddias/Front-End-Checklist): The perfect Front-End Checklist for modern websites and meticulous developers
* [vuejs/vue](https://github.com/vuejs/vue): A progressive, incrementally-adoptable JavaScript framework for building UI on the web.
* [jiayihu/react-tiny-dom](https://github.com/jiayihu/react-tiny-dom): A minimal implementation of react-dom using react-reconciler
* [developit/unistore](https://github.com/developit/unistore): 650b state container with component actions for Preact
* [facebook/react](https://github.com/facebook/react): A declarative, efficient, and flexible JavaScript library for building user interfaces.
* [ianstormtaylor/superstruct](https://github.com/ianstormtaylor/superstruct): A simple and composable way to validate data in Javascript.
* [watson/airplanejs](https://github.com/watson/airplanejs): App that picks up ADS-B radio signals from airplanes and plots them live on a map in your browser
* [GoogleChrome/puppeteer](https://github.com/GoogleChrome/puppeteer): Headless Chrome Node API
* [axios/axios](https://github.com/axios/axios): Promise based HTTP client for the browser and node.js
* [facebookincubator/create-react-app](https://github.com/facebookincubator/create-react-app): Create React apps with no build configuration.
* [frappe/charts](https://github.com/frappe/charts): Simple, responsive, modern SVG Charts with zero dependencies: https://frappe.github.io/charts
* [ballercat/walt](https://github.com/ballercat/walt): Walt is a JavaScript-like syntax for WebAssembly text format WIP
* [prettier/prettier](https://github.com/prettier/prettier): Prettier is an opinionated code formatter.
* [airbnb/javascript](https://github.com/airbnb/javascript): JavaScript Style Guide
* [hectahertz/react-native-typography](https://github.com/hectahertz/react-native-typography): Pixelperfect, nativelooking typographic styles for React Native
* [moment/luxon](https://github.com/moment/luxon): A library for working with dates and times in JS
* [facebook/react-native](https://github.com/facebook/react-native): A framework for building native apps with React.
* [bvaughn/personal-logger](https://github.com/bvaughn/personal-logger): Webapp for tracking personal diet, sleep, and general wellness
* [storybooks/storybook](https://github.com/storybooks/storybook): Interactive development & testing environment for React, React-Native, Vue UI components
* [date-fns/date-fns](https://github.com/date-fns/date-fns): Modern JavaScript date utility library
#### coffeescript
* [philc/vimium](https://github.com/philc/vimium): The hacker's browser.
* [cypress-io/cypress](https://github.com/cypress-io/cypress): Fast, easy and reliable testing for anything that runs in a browser.
* [codecombat/codecombat](https://github.com/codecombat/codecombat): Game for learning how to code.
* [turbolinks/turbolinks](https://github.com/turbolinks/turbolinks): Turbolinks makes navigating your web application faster
* [apiaryio/dredd](https://github.com/apiaryio/dredd): Language-agnostic HTTP API Testing Framework
* [Glavin001/atom-beautify](https://github.com/Glavin001/atom-beautify): Beautification abstraction package for Atom editor
* [jashkenas/coffeescript](https://github.com/jashkenas/coffeescript): Unfancy JavaScript
* [basecamp/trix](https://github.com/basecamp/trix): A rich text editor for everyday writing
* [FelisCatus/SwitchyOmega](https://github.com/FelisCatus/SwitchyOmega): Manage and switch between multiple proxies quickly & easily.
* [dropbox/zxcvbn](https://github.com/dropbox/zxcvbn): Low-Budget Password Strength Estimation
* [morrisjs/morris.js](https://github.com/morrisjs/morris.js): Pretty time-series line graphs
* [michaelvillar/dynamics.js](https://github.com/michaelvillar/dynamics.js): Javascript library to create physics-based animations
* [yhatt/marp](https://github.com/yhatt/marp): Markdown presentation writer, powered by Electron.
* [baconjs/bacon.js](https://github.com/baconjs/bacon.js): FRP (functional reactive programming) library for Javascript
* [gka/chroma.js](https://github.com/gka/chroma.js): JavaScript library for all kinds of color manipulations
* [ichord/At.js](https://github.com/ichord/At.js): Add Github like mentions autocomplete to your application.
* [sharelatex/sharelatex](https://github.com/sharelatex/sharelatex): A web-based collaborative LaTeX editor
* [jariz/vibrant.js](https://github.com/jariz/vibrant.js): Extract prominent colors from an image. JS port of Android's Palette.
* [sorich87/bootstrap-tour](https://github.com/sorich87/bootstrap-tour): Quick and easy product tours with Twitter Bootstrap Popovers
* [stripe/jquery.payment](https://github.com/stripe/jquery.payment): [DEPRECATED] A general purpose library for building credit card forms, validating inputs and formatting numbers.
* [turbolinks/turbolinks-classic](https://github.com/turbolinks/turbolinks-classic): Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
* [devongovett/pdfkit](https://github.com/devongovett/pdfkit): A JavaScript PDF generation library for Node and the browser
* [danielgtaylor/aglio](https://github.com/danielgtaylor/aglio): An API Blueprint renderer with theme support that outputs static HTML
* [NarrativeScience/Log.io](https://github.com/NarrativeScience/Log.io): Real-time log monitoring in your browser
* [github/hubot-scripts](https://github.com/github/hubot-scripts): DEPRECATED, see https://github.com/github/hubot-scripts/issues/1113 for details - optional scripts for hubot, opt in via hubot-scripts.json
| larsbijl/trending_archive | 2017-12/2017-12-11.md | Markdown | mit | 15,501 |
import { mediaPreview } from 'mtt-blog/helpers/media-preview';
import { module, test } from 'qunit';
module('Unit | Helper | media preview');
// Replace this with your real tests.
test('it works', function(assert) {
let result = mediaPreview([42]);
assert.ok(result);
});
| morontt/zend-blog-3-backend | spa/tests/unit/helpers/media-preview-test.js | JavaScript | mit | 278 |
/*=============================
= Views =
=============================*/
App.Views.UserInfo = Backbone.View.extend({
el: $('#user-info'),
events: {
"click #settings" : "clickSettings",
"click #logout" : "clickLogout"
},
clickLogout: function(event) {
$.ajax({
url: 'auth/logout',
type: 'get',
dataType: 'json',
success: function(data) {
if (data.result == 'Success') {
window.location = '/'; //Reload index page
} else {
alert('Logout failed'); //Alert on fail
}
},
error: function (xhr, ajaxOptions, thrownError) {
console.log('Logout failed (hard)');
}
});
},
clickSettings: function(event) {
console.log('Settings clicked');
}
});
| tjoskar/odot | public/js/views/userInfo.js | JavaScript | mit | 917 |
gnbbBoilerplate
===============
A Backbone, Coffeescript, SASS, Gulp boilerplate
** created for personal use, will be improved as I go along
** roughly designed based on: https://github.com/jh3y/gulp-boilerplate-v2
| gnesher/gnbbBoilerplate | README.md | Markdown | mit | 216 |
class Opendata::Agents::Nodes::Idea::IdeaController < ApplicationController
include Cms::NodeFilter::View
include Member::LoginFilter
include Opendata::MemberFilter
include Opendata::Idea::IdeaFilter
helper Opendata::UrlHelper
before_action :set_idea, only: [:show_point, :add_point, :point_members]
skip_filter :logged_in?
private
def set_idea
@idea_path = Opendata::Idea.to_idea_path(@cur_path)
@idea = Opendata::Idea.site(@cur_site).public.
filename(@idea_path).
first
raise "404" unless @idea
end
public
def pages
Opendata::Idea.site(@cur_site).public
end
def index
@count = pages.size
@node_url = "#{@cur_node.url}"
@search_path = view_context.method(:search_ideas_path)
@rss_path = ->(options = {}) { view_context.build_path("#{view_context.search_ideas_path}rss.xml", options) }
@tabs = []
Opendata::Idea.sort_options.each do |options|
@tabs << { name: options[0],
url: "#{@search_path.call("sort" => "#{options[1]}")}",
pages: pages.sort_criteria(options[1]).limit(10),
rss: "#{@rss_path.call("sort" => "#{options[1]}")}" }
end
max = 50
@areas = aggregate_areas(max)
@tags = aggregate_tags(max)
respond_to do |format|
format.html { render }
format.rss { render_rss @cur_node, @items }
end
end
def rss
@items = pages.order_by(released: -1).limit(100)
render_rss @cur_node, @items
end
def show_point
@cur_node.layout = nil
@mode = nil
if logged_in?(redirect: false)
@mode = :add
cond = { site_id: @cur_site.id, member_id: @cur_member.id, idea_id: @idea.id }
@mode = :cancel if point = Opendata::IdeaPoint.where(cond).first
end
end
def add_point
@cur_node.layout = nil
raise "403" unless logged_in?(redirect: false)
cond = { site_id: @cur_site.id, member_id: @cur_member.id, idea_id: @idea.id }
if point = Opendata::IdeaPoint.where(cond).first
point.destroy
@idea.inc point: -1
@mode = :add
else
Opendata::IdeaPoint.new(cond).save
@idea.inc point: 1
@mode = :cancel
end
render :show_point
end
def point_members
@cur_node.layout = nil
@items = Opendata::IdeaPoint.where(site_id: @cur_site.id, idea_id: @idea.id)
end
def show_dataset
@cur_node.layout = nil
idea_path = @cur_path.sub(/\/dataset\/.*/, ".html")
@idea_ds = Opendata::Idea.site(@cur_site).public.
filename(idea_path).
first
raise "404" unless @idea_ds
end
def show_app
@cur_node.layout = nil
idea_path = @cur_path.sub(/\/app\/.*/, ".html")
@idea_ap = Opendata::Idea.site(@cur_site).public.
filename(idea_path).
first
raise "404" unless @idea_ap
end
end
| tecyama/opendata | app/controllers/opendata/agents/nodes/idea/idea_controller.rb | Ruby | mit | 2,998 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DLaB.Xrm.Entities
{
/// <summary>
/// Potential duplicate record.
/// </summary>
[System.Runtime.Serialization.DataContractAttribute()]
[Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("duplicaterecord")]
[System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "8.0.1.7297")]
public partial class DuplicateRecord : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
{
public struct Fields
{
public const string AsyncOperationId = "asyncoperationid";
public const string BaseRecordId = "baserecordid";
public const string CreatedOn = "createdon";
public const string DuplicateId = "duplicateid";
public const string Id = "duplicateid";
public const string DuplicateRecordId = "duplicaterecordid";
public const string DuplicateRuleId = "duplicateruleid";
public const string OwnerId = "ownerid";
public const string OwningBusinessUnit = "owningbusinessunit";
public const string OwningUser = "owninguser";
public const string Account_DuplicateBaseRecord = "Account_DuplicateBaseRecord";
public const string Account_DuplicateMatchingRecord = "Account_DuplicateMatchingRecord";
public const string Appointment_DuplicateBaseRecord = "Appointment_DuplicateBaseRecord";
public const string Appointment_DuplicateMatchingRecord = "Appointment_DuplicateMatchingRecord";
public const string AsyncOperation_DuplicateBaseRecord = "AsyncOperation_DuplicateBaseRecord";
public const string Campaign_DuplicateBaseRecord = "Campaign_DuplicateBaseRecord";
public const string Campaign_DuplicateMatchingRecord = "Campaign_DuplicateMatchingRecord";
public const string CampaignResponse_DuplicateBaseRecord = "CampaignResponse_DuplicateBaseRecord";
public const string CampaignResponse_DuplicateMatchingRecord = "CampaignResponse_DuplicateMatchingRecord";
public const string channelaccessprofile_DuplicateBaseRecord = "channelaccessprofile_DuplicateBaseRecord";
public const string channelaccessprofile_DuplicateMatchingRecord = "channelaccessprofile_DuplicateMatchingRecord";
public const string Competitor_DuplicateBaseRecord = "Competitor_DuplicateBaseRecord";
public const string Competitor_DuplicateMatchingRecord = "Competitor_DuplicateMatchingRecord";
public const string Contact_DuplicateBaseRecord = "Contact_DuplicateBaseRecord";
public const string Contact_DuplicateMatchingRecord = "Contact_DuplicateMatchingRecord";
public const string Contract_DuplicateBaseRecord = "Contract_DuplicateBaseRecord";
public const string Contract_DuplicateMatchingRecord = "Contract_DuplicateMatchingRecord";
public const string DuplicateRule_DuplicateBaseRecord = "DuplicateRule_DuplicateBaseRecord";
public const string Email_DuplicateBaseRecord = "Email_DuplicateBaseRecord";
public const string Email_DuplicateMatchingRecord = "Email_DuplicateMatchingRecord";
public const string emailserverprofile_duplicatebaserecord = "emailserverprofile_duplicatebaserecord";
public const string emailserverprofile_duplicatematchingrecord = "emailserverprofile_duplicatematchingrecord";
public const string entitlement_DuplicateBaseRecord = "entitlement_DuplicateBaseRecord";
public const string entitlement_DuplicateMatchingRecord = "entitlement_DuplicateMatchingRecord";
public const string entitlementchannel_DuplicateBaseRecord = "entitlementchannel_DuplicateBaseRecord";
public const string entitlementchannel_DuplicateMatchingRecord = "entitlementchannel_DuplicateMatchingRecord";
public const string entitlementtemplate_DuplicateBaseRecord = "entitlementtemplate_DuplicateBaseRecord";
public const string entitlementtemplate_DuplicateMatchingRecord = "entitlementtemplate_DuplicateMatchingRecord";
public const string Equipment_DuplicateBaseRecord = "Equipment_DuplicateBaseRecord";
public const string Equipment_DuplicateMatchingRecord = "Equipment_DuplicateMatchingRecord";
public const string Fax_DuplicateBaseRecord = "Fax_DuplicateBaseRecord";
public const string Fax_DuplicateMatchingRecord = "Fax_DuplicateMatchingRecord";
public const string Goal_DuplicateBaseRecord = "Goal_DuplicateBaseRecord";
public const string Goal_DuplicateMatchingRecord = "Goal_DuplicateMatchingRecord";
public const string GoalRollupQuery_DuplicateBaseRecord = "GoalRollupQuery_DuplicateBaseRecord";
public const string GoalRollupQuery_DuplicateMatchingRecord = "GoalRollupQuery_DuplicateMatchingRecord";
public const string Incident_DuplicateBaseRecord = "Incident_DuplicateBaseRecord";
public const string Incident_DuplicateMatchingRecord = "Incident_DuplicateMatchingRecord";
public const string KbArticle_DuplicateBaseRecord = "KbArticle_DuplicateBaseRecord";
public const string KbArticle_DuplicateMatchingRecord = "KbArticle_DuplicateMatchingRecord";
public const string knowledgearticle_DuplicateBaseRecord = "knowledgearticle_DuplicateBaseRecord";
public const string knowledgearticle_DuplicateMatchingRecord = "knowledgearticle_DuplicateMatchingRecord";
public const string KnowledgeBaseRecord_DuplicateBaseRecord = "KnowledgeBaseRecord_DuplicateBaseRecord";
public const string KnowledgeBaseRecord_DuplicateMatchingRecord = "KnowledgeBaseRecord_DuplicateMatchingRecord";
public const string Lead_DuplicateBaseRecord = "Lead_DuplicateBaseRecord";
public const string Lead_DuplicateMatchingRecord = "Lead_DuplicateMatchingRecord";
public const string Letter_DuplicateBaseRecord = "Letter_DuplicateBaseRecord";
public const string Letter_DuplicateMatchingRecord = "Letter_DuplicateMatchingRecord";
public const string List_DuplicateBaseRecord = "List_DuplicateBaseRecord";
public const string List_DuplicateMatchingRecord = "List_DuplicateMatchingRecord";
public const string msdyn_postalbum_DuplicateBaseRecord = "msdyn_postalbum_DuplicateBaseRecord";
public const string msdyn_postalbum_DuplicateMatchingRecord = "msdyn_postalbum_DuplicateMatchingRecord";
public const string Opportunity_DuplicateBaseRecord = "Opportunity_DuplicateBaseRecord";
public const string Opportunity_DuplicateMatchingRecord = "Opportunity_DuplicateMatchingRecord";
public const string PhoneCall_DuplicateBaseRecord = "PhoneCall_DuplicateBaseRecord";
public const string PhoneCall_DuplicateMatchingRecord = "PhoneCall_DuplicateMatchingRecord";
public const string Publisher_DuplicateBaseRecord = "Publisher_DuplicateBaseRecord";
public const string Publisher_DuplicateMatchingRecord = "Publisher_DuplicateMatchingRecord";
public const string Queue_DuplicateBaseRecord = "Queue_DuplicateBaseRecord";
public const string Queue_DuplicateMatchingRecord = "Queue_DuplicateMatchingRecord";
public const string Quote_DuplicateBaseRecord = "Quote_DuplicateBaseRecord";
public const string Quote_DuplicateMatchingRecord = "Quote_DuplicateMatchingRecord";
public const string RecurringAppointmentMaster_DuplicateBaseRecord = "RecurringAppointmentMaster_DuplicateBaseRecord";
public const string RecurringAppointmentMaster_DuplicateMatchingRecord = "RecurringAppointmentMaster_DuplicateMatchingRecord";
public const string ResourceGroup_DuplicateBaseRecord = "ResourceGroup_DuplicateBaseRecord";
public const string ResourceGroup_DuplicateMatchingRecord = "ResourceGroup_DuplicateMatchingRecord";
public const string Service_DuplicateBaseRecord = "Service_DuplicateBaseRecord";
public const string Service_DuplicateMatchingRecord = "Service_DuplicateMatchingRecord";
public const string SharePointDocumentLocation_DuplicateBaseRecord = "SharePointDocumentLocation_DuplicateBaseRecord";
public const string SharePointDocumentLocation_DuplicateMatchingRecord = "SharePointDocumentLocation_DuplicateMatchingRecord";
public const string SharePointSite_DuplicateBaseRecord = "SharePointSite_DuplicateBaseRecord";
public const string SharePointSite_DuplicateMatchingRecord = "SharePointSite_DuplicateMatchingRecord";
public const string SocialActivity_DuplicateBaseRecord = "SocialActivity_DuplicateBaseRecord";
public const string SocialActivity_DuplicateMatchingRecord = "SocialActivity_DuplicateMatchingRecord";
public const string SocialProfile_DuplicateBaseRecord = "SocialProfile_DuplicateBaseRecord";
public const string SocialProfile_DuplicateMatchingRecord = "SocialProfile_DuplicateMatchingRecord";
public const string SystemUser_DuplicateBaseRecord = "SystemUser_DuplicateBaseRecord";
public const string SystemUser_DuplicateMatchingRecord = "SystemUser_DuplicateMatchingRecord";
public const string Task_DuplicateBaseRecord = "Task_DuplicateBaseRecord";
public const string Task_DuplicateMatchingRecord = "Task_DuplicateMatchingRecord";
public const string Team_DuplicateBaseRecord = "Team_DuplicateBaseRecord";
public const string Team_DuplicateMatchingRecord = "Team_DuplicateMatchingRecord";
public const string Territory_DuplicateBaseRecord = "Territory_DuplicateBaseRecord";
public const string Territory_DuplicateMatchingRecord = "Territory_DuplicateMatchingRecord";
public const string TransactionCurrency_DuplicateBaseRecord = "TransactionCurrency_DuplicateBaseRecord";
public const string TransactionCurrency_DuplicateMatchingRecord = "TransactionCurrency_DuplicateMatchingRecord";
}
/// <summary>
/// Default Constructor.
/// </summary>
[System.Diagnostics.DebuggerNonUserCode()]
public DuplicateRecord() :
base(EntityLogicalName)
{
}
public const string EntityLogicalName = "duplicaterecord";
public const int EntityTypeCode = 4415;
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging;
[System.Diagnostics.DebuggerNonUserCode()]
private void OnPropertyChanged(string propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
[System.Diagnostics.DebuggerNonUserCode()]
private void OnPropertyChanging(string propertyName)
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName));
}
}
/// <summary>
/// Unique identifier of the system job that created this record.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")]
public Microsoft.Xrm.Sdk.EntityReference AsyncOperationId
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("asyncoperationid");
}
}
/// <summary>
/// Unique identifier of the base record.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
public Microsoft.Xrm.Sdk.EntityReference BaseRecordId
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("baserecordid");
}
}
/// <summary>
/// Date and time when the duplicate record was created.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")]
public System.Nullable<System.DateTime> CreatedOn
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<System.Nullable<System.DateTime>>("createdon");
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
this.OnPropertyChanging("CreatedOn");
this.SetAttributeValue("createdon", value);
this.OnPropertyChanged("CreatedOn");
}
}
/// <summary>
/// Unique identifier of the duplicate record.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateid")]
public System.Nullable<System.Guid> DuplicateId
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<System.Nullable<System.Guid>>("duplicateid");
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
this.OnPropertyChanging("DuplicateId");
this.SetAttributeValue("duplicateid", value);
if (value.HasValue)
{
base.Id = value.Value;
}
else
{
base.Id = System.Guid.Empty;
}
this.OnPropertyChanged("DuplicateId");
}
}
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateid")]
public override System.Guid Id
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return base.Id;
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
this.DuplicateId = value;
}
}
/// <summary>
/// Unique identifier of the potential duplicate record.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
public Microsoft.Xrm.Sdk.EntityReference DuplicateRecordId
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("duplicaterecordid");
}
}
/// <summary>
/// Unique identifier of the duplicate rule against which this duplicate was found.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")]
public Microsoft.Xrm.Sdk.EntityReference DuplicateRuleId
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("duplicateruleid");
}
}
/// <summary>
/// Unique identifier of the user or team who owns the duplicate record.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")]
public Microsoft.Xrm.Sdk.EntityReference OwnerId
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("ownerid");
}
}
/// <summary>
/// Unique identifier of the business unit that owns the duplicate record.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")]
public System.Nullable<System.Guid> OwningBusinessUnit
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<System.Nullable<System.Guid>>("owningbusinessunit");
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
this.OnPropertyChanging("OwningBusinessUnit");
this.SetAttributeValue("owningbusinessunit", value);
this.OnPropertyChanged("OwningBusinessUnit");
}
}
/// <summary>
/// Unique identifier of the user who owns the duplicate record.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")]
public System.Nullable<System.Guid> OwningUser
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetAttributeValue<System.Nullable<System.Guid>>("owninguser");
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
this.OnPropertyChanging("OwningUser");
this.SetAttributeValue("owninguser", value);
this.OnPropertyChanged("OwningUser");
}
}
/// <summary>
/// 1:N userentityinstancedata_duplicaterecord
/// </summary>
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("userentityinstancedata_duplicaterecord")]
public System.Collections.Generic.IEnumerable<Entities.UserEntityInstanceData> userentityinstancedata_duplicaterecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntities<Entities.UserEntityInstanceData>("userentityinstancedata_duplicaterecord", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
this.OnPropertyChanging("userentityinstancedata_duplicaterecord");
this.SetRelatedEntities<Entities.UserEntityInstanceData>("userentityinstancedata_duplicaterecord", null, value);
this.OnPropertyChanged("userentityinstancedata_duplicaterecord");
}
}
/// <summary>
/// N:1 Account_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateBaseRecord")]
public Entities.Account Account_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Account>("Account_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Account_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Account_DuplicateMatchingRecord")]
public Entities.Account Account_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Account>("Account_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Appointment_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateBaseRecord")]
public Entities.Appointment Appointment_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Appointment>("Appointment_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Appointment_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Appointment_DuplicateMatchingRecord")]
public Entities.Appointment Appointment_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Appointment>("Appointment_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 AsyncOperation_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("asyncoperationid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("AsyncOperation_DuplicateBaseRecord")]
public Entities.AsyncOperation AsyncOperation_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.AsyncOperation>("AsyncOperation_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Campaign_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateBaseRecord")]
public Entities.Campaign Campaign_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Campaign>("Campaign_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Campaign_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Campaign_DuplicateMatchingRecord")]
public Entities.Campaign Campaign_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Campaign>("Campaign_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 CampaignResponse_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateBaseRecord")]
public Entities.CampaignResponse CampaignResponse_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.CampaignResponse>("CampaignResponse_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 CampaignResponse_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("CampaignResponse_DuplicateMatchingRecord")]
public Entities.CampaignResponse CampaignResponse_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.CampaignResponse>("CampaignResponse_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 channelaccessprofile_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("channelaccessprofile_DuplicateBaseRecord")]
public Entities.ChannelAccessProfile channelaccessprofile_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.ChannelAccessProfile>("channelaccessprofile_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 channelaccessprofile_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("channelaccessprofile_DuplicateMatchingRecord")]
public Entities.ChannelAccessProfile channelaccessprofile_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.ChannelAccessProfile>("channelaccessprofile_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Competitor_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateBaseRecord")]
public Entities.Competitor Competitor_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Competitor>("Competitor_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Competitor_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Competitor_DuplicateMatchingRecord")]
public Entities.Competitor Competitor_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Competitor>("Competitor_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Contact_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateBaseRecord")]
public Entities.Contact Contact_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Contact>("Contact_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Contact_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contact_DuplicateMatchingRecord")]
public Entities.Contact Contact_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Contact>("Contact_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Contract_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateBaseRecord")]
public Entities.Contract Contract_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Contract>("Contract_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Contract_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Contract_DuplicateMatchingRecord")]
public Entities.Contract Contract_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Contract>("Contract_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 DuplicateRule_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicateruleid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("DuplicateRule_DuplicateBaseRecord")]
public Entities.DuplicateRule DuplicateRule_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.DuplicateRule>("DuplicateRule_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Email_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateBaseRecord")]
public Entities.Email Email_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Email>("Email_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Email_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Email_DuplicateMatchingRecord")]
public Entities.Email Email_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Email>("Email_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 emailserverprofile_duplicatebaserecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatebaserecord")]
public Entities.EmailServerProfile emailserverprofile_duplicatebaserecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.EmailServerProfile>("emailserverprofile_duplicatebaserecord", null);
}
}
/// <summary>
/// N:1 emailserverprofile_duplicatematchingrecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("emailserverprofile_duplicatematchingrecord")]
public Entities.EmailServerProfile emailserverprofile_duplicatematchingrecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.EmailServerProfile>("emailserverprofile_duplicatematchingrecord", null);
}
}
/// <summary>
/// N:1 entitlement_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entitlement_DuplicateBaseRecord")]
public Entities.Entitlement entitlement_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Entitlement>("entitlement_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 entitlement_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entitlement_DuplicateMatchingRecord")]
public Entities.Entitlement entitlement_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Entitlement>("entitlement_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 entitlementchannel_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entitlementchannel_DuplicateBaseRecord")]
public Entities.EntitlementChannel entitlementchannel_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.EntitlementChannel>("entitlementchannel_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 entitlementchannel_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entitlementchannel_DuplicateMatchingRecord")]
public Entities.EntitlementChannel entitlementchannel_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.EntitlementChannel>("entitlementchannel_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 entitlementtemplate_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entitlementtemplate_DuplicateBaseRecord")]
public Entities.EntitlementTemplate entitlementtemplate_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.EntitlementTemplate>("entitlementtemplate_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 entitlementtemplate_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("entitlementtemplate_DuplicateMatchingRecord")]
public Entities.EntitlementTemplate entitlementtemplate_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.EntitlementTemplate>("entitlementtemplate_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Equipment_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateBaseRecord")]
public Entities.Equipment Equipment_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Equipment>("Equipment_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Equipment_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Equipment_DuplicateMatchingRecord")]
public Entities.Equipment Equipment_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Equipment>("Equipment_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Fax_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateBaseRecord")]
public Entities.Fax Fax_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Fax>("Fax_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Fax_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Fax_DuplicateMatchingRecord")]
public Entities.Fax Fax_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Fax>("Fax_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Goal_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_DuplicateBaseRecord")]
public Entities.Goal Goal_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Goal>("Goal_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Goal_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Goal_DuplicateMatchingRecord")]
public Entities.Goal Goal_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Goal>("Goal_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 GoalRollupQuery_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("GoalRollupQuery_DuplicateBaseRecord")]
public Entities.GoalRollupQuery GoalRollupQuery_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.GoalRollupQuery>("GoalRollupQuery_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 GoalRollupQuery_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("GoalRollupQuery_DuplicateMatchingRecord")]
public Entities.GoalRollupQuery GoalRollupQuery_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.GoalRollupQuery>("GoalRollupQuery_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Incident_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateBaseRecord")]
public Entities.Incident Incident_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Incident>("Incident_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Incident_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Incident_DuplicateMatchingRecord")]
public Entities.Incident Incident_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Incident>("Incident_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 KbArticle_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateBaseRecord")]
public Entities.KbArticle KbArticle_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.KbArticle>("KbArticle_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 KbArticle_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KbArticle_DuplicateMatchingRecord")]
public Entities.KbArticle KbArticle_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.KbArticle>("KbArticle_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 knowledgearticle_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("knowledgearticle_DuplicateBaseRecord")]
public Entities.KnowledgeArticle knowledgearticle_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.KnowledgeArticle>("knowledgearticle_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 knowledgearticle_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("knowledgearticle_DuplicateMatchingRecord")]
public Entities.KnowledgeArticle knowledgearticle_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.KnowledgeArticle>("knowledgearticle_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 KnowledgeBaseRecord_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KnowledgeBaseRecord_DuplicateBaseRecord")]
public Entities.KnowledgeBaseRecord KnowledgeBaseRecord_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.KnowledgeBaseRecord>("KnowledgeBaseRecord_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 KnowledgeBaseRecord_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("KnowledgeBaseRecord_DuplicateMatchingRecord")]
public Entities.KnowledgeBaseRecord KnowledgeBaseRecord_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.KnowledgeBaseRecord>("KnowledgeBaseRecord_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Lead_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateBaseRecord")]
public Entities.Lead Lead_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Lead>("Lead_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Lead_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Lead_DuplicateMatchingRecord")]
public Entities.Lead Lead_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Lead>("Lead_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Letter_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateBaseRecord")]
public Entities.Letter Letter_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Letter>("Letter_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Letter_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Letter_DuplicateMatchingRecord")]
public Entities.Letter Letter_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Letter>("Letter_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 List_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateBaseRecord")]
public Entities.List List_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.List>("List_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 List_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("List_DuplicateMatchingRecord")]
public Entities.List List_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.List>("List_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 msdyn_postalbum_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateBaseRecord")]
public Entities.msdyn_PostAlbum msdyn_postalbum_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.msdyn_PostAlbum>("msdyn_postalbum_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 msdyn_postalbum_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("msdyn_postalbum_DuplicateMatchingRecord")]
public Entities.msdyn_PostAlbum msdyn_postalbum_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.msdyn_PostAlbum>("msdyn_postalbum_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Opportunity_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateBaseRecord")]
public Entities.Opportunity Opportunity_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Opportunity>("Opportunity_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Opportunity_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Opportunity_DuplicateMatchingRecord")]
public Entities.Opportunity Opportunity_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Opportunity>("Opportunity_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 PhoneCall_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateBaseRecord")]
public Entities.PhoneCall PhoneCall_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.PhoneCall>("PhoneCall_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 PhoneCall_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("PhoneCall_DuplicateMatchingRecord")]
public Entities.PhoneCall PhoneCall_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.PhoneCall>("PhoneCall_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Publisher_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Publisher_DuplicateBaseRecord")]
public Entities.Publisher Publisher_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Publisher>("Publisher_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Publisher_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Publisher_DuplicateMatchingRecord")]
public Entities.Publisher Publisher_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Publisher>("Publisher_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Queue_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateBaseRecord")]
public Entities.Queue Queue_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Queue>("Queue_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Queue_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Queue_DuplicateMatchingRecord")]
public Entities.Queue Queue_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Queue>("Queue_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Quote_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateBaseRecord")]
public Entities.Quote Quote_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Quote>("Quote_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Quote_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Quote_DuplicateMatchingRecord")]
public Entities.Quote Quote_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Quote>("Quote_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 RecurringAppointmentMaster_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateBaseRecord")]
public Entities.RecurringAppointmentMaster RecurringAppointmentMaster_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.RecurringAppointmentMaster>("RecurringAppointmentMaster_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 RecurringAppointmentMaster_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("RecurringAppointmentMaster_DuplicateMatchingRecord")]
public Entities.RecurringAppointmentMaster RecurringAppointmentMaster_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.RecurringAppointmentMaster>("RecurringAppointmentMaster_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 ResourceGroup_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateBaseRecord")]
public Entities.ResourceGroup ResourceGroup_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.ResourceGroup>("ResourceGroup_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 ResourceGroup_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ResourceGroup_DuplicateMatchingRecord")]
public Entities.ResourceGroup ResourceGroup_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.ResourceGroup>("ResourceGroup_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Service_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateBaseRecord")]
public Entities.Service Service_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Service>("Service_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Service_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Service_DuplicateMatchingRecord")]
public Entities.Service Service_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Service>("Service_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 SharePointDocumentLocation_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateBaseRecord")]
public Entities.SharePointDocumentLocation SharePointDocumentLocation_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SharePointDocumentLocation>("SharePointDocumentLocation_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 SharePointDocumentLocation_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointDocumentLocation_DuplicateMatchingRecord")]
public Entities.SharePointDocumentLocation SharePointDocumentLocation_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SharePointDocumentLocation>("SharePointDocumentLocation_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 SharePointSite_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateBaseRecord")]
public Entities.SharePointSite SharePointSite_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SharePointSite>("SharePointSite_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 SharePointSite_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SharePointSite_DuplicateMatchingRecord")]
public Entities.SharePointSite SharePointSite_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SharePointSite>("SharePointSite_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 SocialActivity_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SocialActivity_DuplicateBaseRecord")]
public Entities.SocialActivity SocialActivity_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SocialActivity>("SocialActivity_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 SocialActivity_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SocialActivity_DuplicateMatchingRecord")]
public Entities.SocialActivity SocialActivity_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SocialActivity>("SocialActivity_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 SocialProfile_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SocialProfile_DuplicateBaseRecord")]
public Entities.SocialProfile SocialProfile_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SocialProfile>("SocialProfile_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 SocialProfile_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SocialProfile_DuplicateMatchingRecord")]
public Entities.SocialProfile SocialProfile_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SocialProfile>("SocialProfile_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 SystemUser_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateBaseRecord")]
public Entities.SystemUser SystemUser_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SystemUser>("SystemUser_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 SystemUser_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("SystemUser_DuplicateMatchingRecord")]
public Entities.SystemUser SystemUser_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.SystemUser>("SystemUser_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Task_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateBaseRecord")]
public Entities.Task Task_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Task>("Task_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Task_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Task_DuplicateMatchingRecord")]
public Entities.Task Task_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Task>("Task_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Team_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateBaseRecord")]
public Entities.Team Team_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Team>("Team_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Team_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Team_DuplicateMatchingRecord")]
public Entities.Team Team_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Team>("Team_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 Territory_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateBaseRecord")]
public Entities.Territory Territory_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Territory>("Territory_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 Territory_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("Territory_DuplicateMatchingRecord")]
public Entities.Territory Territory_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.Territory>("Territory_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// N:1 TransactionCurrency_DuplicateBaseRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("baserecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_DuplicateBaseRecord")]
public Entities.TransactionCurrency TransactionCurrency_DuplicateBaseRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.TransactionCurrency>("TransactionCurrency_DuplicateBaseRecord", null);
}
}
/// <summary>
/// N:1 TransactionCurrency_DuplicateMatchingRecord
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("duplicaterecordid")]
[Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("TransactionCurrency_DuplicateMatchingRecord")]
public Entities.TransactionCurrency TransactionCurrency_DuplicateMatchingRecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
return this.GetRelatedEntity<Entities.TransactionCurrency>("TransactionCurrency_DuplicateMatchingRecord", null);
}
}
/// <summary>
/// Constructor for populating via LINQ queries given a LINQ anonymous type
/// <param name="anonymousType">LINQ anonymous type.</param>
/// </summary>
[System.Diagnostics.DebuggerNonUserCode()]
public DuplicateRecord(object anonymousType) :
this()
{
foreach (var p in anonymousType.GetType().GetProperties())
{
var value = p.GetValue(anonymousType, null);
var name = p.Name.ToLower();
if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum))
{
value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value);
name = name.Remove(name.Length - "enum".Length);
}
switch (name)
{
case "id":
base.Id = (System.Guid)value;
Attributes["duplicateid"] = base.Id;
break;
case "duplicateid":
var id = (System.Nullable<System.Guid>) value;
if(id == null){ continue; }
base.Id = id.Value;
Attributes[name] = base.Id;
break;
case "formattedvalues":
// Add Support for FormattedValues
FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value);
break;
default:
Attributes[name] = value;
break;
}
}
}
}
} | daryllabar/DLaB.Xrm.XrmToolBoxTools | DLaB.Xrm.Entities/Entities/DuplicateRecord.cs | C# | mit | 58,773 |
#!/usr/bin/env ruby
require "bundler/setup"
require "keyline"
require 'csv'
class SupplierImport
def initialize(input_file:, host:, token:)
Keyline.client(host: host, token: token)
raise ArgumentError.new("Could not connect to Keyline!\n\n"+ help_message) unless Keyline.connection_valid?
@host = host
@input_file = input_file
@printery = Keyline.printery
@errors = []
@parsed_rows = 0
end
def perform_import!
puts "---------------------------------------------------------------------------------------------------"
puts "Starting import of '#{@input_file}' intro printery '#{@printery.name}' on system #{@host}"
puts "---------------------------------------------------------------------------------------------------"
CSV.foreach(@input_file, col_sep: ';', headers: true) do |row|
@parsed_rows += 1
supplier_data = parse_supplier_data_from_row(row)
contact_data = parse_contact_data_from_row(row)
supplier = create_supplier(supplier_data)
create_contact(supplier, contact_data) if supplier.errors.empty?
end
self
rescue Keyline::Errors::ForbiddenError => e
puts "INVALID API CREDENTIALS"
raise e # Can't recover from this, so just re-raise
end
def report
puts "Import complete. Parsed #{@parsed_rows} rows, encountered #{@errors.size} errors."
@errors.each do |error|
puts "In row '%{row}' encountered error:\nParsed Data:%{data}\nException: %{error}" % error
end
end
private
def parse_supplier_data_from_row(row)
{ name: row[5].try(:strip).try(:gsub, /\s{2,}/, ' ') }
end
def create_supplier(supplier_data)
Keyline.suppliers.create(supplier_data).tap do |supplier|
if supplier.errors.any?
@errors << { row: @parsed_rows, data: supplier_data, error: supplier.errors }
else
puts "Created Supplier from row:#{@parsed_rows} with name:#{supplier.name}, id:#{supplier.id}"
end
end
end
def parse_contact_data_from_row(row)
first_name = row[0].try(:strip)
name = row[1].try(:strip)
phone = row[2].try(:strip).try(:gsub, /[^\d]/, '').try(:gsub, /^0/, '+44')
email = row[3].try(:strip)
{ name: name,
first_name: first_name,
phone: phone,
email: email,
}
end
def create_contact(supplier, contact_data)
Keyline::SupplierContact.new(contact_data, supplier).tap do |contact|
contact.save
if contact.errors.any?
@errors << { row: @parsed_rows, data: contact_data, error: contact.errors }
else
puts "Created Contact from row:#{@parsed_rows} with name:#{contact.name}, id:#{contact.id}, supplier_id:#{supplier.id}"
end
end
end
end
def help_message
"
supplier_import.rb <csv_input_file> <api_token> <api_host>
Only <csv_input_file> is mandatory.
<api_token> and <api_host> can be specified in environment
as KEYLINE_API_TOKEN and KEYLINE_API_HOST respectively.
"
end
if ARGV.size == 0
puts help_message
else
input_file = ARGV[0]
keyline_api_token = ARGV[1] || ENV['KEYLINE_API_TOKEN']
keyline_api_host = ARGV[2] || ENV['KEYLINE_API_HOST'] || 'http://keyline.dev'
SupplierImport.new(input_file: input_file, host: keyline_api_host, token: keyline_api_token)
.perform_import!
.report
end
| crispymtn/keyline-gem | contrib/supplier_import.rb | Ruby | mit | 3,408 |
// Generated by CoffeeScript 1.10.0
var AppController, MainController, ModalNewDeckController, NavController;
AppController = (function() {
function AppController($scope) {
this.scope = $scope;
this.scope.$on('search', function(term) {
return console.log(term);
});
$scope.$on('deckHasBeenSelected', function(deck) {
$scope.currentDeck = deck.targetScope.currentDeck;
return $scope.$broadcast('currentDeckHasChanged');
});
}
return AppController;
})();
NavController = (function() {
function NavController($scope, $uibModal, $localStorage) {
if (!$localStorage.decks) {
$localStorage.decks = [];
}
$scope.decks = $localStorage.decks;
$scope.selectDeck = function(deck) {
$scope.currentDeck = deck;
return $scope.$emit('deckHasBeenSelected', $scope.currentDeck);
};
$scope.selectDeck($scope.decks[0]);
$scope.addDeck = function($scope) {
var modal;
modal = $uibModal.open({
templateUrl: "template/modalNewDeck.html",
controller: "modalNewDeckController"
});
return modal.result.then(function(deckName) {
return $localStorage.decks.push(new Deck(deckName));
});
};
}
return NavController;
})();
ModalNewDeckController = (function() {
function ModalNewDeckController($scope, $uibModalInstance) {
$scope.cancel = function() {
return $uibModalInstance.dismiss("cancel");
};
$scope.submit = function() {
return $uibModalInstance.close($scope.name);
};
}
return ModalNewDeckController;
})();
MainController = (function() {
function MainController($scope, $localStorage, $http) {
$scope.cards = [];
$scope.$on("currentDeckHasChanged", function(e) {
$scope.currentDeck = e.targetScope.currentDeck;
return $scope.load();
});
$scope.load = function() {
return $scope.cards = $scope.currentDeck.cards;
};
$scope.addNewCard = function() {
$scope.cards.push(new Card($scope.title, $scope.description));
$scope.title = "";
return $scope.description = "";
};
}
return MainController;
})();
myApp.controller('appController', AppController);
myApp.controller('navController', NavController);
myApp.controller('mainController', MainController);
myApp.controller('modalNewDeckController', ModalNewDeckController);
| marconvcm/sandbox | 02-angularjs-protractor/lib/controller.js | JavaScript | mit | 2,368 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using System.Threading.Tasks;
using SumNumbersASPWebForms.Models;
namespace SumNumbersASPWebForms.Account
{
public partial class AddPhoneNumber : System.Web.UI.Page
{
protected void PhoneNumber_Click(object sender, EventArgs e)
{
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
var code = manager.GenerateChangePhoneNumberToken(User.Identity.GetUserId(), PhoneNumber.Text);
if (manager.SmsService != null)
{
var message = new IdentityMessage
{
Destination = PhoneNumber.Text,
Body = "Your security code is " + code
};
manager.SmsService.Send(message);
}
Response.Redirect("/Account/VerifyPhoneNumber?PhoneNumber=" + HttpUtility.UrlEncode(PhoneNumber.Text));
}
}
} | primas23/Homeworks | ASP.NET-Web-Forms/01. Introduction-to-ASP.NET/SumNumbersASPWebForms/Account/AddPhoneNumber.aspx.cs | C# | mit | 1,124 |
---
layout: page
title: Fire Coast Logistics Conference
date: 2016-05-24
author: Jeremy Hood
tags: weekly links, java
status: published
summary: Proin cursus nisi et enim sodales, suscipit pellentesque.
banner: images/banner/meeting-01.jpg
booking:
startDate: 06/20/2016
endDate: 06/24/2016
ctyhocn: LBBTXHX
groupCode: FCLC
published: true
---
Integer maximus velit convallis massa dapibus, non maximus ante consectetur. Nulla luctus, arcu a vestibulum condimentum, augue odio luctus justo, consequat interdum magna velit non diam. Fusce lectus arcu, mattis non risus ac, pretium pellentesque tortor. Maecenas fringilla nunc enim, ut sollicitudin arcu suscipit a. Sed nec faucibus urna. Ut et augue hendrerit, tempor massa et, rutrum arcu. Proin finibus vestibulum volutpat. Praesent tincidunt eros et quam rhoncus dapibus. Duis vitae volutpat tellus, et sodales magna. Nulla dignissim ornare risus, eget molestie erat volutpat ut. Aliquam purus lacus, pulvinar vitae dignissim non, blandit vitae augue. Mauris rutrum odio in diam consequat lobortis. Nunc consectetur augue eu lorem aliquam dapibus. Etiam scelerisque massa sit amet volutpat bibendum.
* Maecenas et tellus nec augue cursus maximus
* Phasellus nec ante ultricies, faucibus erat quis, maximus elit
* Nam in mauris quis lacus consequat condimentum in ac ligula
* Ut sed risus sed ligula facilisis imperdiet vel ac libero
* Aliquam gravida tellus at iaculis pretium
* Nullam at dui elementum, sagittis turpis quis, aliquet neque.
Sed malesuada dignissim dignissim. Nulla laoreet aliquet elit, id gravida nunc convallis at. Sed at est eget erat consectetur tempor. Aenean dapibus viverra pellentesque. Donec lacus nulla, finibus nec nulla ut, maximus tincidunt felis. Etiam dictum tincidunt magna, sit amet luctus neque pulvinar vitae. Donec in nibh arcu. Praesent at lectus ut neque blandit imperdiet eu vitae diam. Duis sed mi est.
Mauris a facilisis purus, quis condimentum diam. Fusce consequat risus ut dapibus blandit. Praesent gravida tortor non nunc vestibulum, in ullamcorper elit dignissim. Pellentesque ut congue justo. Pellentesque mollis, tellus at bibendum ultricies, velit sem aliquet nibh, tincidunt rhoncus odio enim nec arcu. Nam iaculis nisl purus, ut commodo justo euismod vel. Quisque accumsan lectus ut lectus accumsan, eu tempus sem lobortis. Nulla id lectus non nisi semper venenatis. Sed pretium scelerisque odio, non rutrum nunc. Nam ac auctor velit.
| KlishGroup/prose-pogs | pogs/L/LBBTXHX/FCLC/index.md | Markdown | mit | 2,449 |
<?php
/**
* The template for displaying product category thumbnails within loops.
*
* Override this template by copying it to yourtheme/woocommerce/content-product_cat.php
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $woocommerce_loop;
// Store loop count we're currently on
if ( empty( $woocommerce_loop['loop'] ) )
$woocommerce_loop['loop'] = 0;
// Store column count for displaying the grid
if ( empty( $woocommerce_loop['columns'] ) )
$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
// Increase loop count
$woocommerce_loop['loop']++;
if (isset($_GET['sidebar'])) { $sidebar = htmlspecialchars($_GET['sidebar']); } else { $sidebar = ot_get_option('shop_sidebar'); }
?>
<?php if($sidebar != 'no') { ?>
<article class="post product item small-12 medium-6 large-4 columns">
<?php } else { ?>
<article class="post product item small-12 medium-6 large-3 columns">
<?php } ?>
<?php do_action( 'woocommerce_before_subcategory', $category ); ?>
<figure class="overlay-effect">
<?php
/**
* woocommerce_before_subcategory_title hook
*
* @hooked woocommerce_subcategory_thumbnail - 10
*/
do_action( 'woocommerce_before_subcategory_title', $category );
?>
<div class="overlay">
<div class="table">
<div>
<div class="child post-title">
<h4><a href="<?php echo get_term_link( $category->slug, 'product_cat' ); ?>"><?php
echo $category->name;
if ( $category->count > 0 )
echo apply_filters( 'woocommerce_subcategory_count_html', ' <span class="count">(' . $category->count . ')</span>', $category );
?></a></h4>
<?php
/**
* woocommerce_after_subcategory_title hook
*/
do_action( 'woocommerce_after_subcategory_title', $category );
?>
</div>
</div>
</div>
</div>
</figure>
<?php do_action( 'woocommerce_after_subcategory', $category ); ?>
</article> | soyluking/soyluking-wp | woocommerce/content-product_cat.php | PHP | mit | 2,065 |
The Bounds.jl package is licensed under the MIT "Expat" License:
> Copyright (c) 2015: Steve Kelly.
>
> Permission is hereby granted, free of charge, to any person 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, copy, modify, merge, publish,
> distribute, sublicense, and/or sell copies of the Software, and to
> permit persons to whom the Software is furnished to do so, subject to
> the following conditions:
>
> The above copyright notice and this permission notice shall be
> included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 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.
| KristofferC/Orthotopes.jl | LICENSE.md | Markdown | mit | 1,160 |
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @fileoverview functions used for visualizing GIS data
*
* @requires jquery
* @requires vendor/jquery/jquery.svg.js
* @requires vendor/jquery/jquery.mousewheel.js
* @requires vendor/jquery/jquery.event.drag-2.2.js
*/
/* global drawOpenLayers */ // templates/table/gis_visualization/gis_visualization.twig
// Constants
var zoomFactor = 1.5;
var defaultX = 0;
var defaultY = 0;
// Variables
var x = 0;
var y = 0;
var scale = 1;
var svg;
/**
* Zooms and pans the visualization.
*/
function zoomAndPan () {
var g = svg.getElementById('groupPanel');
if (!g) {
return;
}
g.setAttribute('transform', 'translate(' + x + ', ' + y + ') scale(' + scale + ')');
var id;
var circle;
$('circle.vector').each(function () {
id = $(this).attr('id');
circle = svg.getElementById(id);
$(svg).on('change', circle, {
r : (3 / scale),
'stroke-width' : (2 / scale)
});
});
var line;
$('polyline.vector').each(function () {
id = $(this).attr('id');
line = svg.getElementById(id);
$(svg).on('change', line, {
'stroke-width' : (2 / scale)
});
});
var polygon;
$('path.vector').each(function () {
id = $(this).attr('id');
polygon = svg.getElementById(id);
$(svg).on('change', polygon, {
'stroke-width' : (0.5 / scale)
});
});
}
/**
* Initially loads either SVG or OSM visualization based on the choice.
*/
function selectVisualization () {
if ($('#choice').prop('checked') !== true) {
$('#openlayersmap').hide();
} else {
$('#placeholder').hide();
}
}
/**
* Adds necessary styles to the div that coontains the openStreetMap.
*/
function styleOSM () {
var $placeholder = $('#placeholder');
var cssObj = {
'border' : '1px solid #aaa',
'width' : $placeholder.width(),
'height' : $placeholder.height(),
'float' : 'right'
};
$('#openlayersmap').css(cssObj);
}
/**
* Loads the SVG element and make a reference to it.
*/
function loadSVG () {
var $placeholder = $('#placeholder');
$placeholder.svg({
onLoad: function (svgRef) {
svg = svgRef;
}
});
// Removes the second SVG element unnecessarily added due to the above command
$placeholder.find('svg:nth-child(2)').remove();
}
/**
* Adds controllers for zooming and panning.
*/
function addZoomPanControllers () {
var $placeholder = $('#placeholder');
if ($('#placeholder').find('svg').length > 0) {
var pmaThemeImage = $('#pmaThemeImage').val();
// add panning arrows
$('<img class="button" id="left_arrow" src="' + pmaThemeImage + 'west-mini.png">').appendTo($placeholder);
$('<img class="button" id="right_arrow" src="' + pmaThemeImage + 'east-mini.png">').appendTo($placeholder);
$('<img class="button" id="up_arrow" src="' + pmaThemeImage + 'north-mini.png">').appendTo($placeholder);
$('<img class="button" id="down_arrow" src="' + pmaThemeImage + 'south-mini.png">').appendTo($placeholder);
// add zooming controls
$('<img class="button" id="zoom_in" src="' + pmaThemeImage + 'zoom-plus-mini.png">').appendTo($placeholder);
$('<img class="button" id="zoom_world" src="' + pmaThemeImage + 'zoom-world-mini.png">').appendTo($placeholder);
$('<img class="button" id="zoom_out" src="' + pmaThemeImage + 'zoom-minus-mini.png">').appendTo($placeholder);
}
}
/**
* Resizes the GIS visualization to fit into the space available.
*/
function resizeGISVisualization () {
var $placeholder = $('#placeholder');
var oldWidth = $placeholder.width();
var visWidth = $('#div_view_options').width() - 48;
// Assign new value for width
$placeholder.width(visWidth);
$('svg').attr('width', visWidth);
// Assign the offset created due to resizing to defaultX and center the svg.
defaultX = (visWidth - oldWidth) / 2;
x = defaultX;
y = 0;
scale = 1;
}
/**
* Initialize the GIS visualization.
*/
function initGISVisualization () {
// Loads either SVG or OSM visualization based on the choice
selectVisualization();
// Resizes the GIS visualization to fit into the space available
resizeGISVisualization();
if (typeof OpenLayers !== 'undefined') {
// Configure OpenLayers
// eslint-disable-next-line no-underscore-dangle
OpenLayers._getScriptLocation = function () {
return './js/vendor/openlayers/';
};
// Adds necessary styles to the div that coontains the openStreetMap
styleOSM();
// Draws openStreetMap with openLayers
drawOpenLayers();
}
// Loads the SVG element and make a reference to it
loadSVG();
// Adds controllers for zooming and panning
addZoomPanControllers();
zoomAndPan();
}
function getRelativeCoords (e) {
var position = $('#placeholder').offset();
return {
x : e.pageX - position.left,
y : e.pageY - position.top
};
}
/**
* Ajax handlers for GIS visualization page
*
* Actions Ajaxified here:
*
* Zooming in and zooming out on mousewheel movement.
* Panning the visualization on dragging.
* Zooming in on double clicking.
* Zooming out on clicking the zoom out button.
* Panning on clicking the arrow buttons.
* Displaying tooltips for GIS objects.
*/
/**
* Unbind all event handlers before tearing down a page
*/
AJAX.registerTeardown('table/gis_visualization.js', function () {
$(document).off('click', '#choice');
$(document).off('mousewheel', '#placeholder');
$(document).off('dragstart', 'svg');
$(document).off('mouseup', 'svg');
$(document).off('drag', 'svg');
$(document).off('dblclick', '#placeholder');
$(document).off('click', '#zoom_in');
$(document).off('click', '#zoom_world');
$(document).off('click', '#zoom_out');
$(document).off('click', '#left_arrow');
$(document).off('click', '#right_arrow');
$(document).off('click', '#up_arrow');
$(document).off('click', '#down_arrow');
$('.vector').off('mousemove').off('mouseout');
});
AJAX.registerOnload('table/gis_visualization.js', function () {
// If we are in GIS visualization, initialize it
if ($('#gis_div').length > 0) {
initGISVisualization();
}
if (typeof OpenLayers === 'undefined') {
$('#choice, #labelChoice').hide();
}
$(document).on('click', '#choice', function () {
if ($(this).prop('checked') === false) {
$('#placeholder').show();
$('#openlayersmap').hide();
} else {
$('#placeholder').hide();
$('#openlayersmap').show();
}
});
$(document).on('mousewheel', '#placeholder', function (event, delta) {
event.preventDefault();
var relCoords = getRelativeCoords(event);
if (delta > 0) {
// zoom in
scale *= zoomFactor;
// zooming in keeping the position under mouse pointer unmoved.
x = relCoords.x - (relCoords.x - x) * zoomFactor;
y = relCoords.y - (relCoords.y - y) * zoomFactor;
zoomAndPan();
} else {
// zoom out
scale /= zoomFactor;
// zooming out keeping the position under mouse pointer unmoved.
x = relCoords.x - (relCoords.x - x) / zoomFactor;
y = relCoords.y - (relCoords.y - y) / zoomFactor;
zoomAndPan();
}
return true;
});
var dragX = 0;
var dragY = 0;
$(document).on('dragstart', 'svg', function (event, dd) {
$('#placeholder').addClass('placeholderDrag');
dragX = Math.round(dd.offsetX);
dragY = Math.round(dd.offsetY);
});
$(document).on('mouseup', 'svg', function () {
$('#placeholder').removeClass('placeholderDrag');
});
$(document).on('drag', 'svg', function (event, dd) {
var newX = Math.round(dd.offsetX);
x += newX - dragX;
dragX = newX;
var newY = Math.round(dd.offsetY);
y += newY - dragY;
dragY = newY;
zoomAndPan();
});
$(document).on('dblclick', '#placeholder', function (event) {
scale *= zoomFactor;
// zooming in keeping the position under mouse pointer unmoved.
var relCoords = getRelativeCoords(event);
x = relCoords.x - (relCoords.x - x) * zoomFactor;
y = relCoords.y - (relCoords.y - y) * zoomFactor;
zoomAndPan();
});
$(document).on('click', '#zoom_in', function (e) {
e.preventDefault();
// zoom in
scale *= zoomFactor;
var $placeholder = $('#placeholder').find('svg');
var width = $placeholder.attr('width');
var height = $placeholder.attr('height');
// zooming in keeping the center unmoved.
x = width / 2 - (width / 2 - x) * zoomFactor;
y = height / 2 - (height / 2 - y) * zoomFactor;
zoomAndPan();
});
$(document).on('click', '#zoom_world', function (e) {
e.preventDefault();
scale = 1;
x = defaultX;
y = defaultY;
zoomAndPan();
});
$(document).on('click', '#zoom_out', function (e) {
e.preventDefault();
// zoom out
scale /= zoomFactor;
var $placeholder = $('#placeholder').find('svg');
var width = $placeholder.attr('width');
var height = $placeholder.attr('height');
// zooming out keeping the center unmoved.
x = width / 2 - (width / 2 - x) / zoomFactor;
y = height / 2 - (height / 2 - y) / zoomFactor;
zoomAndPan();
});
$(document).on('click', '#left_arrow', function (e) {
e.preventDefault();
x += 100;
zoomAndPan();
});
$(document).on('click', '#right_arrow', function (e) {
e.preventDefault();
x -= 100;
zoomAndPan();
});
$(document).on('click', '#up_arrow', function (e) {
e.preventDefault();
y += 100;
zoomAndPan();
});
$(document).on('click', '#down_arrow', function (e) {
e.preventDefault();
y -= 100;
zoomAndPan();
});
/**
* Detect the mousemove event and show tooltips.
*/
$('.vector').on('mousemove', function (event) {
var contents = $.trim(Functions.escapeHtml($(this).attr('name')));
$('#tooltip').remove();
if (contents !== '') {
$('<div id="tooltip">' + contents + '</div>').css({
position : 'absolute',
top : event.pageY + 10,
left : event.pageX + 10,
border : '1px solid #fdd',
padding : '2px',
'background-color' : '#fee',
opacity : 0.90
}).appendTo('body').fadeIn(200);
}
});
/**
* Detect the mouseout event and hide tooltips.
*/
$('.vector').on('mouseout', function () {
$('#tooltip').remove();
});
});
| cytopia/devilbox | .devilbox/www/htdocs/vendor/phpmyadmin-5.0.4/js/table/gis_visualization.js | JavaScript | mit | 11,138 |
//
// GKWYMusicFindViewController.h
// GKNavigationBarViewControllerDemo
//
// Created by QuintGao on 2017/7/10.
// Copyright © 2017年 QuintGao. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GKBaseViewController.h"
@interface GKWYMusicFindViewController : GKBaseViewController
@end
| QuintGao/GKNavigationBarViewController | GKNavigationBarViewControllerDemo/GKNavigationBarViewControllerDemo/Classes/网易云音乐/tab/GKWYMusicFindViewController.h | C | mit | 302 |
=begin
* Created by PSU Beeminder Capstone Team on 3/12/2017.
* Copyright (c) 2017 PSU Beeminder Capstone Team
* This code is available under the "MIT License".
* Please see the file LICENSE in this distribution for license terms.
=end
class AddTimestampsToGoals < ActiveRecord::Migration[5.0]
def change
add_column :goals, :created_at, :datetime
add_column :goals, :updated_at, :datetime
end
end
| beeminder-capstone/Nectar-Backend | db/migrate/20170125204752_add_timestamps_to_goals.rb | Ruby | mit | 414 |
List of features a deep reinforcement learning chess neural network will need.
-----------
- Positions of all pieces.
- Side to move.
- Complete list of all possible moves that could be played in the current turn, as well as the list of all moves the opponent could play in the next turn. (How deep can this go? This scales up fast. There are *4,897,256* total possible positions a chess board could have after white plays its fifth move. This number should be much bigger during middle game.)
- How do I encode information such that the network can understand not to leave a piece hanging? It is essential practice to move your pieces to a square protected by another one of your pieces. Maybe have a map
- Output neurons should be of two sets - one is location on chess board, the other will be the piece to move to that location. Why? I think this might lead to good attacking strategies, and since it is going to play against itself, it will also result in better defensive strategies. How? well. You often wish a certain piece of yours was at a particular position but you find you cannot achieve in the next move because it'll take more than one or two moves to get your piece there. Thinking about location on the chess board independently, I think, will give the network a chance to 'think' about good moves - and it will learn how to implement them through training.
- How do I handle draws? Do I penalise drawing in a winning position and award drawing in losing position?
- Piece based evaluation of game will not be considered. Ex Evaluation parameters like Average Centipawn loss, to me, are useless. The objective of the game is to checkmate the king and not to capture pieces. They might go along hand in hand but they are in the end mutually exclusive endeavours. So, I need to award the network for checkmating the king and not to capture pieces. It'll soon learn capturing pieces makes that job easier, I do however want to see if it manages to learn checkmating without keeping capturing pieces in high priority. Which network architecture can implement awarding a single occurrence in a game without a continuous evaluation during the game?
- In my opinion a true position evaluation would be a binary state - black or white if both sides were to be played by the same engine with the same computing power. Not really relevant to the neural network architecture since continuous position evaluation will not be implemented, but it is relevant to my interests.
<!--stackedit_data:
eyJoaXN0b3J5IjpbLTE2NDgzMDIxOTNdfQ==
--> | aiftwn/aiftwn.github.io | _posts/2017-11-04-Deep chess.md | Markdown | mit | 2,548 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for io.js v2.0.0: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for io.js v2.0.0
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_uint32.html">Uint32</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">v8::Uint32 Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="classv8_1_1_uint32.html">v8::Uint32</a>, including all inherited members.</p>
<table class="directory">
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>BooleanValue</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>Cast</b>(v8::Value *obj) (defined in <a class="el" href="classv8_1_1_integer.html">v8::Integer</a>)</td><td class="entry"><a class="el" href="classv8_1_1_integer.html">v8::Integer</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Cast</b>(T *value) (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#adc2a7a92a120675bbd4c992163a20869">Equals</a>(Handle< Value > that) const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Int32Value</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>IntegerValue</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#ad06a4b1f7215d852c367df390491ac84">IsArgumentsObject</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#aaee0b144087d20eae02314c9393ff80f">IsArray</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a65f9dad740f2468b44dc16349611c351">IsArrayBuffer</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#ad54475d15b7e6b6e17fc80fb4570cdf2">IsArrayBufferView</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a0aceb7645e71b096df5cd73d1252b1b0">IsBoolean</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#abe7bc06283e5e66013f2f056a943168b">IsBooleanObject</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#afd20ab51e79658acc405c12dad2260ab">IsDataView</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a8bc11fab0aded4a805722ab6df173cae">IsDate</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a7ac61a325c18af8dcb6d7d5bf47d2503">IsExternal</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a68c0296071d01ca899825d7643cf495a">IsFalse</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a4effc7ca1a221dd8c1e23c0f28145ef0">IsFloat32Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a293f140b81b0219d1497e937ed948b1e">IsFloat64Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a05532a34cdd215f273163830ed8b77e7">IsFunction</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a1cbbebde8c256d051c4606a7300870c6">IsGeneratorFunction</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a72982768acdadd82d1df02a452251d14">IsGeneratorObject</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a928c586639dd75ae4efdaa66b1fc4d50">IsInt16Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a01e1db51c65b2feace248b7acbf71a2c">IsInt32</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a48eac78a49c8b42d9f8cf05c514b3750">IsInt32Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a10a88a2794271dfcd9c3abd565e8f28a">IsInt8Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a71ef50f22d6bb4a093cc931b3d981c08">IsMap</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#af9c52a0668fa3260a0d12a2cdf895b4e">IsMapIterator</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a8829b16b442a6231499c89fd5a6f8049">IsName</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a579fb52e893cdc24f8b77e5acc77d06d">IsNativeError</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#aa2c6ed8ef832223a7e2cd81e6ac61c78">IsNull</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a1bd51e3e55f67c65b9a8f587fbffb7c7">IsNumber</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a5f4aa9504a6d8fc3af9489330179fe14">IsNumberObject</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a355b7991c5c978c0341f6f961b63c5a2">IsObject</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a93d6a0817b15a1d28050ba16e131e6b4">IsPromise</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#aae41e43486937d6122c297a0d43ac0b8">IsRegExp</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a220bd4056471ee1dda8ab9565517edd7">IsSet</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#addbae0104e07b990ee1af0bd7927824b">IsSetIterator</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#ab23a34b7df62806808e01b0908bf5f00">IsString</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a3e0f2727455fd01a39a60b92f77e28e0">IsStringObject</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#af3e6081c22d09a7bbc0a2aff59ed60a5">IsSymbol</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a867baa94cb8f1069452359e6cef6751e">IsSymbolObject</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a8f27462322186b295195eecb3e81d6d7">IsTrue</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#ac2f2f6c39f14a39fbb5b43577125dfe4">IsTypedArray</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a4a45fabf58b241f5de3086a3dd0a09ae">IsUint16Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a783c89631bac4ef3c4b909f40cc2b8d8">IsUint32</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#a5e39229dc74d534835cf4ceba10676f4">IsUint32Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#acbe2cd9c9cce96ee498677ba37c8466d">IsUint8Array</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#ad3cb464ab5ef0215bd2cbdd4eb2b7e3d">IsUint8ClampedArray</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#aea287b745656baa8a12a2ae1d69744b6">IsUndefined</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#aab0297b39ed8e2a71b5dca7950228a36">IsWeakMap</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classv8_1_1_value.html#a6f5a238206cbd95f98e2da92cab72e80">IsWeakSet</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>New</b>(Isolate *isolate, int32_t value) (defined in <a class="el" href="classv8_1_1_integer.html">v8::Integer</a>)</td><td class="entry"><a class="el" href="classv8_1_1_integer.html">v8::Integer</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>New</b>(Isolate *isolate, double value) (defined in <a class="el" href="classv8_1_1_number.html">v8::Number</a>)</td><td class="entry"><a class="el" href="classv8_1_1_number.html">v8::Number</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>NewFromUnsigned</b>(Isolate *isolate, uint32_t value) (defined in <a class="el" href="classv8_1_1_integer.html">v8::Integer</a>)</td><td class="entry"><a class="el" href="classv8_1_1_integer.html">v8::Integer</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>NumberValue</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>SameValue</b>(Handle< Value > that) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>StrictEquals</b>(Handle< Value > that) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classv8_1_1_value.html#ae810be0ae81a87f677592d0176daac48">ToArrayIndex</a>() const </td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToBoolean</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToBoolean</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToDetailString</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToDetailString</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToInt32</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToInt32</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToInteger</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToInteger</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToNumber</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToNumber</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToObject</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToObject</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToString</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToString</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>ToUint32</b>(Isolate *isolate) const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>ToUint32</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Uint32Value</b>() const (defined in <a class="el" href="classv8_1_1_value.html">v8::Value</a>)</td><td class="entry"><a class="el" href="classv8_1_1_value.html">v8::Value</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>Value</b>() const (defined in <a class="el" href="classv8_1_1_uint32.html">v8::Uint32</a>)</td><td class="entry"><a class="el" href="classv8_1_1_uint32.html">v8::Uint32</a></td><td class="entry"></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:49:51 for V8 API Reference Guide for io.js v2.0.0 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
| v8-dox/v8-dox.github.io | 509b59e/html/classv8_1_1_uint32-members.html | HTML | mit | 24,249 |
---
layout: studio
---
see <http://www.nodeclipse.org/enide/studio/2014/README_2014.17-u2>
## Enide Studio 2014.17-u2 README
Enide Studio 2014.17 is eclipse-java-luna-SR2-win32-x86_64 plus
Nodeclipse and Enide plugins of 0.17 release train.
The intention is to let you save some time.
### Special about 2014.17-u2
- includes fixed JSHint-Eclipse issue [#99](https://github.com/eclipsesource/jshint-eclipse/issues/99) (v0.9.10)
- includes [eExplorer - Eclipse Plugin to embed Windows Explorer](https://github.com/culmat/eExplorer)
- example `ws` workspace
### Instructions
0. If you don't have, get latest Node.js <http://www.nodejs.org/download/>
1. If you don't have, download & install latest JDK 7/8
<http://www.oracle.com/technetwork/java/javase/downloads/index.html>
For example "Java Platform (JDK) 7u40"
2. [Download Enide Studio 2014 for your operating system](https://sourceforge.net/projects/nodeclipse/files/Enide-Studio-2014/)
3. Extract Enide-*.zip into folder where you keep our tools, e.g. `D:\Progs\` or `/usr/local/bin`
4. Open `eclipse.exe` from `eclipse` folder, e.g. <code>D:\Progs\Enide-Studio-2014.17-luna-SR1-win64\eclipse\eclipse.exe</code>
5.1 If you have error messages like
....\jre\....
That means you don't have JDK installed (JRE is not enough).
Reinstall JDK (see 1.) or use [hint how to configure Eclipse](https://github.com/Nodeclipse/eclipse-node-ide/blob/master/Hints.md#select-jvm-for-eclipse-instance)
You can configure `eclipse.ini` to exact JDK version you have using `-vm` option.
It should go before `-vmargs`. Examples:
-vm
C:/Program Files (x86)/Java/jdk1.7.0_40/jre/bin/client/jvm.dll
-vm
C:/Program Files/Java/jdk1.7.0_11/jre/bin/javaw.exe
5.2 On Linux don't forget to `sudo chmod -R 7555 eclipse` in folder with Enide Studio
### Hints
1. Archive included workspace `ws` with recommended configuration for example that you can open as `..\ws`.
But you should copy it or create new in folder where you have your workspaces, e.g.
D:\Workspaces\Enide-Studio-2014.17\
2. Add `-showLocation` to launch shortcut for Enide Studio `eclipse.exe` to display workspace path in window title.
| Nodeclipse/Nodeclipse.github.io | enide/studio/2014/README_2014.17-u2.md | Markdown | mit | 2,171 |
<?php session_start();
if (isset($_SESSION['USR_LOGIN'])=="") {
header("Location: /login.php");
}
include("mytcg/settings.php");
ob_start();
include("$header");
$buffer=ob_get_contents();
ob_end_clean();
$buffer=str_replace("%TITLE%","Card Claim | Wild Thing",$buffer);
echo $buffer;
if(!$_SERVER['QUERY_STRING']) {
$select = mysql_query("SELECT * FROM `$table_members` WHERE email='$_SESSION[USR_LOGIN]'");
while($row=mysql_fetch_assoc($select)) {
?>
<h1>Card Claim</h1>
<p><strong>Directions:</strong> Claim 2 cards of choice from different decks below.</p>
<form method="post" action="cardclaim.php?claim">
<input type="hidden" name="id" value="<?php echo $row[id]; ?>" />
<input type="hidden" name="name" value="<?php echo $row[name]; ?>" />
<input type="hidden" name="email" value="<?php echo $row[email]; ?>" />
<input type="hidden" name="url" value="<?php echo $row[url]; ?>" />
<table border="0" width="80%" align="center">
<tr><td width="20%">Card #1:</td><td width="20%"><select name="card1">
<option value="">-----</option>
<?php
$query="SELECT * FROM claim ORDER BY card ASC";
$result=mysql_query($query);
while($row=mysql_fetch_assoc($result)) {
$card=stripslashes($row['card']);
$id1=stripslashes($row['id']);
echo "<option value=\"$card\">$card</option>\n";
}
?>
</select></td>
<td width="20%">Card #2:</td><td width="20%"><select name="card2">
<option value="">-----</option>
<?php
$query="SELECT * FROM claim ORDER BY card ASC";
$result=mysql_query($query);
while($row=mysql_fetch_assoc($result)) {
$card=stripslashes($row['card']);
$id2=stripslashes($row['id']);
echo "<option value=\"$card\"\>$card</option>\n";
}
?>
</select></td>
<td width="20%" align="center"><input type="submit" name="submit" value=" Send! " /></form></td></tr></table>
<div id="decks" style="text-align: center"><?php
$result2=mysql_query("SELECT * FROM claim ORDER BY card ASC");
$count2 = mysql_num_rows($result2);
if($count2==0) {
echo "There are no more cards. Come back next week.";
}
else {
while($row2=mysql_fetch_array($result2)) {
echo "<img src=\"$tcgcardurl";
echo "$row2[card].png\" alt=\"$row2[card]\" title=\"$row2[card]\" /> "; } }?>
</div>
<h2>Logs</h2>
<?php
$query="SELECT * FROM claim_logs ORDER BY date DESC";
$result=mysql_query($query);
while($row=mysql_fetch_assoc($result)) {
$name=stripslashes($row['name']);
$card1=stripslashes($row['card1']);
$card2=stripslashes($row['card2']);
$date=stripslashes($row['date']);
echo "<strong>$name</strong> took $card1 and $card2 on <em>$date</em><br />";
}
?>
<br /><br />
<?php
}
}
elseif($_SERVER['QUERY_STRING']=="claim") {
if (!isset($_POST['submit']) || $_SERVER['REQUEST_METHOD'] != "POST") {
exit("<p>You did not press the submit button; this page should not be accessed directly.</p>");
}
else {
$exploits = "/(content-type|bcc:|cc:|document.cookie|onclick|onload|javascript|alert)/i";
$profanity = "/(beastial|bestial|blowjob|clit|cock|cum|cunilingus|cunillingus|cunnilingus|cunt|ejaculate|fag|felatio|fellatio|fuck|fuk|fuks|gangbang|gangbanged|gangbangs|hotsex|jism|jiz|kock|kondum|kum|kunilingus|orgasim|orgasims|orgasm|orgasms|phonesex|phuk|phuq|porn|pussies|pussy|spunk|xxx)/i";
$spamwords = "/(viagra|phentermine|tramadol|adipex|advai|alprazolam|ambien|ambian|amoxicillin|antivert|blackjack|backgammon|texas|holdem|poker|carisoprodol|ciara|ciprofloxacin|debt|dating|porn)/i";
$bots = "/(Indy|Blaiz|Java|libwww-perl|Python|OutfoxBot|User-Agent|PycURL|AlphaServer)/i";
if (preg_match($bots, $_SERVER['HTTP_USER_AGENT'])) {
exit("<h1>Error</h1>\nKnown spam bots are not allowed.<br /><br />");
}
foreach ($_POST as $key => $value) {
$value = trim($value);
if (empty($value)) {
exit("<h1>Error</h1>\nEmpty fields are not allowed. Please go back and fill in the form properly.<br /><br />");
}
elseif (preg_match($exploits, $value)) {
exit("<h1>Error</h1>\nExploits/malicious scripting attributes aren't allowed.<br /><br />");
}
elseif (preg_match($profanity, $value) || preg_match($spamwords, $value)) {
exit("<h1>Error</h1>\nThat kind of language is not allowed through our form.<br /><br />");
}
$_POST[$key] = stripslashes(strip_tags($value));
}
if (!ereg("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,6})$",strtolower($_POST['email']))) {
exit("<h1>Error</h1>\nThat e-mail address is not valid, please use another.<br /><br />");
}
$name = htmlspecialchars(strip_tags($_POST['name']));
$email = htmlspecialchars(strip_tags($_POST['email']));
$card1 = htmlspecialchars(strip_tags($_POST['card1']));
$card2 = htmlspecialchars(strip_tags($_POST['card2']));
$currentDate = date("F j");
$date = date("m/d/Y");
$card1trim = substr($card1, 0, -2);
$card2trim = substr($card2, 0, -2);
if ($card1trim!=$card2trim) {
$insert = "INSERT INTO claim_logs (`id`, `name`, `card1`, `card2`, `date`) VALUE ('', '$name', '$card1', '$card2', '$date')";
mysql_query($insert, $connect) or die(mysql_error());
$delete1 = "DELETE FROM claim WHERE card='$card1' LIMIT 1";
mysql_query($delete1, $connect) or die(mysql_error());
$delete2 = "DELETE FROM claim WHERE card='$card2' LIMIT 1";
if (mysql_query($delete2, $connect)) {
?>
<h1>Card Claim</h1>
<p class="center">Success!<br /><img src="<?php echo "$tcgcardurl"; echo "$_POST[card1].png"; ?>"> <img src="<?php echo "$tcgcardurl"; echo "$_POST[card2].png"; ?>"><br />
<strong>Card Claim (<?php echo $currentDate; ?>):</strong> <?php echo $_POST[card1]; ?>, <?php echo $_POST[card2]; ?></p>
<?php
}
else {
?>
<h1>Error</h1>
<p>It looks like there was an error in processing your form. Send the information to <?php echo $tcgemail; ?> and we will send you a reply ASAP. Thank you and sorry for the inconvenience.</p>
<?php
}
}
else {
?>
<h1>Error</h1>
<p>You may not take more than one card from the same deck.</p>
<?php
}
}
}
include("$footer"); ?> | gotjane/wildthingtcg | cardclaim.php | PHP | mit | 6,225 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_41) on Tue Mar 05 22:46:36 EST 2013 -->
<TITLE>
FacadeTaskHelper (Apache Ant API)
</TITLE>
<META NAME="date" CONTENT="2013-03-05">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FacadeTaskHelper (Apache Ant API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../../../org/apache/tools/ant/util/facade/ImplementationSpecificArgument.html" title="class in org.apache.tools.ant.util.facade"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/apache/tools/ant/util/facade/FacadeTaskHelper.html" target="_top"><B>FRAMES</B></A>
<A HREF="FacadeTaskHelper.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.tools.ant.util.facade</FONT>
<BR>
Class FacadeTaskHelper</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.tools.ant.util.facade.FacadeTaskHelper</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>FacadeTaskHelper</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
Helper class for facade implementations - encapsulates treatment of
explicit implementation choices, magic properties and
implementation specific command line arguments.
<P>
<P>
<DL>
<DT><B>Since:</B></DT>
<DD>Ant 1.5</DD>
</DL>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#FacadeTaskHelper(java.lang.String)">FacadeTaskHelper</A></B>(java.lang.String defaultValue)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#FacadeTaskHelper(java.lang.String, java.lang.String)">FacadeTaskHelper</A></B>(java.lang.String defaultValue,
java.lang.String magicValue)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#addImplementationArgument(org.apache.tools.ant.util.facade.ImplementationSpecificArgument)">addImplementationArgument</A></B>(<A HREF="../../../../../../org/apache/tools/ant/util/facade/ImplementationSpecificArgument.html" title="class in org.apache.tools.ant.util.facade">ImplementationSpecificArgument</A> arg)</CODE>
<BR>
Command line argument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#getArgs()">getArgs</A></B>()</CODE>
<BR>
Retrieves the command line arguments enabled for the current
facade implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#getExplicitChoice()">getExplicitChoice</A></B>()</CODE>
<BR>
Retrieves the explicit user choice.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#getImplementation()">getImplementation</A></B>()</CODE>
<BR>
Retrieves the implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#getImplementationClasspath(org.apache.tools.ant.Project)">getImplementationClasspath</A></B>(<A HREF="../../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</CODE>
<BR>
The classpath to use when loading the implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#hasBeenSet()">hasBeenSet</A></B>()</CODE>
<BR>
Tests whether the implementation has been chosen by the user
(either via a magic property or explicitly.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#setImplementation(java.lang.String)">setImplementation</A></B>(java.lang.String userChoice)</CODE>
<BR>
Used for explicit user choices.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/util/facade/FacadeTaskHelper.html#setMagicValue(java.lang.String)">setMagicValue</A></B>(java.lang.String magicValue)</CODE>
<BR>
Used to set the value of the magic property.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="FacadeTaskHelper(java.lang.String)"><!-- --></A><H3>
FacadeTaskHelper</H3>
<PRE>
public <B>FacadeTaskHelper</B>(java.lang.String defaultValue)</PRE>
<DL>
<DL>
<DT><B>Parameters:</B><DD><CODE>defaultValue</CODE> - The default value for the implementation.
Must not be null.</DL>
</DL>
<HR>
<A NAME="FacadeTaskHelper(java.lang.String, java.lang.String)"><!-- --></A><H3>
FacadeTaskHelper</H3>
<PRE>
public <B>FacadeTaskHelper</B>(java.lang.String defaultValue,
java.lang.String magicValue)</PRE>
<DL>
<DL>
<DT><B>Parameters:</B><DD><CODE>defaultValue</CODE> - The default value for the implementation.
Must not be null.<DD><CODE>magicValue</CODE> - the value of a magic property that may hold a user.
choice. May be null.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="setMagicValue(java.lang.String)"><!-- --></A><H3>
setMagicValue</H3>
<PRE>
public void <B>setMagicValue</B>(java.lang.String magicValue)</PRE>
<DL>
<DD>Used to set the value of the magic property.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>magicValue</CODE> - the value of a magic property that may hold a user.</DL>
</DD>
</DL>
<HR>
<A NAME="setImplementation(java.lang.String)"><!-- --></A><H3>
setImplementation</H3>
<PRE>
public void <B>setImplementation</B>(java.lang.String userChoice)</PRE>
<DL>
<DD>Used for explicit user choices.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>userChoice</CODE> - the explicitly chosen implementation.</DL>
</DD>
</DL>
<HR>
<A NAME="getImplementation()"><!-- --></A><H3>
getImplementation</H3>
<PRE>
public java.lang.String <B>getImplementation</B>()</PRE>
<DL>
<DD>Retrieves the implementation.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the implementation.</DL>
</DD>
</DL>
<HR>
<A NAME="getExplicitChoice()"><!-- --></A><H3>
getExplicitChoice</H3>
<PRE>
public java.lang.String <B>getExplicitChoice</B>()</PRE>
<DL>
<DD>Retrieves the explicit user choice.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the explicit user choice.</DL>
</DD>
</DL>
<HR>
<A NAME="addImplementationArgument(org.apache.tools.ant.util.facade.ImplementationSpecificArgument)"><!-- --></A><H3>
addImplementationArgument</H3>
<PRE>
public void <B>addImplementationArgument</B>(<A HREF="../../../../../../org/apache/tools/ant/util/facade/ImplementationSpecificArgument.html" title="class in org.apache.tools.ant.util.facade">ImplementationSpecificArgument</A> arg)</PRE>
<DL>
<DD>Command line argument.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>arg</CODE> - an argument to add.</DL>
</DD>
</DL>
<HR>
<A NAME="getArgs()"><!-- --></A><H3>
getArgs</H3>
<PRE>
public java.lang.String[] <B>getArgs</B>()</PRE>
<DL>
<DD>Retrieves the command line arguments enabled for the current
facade implementation.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>an array of command line arguments.</DL>
</DD>
</DL>
<HR>
<A NAME="hasBeenSet()"><!-- --></A><H3>
hasBeenSet</H3>
<PRE>
public boolean <B>hasBeenSet</B>()</PRE>
<DL>
<DD>Tests whether the implementation has been chosen by the user
(either via a magic property or explicitly.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if magic or user choice has be set.<DT><B>Since:</B></DT>
<DD>Ant 1.5.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getImplementationClasspath(org.apache.tools.ant.Project)"><!-- --></A><H3>
getImplementationClasspath</H3>
<PRE>
public <A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>getImplementationClasspath</B>(<A HREF="../../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</A> project)</PRE>
<DL>
<DD>The classpath to use when loading the implementation.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>project</CODE> - the current project
<DT><B>Returns:</B><DD>a Path instance that may be appended to<DT><B>Since:</B></DT>
<DD>Ant 1.8.0</DD>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../../../org/apache/tools/ant/util/facade/ImplementationSpecificArgument.html" title="class in org.apache.tools.ant.util.facade"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/apache/tools/ant/util/facade/FacadeTaskHelper.html" target="_top"><B>FRAMES</B></A>
<A HREF="FacadeTaskHelper.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
| bownie/Brazil | thirdparty/apache-ant-1.9.0/manual/api/org/apache/tools/ant/util/facade/FacadeTaskHelper.html | HTML | mit | 17,449 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:fn="http://www.w3.org/2005/02/xpath-functions">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../doc/otp_doc.css" type="text/css">
<title>Erlang -- ct_cover</title>
</head>
<body bgcolor="white" text="#000000" link="#0000ff" vlink="#ff00ff" alink="#ff0000"><div id="container">
<script id="js" type="text/javascript" language="JavaScript" src="../../../../doc/js/flipmenu/flipmenu.js"></script><script id="js2" type="text/javascript" src="../../../../doc/js/erlresolvelinks.js"></script><script language="JavaScript" type="text/javascript">
<!--
function getWinHeight() {
var myHeight = 0;
if( typeof( window.innerHeight ) == 'number' ) {
//Non-IE
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth ||
document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myHeight = document.body.clientHeight;
}
return myHeight;
}
function setscrollpos() {
var objf=document.getElementById('loadscrollpos');
document.getElementById("leftnav").scrollTop = objf.offsetTop - getWinHeight()/2;
}
function addEvent(obj, evType, fn){
if (obj.addEventListener){
obj.addEventListener(evType, fn, true);
return true;
} else if (obj.attachEvent){
var r = obj.attachEvent("on"+evType, fn);
return r;
} else {
return false;
}
}
addEvent(window, 'load', setscrollpos);
//--></script><div id="leftnav"><div class="innertube">
<img alt="Erlang logo" src="../../../../doc/erlang-logo.png"><br><small><a href="users_guide.html">User's Guide</a><br><a href="index.html">Reference Manual</a><br><a href="release_notes.html">Release Notes</a><br><a href="../pdf/common_test-1.12.pdf">PDF</a><br><a href="../../../../doc/index.html">Top</a></small><p><strong>Common Test</strong><br><strong>Reference Manual</strong><br><small>Version 1.12</small></p>
<br><a href="javascript:openAllFlips()">Expand All</a><br><a href="javascript:closeAllFlips()">Contract All</a><p><small><strong>Table of Contents</strong></small></p>
<ul class="flipMenu">
<li id="no" title="common_test " expanded="false">common_test<ul>
<li><a href="common_test.html">
Top of manual page
</a></li>
<li title="Module:all-0"><a href="common_test.html#Module:all-0">Module:all/0</a></li>
<li title="Module:groups-0"><a href="common_test.html#Module:groups-0">Module:groups/0</a></li>
<li title="Module:suite-0"><a href="common_test.html#Module:suite-0">Module:suite/0</a></li>
<li title="Module:init_per_suite-1"><a href="common_test.html#Module:init_per_suite-1">Module:init_per_suite/1</a></li>
<li title="Module:end_per_suite-1"><a href="common_test.html#Module:end_per_suite-1">Module:end_per_suite/1</a></li>
<li title="Module:group-1"><a href="common_test.html#Module:group-1">Module:group/1</a></li>
<li title="Module:init_per_group-2"><a href="common_test.html#Module:init_per_group-2">Module:init_per_group/2</a></li>
<li title="Module:end_per_group-2"><a href="common_test.html#Module:end_per_group-2">Module:end_per_group/2</a></li>
<li title="Module:init_per_testcase-2"><a href="common_test.html#Module:init_per_testcase-2">Module:init_per_testcase/2</a></li>
<li title="Module:end_per_testcase-2"><a href="common_test.html#Module:end_per_testcase-2">Module:end_per_testcase/2</a></li>
<li title="Module:Testcase-0"><a href="common_test.html#Module:Testcase-0">Module:Testcase/0</a></li>
<li title="Module:Testcase-1"><a href="common_test.html#Module:Testcase-1">Module:Testcase/1</a></li>
</ul>
</li>
<li title="ct_run"><a href="ct_run.html">ct_run</a></li>
<li id="no" title="ct " expanded="false">ct<ul>
<li><a href="ct.html">
Top of manual page
</a></li>
<li title="abort_current_testcase-1"><a href="ct.html#abort_current_testcase-1">abort_current_testcase/1</a></li>
<li title="add_config-2"><a href="ct.html#add_config-2">add_config/2</a></li>
<li title="break-1"><a href="ct.html#break-1">break/1</a></li>
<li title="break-2"><a href="ct.html#break-2">break/2</a></li>
<li title="capture_get-0"><a href="ct.html#capture_get-0">capture_get/0</a></li>
<li title="capture_get-1"><a href="ct.html#capture_get-1">capture_get/1</a></li>
<li title="capture_start-0"><a href="ct.html#capture_start-0">capture_start/0</a></li>
<li title="capture_stop-0"><a href="ct.html#capture_stop-0">capture_stop/0</a></li>
<li title="comment-1"><a href="ct.html#comment-1">comment/1</a></li>
<li title="comment-2"><a href="ct.html#comment-2">comment/2</a></li>
<li title="continue-0"><a href="ct.html#continue-0">continue/0</a></li>
<li title="continue-1"><a href="ct.html#continue-1">continue/1</a></li>
<li title="decrypt_config_file-2"><a href="ct.html#decrypt_config_file-2">decrypt_config_file/2</a></li>
<li title="decrypt_config_file-3"><a href="ct.html#decrypt_config_file-3">decrypt_config_file/3</a></li>
<li title="encrypt_config_file-2"><a href="ct.html#encrypt_config_file-2">encrypt_config_file/2</a></li>
<li title="encrypt_config_file-3"><a href="ct.html#encrypt_config_file-3">encrypt_config_file/3</a></li>
<li title="fail-1"><a href="ct.html#fail-1">fail/1</a></li>
<li title="fail-2"><a href="ct.html#fail-2">fail/2</a></li>
<li title="get_config-1"><a href="ct.html#get_config-1">get_config/1</a></li>
<li title="get_config-2"><a href="ct.html#get_config-2">get_config/2</a></li>
<li title="get_config-3"><a href="ct.html#get_config-3">get_config/3</a></li>
<li title="get_event_mgr_ref-0"><a href="ct.html#get_event_mgr_ref-0">get_event_mgr_ref/0</a></li>
<li title="get_status-0"><a href="ct.html#get_status-0">get_status/0</a></li>
<li title="get_target_name-1"><a href="ct.html#get_target_name-1">get_target_name/1</a></li>
<li title="get_testspec_terms-0"><a href="ct.html#get_testspec_terms-0">get_testspec_terms/0</a></li>
<li title="get_testspec_terms-1"><a href="ct.html#get_testspec_terms-1">get_testspec_terms/1</a></li>
<li title="get_timetrap_info-0"><a href="ct.html#get_timetrap_info-0">get_timetrap_info/0</a></li>
<li title="install-1"><a href="ct.html#install-1">install/1</a></li>
<li title="listenv-1"><a href="ct.html#listenv-1">listenv/1</a></li>
<li title="log-1"><a href="ct.html#log-1">log/1</a></li>
<li title="log-2"><a href="ct.html#log-2">log/2</a></li>
<li title="log-3"><a href="ct.html#log-3">log/3</a></li>
<li title="log-4"><a href="ct.html#log-4">log/4</a></li>
<li title="log-5"><a href="ct.html#log-5">log/5</a></li>
<li title="make_priv_dir-0"><a href="ct.html#make_priv_dir-0">make_priv_dir/0</a></li>
<li title="notify-2"><a href="ct.html#notify-2">notify/2</a></li>
<li title="pal-1"><a href="ct.html#pal-1">pal/1</a></li>
<li title="pal-2"><a href="ct.html#pal-2">pal/2</a></li>
<li title="pal-3"><a href="ct.html#pal-3">pal/3</a></li>
<li title="pal-4"><a href="ct.html#pal-4">pal/4</a></li>
<li title="parse_table-1"><a href="ct.html#parse_table-1">parse_table/1</a></li>
<li title="print-1"><a href="ct.html#print-1">print/1</a></li>
<li title="print-2"><a href="ct.html#print-2">print/2</a></li>
<li title="print-3"><a href="ct.html#print-3">print/3</a></li>
<li title="print-4"><a href="ct.html#print-4">print/4</a></li>
<li title="reload_config-1"><a href="ct.html#reload_config-1">reload_config/1</a></li>
<li title="remove_config-2"><a href="ct.html#remove_config-2">remove_config/2</a></li>
<li title="require-1"><a href="ct.html#require-1">require/1</a></li>
<li title="require-2"><a href="ct.html#require-2">require/2</a></li>
<li title="run-1"><a href="ct.html#run-1">run/1</a></li>
<li title="run-2"><a href="ct.html#run-2">run/2</a></li>
<li title="run-3"><a href="ct.html#run-3">run/3</a></li>
<li title="run_test-1"><a href="ct.html#run_test-1">run_test/1</a></li>
<li title="run_testspec-1"><a href="ct.html#run_testspec-1">run_testspec/1</a></li>
<li title="sleep-1"><a href="ct.html#sleep-1">sleep/1</a></li>
<li title="start_interactive-0"><a href="ct.html#start_interactive-0">start_interactive/0</a></li>
<li title="step-3"><a href="ct.html#step-3">step/3</a></li>
<li title="step-4"><a href="ct.html#step-4">step/4</a></li>
<li title="stop_interactive-0"><a href="ct.html#stop_interactive-0">stop_interactive/0</a></li>
<li title="sync_notify-2"><a href="ct.html#sync_notify-2">sync_notify/2</a></li>
<li title="testcases-2"><a href="ct.html#testcases-2">testcases/2</a></li>
<li title="timetrap-1"><a href="ct.html#timetrap-1">timetrap/1</a></li>
<li title="userdata-2"><a href="ct.html#userdata-2">userdata/2</a></li>
<li title="userdata-3"><a href="ct.html#userdata-3">userdata/3</a></li>
</ul>
</li>
<li id="no" title="ct_master " expanded="false">ct_master<ul>
<li><a href="ct_master.html">
Top of manual page
</a></li>
<li title="abort-0"><a href="ct_master.html#abort-0">abort/0</a></li>
<li title="abort-1"><a href="ct_master.html#abort-1">abort/1</a></li>
<li title="basic_html-1"><a href="ct_master.html#basic_html-1">basic_html/1</a></li>
<li title="get_event_mgr_ref-0"><a href="ct_master.html#get_event_mgr_ref-0">get_event_mgr_ref/0</a></li>
<li title="progress-0"><a href="ct_master.html#progress-0">progress/0</a></li>
<li title="run-1"><a href="ct_master.html#run-1">run/1</a></li>
<li title="run-3"><a href="ct_master.html#run-3">run/3</a></li>
<li title="run-4"><a href="ct_master.html#run-4">run/4</a></li>
<li title="run_on_node-2"><a href="ct_master.html#run_on_node-2">run_on_node/2</a></li>
<li title="run_on_node-3"><a href="ct_master.html#run_on_node-3">run_on_node/3</a></li>
<li title="run_test-2"><a href="ct_master.html#run_test-2">run_test/2</a></li>
</ul>
</li>
<li id="loadscrollpos" title="ct_cover " expanded="true">ct_cover<ul>
<li><a href="ct_cover.html">
Top of manual page
</a></li>
<li title="add_nodes-1"><a href="ct_cover.html#add_nodes-1">add_nodes/1</a></li>
<li title="cross_cover_analyse-2"><a href="ct_cover.html#cross_cover_analyse-2">cross_cover_analyse/2</a></li>
<li title="remove_nodes-1"><a href="ct_cover.html#remove_nodes-1">remove_nodes/1</a></li>
</ul>
</li>
<li id="no" title="ct_ftp " expanded="false">ct_ftp<ul>
<li><a href="ct_ftp.html">
Top of manual page
</a></li>
<li title="cd-2"><a href="ct_ftp.html#cd-2">cd/2</a></li>
<li title="close-1"><a href="ct_ftp.html#close-1">close/1</a></li>
<li title="delete-2"><a href="ct_ftp.html#delete-2">delete/2</a></li>
<li title="get-3"><a href="ct_ftp.html#get-3">get/3</a></li>
<li title="ls-2"><a href="ct_ftp.html#ls-2">ls/2</a></li>
<li title="open-1"><a href="ct_ftp.html#open-1">open/1</a></li>
<li title="put-3"><a href="ct_ftp.html#put-3">put/3</a></li>
<li title="recv-2"><a href="ct_ftp.html#recv-2">recv/2</a></li>
<li title="recv-3"><a href="ct_ftp.html#recv-3">recv/3</a></li>
<li title="send-2"><a href="ct_ftp.html#send-2">send/2</a></li>
<li title="send-3"><a href="ct_ftp.html#send-3">send/3</a></li>
<li title="type-2"><a href="ct_ftp.html#type-2">type/2</a></li>
</ul>
</li>
<li id="no" title="ct_ssh " expanded="false">ct_ssh<ul>
<li><a href="ct_ssh.html">
Top of manual page
</a></li>
<li title="apread-4"><a href="ct_ssh.html#apread-4">apread/4</a></li>
<li title="apread-5"><a href="ct_ssh.html#apread-5">apread/5</a></li>
<li title="apwrite-4"><a href="ct_ssh.html#apwrite-4">apwrite/4</a></li>
<li title="apwrite-5"><a href="ct_ssh.html#apwrite-5">apwrite/5</a></li>
<li title="aread-3"><a href="ct_ssh.html#aread-3">aread/3</a></li>
<li title="aread-4"><a href="ct_ssh.html#aread-4">aread/4</a></li>
<li title="awrite-3"><a href="ct_ssh.html#awrite-3">awrite/3</a></li>
<li title="awrite-4"><a href="ct_ssh.html#awrite-4">awrite/4</a></li>
<li title="close-2"><a href="ct_ssh.html#close-2">close/2</a></li>
<li title="close-3"><a href="ct_ssh.html#close-3">close/3</a></li>
<li title="connect-1"><a href="ct_ssh.html#connect-1">connect/1</a></li>
<li title="connect-2"><a href="ct_ssh.html#connect-2">connect/2</a></li>
<li title="connect-3"><a href="ct_ssh.html#connect-3">connect/3</a></li>
<li title="del_dir-2"><a href="ct_ssh.html#del_dir-2">del_dir/2</a></li>
<li title="del_dir-3"><a href="ct_ssh.html#del_dir-3">del_dir/3</a></li>
<li title="delete-2"><a href="ct_ssh.html#delete-2">delete/2</a></li>
<li title="delete-3"><a href="ct_ssh.html#delete-3">delete/3</a></li>
<li title="disconnect-1"><a href="ct_ssh.html#disconnect-1">disconnect/1</a></li>
<li title="exec-2"><a href="ct_ssh.html#exec-2">exec/2</a></li>
<li title="exec-3"><a href="ct_ssh.html#exec-3">exec/3</a></li>
<li title="exec-4"><a href="ct_ssh.html#exec-4">exec/4</a></li>
<li title="get_file_info-2"><a href="ct_ssh.html#get_file_info-2">get_file_info/2</a></li>
<li title="get_file_info-3"><a href="ct_ssh.html#get_file_info-3">get_file_info/3</a></li>
<li title="list_dir-2"><a href="ct_ssh.html#list_dir-2">list_dir/2</a></li>
<li title="list_dir-3"><a href="ct_ssh.html#list_dir-3">list_dir/3</a></li>
<li title="make_dir-2"><a href="ct_ssh.html#make_dir-2">make_dir/2</a></li>
<li title="make_dir-3"><a href="ct_ssh.html#make_dir-3">make_dir/3</a></li>
<li title="make_symlink-3"><a href="ct_ssh.html#make_symlink-3">make_symlink/3</a></li>
<li title="make_symlink-4"><a href="ct_ssh.html#make_symlink-4">make_symlink/4</a></li>
<li title="open-3"><a href="ct_ssh.html#open-3">open/3</a></li>
<li title="open-4"><a href="ct_ssh.html#open-4">open/4</a></li>
<li title="opendir-2"><a href="ct_ssh.html#opendir-2">opendir/2</a></li>
<li title="opendir-3"><a href="ct_ssh.html#opendir-3">opendir/3</a></li>
<li title="position-3"><a href="ct_ssh.html#position-3">position/3</a></li>
<li title="position-4"><a href="ct_ssh.html#position-4">position/4</a></li>
<li title="pread-4"><a href="ct_ssh.html#pread-4">pread/4</a></li>
<li title="pread-5"><a href="ct_ssh.html#pread-5">pread/5</a></li>
<li title="pwrite-4"><a href="ct_ssh.html#pwrite-4">pwrite/4</a></li>
<li title="pwrite-5"><a href="ct_ssh.html#pwrite-5">pwrite/5</a></li>
<li title="read-3"><a href="ct_ssh.html#read-3">read/3</a></li>
<li title="read-4"><a href="ct_ssh.html#read-4">read/4</a></li>
<li title="read_file-2"><a href="ct_ssh.html#read_file-2">read_file/2</a></li>
<li title="read_file-3"><a href="ct_ssh.html#read_file-3">read_file/3</a></li>
<li title="read_file_info-2"><a href="ct_ssh.html#read_file_info-2">read_file_info/2</a></li>
<li title="read_file_info-3"><a href="ct_ssh.html#read_file_info-3">read_file_info/3</a></li>
<li title="read_link-2"><a href="ct_ssh.html#read_link-2">read_link/2</a></li>
<li title="read_link-3"><a href="ct_ssh.html#read_link-3">read_link/3</a></li>
<li title="read_link_info-2"><a href="ct_ssh.html#read_link_info-2">read_link_info/2</a></li>
<li title="read_link_info-3"><a href="ct_ssh.html#read_link_info-3">read_link_info/3</a></li>
<li title="receive_response-2"><a href="ct_ssh.html#receive_response-2">receive_response/2</a></li>
<li title="receive_response-3"><a href="ct_ssh.html#receive_response-3">receive_response/3</a></li>
<li title="receive_response-4"><a href="ct_ssh.html#receive_response-4">receive_response/4</a></li>
<li title="rename-3"><a href="ct_ssh.html#rename-3">rename/3</a></li>
<li title="rename-4"><a href="ct_ssh.html#rename-4">rename/4</a></li>
<li title="send-3"><a href="ct_ssh.html#send-3">send/3</a></li>
<li title="send-4"><a href="ct_ssh.html#send-4">send/4</a></li>
<li title="send-5"><a href="ct_ssh.html#send-5">send/5</a></li>
<li title="send_and_receive-3"><a href="ct_ssh.html#send_and_receive-3">send_and_receive/3</a></li>
<li title="send_and_receive-4"><a href="ct_ssh.html#send_and_receive-4">send_and_receive/4</a></li>
<li title="send_and_receive-5"><a href="ct_ssh.html#send_and_receive-5">send_and_receive/5</a></li>
<li title="send_and_receive-6"><a href="ct_ssh.html#send_and_receive-6">send_and_receive/6</a></li>
<li title="session_close-2"><a href="ct_ssh.html#session_close-2">session_close/2</a></li>
<li title="session_open-1"><a href="ct_ssh.html#session_open-1">session_open/1</a></li>
<li title="session_open-2"><a href="ct_ssh.html#session_open-2">session_open/2</a></li>
<li title="sftp_connect-1"><a href="ct_ssh.html#sftp_connect-1">sftp_connect/1</a></li>
<li title="subsystem-3"><a href="ct_ssh.html#subsystem-3">subsystem/3</a></li>
<li title="subsystem-4"><a href="ct_ssh.html#subsystem-4">subsystem/4</a></li>
<li title="write-3"><a href="ct_ssh.html#write-3">write/3</a></li>
<li title="write-4"><a href="ct_ssh.html#write-4">write/4</a></li>
<li title="write_file-3"><a href="ct_ssh.html#write_file-3">write_file/3</a></li>
<li title="write_file-4"><a href="ct_ssh.html#write_file-4">write_file/4</a></li>
<li title="write_file_info-3"><a href="ct_ssh.html#write_file_info-3">write_file_info/3</a></li>
<li title="write_file_info-4"><a href="ct_ssh.html#write_file_info-4">write_file_info/4</a></li>
</ul>
</li>
<li id="no" title="ct_netconfc " expanded="false">ct_netconfc<ul>
<li><a href="ct_netconfc.html">
Top of manual page
</a></li>
<li title="action-2"><a href="ct_netconfc.html#action-2">action/2</a></li>
<li title="action-3"><a href="ct_netconfc.html#action-3">action/3</a></li>
<li title="close_session-1"><a href="ct_netconfc.html#close_session-1">close_session/1</a></li>
<li title="close_session-2"><a href="ct_netconfc.html#close_session-2">close_session/2</a></li>
<li title="copy_config-3"><a href="ct_netconfc.html#copy_config-3">copy_config/3</a></li>
<li title="copy_config-4"><a href="ct_netconfc.html#copy_config-4">copy_config/4</a></li>
<li title="create_subscription-1"><a href="ct_netconfc.html#create_subscription-1">create_subscription/1</a></li>
<li title="create_subscription-2"><a href="ct_netconfc.html#create_subscription-2">create_subscription/2</a></li>
<li title="create_subscription-3"><a href="ct_netconfc.html#create_subscription-3">create_subscription/3</a></li>
<li title="create_subscription-4"><a href="ct_netconfc.html#create_subscription-4">create_subscription/4</a></li>
<li title="create_subscription-5"><a href="ct_netconfc.html#create_subscription-5">create_subscription/5</a></li>
<li title="create_subscription-6"><a href="ct_netconfc.html#create_subscription-6">create_subscription/6</a></li>
<li title="delete_config-2"><a href="ct_netconfc.html#delete_config-2">delete_config/2</a></li>
<li title="delete_config-3"><a href="ct_netconfc.html#delete_config-3">delete_config/3</a></li>
<li title="edit_config-3"><a href="ct_netconfc.html#edit_config-3">edit_config/3</a></li>
<li title="edit_config-4"><a href="ct_netconfc.html#edit_config-4">edit_config/4</a></li>
<li title="edit_config-5"><a href="ct_netconfc.html#edit_config-5">edit_config/5</a></li>
<li title="get-2"><a href="ct_netconfc.html#get-2">get/2</a></li>
<li title="get-3"><a href="ct_netconfc.html#get-3">get/3</a></li>
<li title="get_capabilities-1"><a href="ct_netconfc.html#get_capabilities-1">get_capabilities/1</a></li>
<li title="get_capabilities-2"><a href="ct_netconfc.html#get_capabilities-2">get_capabilities/2</a></li>
<li title="get_config-3"><a href="ct_netconfc.html#get_config-3">get_config/3</a></li>
<li title="get_config-4"><a href="ct_netconfc.html#get_config-4">get_config/4</a></li>
<li title="get_event_streams-2"><a href="ct_netconfc.html#get_event_streams-2">get_event_streams/2</a></li>
<li title="get_event_streams-3"><a href="ct_netconfc.html#get_event_streams-3">get_event_streams/3</a></li>
<li title="get_session_id-1"><a href="ct_netconfc.html#get_session_id-1">get_session_id/1</a></li>
<li title="get_session_id-2"><a href="ct_netconfc.html#get_session_id-2">get_session_id/2</a></li>
<li title="hello-1"><a href="ct_netconfc.html#hello-1">hello/1</a></li>
<li title="hello-2"><a href="ct_netconfc.html#hello-2">hello/2</a></li>
<li title="hello-3"><a href="ct_netconfc.html#hello-3">hello/3</a></li>
<li title="kill_session-2"><a href="ct_netconfc.html#kill_session-2">kill_session/2</a></li>
<li title="kill_session-3"><a href="ct_netconfc.html#kill_session-3">kill_session/3</a></li>
<li title="lock-2"><a href="ct_netconfc.html#lock-2">lock/2</a></li>
<li title="lock-3"><a href="ct_netconfc.html#lock-3">lock/3</a></li>
<li title="only_open-1"><a href="ct_netconfc.html#only_open-1">only_open/1</a></li>
<li title="only_open-2"><a href="ct_netconfc.html#only_open-2">only_open/2</a></li>
<li title="open-1"><a href="ct_netconfc.html#open-1">open/1</a></li>
<li title="open-2"><a href="ct_netconfc.html#open-2">open/2</a></li>
<li title="send-2"><a href="ct_netconfc.html#send-2">send/2</a></li>
<li title="send-3"><a href="ct_netconfc.html#send-3">send/3</a></li>
<li title="send_rpc-2"><a href="ct_netconfc.html#send_rpc-2">send_rpc/2</a></li>
<li title="send_rpc-3"><a href="ct_netconfc.html#send_rpc-3">send_rpc/3</a></li>
<li title="unlock-2"><a href="ct_netconfc.html#unlock-2">unlock/2</a></li>
<li title="unlock-3"><a href="ct_netconfc.html#unlock-3">unlock/3</a></li>
</ul>
</li>
<li id="no" title="ct_rpc " expanded="false">ct_rpc<ul>
<li><a href="ct_rpc.html">
Top of manual page
</a></li>
<li title="app_node-2"><a href="ct_rpc.html#app_node-2">app_node/2</a></li>
<li title="app_node-3"><a href="ct_rpc.html#app_node-3">app_node/3</a></li>
<li title="app_node-4"><a href="ct_rpc.html#app_node-4">app_node/4</a></li>
<li title="call-4"><a href="ct_rpc.html#call-4">call/4</a></li>
<li title="call-5"><a href="ct_rpc.html#call-5">call/5</a></li>
<li title="call-6"><a href="ct_rpc.html#call-6">call/6</a></li>
<li title="cast-4"><a href="ct_rpc.html#cast-4">cast/4</a></li>
<li title="cast-5"><a href="ct_rpc.html#cast-5">cast/5</a></li>
</ul>
</li>
<li id="no" title="ct_snmp " expanded="false">ct_snmp<ul>
<li><a href="ct_snmp.html">
Top of manual page
</a></li>
<li title="get_next_values-3"><a href="ct_snmp.html#get_next_values-3">get_next_values/3</a></li>
<li title="get_values-3"><a href="ct_snmp.html#get_values-3">get_values/3</a></li>
<li title="load_mibs-1"><a href="ct_snmp.html#load_mibs-1">load_mibs/1</a></li>
<li title="register_agents-2"><a href="ct_snmp.html#register_agents-2">register_agents/2</a></li>
<li title="register_users-2"><a href="ct_snmp.html#register_users-2">register_users/2</a></li>
<li title="register_usm_users-2"><a href="ct_snmp.html#register_usm_users-2">register_usm_users/2</a></li>
<li title="set_info-1"><a href="ct_snmp.html#set_info-1">set_info/1</a></li>
<li title="set_values-4"><a href="ct_snmp.html#set_values-4">set_values/4</a></li>
<li title="start-2"><a href="ct_snmp.html#start-2">start/2</a></li>
<li title="start-3"><a href="ct_snmp.html#start-3">start/3</a></li>
<li title="stop-1"><a href="ct_snmp.html#stop-1">stop/1</a></li>
<li title="unload_mibs-1"><a href="ct_snmp.html#unload_mibs-1">unload_mibs/1</a></li>
<li title="unregister_agents-1"><a href="ct_snmp.html#unregister_agents-1">unregister_agents/1</a></li>
<li title="unregister_agents-2"><a href="ct_snmp.html#unregister_agents-2">unregister_agents/2</a></li>
<li title="unregister_users-1"><a href="ct_snmp.html#unregister_users-1">unregister_users/1</a></li>
<li title="unregister_users-2"><a href="ct_snmp.html#unregister_users-2">unregister_users/2</a></li>
<li title="unregister_usm_users-1"><a href="ct_snmp.html#unregister_usm_users-1">unregister_usm_users/1</a></li>
<li title="unregister_usm_users-2"><a href="ct_snmp.html#unregister_usm_users-2">unregister_usm_users/2</a></li>
</ul>
</li>
<li id="no" title="ct_telnet " expanded="false">ct_telnet<ul>
<li><a href="ct_telnet.html">
Top of manual page
</a></li>
<li title="close-1"><a href="ct_telnet.html#close-1">close/1</a></li>
<li title="cmd-2"><a href="ct_telnet.html#cmd-2">cmd/2</a></li>
<li title="cmd-3"><a href="ct_telnet.html#cmd-3">cmd/3</a></li>
<li title="cmdf-3"><a href="ct_telnet.html#cmdf-3">cmdf/3</a></li>
<li title="cmdf-4"><a href="ct_telnet.html#cmdf-4">cmdf/4</a></li>
<li title="expect-2"><a href="ct_telnet.html#expect-2">expect/2</a></li>
<li title="expect-3"><a href="ct_telnet.html#expect-3">expect/3</a></li>
<li title="get_data-1"><a href="ct_telnet.html#get_data-1">get_data/1</a></li>
<li title="open-1"><a href="ct_telnet.html#open-1">open/1</a></li>
<li title="open-2"><a href="ct_telnet.html#open-2">open/2</a></li>
<li title="open-3"><a href="ct_telnet.html#open-3">open/3</a></li>
<li title="open-4"><a href="ct_telnet.html#open-4">open/4</a></li>
<li title="send-2"><a href="ct_telnet.html#send-2">send/2</a></li>
<li title="send-3"><a href="ct_telnet.html#send-3">send/3</a></li>
<li title="sendf-3"><a href="ct_telnet.html#sendf-3">sendf/3</a></li>
<li title="sendf-4"><a href="ct_telnet.html#sendf-4">sendf/4</a></li>
</ul>
</li>
<li id="no" title="unix_telnet " expanded="false">unix_telnet<ul>
<li><a href="unix_telnet.html">
Top of manual page
</a></li>
<li title="connect-6"><a href="unix_telnet.html#connect-6">connect/6</a></li>
<li title="get_prompt_regexp-0"><a href="unix_telnet.html#get_prompt_regexp-0">get_prompt_regexp/0</a></li>
</ul>
</li>
<li id="no" title="ct_slave " expanded="false">ct_slave<ul>
<li><a href="ct_slave.html">
Top of manual page
</a></li>
<li title="start-1"><a href="ct_slave.html#start-1">start/1</a></li>
<li title="start-2"><a href="ct_slave.html#start-2">start/2</a></li>
<li title="start-3"><a href="ct_slave.html#start-3">start/3</a></li>
<li title="stop-1"><a href="ct_slave.html#stop-1">stop/1</a></li>
<li title="stop-2"><a href="ct_slave.html#stop-2">stop/2</a></li>
</ul>
</li>
<li id="no" title="ct_hooks " expanded="false">ct_hooks<ul>
<li><a href="ct_hooks.html">
Top of manual page
</a></li>
<li title="Module:init-2"><a href="ct_hooks.html#Module:init-2">Module:init/2</a></li>
<li title="Module:pre_init_per_suite-3"><a href="ct_hooks.html#Module:pre_init_per_suite-3">Module:pre_init_per_suite/3</a></li>
<li title="Module:post_init_per_suite-4"><a href="ct_hooks.html#Module:post_init_per_suite-4">Module:post_init_per_suite/4</a></li>
<li title="Module:pre_init_per_group-3"><a href="ct_hooks.html#Module:pre_init_per_group-3">Module:pre_init_per_group/3</a></li>
<li title="Module:post_init_per_group-4"><a href="ct_hooks.html#Module:post_init_per_group-4">Module:post_init_per_group/4</a></li>
<li title="Module:pre_init_per_testcase-3"><a href="ct_hooks.html#Module:pre_init_per_testcase-3">Module:pre_init_per_testcase/3</a></li>
<li title="Module:post_init_per_testcase-4"><a href="ct_hooks.html#Module:post_init_per_testcase-4">Module:post_init_per_testcase/4</a></li>
<li title="Module:pre_end_per_testcase-3"><a href="ct_hooks.html#Module:pre_end_per_testcase-3">Module:pre_end_per_testcase/3</a></li>
<li title="Module:post_end_per_testcase-4"><a href="ct_hooks.html#Module:post_end_per_testcase-4">Module:post_end_per_testcase/4</a></li>
<li title="Module:pre_end_per_group-3"><a href="ct_hooks.html#Module:pre_end_per_group-3">Module:pre_end_per_group/3</a></li>
<li title="Module:post_end_per_group-4"><a href="ct_hooks.html#Module:post_end_per_group-4">Module:post_end_per_group/4</a></li>
<li title="Module:pre_end_per_suite-3"><a href="ct_hooks.html#Module:pre_end_per_suite-3">Module:pre_end_per_suite/3</a></li>
<li title="Module:post_end_per_suite-4"><a href="ct_hooks.html#Module:post_end_per_suite-4">Module:post_end_per_suite/4</a></li>
<li title="Module:on_tc_fail-3"><a href="ct_hooks.html#Module:on_tc_fail-3">Module:on_tc_fail/3</a></li>
<li title="Module:on_tc_skip-3"><a href="ct_hooks.html#Module:on_tc_skip-3">Module:on_tc_skip/3</a></li>
<li title="Module:terminate-1"><a href="ct_hooks.html#Module:terminate-1">Module:terminate/1</a></li>
<li title="Module:id-1"><a href="ct_hooks.html#Module:id-1">Module:id/1</a></li>
</ul>
</li>
<li id="no" title="ct_property_test " expanded="false">ct_property_test<ul>
<li><a href="ct_property_test.html">
Top of manual page
</a></li>
<li title="init_per_suite-1"><a href="ct_property_test.html#init_per_suite-1">init_per_suite/1</a></li>
<li title="quickcheck-2"><a href="ct_property_test.html#quickcheck-2">quickcheck/2</a></li>
</ul>
</li>
</ul>
</div></div>
<div id="content">
<div class="innertube">
<!-- refpage --><center><h1>ct_cover</h1></center>
<h3>MODULE</h3>
<div class="REFBODY">ct_cover</div>
<h3>MODULE SUMMARY</h3>
<div class="REFBODY">Common Test framework code coverage support module.
</div>
<h3>DESCRIPTION</h3>
<div class="REFBODY"><p>
<p><span class="code">Common Test</span> framework code coverage support module.</p>
<p>This module exports help functions for performing code coverage
analysis.</p>
</p></div>
<h3>EXPORTS</h3>
<p><a name="add_nodes-1"><span class="bold_code">add_nodes(Nodes) -> {ok, StartedNodes} | {error, Reason}</span></a><br></p>
<div class="REFBODY">
<p>Types:</p>
<div class="REFTYPES">
<span class="bold_code">Nodes = [atom()]</span><br>
</div>
<div class="REFTYPES">
<span class="bold_code">StartedNodes = [atom()]</span><br>
</div>
<div class="REFTYPES">
<span class="bold_code">Reason = cover_not_running | not_main_node</span><br>
</div>
</div>
<div class="REFBODY"><p><a name="add_nodes-1"></a>
<p>Adds nodes to current cover test. Notice that this only works if
cover support is active.</p>
<p>To have effect, this function is to be called from
<span class="code">init_per_suite/1</span> (see
<span class="bold_code"><a href="common_test.html"><span class="code">common_test</span></a></span>)
before any tests are performed.</p>
</p></div>
<p><a name="cross_cover_analyse-2"><span class="bold_code">cross_cover_analyse(Level, Tests) -> ok</span></a><br></p>
<div class="REFBODY">
<p>Types:</p>
<div class="REFTYPES">
<span class="bold_code">Level = overview | details</span><br>
</div>
<div class="REFTYPES">
<span class="bold_code">Tests = [{Tag, Dir}]</span><br>
</div>
<div class="REFTYPES">
<span class="bold_code">Tag = atom()</span><br>
</div>
<div class="REFTYPES">
<span class="bold_code">Dir = string()</span><br>
</div>
</div>
<div class="REFBODY"><p><a name="cross_cover_analyse-2"></a>
<p>Accumulates cover results over multiple tests. See section
<span class="bold_code"><a href="cover_chapter.html#cross_cover">Cross Cover
Analysis</a></span> in the Users's Guide.</p>
</p></div>
<p><a name="remove_nodes-1"><span class="bold_code">remove_nodes(Nodes) -> ok | {error, Reason}</span></a><br></p>
<div class="REFBODY">
<p>Types:</p>
<div class="REFTYPES">
<span class="bold_code">Nodes = [atom()]</span><br>
</div>
<div class="REFTYPES">
<span class="bold_code">Reason = cover_not_running | not_main_node</span><br>
</div>
</div>
<div class="REFBODY"><p><a name="remove_nodes-1"></a>
<p>Removes nodes from the current cover test.</p>
<p>Call this function to stop cover test on nodes previously
added with
<span class="bold_code"><a href="#add_nodes-1"><span class="code">ct_cover:add_nodes/1</span></a></span>.
Results on the remote node are transferred to the <span class="code">Common Test</span>
node.</p>
</p></div>
</div>
<div class="footer">
<hr>
<p>Copyright © 2003-2016 Ericsson AB. All Rights Reserved.</p>
</div>
</div>
</div></body>
</html>
| Thuzi/RabbitMQ2Go | tools/erlang/tools/binary/lib/common_test-1.12/doc/html/ct_cover.html | HTML | mit | 32,188 |
//
// HuiJinMessageView.h
// HuiJing
//
// Created by Peter on 6/22/16.
// Copyright © 2016 Peter. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HuiJinMessageView : UIView
@end
| HeterPu/PHAutoCubeMenu | PHAutoCubeMenu/HuiJinMessageView.h | C | mit | 198 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_121) on Sun Feb 04 21:46:32 CET 2018 -->
<title>com.github.jhanne82.documenttree.simulation.utils</title>
<meta name="date" content="2018-02-04">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<h1 class="bar"><a href="../../../../../../com/github/jhanne82/documenttree/simulation/utils/package-summary.html" target="classFrame">com.github.jhanne82.documenttree.simulation.utils</a></h1>
<div class="indexContainer">
<h2 title="Classes">Classes</h2>
<ul title="Classes">
<li><a href="RandomNumberGenerator.html" title="class in com.github.jhanne82.documenttree.simulation.utils" target="classFrame">RandomNumberGenerator</a></li>
<li><a href="SimulationResult.html" title="class in com.github.jhanne82.documenttree.simulation.utils" target="classFrame">SimulationResult</a></li>
<li><a href="Utility.html" title="class in com.github.jhanne82.documenttree.simulation.utils" target="classFrame">Utility</a></li>
</ul>
</div>
</body>
</html>
| jhanne82/DocumentTree | src/main/javadoc/com/github/jhanne82/documenttree/simulation/utils/package-frame.html | HTML | mit | 1,252 |
# Demo/playground server with a LAMP stack
This is a demo/playground machine set up with Vagrant and Ansible. It contains a CentOS VM with a LAMP stack, Wordpress, and PHPMyAdmin.
It is useful for showing how Ansible works, or as a test-environment for developing in PHP.
## Dependencies
The setup is OS independent, as long as you have the following tools installed:
* [Git](https://git-scm.com/downloads) (on Windows, also install Git Bash)
* [VirtualBox, including the "Extension pack"](https://www.virtualbox.org/wiki/Downloads/)
* [Vagrant](https://www.vagrantup.com/downloads.html)
* Optionally, [Ansible](http://docs.ansible.com/intro_installation.html) (on [supported platforms](http://docs.ansible.com/intro_installation.html#control-machine-requirements))
## Getting started
Open a Bash shell (Git Bash on Windows), go to a suitable directory to store this project and issue the following commands:
```ShellSession
$ git clone --config core.autocrlf=input https://github.com/bertvv/lampstack
$ cd lampstack
$ ./scripts/dependencies.sh
$ vagrant up
```
**Warning** On Windows, it is essential that you include the setting `core.autocrlf=input` when cloning. If you forget, all files will get DOS line endings, and the setup will fail.
The VM will be attached to VirtualBox's [default Host-only network adapter](https://askubuntu.com/questions/198452/no-host-only-adapter-selected) and has a static IP address, 192.168.56.77.
To shut down the VM, execute `vagrant halt`. Start it again with `vagrant up`. If you made a mistake and the VM is broken, do
```ShellSession
$ vagrant destroy -f
$ vagrant up
```
## Accessing the virtual machine
* To start using the Wordpress site, surf to <http://192.168.56.77/wordpress/>
* To manage the database, surf to <http://192.168.56.77/phpmyadmin/>
* PHP code dropped in the `www/` directory is immediately visible on the website at <http://192.168.56.77/>
* To get shell access via ssh, do
* `vagrant ssh` (no password)
* or `ssh vagrant@192.168.56.77` (password `vagrant`)
* prepend all commands that need root privileges with `sudo` (no password required)
| bertvv/lampstack | README.md | Markdown | mit | 2,132 |
#pragma once
#include "../common/InnoType.h"
#include "GLRenderPassComponent.h"
#include "GLShaderProgramComponent.h"
class GLShadowRenderPassComponent
{
public:
~GLShadowRenderPassComponent() {};
static GLShadowRenderPassComponent& get()
{
static GLShadowRenderPassComponent instance;
return instance;
}
ObjectStatus m_objectStatus = ObjectStatus::SHUTDOWN;
EntityID m_parentEntity;
GLRenderPassComponent* m_DirLight_GLRPC;
GLRenderPassComponent* m_PointLight_GLRPC;
GLShaderProgramComponent* m_SPC;
ShaderFilePaths m_shaderFilePaths = { "GL4.0//shadowPassVertex.sf" , "", "GL4.0//shadowPassFragment.sf" };
GLuint m_shadowPass_uni_p;
GLuint m_shadowPass_uni_v;
GLuint m_shadowPass_uni_m;
private:
GLShadowRenderPassComponent() {};
};
| zhangdoa/InnocenceEngine-C- | source/engine/component/GLShadowRenderPassComponent.h | C | mit | 760 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>flocq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.13.0 / flocq - 2.3.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
flocq
<small>
2.3.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-19 20:43:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-19 20:43:27 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 3 Virtual package relying on a GMP lib system installation
coq 8.13.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.2 Official release 4.10.2
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "guillaume.melquiond@inria.fr"
homepage: "https://flocq.gitlabpages.inria.fr/"
dev-repo: "git+https://gitlab.inria.fr/flocq/flocq.git"
bug-reports: "https://gitlab.inria.fr/flocq/flocq/issues"
license: "LGPL-3.0-or-later"
build: [
["./configure" "--libdir" "%{lib}%/coq/user-contrib/Flocq"]
["./remake" "-j%{jobs}%"]
]
install: ["./remake" "install"]
depends: [
"coq" {>= "8.4pl4" & < "8.5~"}
]
tags: [ "keyword:floating-point arithmetic" ]
authors: [ "Sylvie Boldo <sylvie.boldo@inria.fr>" "Guillaume Melquiond <guillaume.melquiond@inria.fr>" ]
synopsis: "A floating-point formalization for the Coq system"
url {
src: "https://flocq.gitlabpages.inria.fr/releases/flocq-2.3.0.tar.gz"
checksum: "md5=0dc9fb2a46f9d8ffcce17f287fc3bd8b"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-flocq.2.3.0 coq.8.13.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.13.0).
The following dependencies couldn't be met:
- coq-flocq -> coq < 8.5~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-flocq.2.3.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.2-2.0.6/released/8.13.0/flocq/2.3.0.html | HTML | mit | 6,756 |
package sdk.jassinaturas.clients;
import java.util.List;
import sdk.jassinaturas.clients.attributes.Invoice;
import sdk.jassinaturas.clients.attributes.Payment;
import sdk.jassinaturas.communicators.InvoiceCommunicator;
public class InvoiceClient {
private final InvoiceCommunicator invoiceCommunicator;
public InvoiceClient(final InvoiceCommunicator invoiceCommunicator) {
this.invoiceCommunicator = invoiceCommunicator;
}
public List<Payment> payments(final int id) {
Invoice invoice = invoiceCommunicator.payments(id);
return invoice.getPayments();
}
public Invoice show(final int id) {
Invoice invoice = invoiceCommunicator.show(id);
return invoice;
}
public Invoice retry(final int id) {
Invoice invoice = invoiceCommunicator.retry(id);
return invoice;
}
}
| paniko0/jassinaturas | src/main/java/sdk/jassinaturas/clients/InvoiceClient.java | Java | mit | 862 |
namespace Parts.Models
{
public class MagentoImportProductSoapModel
{
public string Sku { get; set; }
public string Name { get; set; }
public string Price { get; set; }
public string Manufacturer { get; set; }
public string ShortDescription { get; set; }
public string Status { get; set; }
public string Visibility { get; set; }
public string Weight { get; set; }
public string TaxClassId { get; set; }
public string[] Websites { get; set; }
public string Description { get; set; }
public int[] ModelIds { get; set; }
}
}
| dechoD/Telerik-Homeworks | Other/MagentoImportFileGenerator/Parts.Models/MagentoImportProductSoapModel.cs | C# | mit | 644 |
<h3>
Angular 2 Seed
</h3>
<nav>
<a [routerLink]="['/']">
Home
</a> |
<a [routerLink]="['/about']">
About
</a> |
<a [routerLink]="['/github', 'angular']">
Github Repos
</a>
</nav>
<main>
<router-outlet></router-outlet>
</main>
<ngrx-store-log-monitor toggleCommand="ctrl-h" positionCommand="ctrl-m"></ngrx-store-log-monitor>
<footer>
© 2016
</footer> | erfanelahi/myRxjs | src/app/app.html | HTML | mit | 382 |
// Code generated by soracom-cli generate-cmd. DO NOT EDIT.
package cmd
import (
"github.com/spf13/cobra"
)
func init() {
RootCmd.AddCommand(DataCmd)
}
// DataCmd defines 'data' subcommand
var DataCmd = &cobra.Command{
Use: "data",
Short: TRCLI("cli.data.summary"),
Long: TRCLI(`cli.data.description`),
}
| soracom/soracom-cli | soracom/generated/cmd/data.go | GO | mit | 316 |
/**
* \author Anton Gorev aka Veei
* \date 2014-11-06
*/
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
int main()
{
int W; // number of columns.
int H; // number of rows.
cin >> W >> H;
cin.ignore();
typedef std::vector<std::vector<int> > field_t;
field_t field(H); // [y, x]
for (int i = 0; i < H; i++)
{
field[i].resize(W);
for (int j = 0; j < W; j++)
{
int type;
std::cin >> type;
std::cerr << type << " ";
field[i][j] = type;
}
std::cerr << std::endl;
std::cin.ignore();
}
int EX; // the coordinate along the X axis of the exit (not useful for this first mission, but must be read).
cin >> EX; cin.ignore();
// game loop
while (1) {
int XI;
int YI;
string POS;
cin >> XI >> YI >> POS; cin.ignore();
int pos;
if (string("LEFT") == POS)
{
pos = -1;
} else if (string("TOP") == POS)
{
pos = 0;
} else if (string("RIGHT") == POS)
{
pos = 1;
} else
{
std::cerr << "Invalid position" << std::endl;
return 1;
}
switch (field[YI][XI])
{
case 0:
std::cerr << "Wrong logic" << std::endl;
return 2;
break;
case 1:
case 3:
case 7:
case 8:
case 9:
YI++;
break;
case 2:
case 6:
if (0 == pos)
{
std::cerr << "Wrong position in current context" << std::endl;
return 5;
}
XI -= pos;
break;
case 4:
case 10:
case 12:
if (0 == pos)
{
XI--;
} else if (1 == pos)
{
YI++;
} else
{
std::cerr << "Wrong position in current context" << std::endl;
return 3;
}
break;
case 5:
case 11:
case 13:
if (0 == pos)
{
XI++;
} else if (-1 == pos)
{
YI++;
} else
{
std::cerr << "Wrong position in current context" << std::endl;
return 4;
}
break;
}
// Write an action using cout. DON'T FORGET THE "<< endl"
// To debug: cerr << "Debug messages..." << endl;
cout << XI << " " << YI << endl; // One line containing the X Y coordinates of the room in which you believe Indy will be on the next turn.
}
}
| kvirund/codingame | medium/indiana.l1/main.cpp | C++ | mit | 3,199 |
/*
* AWS IoT Device SDK for Embedded C 202108.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person 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, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT 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.
*/
/*
* Demo for showing the use of MQTT APIs to establish an MQTT session,
* subscribe to a topic, publish to a topic, receive incoming publishes,
* unsubscribe from a topic and disconnect the MQTT session.
*
* The example shown below uses MQTT APIs to send and receive MQTT packets
* over the TCP connection established using POSIX sockets.
* The example is single threaded and uses statically allocated memory;
* it uses QOS0 and therefore does not implement any retransmission
* mechanism for Publish messages.
*/
/* Standard includes. */
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
/* POSIX includes. */
#include <unistd.h>
/* Include Demo Config as the first non-system header. */
#include "demo_config.h"
/* MQTT API header. */
#include "core_mqtt.h"
/* Plaintext sockets transport implementation. */
#include "plaintext_posix.h"
/*Include backoff algorithm header for retry logic.*/
#include "backoff_algorithm.h"
/* Clock for timer. */
#include "clock.h"
/**
* These configuration settings are required to run the plaintext demo.
* Throw compilation error if the below configs are not defined.
*/
#ifndef BROKER_ENDPOINT
#error "Please define an MQTT broker endpoint, BROKER_ENDPOINT, in demo_config.h."
#endif
#ifndef CLIENT_IDENTIFIER
#error "Please define a unique CLIENT_IDENTIFIER in demo_config.h."
#endif
/**
* Provide default values for undefined configuration settings.
*/
#ifndef BROKER_PORT
#define BROKER_PORT ( 1883 )
#endif
#ifndef NETWORK_BUFFER_SIZE
#define NETWORK_BUFFER_SIZE ( 1024U )
#endif
/**
* @brief Length of client identifier.
*/
#define CLIENT_IDENTIFIER_LENGTH ( ( uint16_t ) ( sizeof( CLIENT_IDENTIFIER ) - 1 ) )
/**
* @brief Length of MQTT server host name.
*/
#define BROKER_ENDPOINT_LENGTH ( ( uint16_t ) ( sizeof( BROKER_ENDPOINT ) - 1 ) )
/**
* @brief The maximum number of retries for connecting to server.
*/
#define CONNECTION_RETRY_MAX_ATTEMPTS ( 5U )
/**
* @brief The maximum back-off delay (in milliseconds) for retrying connection to server.
*/
#define CONNECTION_RETRY_MAX_BACKOFF_DELAY_MS ( 5000U )
/**
* @brief The base back-off delay (in milliseconds) to use for connection retry attempts.
*/
#define CONNECTION_RETRY_BACKOFF_BASE_MS ( 500U )
/**
* @brief Timeout for receiving CONNACK packet in milli seconds.
*/
#define CONNACK_RECV_TIMEOUT_MS ( 1000U )
/**
* @brief The topic to subscribe and publish to in the example.
*
* The topic name starts with the client identifier to ensure that each demo
* interacts with a unique topic name.
*/
#define MQTT_EXAMPLE_TOPIC CLIENT_IDENTIFIER "/example/topic"
/**
* @brief Length of client MQTT topic.
*/
#define MQTT_EXAMPLE_TOPIC_LENGTH ( ( uint16_t ) ( sizeof( MQTT_EXAMPLE_TOPIC ) - 1 ) )
/**
* @brief The MQTT message published in this example.
*/
#define MQTT_EXAMPLE_MESSAGE "Hello World!"
/**
* @brief The length of the MQTT message published in this example.
*/
#define MQTT_EXAMPLE_MESSAGE_LENGTH ( ( uint16_t ) ( sizeof( MQTT_EXAMPLE_MESSAGE ) - 1 ) )
/**
* @brief Timeout for MQTT_ProcessLoop function in milliseconds.
*/
#define MQTT_PROCESS_LOOP_TIMEOUT_MS ( 500U )
/**
* @brief The maximum time interval in seconds which is allowed to elapse
* between two Control Packets.
*
* It is the responsibility of the Client to ensure that the interval between
* Control Packets being sent does not exceed the this Keep Alive value. In the
* absence of sending any other Control Packets, the Client MUST send a
* PINGREQ Packet.
*/
#define MQTT_KEEP_ALIVE_INTERVAL_SECONDS ( 60U )
/**
* @brief Delay between MQTT publishes in seconds.
*/
#define DELAY_BETWEEN_PUBLISHES_SECONDS ( 1U )
/**
* @brief Number of PUBLISH messages sent per iteration.
*/
#define MQTT_PUBLISH_COUNT_PER_LOOP ( 5U )
/**
* @brief Delay in seconds between two iterations of subscribePublishLoop().
*/
#define MQTT_SUBPUB_LOOP_DELAY_SECONDS ( 5U )
/**
* @brief Transport timeout in milliseconds for transport send and receive.
*/
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500 )
/*-----------------------------------------------------------*/
/**
* @brief Packet Identifier generated when Subscribe request was sent to the broker;
* it is used to match received Subscribe ACK to the transmitted subscribe.
*/
static uint16_t globalSubscribePacketIdentifier = 0U;
/**
* @brief Packet Identifier generated when Unsubscribe request was sent to the broker;
* it is used to match received Unsubscribe ACK to the transmitted unsubscribe
* request.
*/
static uint16_t globalUnsubscribePacketIdentifier = 0U;
/**
* @brief Array to keep subscription topics.
* Used to re-subscribe to topics that failed initial subscription attempts.
*/
static MQTTSubscribeInfo_t pGlobalSubscriptionList[ 1 ];
/**
* @brief The network buffer must remain valid for the lifetime of the MQTT context.
*/
static uint8_t buffer[ NETWORK_BUFFER_SIZE ];
/**
* @brief Status of latest Subscribe ACK;
* it is updated every time the callback function processes a Subscribe ACK
* and accounts for subscription to a single topic.
*/
static MQTTSubAckStatus_t globalSubAckStatus = MQTTSubAckFailure;
/*-----------------------------------------------------------*/
/* Each compilation unit must define the NetworkContext struct. */
struct NetworkContext
{
PlaintextParams_t * pParams;
};
/*-----------------------------------------------------------*/
/**
* @brief The random number generator to use for exponential backoff with
* jitter retry logic.
*
* @return The generated random number.
*/
static uint32_t generateRandomNumber();
/**
* @brief Connect to MQTT broker with reconnection retries.
*
* If connection fails, retry is attempted after a timeout.
* Timeout value will exponentially increased till maximum
* timeout value is reached or the number of attempts are exhausted.
*
* @param[out] pNetworkContext The output parameter to return the created network context.
* @param[out] pMqttContext The output to return the created MQTT context.
*
* @return EXIT_FAILURE on failure; EXIT_SUCCESS on successful connection.
*/
static int connectToServerWithBackoffRetries( NetworkContext_t * pNetworkContext,
MQTTContext_t * pMqttContext );
/**
* @brief A function that uses the passed MQTT connection to
* subscribe to a topic, publish to the same topic
* MQTT_PUBLISH_COUNT_PER_LOOP number of times, and verify if it
* receives the Publish message back.
*
* @param[in] pMqttContext MQTT context pointer.
*
* @return EXIT_FAILURE on failure; EXIT_SUCCESS on success.
*/
static int subscribePublishLoop( MQTTContext_t * pMqttContext );
/**
* @brief The function to handle the incoming publishes.
*
* @param[in] pPublishInfo Pointer to publish info of the incoming publish.
* @param[in] packetIdentifier Packet identifier of the incoming publish.
*/
static void handleIncomingPublish( MQTTPublishInfo_t * pPublishInfo,
uint16_t packetIdentifier );
/**
* @brief The application callback function for getting the incoming publish
* and incoming acks reported from MQTT library.
*
* @param[in] pMqttContext MQTT context pointer.
* @param[in] pPacketInfo Packet Info pointer for the incoming packet.
* @param[in] pDeserializedInfo Deserialized information from the incoming packet.
*/
static void eventCallback( MQTTContext_t * pMqttContext,
MQTTPacketInfo_t * pPacketInfo,
MQTTDeserializedInfo_t * pDeserializedInfo );
/**
* @brief Sends an MQTT CONNECT packet over the already connected TCP socket.
*
* @param[in] pMqttContext MQTT context pointer.
* @param[in] pNetworkContext Pointer to the network context created using Plaintext_Connect.
*
* @return EXIT_SUCCESS if an MQTT session is established;
* EXIT_FAILURE otherwise.
*/
static int establishMqttSession( MQTTContext_t * pMqttContext,
NetworkContext_t * pNetworkContext );
/**
* @brief Close an MQTT session by sending MQTT DISCONNECT.
*
* @param[in] pMqttContext MQTT context pointer.
*
* @return EXIT_SUCCESS if DISCONNECT was successfully sent;
* EXIT_FAILURE otherwise.
*/
static int disconnectMqttSession( MQTTContext_t * pMqttContext );
/**
* @brief Sends an MQTT SUBSCRIBE to subscribe to #MQTT_EXAMPLE_TOPIC
* defined at the top of the file.
*
* @param[in] pMqttContext MQTT context pointer.
*
* @return EXIT_SUCCESS if SUBSCRIBE was successfully sent;
* EXIT_FAILURE otherwise.
*/
static int subscribeToTopic( MQTTContext_t * pMqttContext );
/**
* @brief Sends an MQTT UNSUBSCRIBE to unsubscribe from
* #MQTT_EXAMPLE_TOPIC defined at the top of the file.
*
* @param[in] pMqttContext MQTT context pointer.
*
* @return EXIT_SUCCESS if UNSUBSCRIBE was successfully sent;
* EXIT_FAILURE otherwise.
*/
static int unsubscribeFromTopic( MQTTContext_t * pMqttContext );
/**
* @brief Sends an MQTT PUBLISH to #MQTT_EXAMPLE_TOPIC defined at
* the top of the file.
*
* @param[in] pMqttContext MQTT context pointer.
*
* @return EXIT_SUCCESS if PUBLISH was successfully sent;
* EXIT_FAILURE otherwise.
*/
static int publishToTopic( MQTTContext_t * pMqttContext );
/**
* @brief Function to update variable globalSubAckStatus with status
* information from Subscribe ACK. Called by eventCallback after processing
* incoming subscribe echo.
*
* @param[in] Server response to the subscription request.
*/
static void updateSubAckStatus( MQTTPacketInfo_t * pPacketInfo );
/**
* @brief Function to handle resubscription of topics on Subscribe
* ACK failure. Uses an exponential backoff strategy with jitter.
*
* @param[in] pMqttContext MQTT context pointer.
*/
static int handleResubscribe( MQTTContext_t * pMqttContext );
/*-----------------------------------------------------------*/
static uint32_t generateRandomNumber()
{
return( rand() );
}
/*-----------------------------------------------------------*/
static int connectToServerWithBackoffRetries( NetworkContext_t * pNetworkContext,
MQTTContext_t * pMqttContext )
{
int returnStatus = EXIT_FAILURE;
BackoffAlgorithmStatus_t backoffAlgStatus = BackoffAlgorithmSuccess;
SocketStatus_t socketStatus = SOCKETS_SUCCESS;
BackoffAlgorithmContext_t reconnectParams;
ServerInfo_t serverInfo;
uint16_t nextRetryBackOff = 0U;
/* Initialize information to connect to the MQTT broker. */
serverInfo.pHostName = BROKER_ENDPOINT;
serverInfo.hostNameLength = BROKER_ENDPOINT_LENGTH;
serverInfo.port = BROKER_PORT;
/* Initialize reconnect attempts and interval */
BackoffAlgorithm_InitializeParams( &reconnectParams,
CONNECTION_RETRY_BACKOFF_BASE_MS,
CONNECTION_RETRY_MAX_BACKOFF_DELAY_MS,
CONNECTION_RETRY_MAX_ATTEMPTS );
/* Attempt to connect to MQTT broker. If connection fails, retry after
* a timeout. Timeout value will exponentially increase till maximum
* attempts are reached.
*/
do
{
/* Establish a TCP connection with the MQTT broker. This example connects
* to the MQTT broker as specified in BROKER_ENDPOINT and BROKER_PORT
* at the demo config header. */
LogInfo( ( "Creating a TCP connection to %.*s:%d.",
BROKER_ENDPOINT_LENGTH,
BROKER_ENDPOINT,
BROKER_PORT ) );
socketStatus = Plaintext_Connect( pNetworkContext,
&serverInfo,
TRANSPORT_SEND_RECV_TIMEOUT_MS,
TRANSPORT_SEND_RECV_TIMEOUT_MS );
if( socketStatus == SOCKETS_SUCCESS )
{
/* Establish MQTT session on top of TCP connection. */
LogInfo( ( "Creating an MQTT connection to %.*s.",
BROKER_ENDPOINT_LENGTH,
BROKER_ENDPOINT ) );
/* Sends an MQTT Connect packet over the already connected TCP socket
* tcpSocket, and waits for connection acknowledgment (CONNACK) packet. */
returnStatus = establishMqttSession( pMqttContext, pNetworkContext );
if( returnStatus == EXIT_FAILURE )
{
/* Close the TCP connection. */
( void ) Plaintext_Disconnect( pNetworkContext );
}
}
if( returnStatus == EXIT_FAILURE )
{
/* Generate a random number and get back-off value (in milliseconds) for the next connection retry. */
backoffAlgStatus = BackoffAlgorithm_GetNextBackoff( &reconnectParams, generateRandomNumber(), &nextRetryBackOff );
if( backoffAlgStatus == BackoffAlgorithmRetriesExhausted )
{
LogError( ( "Connection to the broker failed, all attempts exhausted." ) );
returnStatus = EXIT_FAILURE;
}
else if( backoffAlgStatus == BackoffAlgorithmSuccess )
{
LogWarn( ( "Connection to the broker failed. Retrying connection "
"after %hu ms backoff.",
( unsigned short ) nextRetryBackOff ) );
Clock_SleepMs( nextRetryBackOff );
}
}
} while( ( returnStatus == EXIT_FAILURE ) && ( backoffAlgStatus == BackoffAlgorithmSuccess ) );
return returnStatus;
}
/*-----------------------------------------------------------*/
static void handleIncomingPublish( MQTTPublishInfo_t * pPublishInfo,
uint16_t packetIdentifier )
{
assert( pPublishInfo != NULL );
( void ) packetIdentifier;
/* Process incoming Publish. */
LogInfo( ( "Incoming QOS : %d.", pPublishInfo->qos ) );
/* Verify the received publish is for the topic we have subscribed to. */
if( ( pPublishInfo->topicNameLength == MQTT_EXAMPLE_TOPIC_LENGTH ) &&
( 0 == strncmp( MQTT_EXAMPLE_TOPIC,
pPublishInfo->pTopicName,
pPublishInfo->topicNameLength ) ) )
{
LogInfo( ( "Incoming Publish Topic Name: %.*s matches subscribed topic.\n"
"Incoming Publish message Packet Id is %u.\n"
"Incoming Publish Message : %.*s.\n\n",
pPublishInfo->topicNameLength,
pPublishInfo->pTopicName,
packetIdentifier,
( int ) pPublishInfo->payloadLength,
( const char * ) pPublishInfo->pPayload ) );
}
else
{
LogInfo( ( "Incoming Publish Topic Name: %.*s does not match subscribed topic.",
pPublishInfo->topicNameLength,
pPublishInfo->pTopicName ) );
}
}
/*-----------------------------------------------------------*/
static void updateSubAckStatus( MQTTPacketInfo_t * pPacketInfo )
{
uint8_t * pPayload = NULL;
size_t pSize = 0;
MQTTStatus_t mqttStatus = MQTT_GetSubAckStatusCodes( pPacketInfo, &pPayload, &pSize );
/* MQTT_GetSubAckStatusCodes always returns success if called with packet info
* from the event callback and non-NULL parameters. */
assert( mqttStatus == MQTTSuccess );
/* Suppress unused variable warning when asserts are disabled in build. */
( void ) mqttStatus;
/* Demo only subscribes to one topic, so only one status code is returned. */
globalSubAckStatus = ( MQTTSubAckStatus_t ) pPayload[ 0 ];
}
/*-----------------------------------------------------------*/
static int handleResubscribe( MQTTContext_t * pMqttContext )
{
int returnStatus = EXIT_SUCCESS;
MQTTStatus_t mqttStatus = MQTTSuccess;
BackoffAlgorithmStatus_t backoffAlgStatus = BackoffAlgorithmSuccess;
BackoffAlgorithmContext_t retryParams;
uint16_t nextRetryBackOff = 0U;
assert( pMqttContext != NULL );
/* Initialize retry attempts and interval. */
BackoffAlgorithm_InitializeParams( &retryParams,
CONNECTION_RETRY_BACKOFF_BASE_MS,
CONNECTION_RETRY_MAX_BACKOFF_DELAY_MS,
CONNECTION_RETRY_MAX_ATTEMPTS );
do
{
/* Send SUBSCRIBE packet.
* Note: reusing the value specified in globalSubscribePacketIdentifier is acceptable here
* because this function is entered only after the receipt of a SUBACK, at which point
* its associated packet id is free to use. */
mqttStatus = MQTT_Subscribe( pMqttContext,
pGlobalSubscriptionList,
sizeof( pGlobalSubscriptionList ) / sizeof( MQTTSubscribeInfo_t ),
globalSubscribePacketIdentifier );
if( mqttStatus != MQTTSuccess )
{
LogError( ( "Failed to send SUBSCRIBE packet to broker with error = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
returnStatus = EXIT_FAILURE;
break;
}
LogInfo( ( "SUBSCRIBE sent for topic %.*s to broker.\n\n",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
/* Process incoming packet. */
mqttStatus = MQTT_ProcessLoop( pMqttContext, MQTT_PROCESS_LOOP_TIMEOUT_MS );
if( mqttStatus != MQTTSuccess )
{
LogError( ( "MQTT_ProcessLoop returned with status = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
returnStatus = EXIT_FAILURE;
break;
}
/* Check if recent subscription request has been rejected. globalSubAckStatus is updated
* in eventCallback to reflect the status of the SUBACK sent by the broker. It represents
* either the QoS level granted by the server upon subscription, or acknowledgement of
* server rejection of the subscription request. */
if( globalSubAckStatus == MQTTSubAckFailure )
{
/* Generate a random number and get back-off value (in milliseconds) for the next re-subscribe attempt. */
backoffAlgStatus = BackoffAlgorithm_GetNextBackoff( &retryParams, generateRandomNumber(), &nextRetryBackOff );
if( backoffAlgStatus == BackoffAlgorithmRetriesExhausted )
{
LogError( ( "Subscription to topic failed, all attempts exhausted." ) );
returnStatus = EXIT_FAILURE;
}
else if( backoffAlgStatus == BackoffAlgorithmSuccess )
{
LogWarn( ( "Server rejected subscription request. Retrying "
"connection after %hu ms backoff.",
( unsigned short ) nextRetryBackOff ) );
Clock_SleepMs( nextRetryBackOff );
}
}
} while( ( globalSubAckStatus == MQTTSubAckFailure ) && ( backoffAlgStatus == BackoffAlgorithmSuccess ) );
return returnStatus;
}
/*-----------------------------------------------------------*/
static void eventCallback( MQTTContext_t * pMqttContext,
MQTTPacketInfo_t * pPacketInfo,
MQTTDeserializedInfo_t * pDeserializedInfo )
{
uint16_t packetIdentifier;
assert( pMqttContext != NULL );
assert( pPacketInfo != NULL );
assert( pDeserializedInfo != NULL );
/* Suppress unused parameter warning when asserts are disabled in build. */
( void ) pMqttContext;
packetIdentifier = pDeserializedInfo->packetIdentifier;
/* Handle incoming publish. The lower 4 bits of the publish packet
* type is used for the dup, QoS, and retain flags. Hence masking
* out the lower bits to check if the packet is publish. */
if( ( pPacketInfo->type & 0xF0U ) == MQTT_PACKET_TYPE_PUBLISH )
{
assert( pDeserializedInfo->pPublishInfo != NULL );
/* Handle incoming publish. */
handleIncomingPublish( pDeserializedInfo->pPublishInfo, packetIdentifier );
}
else
{
/* Handle other packets. */
switch( pPacketInfo->type )
{
case MQTT_PACKET_TYPE_SUBACK:
/* A SUBACK from the broker, containing the server response to our subscription request, has been received.
* It contains the status code indicating server approval/rejection for the subscription to the single topic
* requested. The SUBACK will be parsed to obtain the status code, and this status code will be stored in global
* variable globalSubAckStatus. */
updateSubAckStatus( pPacketInfo );
/* Check status of the subscription request. If globalSubAckStatus does not indicate
* server refusal of the request (MQTTSubAckFailure), it contains the QoS level granted
* by the server, indicating a successful subscription attempt. */
if( globalSubAckStatus != MQTTSubAckFailure )
{
LogInfo( ( "Subscribed to the topic %.*s. with maximum QoS %u.\n\n",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC,
globalSubAckStatus ) );
}
/* Make sure ACK packet identifier matches with Request packet identifier. */
assert( globalSubscribePacketIdentifier == packetIdentifier );
break;
case MQTT_PACKET_TYPE_UNSUBACK:
LogInfo( ( "Unsubscribed from the topic %.*s.\n\n",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
/* Make sure ACK packet identifier matches with Request packet identifier. */
assert( globalUnsubscribePacketIdentifier == packetIdentifier );
break;
case MQTT_PACKET_TYPE_PINGRESP:
/* Nothing to be done from application as library handles
* PINGRESP. */
LogWarn( ( "PINGRESP should not be handled by the application "
"callback when using MQTT_ProcessLoop.\n\n" ) );
break;
/* Any other packet type is invalid. */
default:
LogError( ( "Unknown packet type received:(%02x).\n\n",
pPacketInfo->type ) );
}
}
}
/*-----------------------------------------------------------*/
static int establishMqttSession( MQTTContext_t * pMqttContext,
NetworkContext_t * pNetworkContext )
{
int returnStatus = EXIT_SUCCESS;
MQTTStatus_t mqttStatus;
MQTTConnectInfo_t connectInfo;
bool sessionPresent;
MQTTFixedBuffer_t networkBuffer;
TransportInterface_t transport;
assert( pMqttContext != NULL );
assert( pNetworkContext != NULL );
/* Fill in TransportInterface send and receive function pointers.
* For this demo, TCP sockets are used to send and receive data
* from network. Network context is socket file descriptor.*/
transport.pNetworkContext = pNetworkContext;
transport.send = Plaintext_Send;
transport.recv = Plaintext_Recv;
/* Fill the values for network buffer. */
networkBuffer.pBuffer = buffer;
networkBuffer.size = NETWORK_BUFFER_SIZE;
/* Initialize MQTT library. */
mqttStatus = MQTT_Init( pMqttContext,
&transport,
Clock_GetTimeMs,
eventCallback,
&networkBuffer );
if( mqttStatus != MQTTSuccess )
{
returnStatus = EXIT_FAILURE;
LogError( ( "MQTT init failed: Status=%s.", MQTT_Status_strerror( mqttStatus ) ) );
}
else
{
/* Establish MQTT session by sending a CONNECT packet. */
/* Start with a clean session i.e. direct the MQTT broker to discard any
* previous session data. Also, establishing a connection with clean session
* will ensure that the broker does not store any data when this client
* gets disconnected. */
connectInfo.cleanSession = true;
/* The client identifier is used to uniquely identify this MQTT client to
* the MQTT broker. In a production device the identifier can be something
* unique, such as a device serial number. */
connectInfo.pClientIdentifier = CLIENT_IDENTIFIER;
connectInfo.clientIdentifierLength = CLIENT_IDENTIFIER_LENGTH;
/* The maximum time interval in seconds which is allowed to elapse
* between two Control Packets.
* It is the responsibility of the Client to ensure that the interval between
* Control Packets being sent does not exceed the this Keep Alive value. In the
* absence of sending any other Control Packets, the Client MUST send a
* PINGREQ Packet. */
connectInfo.keepAliveSeconds = MQTT_KEEP_ALIVE_INTERVAL_SECONDS;
/* Username and password for authentication. Not used in this demo. */
connectInfo.pUserName = NULL;
connectInfo.userNameLength = 0U;
connectInfo.pPassword = NULL;
connectInfo.passwordLength = 0U;
/* Send MQTT CONNECT packet to broker. */
mqttStatus = MQTT_Connect( pMqttContext, &connectInfo, NULL, CONNACK_RECV_TIMEOUT_MS, &sessionPresent );
if( mqttStatus != MQTTSuccess )
{
returnStatus = EXIT_FAILURE;
LogError( ( "Connection with MQTT broker failed with status %s.",
MQTT_Status_strerror( mqttStatus ) ) );
}
else
{
LogInfo( ( "MQTT connection successfully established with broker.\n\n" ) );
}
}
return returnStatus;
}
/*-----------------------------------------------------------*/
static int disconnectMqttSession( MQTTContext_t * pMqttContext )
{
MQTTStatus_t mqttStatus = MQTTSuccess;
int returnStatus = EXIT_SUCCESS;
assert( pMqttContext != NULL );
/* Send DISCONNECT. */
mqttStatus = MQTT_Disconnect( pMqttContext );
if( mqttStatus != MQTTSuccess )
{
LogError( ( "Sending MQTT DISCONNECT failed with status=%s.",
MQTT_Status_strerror( mqttStatus ) ) );
returnStatus = EXIT_FAILURE;
}
return returnStatus;
}
/*-----------------------------------------------------------*/
static int subscribeToTopic( MQTTContext_t * pMqttContext )
{
int returnStatus = EXIT_SUCCESS;
MQTTStatus_t mqttStatus;
assert( pMqttContext != NULL );
/* Start with everything at 0. */
( void ) memset( ( void * ) pGlobalSubscriptionList, 0x00, sizeof( pGlobalSubscriptionList ) );
/* This example subscribes to only one topic and uses QOS0. */
pGlobalSubscriptionList[ 0 ].qos = MQTTQoS0;
pGlobalSubscriptionList[ 0 ].pTopicFilter = MQTT_EXAMPLE_TOPIC;
pGlobalSubscriptionList[ 0 ].topicFilterLength = MQTT_EXAMPLE_TOPIC_LENGTH;
/* Generate packet identifier for the SUBSCRIBE packet. */
globalSubscribePacketIdentifier = MQTT_GetPacketId( pMqttContext );
/* Send SUBSCRIBE packet. */
mqttStatus = MQTT_Subscribe( pMqttContext,
pGlobalSubscriptionList,
sizeof( pGlobalSubscriptionList ) / sizeof( MQTTSubscribeInfo_t ),
globalSubscribePacketIdentifier );
if( mqttStatus != MQTTSuccess )
{
LogError( ( "Failed to send SUBSCRIBE packet to broker with error = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
returnStatus = EXIT_FAILURE;
}
else
{
LogInfo( ( "SUBSCRIBE sent for topic %.*s to broker.\n\n",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
}
return returnStatus;
}
/*-----------------------------------------------------------*/
static int unsubscribeFromTopic( MQTTContext_t * pMqttContext )
{
int returnStatus = EXIT_SUCCESS;
MQTTStatus_t mqttStatus;
assert( pMqttContext != NULL );
/* Start with everything at 0. */
( void ) memset( ( void * ) pGlobalSubscriptionList, 0x00, sizeof( pGlobalSubscriptionList ) );
/* This example subscribes to and unsubscribes from only one topic
* and uses QOS0. */
pGlobalSubscriptionList[ 0 ].qos = MQTTQoS0;
pGlobalSubscriptionList[ 0 ].pTopicFilter = MQTT_EXAMPLE_TOPIC;
pGlobalSubscriptionList[ 0 ].topicFilterLength = MQTT_EXAMPLE_TOPIC_LENGTH;
/* Generate packet identifier for the UNSUBSCRIBE packet. */
globalUnsubscribePacketIdentifier = MQTT_GetPacketId( pMqttContext );
/* Send UNSUBSCRIBE packet. */
mqttStatus = MQTT_Unsubscribe( pMqttContext,
pGlobalSubscriptionList,
sizeof( pGlobalSubscriptionList ) / sizeof( MQTTSubscribeInfo_t ),
globalUnsubscribePacketIdentifier );
if( mqttStatus != MQTTSuccess )
{
LogError( ( "Failed to send UNSUBSCRIBE packet to broker with error = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
returnStatus = EXIT_FAILURE;
}
else
{
LogInfo( ( "UNSUBSCRIBE sent for topic %.*s to broker.\n\n",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
}
return returnStatus;
}
/*-----------------------------------------------------------*/
static int publishToTopic( MQTTContext_t * pMqttContext )
{
int returnStatus = EXIT_SUCCESS;
MQTTStatus_t mqttStatus = MQTTSuccess;
MQTTPublishInfo_t publishInfo;
assert( pMqttContext != NULL );
/* Some fields not used by this demo so start with everything at 0. */
( void ) memset( ( void * ) &publishInfo, 0x00, sizeof( publishInfo ) );
/* This example publishes to only one topic and uses QOS0. */
publishInfo.qos = MQTTQoS0;
publishInfo.pTopicName = MQTT_EXAMPLE_TOPIC;
publishInfo.topicNameLength = MQTT_EXAMPLE_TOPIC_LENGTH;
publishInfo.pPayload = MQTT_EXAMPLE_MESSAGE;
publishInfo.payloadLength = MQTT_EXAMPLE_MESSAGE_LENGTH;
/* Send PUBLISH packet. Packet Id is not used for a QoS0 publish.
* Hence 0 is passed as packet id. */
mqttStatus = MQTT_Publish( pMqttContext, &publishInfo, 0U );
if( mqttStatus != MQTTSuccess )
{
LogError( ( "Failed to send PUBLISH packet to broker with error = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
returnStatus = EXIT_FAILURE;
}
else
{
LogInfo( ( "PUBLISH send for topic %.*s to broker.",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
}
return returnStatus;
}
/*-----------------------------------------------------------*/
static int subscribePublishLoop( MQTTContext_t * pMqttContext )
{
int returnStatus = EXIT_SUCCESS;
MQTTStatus_t mqttStatus;
uint32_t publishCount = 0;
const uint32_t maxPublishCount = MQTT_PUBLISH_COUNT_PER_LOOP;
if( returnStatus == EXIT_SUCCESS )
{
/* The client is now connected to the broker. Subscribe to the topic
* as specified in MQTT_EXAMPLE_TOPIC at the top of this file by sending a
* subscribe packet. This client will then publish to the same topic it
* subscribed to, so it will expect all the messages it sends to the broker
* to be sent back to it from the broker. This demo uses QOS0 in Subscribe,
* therefore, the Publish messages received from the broker will have QOS0. */
LogInfo( ( "Subscribing to the MQTT topic %.*s.",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
returnStatus = subscribeToTopic( pMqttContext );
}
if( returnStatus == EXIT_SUCCESS )
{
/* Process incoming packet from the broker. Acknowledgment for subscription
* ( SUBACK ) will be received here. However after sending the subscribe, the
* client may receive a publish before it receives a subscribe ack. Since this
* demo is subscribing to the topic to which no one is publishing, probability
* of receiving publish message before subscribe ack is zero; but application
* must be ready to receive any packet. This demo uses MQTT_ProcessLoop to
* receive packet from network. */
mqttStatus = MQTT_ProcessLoop( pMqttContext, MQTT_PROCESS_LOOP_TIMEOUT_MS );
if( mqttStatus != MQTTSuccess )
{
returnStatus = EXIT_FAILURE;
LogError( ( "MQTT_ProcessLoop returned with status = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
}
}
/* Check if recent subscription request has been rejected. globalSubAckStatus is updated
* in eventCallback to reflect the status of the SUBACK sent by the broker. */
if( ( returnStatus == EXIT_SUCCESS ) && ( globalSubAckStatus == MQTTSubAckFailure ) )
{
/* If server rejected the subscription request, attempt to resubscribe to topic.
* Attempts are made according to the exponential backoff retry strategy
* implemented in retryUtils. */
LogInfo( ( "Server rejected initial subscription request. Attempting to re-subscribe to topic %.*s.",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
returnStatus = handleResubscribe( pMqttContext );
}
if( returnStatus == EXIT_SUCCESS )
{
/* Publish messages with QOS0, receive incoming messages and
* send keep alive messages. */
for( publishCount = 0; publishCount < maxPublishCount; publishCount++ )
{
LogInfo( ( "Sending Publish to the MQTT topic %.*s.",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
returnStatus = publishToTopic( pMqttContext );
/* Calling MQTT_ProcessLoop to process incoming publish echo, since
* application subscribed to the same topic the broker will send
* publish message back to the application. This function also
* sends ping request to broker if MQTT_KEEP_ALIVE_INTERVAL_SECONDS
* has expired since the last MQTT packet sent and receive
* ping responses. */
mqttStatus = MQTT_ProcessLoop( pMqttContext, MQTT_PROCESS_LOOP_TIMEOUT_MS );
if( mqttStatus != MQTTSuccess )
{
LogWarn( ( "MQTT_ProcessLoop returned with status = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
}
LogInfo( ( "Delay before continuing to next iteration.\n\n" ) );
/* Leave connection idle for some time. */
sleep( DELAY_BETWEEN_PUBLISHES_SECONDS );
}
}
if( returnStatus == EXIT_SUCCESS )
{
/* Unsubscribe from the topic. */
LogInfo( ( "Unsubscribing from the MQTT topic %.*s.",
MQTT_EXAMPLE_TOPIC_LENGTH,
MQTT_EXAMPLE_TOPIC ) );
returnStatus = unsubscribeFromTopic( pMqttContext );
}
if( returnStatus == EXIT_SUCCESS )
{
/* Process Incoming UNSUBACK packet from the broker. */
mqttStatus = MQTT_ProcessLoop( pMqttContext, MQTT_PROCESS_LOOP_TIMEOUT_MS );
if( mqttStatus != MQTTSuccess )
{
returnStatus = EXIT_FAILURE;
LogError( ( "MQTT_ProcessLoop returned with status = %s.",
MQTT_Status_strerror( mqttStatus ) ) );
}
}
/* Send an MQTT Disconnect packet over the already connected TCP socket.
* There is no corresponding response for the disconnect packet. After sending
* disconnect, client must close the network connection. */
LogInfo( ( "Disconnecting the MQTT connection with %.*s.",
BROKER_ENDPOINT_LENGTH,
BROKER_ENDPOINT ) );
if( returnStatus == EXIT_FAILURE )
{
/* Returned status is not used to update the local status as there
* were failures in demo execution. */
( void ) disconnectMqttSession( pMqttContext );
}
else
{
returnStatus = disconnectMqttSession( pMqttContext );
}
/* Reset global SUBACK status variable after completion of subscription request cycle. */
globalSubAckStatus = MQTTSubAckFailure;
return returnStatus;
}
/*-----------------------------------------------------------*/
/**
* @brief Entry point of demo.
*
* The example shown below uses MQTT APIs to send and receive MQTT packets
* over the TCP connection established using POSIX sockets.
* The example is single threaded and uses statically allocated memory;
* it uses QOS0 and therefore does not implement any retransmission
* mechanism for Publish messages. This example runs forever, if connection to
* the broker goes down, the code tries to reconnect to the broker with exponential
* backoff mechanism.
*
*/
int main( int argc,
char ** argv )
{
int returnStatus = EXIT_SUCCESS;
MQTTContext_t mqttContext = { 0 };
NetworkContext_t networkContext = { 0 };
PlaintextParams_t plaintextParams = { 0 };
struct timespec tp;
( void ) argc;
( void ) argv;
/* Set the pParams member of the network context with desired transport. */
networkContext.pParams = &plaintextParams;
/* Seed pseudo random number generator used in the demo for
* backoff period calculation when retrying failed network operations
* with broker. */
/* Get current time to seed pseudo random number generator. */
( void ) clock_gettime( CLOCK_REALTIME, &tp );
/* Seed pseudo random number generator with nanoseconds. */
srand( tp.tv_nsec );
for( ; ; )
{
/* Attempt to connect to the MQTT broker. If connection fails, retry after
* a timeout. Timeout value will be exponentially increased till the maximum
* attempts are reached or maximum timeout value is reached. The function
* returns EXIT_FAILURE if the TCP connection cannot be established to
* broker after configured number of attempts. */
returnStatus = connectToServerWithBackoffRetries( &networkContext, &mqttContext );
if( returnStatus == EXIT_FAILURE )
{
/* Log error to indicate connection failure after all
* reconnect attempts are over. */
LogError( ( "Failed to connect to MQTT broker %.*s.",
BROKER_ENDPOINT_LENGTH,
BROKER_ENDPOINT ) );
}
else
{
/* If TCP connection is successful, execute Subscribe/Publish loop. */
returnStatus = subscribePublishLoop( &mqttContext );
/* Close the TCP connection. */
( void ) Plaintext_Disconnect( &networkContext );
}
if( returnStatus == EXIT_SUCCESS )
{
/* Log message indicating an iteration completed successfully. */
LogInfo( ( "Demo completed successfully." ) );
}
LogInfo( ( "Short delay before starting the next iteration....\n" ) );
sleep( MQTT_SUBPUB_LOOP_DELAY_SECONDS );
}
return returnStatus;
}
/*-----------------------------------------------------------*/
| aws/aws-iot-device-sdk-embedded-C | demos/mqtt/mqtt_demo_plaintext/mqtt_demo_plaintext.c | C | mit | 40,991 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Logger;
var _lodash = require('lodash');
var _moment = require('moment');
var _moment2 = _interopRequireDefault(_moment);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var logLevels = {
TRACE: 'TRACE',
INFO: 'INFO',
WARN: 'WARN',
ERROR: 'ERROR'
};
function _log(category, level) {
var _console2;
var now = (0, _moment2.default)().format();
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
args[_key - 2] = arguments[_key];
}
if (level === logLevels.ERROR) {
var _console;
return (_console = console).error.apply(_console, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console
}
return (_console2 = console).log.apply(_console2, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console
}
function Logger(category, requestId) {
this.category = category;
this.requestId = requestId;
}
function createLogLevel(level) {
return function logWithLevel() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
if (this.requestId) {
_log.apply(undefined, [this.category, level, 'RequestId: ' + this.requestId].concat(args));
}
_log.apply(undefined, [this.category, level].concat(args));
};
}
Logger.prototype.trace = createLogLevel(logLevels.TRACE);
Logger.prototype.info = createLogLevel(logLevels.INFO);
Logger.prototype.warn = createLogLevel(logLevels.WARN);
Logger.prototype.error = createLogLevel(logLevels.ERROR);
Logger.prototype.log = function log(level) {
for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
args[_key3 - 1] = arguments[_key3];
}
if ((0, _lodash.size)(args) === 1 && (0, _lodash.isObject)(args[0])) {
_log(this.category, (0, _lodash.toUpper)(level), JSON.stringify(args[0]));
return;
}
_log.apply(undefined, [this.category, (0, _lodash.toUpper)(level)].concat(args));
}; | noahlvb/dotfiles | .atom/packages/git-blame/node_modules/@workpop/simple-logger/lib/index.js | JavaScript | mit | 2,217 |
<?php
require_once(__DIR__ . "/../model/config.php");
$query = $_SESSION["connection"]->query("CREATE TABLE users ("
. "id int(11)NOT NULL AUTO_INCREMENT,"
. "username varchar(30) NOT NULL,"
. "email varchar(50) NOT NULL,"
. "password char(128) NOT NULL,"
. "salt char(128) NOT NULL,"
. "exp int(4),"
. "exp1 int(4),"
. "exp2 int(4),"
. "exp3 int(4),"
. "exp4 int(4),"
. "PRIMARY KEY (id))");
| MissaelRod/Awesomenauts1 | php/controller/create-db.php | PHP | mit | 485 |
<?php
/**
* Required Unique Fields allows you to set which fields need to be present before
* submitting the form and which fields need to be unique on a special Object.
* Submit an array of arguments for required fileds, one associative array for unique fields with FieldName => Error Message
* and the objectClass, on which the field shall be unique.
*
* Validation is performed on a field by field basis through
* {@link FormField::validate}.
*
* @package forms
* @subpackage validators
*/
class RequiredUniqueFields extends RequiredFields {
protected $unique;
protected $objectClass;
/**
* Pass required and unique fields as arrays.
*
* Example:
* new RequiredUniqueFields(
* $required = array(
* "FirstName",
* "Surname",
* "Email"
* ), $unique = array(
* "Email" => _t('Member.EMAILEXISTS', 'Member.EMAILEXISTS')
* ), $objectClass = 'Member'
* )
*
* @param array $required
* @param array $unique
* @param string $objectClass
*/
public function __construct($required = array(), $unique = array(), $objectClass = null) {
$this->unique = $unique;
$this->objectClass = $objectClass;
parent::__construct($required);
}
/**
* Allows validation of fields via specification of a php function for
* validation which is executed after the form is submitted.
*
* @param array $data
*
* @return boolean
*/
public function php($data) {
$valid = parent::php($data);
$fields = $this->form->Fields();
if($this->unique){
foreach($this->unique as $fieldName=>$Message){
if(!$fieldName){
continue;
}
if($fieldName instanceof FormField){
$formField = $fieldName;
$fieldName = $fieldName->getName();
}else{
$formField = $fields->dataFieldByName($fieldName);
}
if($o = DataObject::get_one($this->objectClass, $fieldName."='".Convert::raw2sql($data[$fieldName])."'")){
$this->validationError(
$fieldName,
$Message
);
$valid = false;
}
}
}
return $valid;
}
}
| andrelohmann/silverstripe-bootstrap_extra_fields | code/validators/RequiredUniqueFields.php | PHP | mit | 2,319 |
This stunning icon font was taken from [Icons8](https://icons8.com/line-awesome). Feel free to use it in your projects under the [Good Boy License](https://icons8.com/good-boy-license).
##Good Boy License
Please do whatever *your mom would approve of*.
###Permitted Use
* Download
* Change
* Fork on Github
###Prohibited Use
* No tattoos
* No touching with unwashed hands
* No exchanging for drugs
| icons8/welovesvg | libs/icons8-line-awesome/README.md | Markdown | mit | 399 |
Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, Settings.twitter_key, Settings.twitter_secret, {
secure_image_url: true,
image_size: 'bigger',
}
end
OmniAuth.config.on_failure = Proc.new do |env|
OmniAuth::FailureEndpoint.new(env).redirect_to_failure
end
| OpenHunting/openhunt | config/initializers/omniauth.rb | Ruby | mit | 303 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.5.2 - v0.5.3: Class Members - Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v0.5.2 - v0.5.3
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li class="current"><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="navrow3" class="tabs2">
<ul class="tablist">
<li><a href="functions.html"><span>All</span></a></li>
<li class="current"><a href="functions_func.html"><span>Functions</span></a></li>
<li><a href="functions_vars.html"><span>Variables</span></a></li>
<li><a href="functions_type.html"><span>Typedefs</span></a></li>
<li><a href="functions_enum.html"><span>Enumerations</span></a></li>
</ul>
</div>
<div id="navrow4" class="tabs3">
<ul class="tablist">
<li><a href="functions_func.html#index_a"><span>a</span></a></li>
<li><a href="functions_func_b.html#index_b"><span>b</span></a></li>
<li><a href="functions_func_c.html#index_c"><span>c</span></a></li>
<li><a href="functions_func_d.html#index_d"><span>d</span></a></li>
<li><a href="functions_func_e.html#index_e"><span>e</span></a></li>
<li><a href="functions_func_f.html#index_f"><span>f</span></a></li>
<li><a href="functions_func_g.html#index_g"><span>g</span></a></li>
<li><a href="functions_func_h.html#index_h"><span>h</span></a></li>
<li><a href="functions_func_i.html#index_i"><span>i</span></a></li>
<li><a href="functions_func_l.html#index_l"><span>l</span></a></li>
<li class="current"><a href="functions_func_m.html#index_m"><span>m</span></a></li>
<li><a href="functions_func_n.html#index_n"><span>n</span></a></li>
<li><a href="functions_func_o.html#index_o"><span>o</span></a></li>
<li><a href="functions_func_p.html#index_p"><span>p</span></a></li>
<li><a href="functions_func_r.html#index_r"><span>r</span></a></li>
<li><a href="functions_func_s.html#index_s"><span>s</span></a></li>
<li><a href="functions_func_t.html#index_t"><span>t</span></a></li>
<li><a href="functions_func_u.html#index_u"><span>u</span></a></li>
<li><a href="functions_func_w.html#index_w"><span>w</span></a></li>
<li><a href="functions_func_~.html#index_~"><span>~</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="contents">
 
<h3><a class="anchor" id="index_m"></a>- m -</h3><ul>
<li>MakeExternal()
: <a class="el" href="classv8_1_1_string.html#a6419e6b87e73bf03e326dd862fdca495">v8::String</a>
</li>
<li>MakeWeak()
: <a class="el" href="classv8_1_1_persistent.html#ab04609812113450bece2640ad0b27658">v8::Persistent< T ></a>
</li>
<li>MarkAsUndetectable()
: <a class="el" href="classv8_1_1_object_template.html#a7e40ef313b44c2ad336c73051523b4f8">v8::ObjectTemplate</a>
</li>
<li>MarkIndependent()
: <a class="el" href="classv8_1_1_persistent.html#a2c3bc812813279b80326c8a52164a2b4">v8::Persistent< T ></a>
</li>
<li>Message()
: <a class="el" href="classv8_1_1_try_catch.html#a2811e500fbb906ee505895a3d94fc66f">v8::TryCatch</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:47:17 for V8 API Reference Guide for node.js v0.5.2 - v0.5.3 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
| v8-dox/v8-dox.github.io | fea524e/html/functions_func_m.html | HTML | mit | 6,729 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>V8 API Reference Guide for node.js v7.2.1: process.cc</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v7.2.1
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">process.cc</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"></div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
| v8-dox/v8-dox.github.io | 03b1c31/html/process_8cc-example.html | HTML | mit | 3,625 |
using System;
using System.Linq;
using FluentAssertions;
using NUnit.Framework;
using SFA.DAS.EmployerAccounts.Messages.Events;
using SFA.DAS.EmployerAccounts.Models.Account;
using SFA.DAS.EmployerAccounts.Models.TransferConnections;
using SFA.DAS.EmployerAccounts.Models.UserProfile;
using SFA.DAS.EmployerAccounts.UnitTests.Builders;
using SFA.DAS.Testing;
using SFA.DAS.UnitOfWork;
using SFA.DAS.UnitOfWork.Context;
namespace SFA.DAS.EmployerAccounts.UnitTests.Models
{
[TestFixture]
public class TransferConnectionInvitationTests : FluentTest<TransferConnectionInvitationTestsFixture>
{
[Test]
public void SendTransferConnectionInvitation_WhenISendATransferConnection_ThenShouldCreateTransferConnectionInvitation()
{
Run(f => f.SendTransferConnectionInvitation(), f => f.TransferConnectionInvitation.Should().NotBeNull());
}
[Test]
public void SendTransferConnectionInvitation_WhenISendATransferConnection_ThenShouldCreateTransferConnectionInvitationChange()
{
Run(f => f.SendTransferConnectionInvitation(), f => f.TransferConnectionInvitation.Changes.SingleOrDefault().Should().NotBeNull()
.And.Match<TransferConnectionInvitationChange>(c =>
c.ReceiverAccount == f.ReceiverAccount &&
c.SenderAccount == f.SenderAccount &&
c.User == f.SenderUser));
}
[Test]
public void SendTransferConnectionInvitation_WhenISendATransferConnection_ThenShouldPublishSentTransferConnectionInvitationEvent()
{
Run(f => f.SendTransferConnectionInvitation(), f => f.GetEvent<SentTransferConnectionRequestEvent>().Should().NotBeNull()
.And.Match<SentTransferConnectionRequestEvent>(e =>
e.ReceiverAccountHashedId == f.ReceiverAccount.HashedId &&
e.ReceiverAccountId == f.ReceiverAccount.Id &&
e.ReceiverAccountName == f.ReceiverAccount.Name &&
e.SenderAccountHashedId == f.SenderAccount.HashedId &&
e.SenderAccountId == f.SenderAccount.Id &&
e.SenderAccountName == f.SenderAccount.Name &&
e.SentByUserRef == f.SenderUser.Ref &&
e.SentByUserId == f.SenderUser.Id &&
e.SentByUserName == f.SenderUser.FullName &&
e.TransferConnectionRequestId == f.TransferConnectionInvitation.Id));
}
}
public class TransferConnectionInvitationTestsFixture : FluentTestFixture
{
public IUnitOfWorkContext UnitOfWorkContext { get; set; } = new UnitOfWorkContext();
public TransferConnectionInvitation TransferConnectionInvitation { get; set; }
public Account ReceiverAccount { get; set; }
public long? Result { get; set; }
public Account SenderAccount { get; set; }
public decimal SenderAccountTransferAllowance { get; set; }
public User SenderUser { get; set; }
public TransferConnectionInvitationTestsFixture()
{
SetSenderAccount()
.SetReceiverAccount()
.SetSenderUser()
.SetSenderAccountTransferAllowance(1);
}
public TransferConnectionInvitationTestsFixture AddInvitationFromSenderToReceiver(TransferConnectionInvitationStatus status)
{
SenderAccount.SentTransferConnectionInvitations.Add(
new TransferConnectionInvitationBuilder()
.WithReceiverAccount(ReceiverAccount)
.WithStatus(status)
.Build());
return this;
}
public TransferConnectionInvitationChange GetChange(int index)
{
return TransferConnectionInvitation.Changes.ElementAt(index);
}
public T GetEvent<T>()
{
return UnitOfWorkContext.GetEvents().OfType<T>().SingleOrDefault();
}
public void SendTransferConnectionInvitation()
{
TransferConnectionInvitation = SenderAccount.SendTransferConnectionInvitation(ReceiverAccount, SenderUser, SenderAccountTransferAllowance);
}
public TransferConnectionInvitationTestsFixture SetSenderUser()
{
SenderUser = new User
{
Ref = Guid.NewGuid(),
Id = 123456,
FirstName = "John",
LastName = "Doe"
};
return this;
}
public TransferConnectionInvitationTestsFixture SetReceiverAccount()
{
ReceiverAccount = new Account
{
Id = 222222,
PublicHashedId = "XYZ987",
Name = "Receiver"
};
return this;
}
public TransferConnectionInvitationTestsFixture SetSenderAccount()
{
SenderAccount = new Account
{
Id = 333333,
PublicHashedId = "ABC123",
Name = "Sender"
};
return this;
}
public TransferConnectionInvitationTestsFixture SetSenderAccountTransferAllowance(decimal transferAllowance)
{
SenderAccountTransferAllowance = transferAllowance;
return this;
}
}
} | SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerAccounts.UnitTests/Models/TransferConnectionInvitationTests.cs | C# | mit | 5,381 |
<TS language="es_MX" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Crear una dirección nueva</translation>
</message>
<message>
<source>&New</source>
<translation>&Nuevo</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copiar el domicilio seleccionado al portapapeles del sistema</translation>
</message>
<message>
<source>&Copy</source>
<translation>&Copiar</translation>
</message>
<message>
<source>C&lose</source>
<translation>Cerrar</translation>
</message>
<message>
<source>&Copy Address</source>
<translation>&Copiar dirección</translation>
</message>
<message>
<source>Delete the currently selected address from the list</source>
<translation>Eliminar la dirección actualmente seleccionada de la lista</translation>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation>Exportar la información en la tabla actual a un archivo</translation>
</message>
<message>
<source>&Export</source>
<translation>&Exportar</translation>
</message>
<message>
<source>&Delete</source>
<translation>&Borrar</translation>
</message>
<message>
<source>Choose the address to send coins to</source>
<translation>Elija una dirección a la cual enviar monedas</translation>
</message>
<message>
<source>Choose the address to receive coins with</source>
<translation>Elija la dirección con la cual recibir monedas</translation>
</message>
<message>
<source>C&hoose</source>
<translation>Elegir</translation>
</message>
<message>
<source>Such sending addresses</source>
<translation>Enviando direcciones</translation>
</message>
<message>
<source>Much receiving addresses</source>
<translation>Recibiendo direcciones</translation>
</message>
<message>
<source>These are your Dogecoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation>Estas son tus direcciones de Dogecoin para enviar pagos. Siempre revise la cantidad y la dirección receptora antes de enviar monedas</translation>
</message>
<message>
<source>These are your Dogecoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source>
<translation>Estas son tus direcciones Dogecoin para recibir pagos. Es recomendado usar una nueva dirección receptora para cada transacción.</translation>
</message>
<message>
<source>Copy &Label</source>
<translation>Copiar &Etiqueta</translation>
</message>
<message>
<source>&Edit</source>
<translation>&Editar</translation>
</message>
<message>
<source>Export Address List</source>
<translation>Exportar Lista de direcciones</translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>Arhchivo separado por comas (*.CSV)</translation>
</message>
<message>
<source>Exporting Failed</source>
<translation>Exportación fallida</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<source>Address</source>
<translation>Domicilio</translation>
</message>
<message>
<source>(no label)</source>
<translation>(sin etiqueta)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<source>Enter passphrase</source>
<translation>Ingrese la contraseña</translation>
</message>
<message>
<source>New passphrase</source>
<translation>Nueva contraseña</translation>
</message>
<message>
<source>Repeat new passphrase</source>
<translation>Repita la nueva contraseña</translation>
</message>
<message>
<source>Encrypt wallet</source>
<translation>Encriptar cartera.</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Esta operación necesita la contraseña de su cartera para desbloquear su cartera.</translation>
</message>
<message>
<source>Unlock wallet</source>
<translation>Desbloquear cartera.</translation>
</message>
<message>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Esta operación necesita la contraseña de su cartera para desencriptar su cartera.</translation>
</message>
<message>
<source>Decrypt wallet</source>
<translation>Desencriptar cartera</translation>
</message>
<message>
<source>Change passphrase</source>
<translation>Cambiar contraseña</translation>
</message>
<message>
<source>Confirm wallet encryption</source>
<translation>Confirmar la encriptación de cartera</translation>
</message>
<message>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR DOGECOINS</b>!</source>
<translation>Advertencia: Si encripta su cartera y pierde su contraseña, <b>PERDERÁ TODOS SUS DOGECOINS</b>!</translation>
</message>
<message>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>¿Está seguro que desea encriptar su cartera?</translation>
</message>
<message>
<source>Warning: The Caps Lock key is on!</source>
<translation>Advertencia: ¡La tecla Bloq Mayus está activada!</translation>
</message>
<message>
<source>Wallet encrypted</source>
<translation>Cartera encriptada</translation>
</message>
<message>
<source>Wallet encryption failed</source>
<translation>Encriptación de la cartera fallida</translation>
</message>
<message>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>La encriptación de la cartera falló debido a un error interno. Su cartera no fue encriptada.</translation>
</message>
<message>
<source>The supplied passphrases do not match.</source>
<translation>Las contraseñas dadas no coinciden</translation>
</message>
<message>
<source>Wallet unlock failed</source>
<translation>El desbloqueo de la cartera falló</translation>
</message>
<message>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>La contraseña ingresada para la desencriptación de la cartera es incorrecto</translation>
</message>
<message>
<source>Wallet decryption failed</source>
<translation>La desencriptación de la cartera fallo</translation>
</message>
<message>
<source>Wallet passphrase was successfully changed.</source>
<translation>La contraseña de la cartera ha sido exitosamente cambiada.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<source>Sign &message...</source>
<translation>Sign &mensaje</translation>
</message>
<message>
<source>Synchronizing with network...</source>
<translation>Sincronizando con la red...</translation>
</message>
<message>
<source>&Overview</source>
<translation>&Vista previa</translation>
</message>
<message>
<source>Node</source>
<translation>Nodo</translation>
</message>
<message>
<source>Show general overview of wallet</source>
<translation>Mostrar la vista previa general de la cartera</translation>
</message>
<message>
<source>&Transactions</source>
<translation>&Transacciones</translation>
</message>
<message>
<source>Browse transaction history</source>
<translation>Explorar el historial de transacciones</translation>
</message>
<message>
<source>E&xit</source>
<translation>S&alir</translation>
</message>
<message>
<source>Quit application</source>
<translation>Salir de la aplicación</translation>
</message>
<message>
<source>About &Qt</source>
<translation>Acerca de &Qt</translation>
</message>
<message>
<source>Show information about Qt</source>
<translation>Mostrar información acerca de Qt</translation>
</message>
<message>
<source>&Options...</source>
<translation>&Opciones</translation>
</message>
<message>
<source>&Encrypt Wallet...</source>
<translation>&Encriptar cartera</translation>
</message>
<message>
<source>&Backup Wallet...</source>
<translation>&Respaldar cartera</translation>
</message>
<message>
<source>&Change Passphrase...</source>
<translation>&Cambiar contraseña...</translation>
</message>
<message>
<source>Such &sending addresses...</source>
<translation>&Enviando direcciones...</translation>
</message>
<message>
<source>Much &receiving addresses...</source>
<translation>&Recibiendo direcciones...</translation>
</message>
<message>
<source>Open &URI...</source>
<translation>Abrir &URL...</translation>
</message>
<message>
<source>Importing blocks from disk...</source>
<translation>Importando bloques desde el disco...</translation>
</message>
<message>
<source>Reindexing blocks on disk...</source>
<translation>Reindexando bloques en el disco...</translation>
</message>
<message>
<source>Send coins to a Dogecoin address</source>
<translation>Enviar monedas a una dirección Dogecoin</translation>
</message>
<message>
<source>Backup wallet to another location</source>
<translation>Respaldar cartera en otra ubicación</translation>
</message>
<message>
<source>Change the passphrase used for wallet encryption</source>
<translation>Cambiar la contraseña usada para la encriptación de la cartera</translation>
</message>
<message>
<source>&Debug window</source>
<translation>&Depurar ventana</translation>
</message>
<message>
<source>Open debugging and diagnostic console</source>
<translation>Abrir la consola de depuración y disgnostico</translation>
</message>
<message>
<source>&Verify message...</source>
<translation>&Verificar mensaje...</translation>
</message>
<message>
<source>&File</source>
<translation>&Archivo</translation>
</message>
<message>
<source>&Settings</source>
<translation>&Configuraciones</translation>
</message>
<message>
<source>&Help</source>
<translation>&Ayuda</translation>
</message>
<message>
<source>Tabs toolbar</source>
<translation>Pestañas</translation>
</message>
<message>
<source>Dogecoin Core</source>
<translation>nucleo Dogecoin</translation>
</message>
<message>
<source>&Command-line options</source>
<translation>opciones de la &Linea de comandos</translation>
</message>
<message>
<source>Show the Dogecoin Core help message to get a list with possible Dogecoin command-line options</source>
<translation>Mostrar mensaje de ayuda del nucleo de Dogecoin para optener una lista con los posibles comandos de Dogecoin</translation>
</message>
<message>
<source>Up to date</source>
<translation>Actualizado al dia </translation>
</message>
<message>
<source>Catching up...</source>
<translation>Resiviendo...</translation>
</message>
<message>
<source>Sent transaction</source>
<translation>Enviar Transacción</translation>
</message>
<message>
<source>Incoming transaction</source>
<translation>Transacción entrante</translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>La cartera esta <b>encriptada</b> y <b>desbloqueada</b> actualmente </translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>La cartera esta <b>encriptada</b> y <b>bloqueada</b> actualmente </translation>
</message>
</context>
<context>
<name>ClientModel</name>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<source>Amount:</source>
<translation>Monto:</translation>
</message>
<message>
<source>Priority:</source>
<translation>Prioridad:</translation>
</message>
<message>
<source>Fee:</source>
<translation>Cuota:</translation>
</message>
<message>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<source>Confirmed</source>
<translation>Confirmado </translation>
</message>
<message>
<source>Copy address</source>
<translation>Copiar dirección </translation>
</message>
<message>
<source>Copy label</source>
<translation>Copiar capa </translation>
</message>
<message>
<source>Copy amount</source>
<translation>copiar monto</translation>
</message>
<message>
<source>Copy quantity</source>
<translation>copiar cantidad</translation>
</message>
<message>
<source>Copy fee</source>
<translation>copiar cuota</translation>
</message>
<message>
<source>Copy after fee</source>
<translation>copiar despues de cuota</translation>
</message>
<message>
<source>Copy bytes</source>
<translation>copiar bytes</translation>
</message>
<message>
<source>Copy priority</source>
<translation>copiar prioridad</translation>
</message>
<message>
<source>Copy change</source>
<translation>copiar cambio</translation>
</message>
<message>
<source>(no label)</source>
<translation>(sin etiqueta)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<source>Edit Address</source>
<translation>Editar dirección</translation>
</message>
<message>
<source>&Label</source>
<translation>&Etiqueta</translation>
</message>
<message>
<source>&Address</source>
<translation>&Dirección</translation>
</message>
<message>
<source>New receiving address</source>
<translation>Nueva dirección de entregas</translation>
</message>
<message>
<source>New sending address</source>
<translation>Nueva dirección de entregas</translation>
</message>
<message>
<source>Edit receiving address</source>
<translation>Editar dirección de entregas</translation>
</message>
<message>
<source>Edit sending address</source>
<translation>Editar dirección de envios</translation>
</message>
<message>
<source>The entered address "%1" is already in the address book.</source>
<translation>El domicilio ingresado "%1" ya existe en la libreta de direcciones</translation>
</message>
<message>
<source>Could not unlock wallet.</source>
<translation>No se puede desbloquear la cartera</translation>
</message>
<message>
<source>New key generation failed.</source>
<translation>La generación de la nueva clave fallo</translation>
</message>
</context>
<context>
<name>FreespaceChecker</name>
</context>
<context>
<name>HelpMessageDialog</name>
<message>
<source>Dogecoin Core</source>
<translation>nucleo Dogecoin</translation>
</message>
<message>
<source>version</source>
<translation>Versión</translation>
</message>
<message>
<source>(%1-bit)</source>
<translation>(%1-bit)</translation>
</message>
<message>
<source>About Dogecoin Core</source>
<translation>Acerca de Dogecoin Core</translation>
</message>
<message>
<source>Usage:</source>
<translation>Uso:</translation>
</message>
<message>
<source>command-line options</source>
<translation>Opciones de comando de lineas</translation>
</message>
</context>
<context>
<name>Intro</name>
<message>
<source>Dogecoin Core</source>
<translation>nucleo Dogecoin</translation>
</message>
</context>
<context>
<name>OpenURIDialog</name>
</context>
<context>
<name>OptionsDialog</name>
<message>
<source>Options</source>
<translation>Opciones</translation>
</message>
<message>
<source>Active command-line options that override above options:</source>
<translation>Activar las opciones de linea de comando que sobre escriben las siguientes opciones:</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<source>Form</source>
<translation>Formulario</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
</context>
<context>
<name>PeerTableModel</name>
</context>
<context>
<name>QObject</name>
<message>
<source>Amount</source>
<translation>Monto</translation>
</message>
</context>
<context>
<name>QRImageWidget</name>
</context>
<context>
<name>RPCConsole</name>
</context>
<context>
<name>ReceiveCoinsDialog</name>
<message>
<source>&Label:</source>
<translation>&Etiqueta</translation>
</message>
<message>
<source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Dogecoin network.</source>
<translation>Mensaje opcional para agregar a la solicitud de pago, el cual será mostrado cuando la solicitud este abierta. Nota: El mensaje no se manda con el pago a travéz de la red de Dogecoin.</translation>
</message>
<message>
<source>Use this form to request payments. All fields are <b>optional</b>.</source>
<translation>Use este formulario para la solicitud de pagos. Todos los campos son <b>opcionales</b></translation>
</message>
<message>
<source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source>
<translation>Monto opcional a solicitar. Dejarlo vacion o en cero no solicita un monto especifico.</translation>
</message>
<message>
<source>Copy label</source>
<translation>Copiar capa </translation>
</message>
<message>
<source>Copy amount</source>
<translation>copiar monto</translation>
</message>
</context>
<context>
<name>ReceiveRequestDialog</name>
<message>
<source>Address</source>
<translation>Domicilio</translation>
</message>
<message>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
</context>
<context>
<name>RecentRequestsTableModel</name>
<message>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<source>(no label)</source>
<translation>(sin etiqueta)</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<source>Send Coins</source>
<translation>Mandar monedas</translation>
</message>
<message>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<source>Amount:</source>
<translation>Monto:</translation>
</message>
<message>
<source>Priority:</source>
<translation>Prioridad:</translation>
</message>
<message>
<source>Fee:</source>
<translation>Cuota:</translation>
</message>
<message>
<source>Send to multiple recipients at once</source>
<translation>Enviar a múltiples receptores a la vez</translation>
</message>
<message>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<source>Confirm the send action</source>
<translation>Confirme la acción de enviar</translation>
</message>
<message>
<source>Confirm send coins</source>
<translation>Confirme para mandar monedas</translation>
</message>
<message>
<source>Copy quantity</source>
<translation>copiar cantidad</translation>
</message>
<message>
<source>Copy amount</source>
<translation>copiar monto</translation>
</message>
<message>
<source>Copy fee</source>
<translation>copiar cuota</translation>
</message>
<message>
<source>Copy after fee</source>
<translation>copiar despues de cuota</translation>
</message>
<message>
<source>Copy bytes</source>
<translation>copiar bytes</translation>
</message>
<message>
<source>Copy priority</source>
<translation>copiar prioridad</translation>
</message>
<message>
<source>Copy change</source>
<translation>copiar cambio</translation>
</message>
<message>
<source>Total Amount %1 (= %2)</source>
<translation>Monto total %1(=%2)</translation>
</message>
<message>
<source>or</source>
<translation>o</translation>
</message>
<message>
<source>The amount to pay must be larger than 0.</source>
<translation>El monto a pagar debe ser mayor a 0</translation>
</message>
<message>
<source>Transaction creation failed!</source>
<translation>¡La creación de transacion falló!</translation>
</message>
<message>
<source>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>¡La transación fue rechazada! Esto puede ocurrir si algunas de tus monedas en tu cartera han sido gastadas, al igual que si usas una cartera copiada y la monedas fueron gastadas en la copia pero no se marcaron como gastadas.</translation>
</message>
<message>
<source>Warning: Invalid Dogecoin address</source>
<translation>Advertencia: Dirección de Dogecoin invalida</translation>
</message>
<message>
<source>(no label)</source>
<translation>(sin etiqueta)</translation>
</message>
<message>
<source>Warning: Unknown change address</source>
<translation>Advertencia: Cambio de dirección desconocido</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<source>A&mount:</source>
<translation>M&onto</translation>
</message>
<message>
<source>Pay &To:</source>
<translation>Pagar &a:</translation>
</message>
<message>
<source>Enter a label for this address to add it to your address book</source>
<translation>Ingrese una etiqueta para esta dirección para agregarlo en su libreta de direcciones.</translation>
</message>
<message>
<source>&Label:</source>
<translation>&Etiqueta</translation>
</message>
<message>
<source>This is a normal payment.</source>
<translation>Este es un pago normal</translation>
</message>
<message>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation>Pegar dirección del portapapeles</translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<source>Remove this entry</source>
<translation>Quitar esta entrada</translation>
</message>
<message>
<source>Message:</source>
<translation>Mensaje:</translation>
</message>
<message>
<source>Pay To:</source>
<translation>Pago para:</translation>
</message>
</context>
<context>
<name>ShutdownWindow</name>
<message>
<source>Dogecoin Core is shutting down...</source>
<translation>Apagando el nucleo de Dogecoin...</translation>
</message>
<message>
<source>Do not shut down the computer until this window disappears.</source>
<translation>No apague su computadora hasta que esta ventana desaparesca.</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation>Pegar dirección del portapapeles</translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<source>Dogecoin Core</source>
<translation>nucleo Dogecoin</translation>
</message>
<message>
<source>The Dogecoin Core developers</source>
<translation>Los desarrolladores de Dogecoin Core</translation>
</message>
</context>
<context>
<name>TrafficGraphWidget</name>
</context>
<context>
<name>TransactionDesc</name>
<message>
<source>Open until %1</source>
<translation>Abrir hasta %1</translation>
</message>
<message>
<source>%1/unconfirmed</source>
<translation>%1/No confirmado</translation>
</message>
<message>
<source>%1 confirmations</source>
<translation>%1 confirmaciones</translation>
</message>
<message>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<source>Transaction ID</source>
<translation>ID</translation>
</message>
<message>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<source>, has not been successfully broadcast yet</source>
<translation>, no ha sido transmitido aun</translation>
</message>
<message>
<source>unknown</source>
<translation>desconocido</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<source>Transaction details</source>
<translation>Detalles de la transacción</translation>
</message>
<message>
<source>This pane shows a detailed description of the transaction</source>
<translation>Este panel muestras una descripción detallada de la transacción</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<source>Open until %1</source>
<translation>Abrir hasta %1</translation>
</message>
<message>
<source>Confirmed (%1 confirmations)</source>
<translation>Confimado (%1 confirmaciones)</translation>
</message>
<message>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Este bloque no fue recibido por ningun nodo y probablemente no fue aceptado !</translation>
</message>
<message>
<source>Generated but not accepted</source>
<translation>Generado pero no aprovado</translation>
</message>
<message>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<source>Received with</source>
<translation>Recivido con</translation>
</message>
<message>
<source>Sent to</source>
<translation>Enviar a</translation>
</message>
<message>
<source>Payment to yourself</source>
<translation>Pagar a si mismo</translation>
</message>
<message>
<source>Mined</source>
<translation>Minado </translation>
</message>
<message>
<source>(n/a)</source>
<translation>(n/a)</translation>
</message>
<message>
<source>Date and time that the transaction was received.</source>
<translation>Fecha y hora en que la transacción fue recibida </translation>
</message>
<message>
<source>Type of transaction.</source>
<translation>Escriba una transacción</translation>
</message>
<message>
<source>Amount removed from or added to balance.</source>
<translation>Cantidad removida del saldo o agregada </translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<source>All</source>
<translation>Todo</translation>
</message>
<message>
<source>Today</source>
<translation>Hoy</translation>
</message>
<message>
<source>This week</source>
<translation>Esta semana </translation>
</message>
<message>
<source>This month</source>
<translation>Este mes </translation>
</message>
<message>
<source>Last month</source>
<translation>El mes pasado </translation>
</message>
<message>
<source>This year</source>
<translation>Este año</translation>
</message>
<message>
<source>Received with</source>
<translation>Recivido con</translation>
</message>
<message>
<source>Sent to</source>
<translation>Enviar a</translation>
</message>
<message>
<source>To yourself</source>
<translation>Para ti mismo</translation>
</message>
<message>
<source>Mined</source>
<translation>Minado </translation>
</message>
<message>
<source>Other</source>
<translation>Otro</translation>
</message>
<message>
<source>Enter address or label to search</source>
<translation>Ingrese dirección o capa a buscar </translation>
</message>
<message>
<source>Min amount</source>
<translation>Monto minimo </translation>
</message>
<message>
<source>Copy address</source>
<translation>Copiar dirección </translation>
</message>
<message>
<source>Copy label</source>
<translation>Copiar capa </translation>
</message>
<message>
<source>Copy amount</source>
<translation>copiar monto</translation>
</message>
<message>
<source>Edit label</source>
<translation>Editar capa </translation>
</message>
<message>
<source>Export Transaction History</source>
<translation>Exportar el historial de transacción</translation>
</message>
<message>
<source>Exporting Failed</source>
<translation>Exportación fallida</translation>
</message>
<message>
<source>There was an error trying to save the transaction history to %1.</source>
<translation>Ocurrio un error intentando guardar el historial de transaciones a %1</translation>
</message>
<message>
<source>Exporting Successful</source>
<translation>Exportacion satisfactoria</translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>Arhchivo separado por comas (*.CSV)</translation>
</message>
<message>
<source>Confirmed</source>
<translation>Confirmado </translation>
</message>
<message>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<source>Address</source>
<translation>Domicilio</translation>
</message>
<message>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<source>to</source>
<translation>Para</translation>
</message>
</context>
<context>
<name>UnitDisplayStatusBarControl</name>
</context>
<context>
<name>WalletFrame</name>
<message>
<source>No wallet has been loaded.</source>
<translation>No se há cargado la cartera.</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<source>Send Coins</source>
<translation>Mandar monedas</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<source>&Export</source>
<translation>&Exportar</translation>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation>Exportar la información en la tabla actual a un archivo</translation>
</message>
<message>
<source>There was an error trying to save the wallet data to %1.</source>
<translation>Ocurrio un error tratando de guardar la información de la cartera %1</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<source><category> can be:</source>
<translation><categoria> puede ser:</translation>
</message>
<message>
<source>Wallet options:</source>
<translation>Opciones de cartera:</translation>
</message>
<message>
<source>Choose data directory on startup (default: 0)</source>
<translation>Escojer el directorio de información al iniciar (por defecto : 0)</translation>
</message>
<message>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Definir idioma, por ejemplo "de_DE" (por defecto: Sistema local)</translation>
</message>
<message>
<source>Show splash screen on startup (default: 1)</source>
<translation>Mostrar pantalla de arraque al iniciar (por defecto: 1)</translation>
</message>
<message>
<source>Start minimized</source>
<translation>Iniciar minimizado</translation>
</message>
<message>
<source>Loading addresses...</source>
<translation>Cargando direcciones...</translation>
</message>
<message>
<source>Loading block index...</source>
<translation>Cargando indice de bloques... </translation>
</message>
<message>
<source>Loading wallet...</source>
<translation>Cargando billetera...</translation>
</message>
<message>
<source>Done loading</source>
<translation>Carga completa</translation>
</message>
</context>
</TS> | asincoin/asincoin | src/qt/locale/bitcoin_es_MX.ts | TypeScript | mit | 36,877 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.0 / elpi - 1.4.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
elpi
<small>
1.4.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-26 20:55:43 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-26 20:55:43 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.2 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Enrico Tassi <enrico.tassi@inria.fr>"
authors: [ "Enrico Tassi" ]
license: "LGPL-2.1-or-later"
homepage: "https://github.com/LPCIC/coq-elpi"
bug-reports: "https://github.com/LPCIC/coq-elpi/issues"
dev-repo: "git+https://github.com/LPCIC/coq-elpi"
build: [ make "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
depends: [
"elpi" {>= "1.11.2" & < "1.12.0~"}
"coq" {>= "8.11" & < "8.12~"}
]
tags: [
"logpath:elpi"
]
synopsis: "Elpi extension language for Coq"
description: """
Coq-elpi provides a Coq plugin that embeds ELPI.
It also provides a way to embed Coq's terms into λProlog using
the Higher-Order Abstract Syntax approach
and a way to read terms back. In addition to that it exports to ELPI a
set of Coq's primitives, e.g. printing a message, accessing the
environment of theorems and data types, defining a new constant and so on.
For convenience it also provides a quotation and anti-quotation for Coq's
syntax in λProlog. E.g. `{{nat}}` is expanded to the type name of natural
numbers, or `{{A -> B}}` to the representation of a product by unfolding
the `->` notation. Finally it provides a way to define new vernacular commands
and new tactics."""
url {
src: "https://github.com/LPCIC/coq-elpi/archive/v1.4.1.tar.gz"
checksum: "sha256=a458a85e90b2f38cbc1bce9dce8904a1620fddd3e0c63cef916607af2fb51383"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-elpi.1.4.1 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.0).
The following dependencies couldn't be met:
- coq-elpi -> coq >= 8.11
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-elpi.1.4.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.0/elpi/1.4.1.html | HTML | mit | 7,480 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unicoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1 / unicoq - 1.5+8.13</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
unicoq
<small>
1.5+8.13
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-05 19:37:45 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-05 19:37:45 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.7.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "matthieu.sozeau@inria.fr"
authors: [ "Matthieu Sozeau <matthieu.sozeau@inria.fr>" "Beta Ziliani <beta@mpi-sws.org>" ]
dev-repo: "git+https://github.com/unicoq/unicoq.git"
homepage: "https://github.com/unicoq/unicoq"
bug-reports: "https://github.com/unicoq/unicoq/issues"
license: "MIT"
build: [
["coq_makefile" "-f" "_CoqProject" "-o" "Makefile"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
depends: [
"ocaml"
"coq" {>= "8.13" & < "8.14~"}
]
synopsis: "An enhanced unification algorithm for Coq"
tags: [
"logpath:Unicoq"
"date:2020-08-12"
]
url {
src: "https://github.com/unicoq/unicoq/archive/v1.5-8.13.tar.gz"
checksum: "sha256=9c9e67e787c6fdbae289845a33408c84fe5826c1ff52a824f2b2b9f55ce9d255"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-unicoq.1.5+8.13 coq.8.7.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1).
The following dependencies couldn't be met:
- coq-unicoq -> coq >= 8.13 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-unicoq.1.5+8.13</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.1/unicoq/1.5+8.13.html | HTML | mit | 6,779 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>goedel: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">dev / goedel - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
goedel
<small>
8.10.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-04-14 10:21:03 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-04-14 10:21:03 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq dev Formal proof management system
num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.0 Official release 4.10.0
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/http://r6.ca/goedel1.html"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Goedel"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
"coq-pocklington" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: Goedel Rosser Incompleteness Logic Hilbert"
"category: Mathematics/Logic/Foundations"
"date: 2007-04-13"
]
authors: [
"Russell O'Connor <roconnor@alumni.uwaterloo.ca> [http://r6.ca]"
]
bug-reports: "https://github.com/coq-contribs/goedel/issues"
dev-repo: "git+https://github.com/coq-contribs/goedel.git"
synopsis: "The Gödel-Rosser 1st incompleteness theorem"
description: """
A proof that any first order theory extending NN (which is PA
without induction) that is complete is inconsistent"""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/goedel/archive/v8.10.0.tar.gz"
checksum: "md5=2f518790d59dd17369f662ebac56c4bc"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-goedel.8.10.0 coq.dev</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is dev).
The following dependencies couldn't be met:
- coq-goedel -> coq < 8.11~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-goedel.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.0-2.0.6/extra-dev/dev/goedel/8.10.0.html | HTML | mit | 6,998 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>2695-37-6.smi.png.html</title>
</head>
<body>ID2695-37-6<br/>
<img border="0" src="2695-37-6.smi.png" alt="2695-37-6.smi.png"></img><br/>
<br/>
<table border="1">
<tr>
<td></td><td>ID</td><td>Formula</td><td>FW</td><td>DSSTox_CID</td><td>DSSTox_RID</td><td>DSSTox_GSID</td><td>DSSTox_FileID_Sort</td><td>TS_ChemName</td><td>TS_ChemName_Synonyms</td><td>TS_CASRN</td><td>CASRN_ChemName_Relationship</td><td>TS_Description</td><td>ChemNote</td><td>STRUCTURE_Shown</td><td>STRUCTURE_Formula</td><td>STRUCTURE_MW</td><td>STRUCTURE_ChemType</td><td>STRUCTURE_DefinedOrganicForm</td><td>STRUCTURE_IUPAC</td><td>STRUCTURE_SMILES</td><td>STRUCTURE_SMILES_Desalt</td><td>Substance_modify_yyyymmdd</td></tr>
<tr>
<td>2695-37-6</td><td>10288</td><td>C8H7NaO3S</td><td>206.1941 (183.2049+22.9892)</td><td>24635</td><td>80367</td><td>44635</td><td>5049</td><td>Sodium 4-vinylbenzenesulfonate</td><td>Benzenesulfonic acid, 4-ethenyl-, sodium salt</td><td>2695-37-6</td><td>primary</td><td>single chemical compound</td><td>parent [98-70-4]</td><td>tested chemical</td><td>C8H7NaO3S</td><td>206.1941</td><td>defined organic</td><td>salt</td><td>sodium 4-ethenylbenzenesulfonate</td><td>[Na+].O=S([O-])(=O)c1ccc(C=C)cc1</td><td>OS(=O)(=O)c1ccc(C=C)cc1</td><td>20091116</td></tr>
</table>
<br/><br/><font size="-2">(Page generated on Wed Sep 17 04:00:27 2014 by <a href="http://www.embl.de/~gpau/hwriter/index.html">hwriter</a> 1.3)</font><br/>
</body></html> | andrewdefries/ToxCast | Figure3/Tox21_nnm/WorkHere/2695-37-6.smi.png.html | HTML | mit | 1,723 |
// TODO debug only?
import {assert} from './assert';
import {makeDecorator, getAnnotations, mergeAnnotations} from './reflection';
import {setIfInterface, isFunction} from './utils';
/**
* Options available when decorating a class as a service
*/
export interface ServiceOptions {
/**
* The name the service will be made available for injection
*/
name: string;
/**
* An optional provider object or provider factory
*/
provider?: ng.IServiceProvider|ng.IServiceProviderFactory;
/**
* An optional service factory
*/
factory?: Function;
}
/**
* @internal
*/
export class ServiceAnnotation {
name: string = void 0;
provider: ng.IServiceProvider|ng.IServiceProviderFactory = void 0;
factory: Function = void 0;
constructor(options: ServiceOptions) {
// TODO debug only?
assert.notNull(options, 'options must not be null');
assert.notEmpty(options.name, 'name cannot be null or empty');
setIfInterface(this, options);
}
}
/**
* Interface services may implement
*/
export interface Service {
}
/**
* @internal
*/
export interface ServiceConstructor extends Function {
new (...args: any[]): Service;
prototype: Service;
}
type DecoratorSignature = (options: ServiceOptions) => ClassDecorator;
/**
* A decorator to annotate a class as being a service
*/
export var Service = <DecoratorSignature> makeDecorator(ServiceAnnotation);
/**
* @internal
*/
export function publishService(serviceClass: ServiceConstructor, ngModule: ng.IModule, name?: string): ng.IModule {
// Reflect.decorate apply decorators reversely, so we need to reverse
// the extracted annotations before merging them
// var aux = getAnnotations(serviceClass, ServiceAnnotation).reverse();
var aux = getAnnotations(serviceClass, ServiceAnnotation);
// TODO debug only?
assert.notEmpty(aux, 'Did you decorate it with @Service?');
var annotation = <ServiceAnnotation> {/*no defalts*/};
mergeAnnotations(annotation, ...aux);
var name = name != null ? name : annotation.name;
if (annotation.provider) {
ngModule.provider(name, <any> annotation.provider);
}
else if (annotation.factory) {
ngModule.factory(name, annotation.factory);
}
else {
ngModule.service(name, serviceClass);
}
return ngModule;
} | diegovilar/tng | src/core/service.ts | TypeScript | mit | 2,389 |
/* Copyright (c) 1995, 2018, Oracle and/or its affiliates.
All rights reserved.*/
/*
NAME
oci.h - V8 Oracle Call Interface public definitions
DESCRIPTION
This file defines all the constants and structures required by a V8
OCI programmer.
RELATED DOCUMENTS
V8 OCI Functional Specification
Oracle Call Interface Programmer's Guide Vol 1 and 2
INSPECTION STATUS
Inspection date:
Inspection status:
Estimated increasing cost defects per page:
Rule sets:
ACCEPTANCE REVIEW STATUS
Review date:
Review status:
Reviewers:
PUBLIC FUNCTION(S)
None
PRIVATE FUNCTION(S)
None
EXAMPLES
NOTES
MODIFIED (MM/DD/YY)
jstenois 04/25/18 - XbranchMerge jstenois_proj-75872 from main
avnandak 04/13/18 - Bug 27604835: Add OCI_ATTR_SPOOL_MAX_PER_SHARD
sriksure 04/02/18 - Bug 27698424: Backport SODA bugs from main
sriksure 12/01/17 - Project 74694: SODA Enhancements -
Add OCI_FNCODE_SODAOPERKEYSSET
rphillip 08/08/17 - Proj 74575: Add column array convert attribute
vjitta 10/25/17 - Bug 26865240: Soda removing unwanted attributes
prramakr 10/22/17 - Bug 27006717: add macros to get server version
morgiyan 10/20/17 - Bug 27033953: Add OCI_SODA_COLL_CREATE_MAP
ngcolloo 09/15/17 - Bug 26414141: Add OCI_ATTR_RESERVED_600
shubhaku 10/18/17 - Bug 26428574: Add OCI_ATTR_RESERVED_599
samys 10/09/17 - Bug 26922120: Fixing OCI SODA FNCODE names
ngcolloo 09/30/17 - Bug 26482143: Add OCI_ATTR_RESERVED_598
prramakr 09/25/17 - Bug 26831390: Add OCI_FNCODE_SERVERRELEASE2
ngcolloo 09/15/17 - Bug 26418352: Add OCI_ATTR_RESERVED_597
rkanodia 09/07/17 - Bug 26715862: add OCI_ATTR_RESERVED_596
rpingte 08/24/17 - OCI_MAJOR_VERSION & OCI_MINOR_VERSION into ociver.h
ssahu 08/14/17 - Bug 26368952: Add attribute OCI_ATTR_RESERVED_584
rphillip 08/08/17 - Add column array convert attribute
mbastawa 08/04/17 - Bug 26049373: add OCI_ATTR_AUTOTUNING_ENABLED
mbastawa 08/04/17 - Bug 25893448: Add OCI_ATTR_RESERVED_595
rajarsel 08/03/17 - Bug 12314489: Add new reserved mode
thbaby 08/01/17 - Bug 26548426: add OCI_ATTR_COL_PROPERTY_IS_CONID
rkanodia 06/14/17 - Bug 26253175: add OCI_ATTR_LOB_TYPE
jdavison 06/12/17 - Version 18 changes
bhshanmu 06/08/17 - bhshanmu_bug-26003322_windows
bhammers 02/07/17 - bug 25424304: add OCI_ATTR_JSON_COL
sriksure 06/05/17 - Bug 25839907: Add OCI_SODA_DETECT_JSON_ENC,
OCI_ATTR_SODA_JSON_CHARSET_ID and
OCI_ATTR_SODA_DETECT_JSON_ENC
vjitta 06/04/17 - Bug 26089218: Name changes for SODA
bhammers 02/07/17 - bug 25424304: add OCI_ATTR_JSON_COL
shubhaku 06/06/17 - Bug 25666173: Add OCI_ATTR_RESERVED_588
rajeekku 06/04/17 - Bug 26078057: Sync key value pairs
rkanodia 05/26/17 - Bug 26126348: add OCI_ENVCR_RESERVED8
kkverma 05/15/17 - Bug 25389765: add OCI_ATCH_RESERVED_9
vjitta 04/24/17 - Bug 25906775: Using default OCI DATA TYPES, removing
close method function codes
rkanodia 04/18/17 - Bug 25931554: Add OCI_ATTR_RESERVED_587
vjitta 04/13/17 - Bug 25506531: List collection.
rajeekku 03/31/17 - Bug 25756140: Force iovec request
vjitta 03/19/17 - Bug 25505506: OCI SODA diagnostic code.
thbaby 03/29/17 - Bug 25774866: add OCI_ATTR_RESERVED_533
thbaby 03/17/17 - Bug 25684526: add OCI_ATTR_COL_PROPERTY_IS_LPART
jibyun 03/02/17 - Bug 25616645: add OCI_PREP2_RESERVED_8
kkverma 03/01/17 - Bug 25649955: Add OCI_ATTR_SPOOL_MAX_USE_SESSION
vjitta 02/16/17 - Bug 25508124: SODA name changes and refactoring
ssonawan 02/03/17 - ER 24826993: add OCI_PREP2_RESERVED_7
jstenois 01/23/17 - proj 72314 DWCS: add OCIDirPath features needed for DWCS
rphillip 01/20/17 - Add column level NULL on errors
skabraha 01/11/17 - Proj 68652: add OCI_ATTR_IS_NOT_PERSISTABLE_TYPE
prramakr 01/10/17 - proj 68530: add call timeout attribute
sriksure 12/23/16 - Project: 68452 - Add SODA handles
ngcolloo 12/19/16 - Proj 68323: add new OCI_ATTR_RESERVED
suhgarg 12/16/16 - Bug 24963543: add OCI_ATTR_PDBNAME
ssubrama 12/06/16 - bug 20473441 OCIAQEnq2 and OCIAQDeq2
kneel 10/10/16 - Bug 24375258: add OCI_FNCODE_RESERVED_155
kneel 09/12/16 - Bug 24655077: no ltxid if TAF is on
Bug 24656359: Add OCI_ATTR_RESERVED_522
rphillip 08/17/16 - Project 58357: continue on errors
nikeda 08/12/16 - Bug 24313297: Add OCI_ATTR_RESERVED_521
kneel 05/27/16 - Bug 14614524: add OCI_ATTR_TRANSACTIONAL_TAF
kneel 05/07/16 - Bug 21123869: add OCI_FNCODE_LOBFILEOPEN,_LOBFILECLOSE
remove OCI_ENVCR_RESERVED8
rkanodia 03/29/16 - Bug 22993915: add OCI_ATTR_LOB_REMOTE attribute to
lob descriptor
kneel 01/27/16 - add OCI_ATTR_RESERVED_516
mstasiew 01/26/16 - Bug 22601751: remove OCI_PTYPE_HIERARCHY_CUBE
mstasiew 12/16/15 - Bug 22265417: hcs rename
rphillip 12/05/15 - Bug 22266179 add verify_stream_format
mbastawa 11/28/15 - add OCI_ATTR_RESERVED_515, OCI_ATTR_RESERVED_516
avnandak 11/27/15 - Bug21752673: Add new attr for client to server
charset conversion ratio
shubhaku 11/18/15 - Cross-Shard query enhancement
rphillip 11/06/15 - Bug 22157258: default expression cache
ssonawan 10/27/15 - Bug 19077509: add mode flags for OCIPasswordChange()
kkverma 09/13/15 - Rename attributes related to sharding key
rkanodia 09/10/15 - Bug 21811157: add reserved attribute
mstasiew 08/24/15 - Bug 21034838: hierarchy/hierarchy cube describe
updates
rphillip 08/06/15 - for coverage
rphillip 07/13/15 - Bug 21142313: add OCI_ATTR_DIRPATH_DEFAULTS, default
on null
kneel 06/22/15 - Bug 21027805: OCI_ATTR_RESERVED_507; shard attrs
update
cochang 06/17/15 - Bug 21142968: add OCI_ATTR_VIRTUAL_COL
rpingte 06/15/15 - add OCI_ATTR_DESCRIBE_NATIVE
rpingte 04/30/15 - bug 20963017: add OCI_PREP2_GET_SQL_ID
kkverma 04/18/15 - proj 56337: OCI Sharding
avnandak 04/18/15 - Adding Attribute OCI_ATTR_SPOOL_WAIT_TIME
rpingte 03/30/15 - add OCI_ATTR_SQL_ID
mbastawa 03/25/15 - add OCI_ATTR_RESERVED_503
kneel 03/23/15 - add OCI_REQUEST_END_KEEP_SESSION
kneel 03/09/15 - add OCI_ENVCR_RESERVED8
kneel 03/09/15 - new server handle attribute: OCI_ATTR_TAF_TYPE
kneel 03/09/15 - add codes for OCILobWriteAppend{,2}
thbaby 02/27/15 - Proj 47234: add OCI_PREP2_RESERVED_6
aalmahm 01/05/15 - Bug 20305121: Add comments for the collation
constants
ssahu 12/09/14 - New mode OCI_SESSGET_MULTI_PROPERTY_TAG
hcdoshi 12/03/14 - add new values for qosflags
aalmahm 11/07/14 - project 35746: add OCI_ATTR_MAX_IDENTIFIER_LEN
aalmahm 10/30/14 - Bug 19926996: Add OCI_FNCODE_LOBGETCHUNKSIZE
aalmahm 10/28/14 - Bug 19905260: Wrong collation IDs in OCI
mwjohnso 07/15/14 - Bug 15979889: Add OCI_ATTR_DIRPATH_FLAGS_VLDT
aalmahm 04/23/14 - project 47513: collation ID
lenovak 06/24/14 - project 46694 add OCI shard attributes
sanbhara 06/13/14 - Project 46816 - adding support for SYSRAC.
aalmahm 04/23/14 - project 47513: collation ID
rphillip 03/19/14 - Add new direct path flags attribute
nikeda 02/13/14 - new statement handle attribute iters_processed
rpingte 02/07/14 - OCI_ATTR_DESCRIBE_NATIVE is reserved
bwright 02/05/14 - Bug 12998987: Add DIRPATH FLAGS attribute
umabhat 01/05/14 - 17334431 add OCI_ATTR_BREAK_ON_NET_TIMEOUT
nikeda 09/28/13 - 17259075 - new private attribute
rphillip 09/10/13 - Add direct path spilling attributes
mbastawa 09/18/12 - add OCI_ATTR_RESERVED_492
nikeda 09/12/12 - Bug 14465821 - private attr and mode
rphillip 08/17/12 - Bug 10117567: indicate xmltype dumpfile format
jstewart 08/13/12 - change macro name to correspond to max_string_size
value
rajeekku 08/03/12 - Bug 13864144 : Enable expiry time for sessions
jstewart 07/23/12 - 14361749: adding new attribute for 32K
ardesai 06/12/12 - Bug[7706324] Make column security attributes public
nikeda 06/01/12 - reserved attributes
siravic 04/19/12 - Bug# 13472027 Username setting is not respected in
client wallet authentication
ssahu 04/18/12 - New attribute on env handle to disable subscribing to
FAN HA
ardesai 04/17/12 - Bug[11780187]Add OCI_DISABLE_DIAG
rphillip 03/12/12 - Add OCI_ATTR_REJECT_REPL_CHARS
hayu 03/14/12 - lrg-6827256
hayu 11/04/11 - add OCI_ATTR_DBOP
nikeda 03/12/12 - add function codes for OCIType functions
nikeda 02/05/12 - Bug 13636638: add OCI_ATTR_TRANSACTION_IN_PROGRESS
vipmodi 01/27/12 - added OCI_ATTR_ILM_TRACK_WRITE
ssubrama 11/03/11 - bug 13105135 JMS attributes private and reserved
rpang 09/23/11 - add OCI_ATTR_TRANS_PROFILE_FOREIGN
tbhosle 09/12/11 - add OCI_SUBSCR_QOS_TX_ACK, OCI_SUBSCR_QOS_AUTO_ACK
rtati 09/12/11 - add OCI_ATTR_SUBSCR_FAILURE_CBK,
OCI_SUBSCR_QOS_NONDURABLE,
OCI_SUBSCR_QOS_ASYNC_DEQ
nikeda 08/23/11 - proj 32251 - OCI_ATTR_IS_RECOVERABLE
rpang 08/05/11 - 12842638: add OCI_PREP2_IMPL_RESULTS_CLIENT
prepare mode
rpang 06/02/11 - add OCI_ATTR_SQL_TRANSLATION_PROFILE
mbastawa 07/11/11 - add OCI_ATTR_MAX_OPEN_CURSORS
rphillip 06/21/11 - Long varchar
amadan 03/31/11 - Add OCI_DTYPE_AQJMS_PROPERTIES
pbagal 07/05/11 - #11819411: Add instance types for proxy and ioserver
kkverma 07/05/11 - add stmthndle attribute OCI_ATTR_DML_ROW_COUNT_ARRAY
and exec mode OCI_RETURN_ROW_COUNT_ARRAY
nikeda 06/28/11 - add reserved attr for non-blocking testing
rdecker 05/02/11 - New ATTRs for plsql package type support
pjavaji 05/01/11 - Add OCI_ATTR_ENV_NLS_LANG & OCI_ATTR_ENV_NLS_TERR
jmadduku 03/16/11 - Proj 32507: Add new OCI attribute for Last
Successful Logon Time
kneel 05/30/11 - new reserved attributes, modes
shiyer 04/09/11 - #36904:add OCI_RESULT_TYPE_SELECT,
OCI_ATTR_IMPLICIT_RESULT_COUNT,
OCI_FNCODE_STMGETNEXTRESULT
ardesai 03/24/11 - Project[36905]Invisible columns support
slari 03/24/11 - add OCI_ATTR_RESERVED_438 and OCI_ATTR_RESERVED_439
nikeda 03/23/11 - Project 32251: LTXID Support
shiyer 01/04/11 - #32874:OCIStmtPrepare modes
jibyun 03/14/11 - Project 5687: Define OCI_SYSBKP, OCI_SYSDGD, and
OCI_SYSKMT for new administrative privileges
mbastawa 02/08/11 - add ub8 row count
umabhat 01/27/11 - add OCI_ERROR_MAXMSG_SIZE2
rpang 12/16/10 - add OCI_FOREIGN_SYNTAX
rpingte 12/16/10 - Add OCIBindByPos2, OCIBindByName2 & OCIDefineByPos2
wbattist 12/06/10 - add reserved attributes
rphillip 09/28/10 - Bug 9835605: recnum changes
rphillip 08/03/09 - Bug 8720046: add OCI_ATTR_DIRPATH_USE_ACTIVE_TRANS
rpingte 07/23/10 - update version number
mbastawa 03/15/10 - add OCI_FETCH_RESERVED_6
ebatbout 12/28/09 - 8465341: Add OCI_ATTR_DIRPATH_RESERVED_22
ssahu 04/15/09 - Add user handle as an attribute to session pool
handle
dalpern 03/17/09 - bug 7646876: applying_crossedition_trigger
kneel 11/21/08 - bump OCI version to 11.2
thoang 09/24/08 - include ocixstream.h
asohi 08/25/08 - Bug 7320582 : AQ dequeue navigation flags fix
thoang 08/04/08 - Add XStream attributes
msowdaga 07/23/08 - Add flag OCI_SESSGET_SYSDBA
rphillip 03/21/08 - Add partition memory attribute
nikeda 04/15/08 - Support OCIP_ATTR_CONTYPE
mbastawa 12/24/07 - add server, envhp attributes
slynn 03/18/08 -
amullick 02/11/08 - add support for OCILobGet/SetContentType
tbhosle 01/07/08 - add OCI_ATTR_SUBSCR_IPADDR
nikeda 12/19/07 - Add OCI_SUBSCR_QOS_HAREG
rphillip 10/22/07 - Add OCI_ATTR_DIRPATH_NO_INDEX_ERRORS
debanerj 12/14/07 - Added OCI_ATTR_RESERVED_38 and OCI_ATTR_RESERVED_39
umabhat 09/20/07 - bug6119750 added OCI_FNCODE_APPCTXSET &
OCI_FNCODE_APPCTXCLEARALL
debanerj 04/10/07 - XDS Attributes
msakayed 05/24/07 - Bug #5095734: add OCI_ATTR_DIRPATH_RESERVED_19
schoi 03/02/07 - Get/SetOptions API change
ebatbout 03/30/07 - 5598333: Add OCI_ATTR_DIRPATH_RESERVED_18
nikeda 03/21/07 - Add OCI_ATTR_RESERVED_37
abande 03/06/07 - Remove attributes for global stmt cache and
metadata cache
rphillip 02/20/07 - Add OCI_ATTR_DIRPATH_RESERVED_17
shan 11/16/06 - bug 5595911.
msakayed 12/04/06 - Bug #5660845: add OCI_DIRPATH_INPUT_OCI
gviswana 10/26/06 - Remove OCI_ATTR_CURRENT_EDITION
maramali 09/29/06 - bug 5568492, added OCI_NLS_LOCALE_A2_ISO_2_ORA
gviswana 09/29/06 - CURRENT_EDITION -> EDITION
aramappa 09/20/06 - Update major and minor version information
slynn 07/28/06 - Migrate to new 11g LOB terminiology
debanerj 07/20/06 - Add OCI_ATTR_LOBPREFETCH_LENGTH
mbastawa 06/25/06 - add OCI_ATTR_RESERVED_36
hqian 05/22/06 - 11gR1 proj-18303: add OCI_SYSASM
dkogan 04/06/06 - disable charset validation by default
jhealy 05/15/06 - Add TimesTen OCI adapter.
slynn 06/20/06 - GetSharedRegions
rthammai 06/13/06 - add reserved attribute
msakayed 06/15/06 - Project 20586: interval partitioning support
debanerj 10/25/05 - LOB prefetch
slynn 05/25/06 - New NG Lob Functionality.
yujwang 05/16/06 - Add OCI_ATTR_RESERVED_33, OCI_ATTR_RESERVED_34
abande 04/25/06 - 18297: Add attributes for global stmt cache and
metadata cache
ssvemuri 04/26/06 - Constants for Query Notification support
jgiloni 05/05/06 - Add OCI_ATCH_RESERVED_7
mxyang 02/01/06 - Added OCI_ATTR_CURRENT_EDITION attribute
hqian 05/04/06 - new runtime capability attribute for asm volume
nikeda 06/06/06 - OCI_TT: Add new OCIP attributes
aramappa 04/17/06 - Added OCI_FNCODE_ARRAYDESCRIPTORALLOC and
OCI_FNCODE_ARRAYDESCRIPTORFREE
debanerj 05/04/06 - 18313: OCI Net Fusion
rupsingh 05/26/06 -
jacao 05/11/06 -
absaxena 04/17/06 - add notification grouping attributes
rpingte 02/02/06 - add OCI_ATCH_RESERVED_6
rpingte 04/27/06 - Add OCI_ATTR_DRIVER_NAME
jawilson 02/14/06 - add OCI_FNCODE_AQENQSTREAM
kneel 04/03/06 - Adding support in kjhn for critical severity
rphillip 03/31/06 - Add OCI_ATTR_DIRPATH_RESERVED_14
mxyang 02/01/06 - Added OCI_ATTR_APPLICATION_EDITION attribute
rphillip 01/30/06 - Add new DPAPI attrs
ebatbout 11/03/05 - Add direct path support for multiple subtypes
porangas 02/22/06 - 5055398: Define OCI_STMT_CALL
mbastawa 01/31/06 - add OCI_ATTR_RESERVED_26
yohu 01/27/06 - align Execution Modes macros
sjanardh 01/25/06 - add OCI_EXEC_RESERVED_6
sichandr 01/18/06 - add OCI_ATTR_XMLTYPE_BINARY_XML
yohu 12/22/05 - add OCI_TRANS_PROMOTE
srseshad 09/12/05 - stmtcache: callback
krajan 10/25/05 - Added ENABLE_BEQUEATH attach flag
mbastawa 09/16/05 - dbhygiene
porangas 07/20/04 - 1175350: adding attribute for ognfd
chliang 06/30/05 - add OCI_SUPPRESS_NLS_VALIDATION mode
aahluwal 03/15/05 - [Bug 4235014]:add ASM, Preconnect events
ssappara 08/12/04 - Bug3669429 add OCI_ATTR_DESC_SYNBAS
absaxena 03/24/05 - remove OCI_AQ_RESERVED_5
mbastawa 03/01/05 - add OCI_EXEC_RESERVED_5
msakayed 02/15/05 - Bug #3147299: Add OCI_ATTR_CURRENT_ERRCOL
aahluwal 01/11/05 - [Bug 3944589]: add OCI_AUTH_RESERVED_5
nikeda 11/15/04 - Add OCIP_IIO
rvissapr 11/10/04 - bug 3843644 - isencrypted
hohung 11/22/04 - add OCI_BIND_RESERVED_3
cchui 10/25/04 - add OCI_ATTR_PROXY_CLIENT
aahluwal 09/27/04 - add incarnation, reason, cardinality to event handle
msakayed 09/14/04 - column encryption support (project id 5578)
jacao 08/17/04 - Add OCI_ATTR_DB_CHARSET_ID
mhho 08/29/04 - resolve conflicting mode declaration
sgollapu 05/28/04 - Add OCI_AUTH_RESERVED_3
mbastawa 08/05/04 - add OCI_ATTR_RESERVED_21
ebatbout 07/27/04 - add OCI_ATTR_DIRPATH_RESERVED_9 and move all direct
path attributes into a separate area in this file.
clei 06/29/04 - add OCI_ATTR_ENCC_SIZE
weiwang 05/06/04 - add OCIAQListenOpts and OCIAQLisMsgProps
weiwang 04/30/04 - add OCI_AQ_RESERVED_5
nbhatt 04/27/04 - add new attribute
ssvemuri 06/19/04 - change notification descriptors and attributes
ksurlake 06/01/04 - grabtrans 'ksurlake_txn_skmishra_clone'
ksurlake 05/13/04 - add subscriber handle attributes
mbastawa 06/01/04 - add 3 more OCI_FETCH_RESERVED modes
chliang 05/28/04 - add nchar literal replacement modes
nikeda 05/14/04 - [OLS on RAC] new authentication mode
debanerj 05/17/04 - 13064: add fncodes for LOB array Read and Write
nikeda 05/20/04 - [OCI Events] Add incarnation, cardinality,reason
nikeda 05/18/04 - [OCI Events] Add OCI_ATTR_SERVICENAME
nikeda 05/17/04 - Add event handle
nikeda 05/13/04 - [OCI Events] Rename HACBK->EVTCBK, HACTX->EVTCTX
nikeda 05/10/04 - [OCI Events] code review changes
nikeda 04/15/04 - [OCI Events] OCI_SESSRLS_DROPSESS_FORCE
nikeda 04/12/04 - [OCI Events] Add OCI_ATTR_USER_MEMORY
aahluwal 04/12/04 - add OCI_HNDLFR_RESERVED5
vraja 04/28/04 - add options for redo sync on commit
aahluwal 05/29/04 - [OCI Events]: add support for svc, svc member events
nikeda 05/28/04 - grabtrans 'nikeda_oci_events_copy'
nikeda 05/18/04 - [OCI Events] Add OCI_ATTR_SERVICENAME
nikeda 05/17/04 - Add event handle
nikeda 05/13/04 - [OCI Events] Rename HACBK->EVTCBK, HACTX->EVTCTX
nikeda 05/10/04 - [OCI Events] code review changes
nikeda 04/15/04 - [OCI Events] OCI_SESSRLS_DROPSESS_FORCE
nikeda 04/12/04 - [OCI Events] Add OCI_ATTR_USER_MEMORY
aahluwal 04/12/04 - add OCI_HNDLFR_RESERVED5
jciminsk 04/28/04 - merge from RDBMS_MAIN_SOLARIS_040426
jacao 03/06/04 - add OCI_ATTR_CURRENT_SCHEMA
aahluwal 01/20/04 - remove OCI_KEEP_FETCH_STATE
aahluwal 03/25/04 - [OCI Events] add OCI_HTYPE_HAEVENT and related attrs
nikeda 03/19/04 - [OCI Events] Add OCI_ATTR_HACBK and OCI_ATTR_HACTX
dfrumkin 12/04/03 - Add database startup/shutdown
chliang 12/22/03 - grid/main merge: add OCI_ATTR_RESERVED_20
jciminsk 12/12/03 - merge from RDBMS_MAIN_SOLARIS_031209
sgollapu 09/19/03 - Add fetch modes
sgollapu 07/30/03 - Add TSM attributes
sgollapu 06/26/03 - Add OCI_MUTEX_TRY
aime 06/23/03 - sync grid with main
sgollapu 06/07/03 - Add reserved attribute
sgollapu 06/05/03 - Add reserved auth flag
rpingte 05/22/03 - Add OCI_ATCH_RESERVED_5
sgollapu 05/06/03 - Add TSM attributes
sgollapu 04/10/03 - Session migration Flags/interfaces
dfrumkin 04/23/04 - add OCI_PREP2_RESERVED_1
rpingte 05/06/04 - add major and minor version information
bsinha 04/06/04 - add new OCI_TRANS flag
chliang 11/26/03 - add OCI_ATTR_RESERVED_19
preilly 10/23/03 - Make OCI_ATTR_DIRPATH_METADATA_BUF private
chliang 08/07/03 - add OCI_ATTR_SKIP_BUFFER
srseshad 03/12/03 - convert public oci api to ansi
weiwang 05/14/03 - remove iot creation for rule sets
rkoti 04/15/03 - [2746515] add fntcodes for Unlimited size LOB 6003
tcruanes 05/13/03 - add slave SQL OCI execution mode
rkoti 02/21/03 - [2761455] add OCI_FNCODE_AQENQARRAY,
OCI_FNCODE_AQDEQARRAY and update OCI_FNCODE_MAXFCN
tkeefe 01/29/03 - bug-2773794: Add new interface for setting Kerb attrs
aahluwal 02/06/03 - add OCI_ATTR_TRANSFORMATION_NO
weiwang 12/05/02 - add OCI_ATTR_USER_PROPERTY
ataracha 01/03/03 - include ocixmldb.h
preilly 12/05/02 - Add wait attribute for locking when using dir path
tkeefe 01/03/03 - bug-2623771: Added OCI_ATTR_KERBEROS_KEY
lchidamb 12/13/02 - end-to-end tracing attributes
msakayed 10/28/02 - Bug #2643907: add OCI_ATTR_DIRPATH_SKIPINDEX_METHOD
rphillip 11/13/02 - Add OCIP_ATTR_DIRPATH_INDEX
sagrawal 10/13/02 - liniting
sagrawal 10/03/02 - PL/SQL Compiler warnings
jstenois 11/07/02 - remove ocixad.h
chliang 10/21/02 - add OCI_ATTR_RESERVED_16,17
hsbedi 10/30/02 - grabtrans 'jstenois_fix_xt_convert'
aahluwal 10/12/02 - add OCI_ATTR_AQ_NUM_E_ERRORS/OCI_ATTR_AQ_ERROR_INDEX
bdagevil 10/21/02 - add SQL analyze internal exec mode
csteinba 10/11/02 - add OCI_ATTR_RESERVED_16
chliang 10/12/02 - add bind row callback attributes
preilly 10/25/02 - Add new reserved parameters
tkeefe 10/31/02 - bug-2623771: Added OCI_ATTR_AUDIT_SESSION_ID
csteinba 10/04/02 - Add OCI_ATTR_RESERVED_15
mhho 10/11/02 - add new credential constant
thoang 09/25/02 - Add OCI_XMLTYPE_CREATE_CLOB
skaluska 10/07/02 - describe rules objects
csteinba 09/16/02 - Remove OCI_CACHE
gtarora 10/03/02 - OCI_ATTR_COL_SUBS => OCI_ATTR_OBJ_SUBS
msakayed 09/09/02 - Bug #2482469: add OCI_ATTR_DIRPATH_RESERVED_[3-6]
aahluwal 08/30/02 - adding dequeue across txn group
srseshad 04/24/02 - Add attribute OCI_ATTR_SPOOL_STMTCACHESIZE.
ebatbout 07/22/02 - Remove OCI_ATTR_RESERVED_11.
abande 01/17/02 - Bug 1788921; Add external attribute.
aahluwal 06/04/02 - bug 2360115
pbagal 05/24/02 - Incorporate review comments
pbagal 05/22/02 - Introduce instance type attribute.
whe 07/01/02 - add OCI_BIND_DEFINE_SOFT flags
gtarora 07/01/02 - Add OCI_ATTR_COL_SUBS
tkeefe 05/30/02 - Add support for new proxy authentication credentials
dgprice 12/18/01 - bug 2102779 add reserved force describe
schandir 11/19/01 - add/modify modes.
schandir 11/15/01 - add OCI_SPC_STMTCACHE.
schandir 12/06/01 - change mode value of OCI_SPOOL.
msakayed 11/02/01 - Bug #2094292: add OCI_ATTR_DIRPATH_INPUT
dsaha 11/09/01 - add OCI_DTYPE_RESERVED1
skabraha 11/05/01 - new method flag
skabraha 10/25/01 - another flag for XML
skabraha 10/11/01 - describe flags for subtypes
nbhatt 09/18/01 - new reserved AQ flags
celsbern 10/19/01 - merge LOG to MAIN
ksurlake 10/12/01 - add OCI_ATTR_RESERVED_13
ksurlake 08/13/01 - add OCI_ATTR_RESERVED_12
schandir 09/24/01 - Adding stmt caching
abande 09/04/01 - Adding session pooling
sagrawal 10/23/01 - add new bit for OCIPHandleFree
preilly 10/25/01 - Add support for specifying metadata on DirPathCtx
skabraha 09/24/01 - describe flags for XML type
schandir 09/24/01 - Adding stmt caching
abande 09/04/01 - Adding session pooling
stakeda 09/17/01 - add OCI_NLS_CHARSET_ID
whe 09/19/01 - add OCIXMLType create options
rpingte 09/11/01 - add OCI_MUTEX_ENV_ONLY and OCI_NO_MUTEX_STMT
cmlim 08/28/01 - mod datecache attrs to use same naming as dpapi attrs
wzhang 08/24/01 - Add new keywords for OCINlsNameMap.
rphillip 05/02/01 - Add date cache attributes
rphillip 08/22/01 - Add new stream version
ebatbout 04/13/01 - add definition, OCI_ATTR_RESERVED_11
chliang 04/12/01 - add shortnames for newer oci funcation
wzhang 04/11/01 - Add new OCI NLS constants.
cmlim 04/13/01 - remove attrs not used by dpapi (151 & 152 avail)
rkambo 03/23/01 - bugfix 1421793
cmlim 04/02/01 - remove OCI_ATTR_DIRPATH_{NESTED_TBL, SUBST_OBJ_TBL}
- note: attribute #s 186 & 205 available
whe 03/28/01 - add OCI_AFC_PAD_ON/OFF mode
preilly 03/05/01 - Add stream versioning support to DirPath context
schandir 12/18/00 - remove attr CONN_INCR_DELAY.
schandir 12/12/00 - change mode from OCI_POOL to OCI_CPOOL.
cbarclay 01/12/01 - add atribute for OCIP_ATTR_TMZ
whe 01/07/01 - add attributes related to UTF16 env mode
slari 12/29/00 - add blank line
slari 12/28/00 - OCI_ATTR_RESERVED_10
whe 12/19/00 - add OCI_ENVCR_RESERVED3
rpang 11/29/00 - Added OCI_ATTR_ORA_DEBUG_JDWP attribute
cmlim 11/28/00 - support substitutable object tables in dpapi
akatti 10/09/00 - [198379]:add OCIRowidToChar
sgollapu 10/11/00 - Add OCI_PREP_RESERVED_1
sgollapu 08/27/00 - add attribute to get erroneous column
sgollapu 07/29/00 - Add snapshot attributes
kmohan 09/18/00 - add OCI_FNCODE_LOGON2
abrumm 10/08/00 - include ocixad.h
mbastawa 10/04/00 - add OCI_ATTR_ROWS_FETCHED
nbhatt 08/24/00 - add transformation attribute
dmwong 08/22/00 - OCI_ATTR_CID_VALUE -> OCI_ATTR_CLIENT_IDENTIFIER.
cmlim 08/30/00 - add OCI_ATTR_DIRPATH_SID
dsaha 08/18/00 - add OCI_ATTR_RESERVED_5
amangal 08/17/00 - Merge into 8.2 : 1194361
slari 08/03/00 - add OCI_ATTR_HANDLE_POSITION
dsaha 07/20/00 - 2rt exec
sgollapu 07/04/00 - Add virtual session flag
cmlim 07/07/00 - add OCI_ATTR_DIRPATH_OID, OCI_ATTR_DIRPATH_NESTED_TBL
etucker 07/28/00 - add OCIIntervalFromTZ
rwessman 06/26/00 - N-tier: added new credential attributes
whe 07/27/00 - add OCI_UTF16 mode
vjayaram 07/18/00 - add connection pooling changes
etucker 07/12/00 - add dls apis
cmlim 07/07/00 - add OCI_ATTR_DIRPATH_OID, OCI_ATTR_DIRPATH_NESTED_TBL
sgollapu 07/04/00 - Add virtual session flag
najain 05/01/00 - AQ Signature support
sgollapu 06/14/00 - Add reserved OCI mode
rkambo 06/08/00 - notification presentation support
sagrawal 06/04/00 - ref cursor to c
ksurlake 06/07/00 - define OCI_POOL
mbastawa 06/05/00 - added scrollable cursor attributes
weiwang 03/31/00 - add LDAP support
whe 05/30/00 - add OCI_ATTR_MAXCHAR_SIZE
whe 05/23/00 - validate OCI_NO_CACHE mode
dsaha 02/02/00 - Add no-cache attr in statement handle
whe 05/23/00 - add OCIP_ICACHE
allee 05/17/00 - describe support for JAVA implmented TYPE
preilly 05/30/00 - Continue adding support for objects in direct path lo
cmlim 05/16/00 - 8.2 dpapi support of ADTs
rxgovind 05/04/00 - OCIAnyDataSet changes
rkasamse 05/25/00 - add OCIAnyDataCtx
rmurthy 04/26/00 - describe support for inheritance
ksurlake 04/18/00 - Add credential type
whe 05/24/00 - add OCI_ATTR_CHAR_ attrs
rkambo 04/19/00 - subscription enhancement
rmurthy 04/26/00 - describe support for inheritance
delson 03/28/00 - add OCI_ATTR_RESERVED_2
abrumm 03/31/00 - external table support
rkasamse 03/13/00 - add declarations for OCIAnyData
najain 02/24/00 - support for dequeue as select
dsaha 03/10/00 - Add OCI_ALWAYS_BLOCKING
esoyleme 04/25/00 - separated transactions
sgollapu 12/23/99 - OCIServerAttach extensions
slari 08/23/99 - add OCI_DTYPE_UCB
slari 08/20/99 - add OCI_UCBTYPE_REPLACE
hsbedi 08/31/99 - Memory Stats .
sgollapu 08/02/99 - oci sql routing
slari 08/06/99 - rename values for OCI_SERVER_STATUS
slari 08/02/99 - add OCI_ATTR_SERVER_STATUS
tnbui 07/28/99 - Remove OCI_DTYPE_TIMESTAMP_ITZ
amangal 07/19/99 - Merge into 8.1.6 : bug 785797
tnbui 07/07/99 - Change ADJUSTMENT modes
dsaha 07/07/99 - OCI_SAHRED_EXT
dmwong 06/08/99 - add OCI_ATTR_APPCTX_*
vyanaman 06/23/99 -
vyanaman 06/21/99 - Add new OCI Datetime and Interval descriptors
esoyleme 06/29/99 - expose MTS performance enhancements
rshaikh 04/23/99 - add OCI_SQL_VERSION_*
tnbui 05/24/99 - Remove OCIAdjStr
dsaha 05/21/99 - Add OCI_ADJUST_UNK
mluong 05/17/99 - fix merge
tnbui 04/05/99 - ADJUSTMENT values
abrumm 04/16/99 - dpapi: more attributes
dsaha 02/24/99 - Add OCI_SHOW_DML_WARNINGS
jiyang 12/07/98 - Add OCI_NLS_DUAL_CURRENCY
slari 12/07/98 - change OCI_NOMUTEX to OCI_NO_MUTEX
aroy 11/30/98 - change OCI_NOCALLBACK to OCI_NO_UCB
aroy 11/13/98 - add env modes to process modes
slari 09/08/98 - add OCI_FNCODE_SVC2HST and _SVCRH
aroy 09/04/98 - Add OCI_ATTR_MIGSESSION
skray 08/14/98 - server groups for session switching
mluong 08/11/98 - add back OCI_HTYPE_LAST.
aroy 05/25/98 - add process handle type
aroy 04/06/98 - add shared mode
slari 07/13/98 - merge forward to 8.1.4
slari 07/09/98 - add OCI_BIND_RESERVED_2
slari 07/08/98 - add OCI_EXACT_FETCH_RESERVED_1
dsaha 07/07/98 - Add OCI_PARSE_ONLY
dsaha 06/29/98 - Add OCI_PARSE_ONLY
slari 07/01/98 - add OCI_BIND_RESERVED_2
sgollapu 06/25/98 - Fix bug 683565
slari 06/17/98 - remove OC_FETCH_RESERVED_2
slari 06/11/98 - add OCI_FETCH_RESERVED_1 and 2
jhasenbe 05/27/98 - Remove definitions for U-Calls (Unicode)
jiyang 05/18/98 - remove OCI_ATTR_CARTLANG
nbhatt 05/20/98 - OCI_DEQ_REMOVE_NODATA
nbhatt 05/19/98 - correct AQ opcode
skmishra 05/06/98 - Add precision attribute to Attributes list
aroy 04/20/98 - merge forward 8.0.5 -> 8.1.3
schandra 05/01/98 - OCI sender id
sgollapu 02/19/98 - enhanced array DML
nbhatt 05/15/98 - AQ listen call
sgollapu 04/27/98 - more attributes
skaluska 04/06/98 - Add OCI_PTYPE_SCHEMA, OCI_PTYPE_DATABASE
slari 04/28/98 - add OCI_ATTR_PDPRC
lchidamb 05/05/98 - change OCI_NAMESPACE_AQ to 1
nbhatt 04/27/98 - AQ Notification Descriptor
abrumm 06/24/98 - more direct path attributes
abrumm 05/27/98 - OCI direct path interface support
abrumm 05/08/98 - OCI direct path interface support
lchidamb 03/02/98 - client notification additions
kkarun 04/17/98 - Add more Interval functions
vyanaman 04/16/98 - Add get/set TZ
kkarun 04/14/98 - Add OCI Datetime shortnames
vyanaman 04/13/98 - Add OCI DateTime and Interval check error codes
kkarun 04/07/98 - Add OCI_DTYPE_DATETIME and OCI_DTYPE_INTERVAL
esoyleme 12/15/97 - support failover callback retry
esoyleme 04/22/98 - merge support for failover callback retry
mluong 04/16/98 - add OCI_FNCODE_LOBLOCATORASSIGN
rkasamse 04/17/98 - add short names for OCIPickler(Memory/Ctx) cart servi
slari 04/10/98 - add OCI_FNCODE_SVCCTXTOLDA
slari 04/09/98 - add OCI_FNCODE_RESET
slari 04/07/98 - add OCI_FNCODE_LOBFILEISOPEN
slari 04/06/98 - add OCI_FNCODE_LOBOPEN
slari 03/20/98 - change OCI_CBTYPE_xxx to OCI_UCBTYPE_xxx
slari 03/18/98 - add OCI_FNCODE_MAXFCN
slari 02/12/98 - add OCI_ENV_NO_USRCB
skabraha 04/09/98 - adding shortnames for OCIFile
rhwu 04/03/98 - Add short names for the OCIThread package
tanguyen 04/03/98 - add OCI_ATTR_xxxx for type inheritance
rkasamse 04/02/98 - add OCI_ATTR_UCI_REFRESH
nramakri 04/01/98 - Add short names for the OCIExtract package
ewaugh 03/31/98 - Add short names for the OCIFormat package.
jhasenbe 04/06/98 - Add definitions for U-Calls (Unicode)
(OCI_TEXT, OCI_UTEXT, OCI_UTEXT4)
skmishra 03/03/98 - Add OCI_ATTR_PARSE_ERROR_OFFSET
rwessman 03/11/98 - Added OCI_CRED_PROXY for proxy authentication
abrumm 03/31/98 - OCI direct path interface support
nmallava 03/03/98 - add constants for temp lob apis
skotsovo 03/05/98 - resolve merge conflicts
skotsovo 02/24/98 - add OCI_DTYPE_LOC
skaluska 01/21/98 - Add OCI_ATTR_LTYPE
rkasamse 01/06/98 - add OCI_ATTR* for obj cache enhancements
dchatter 01/08/98 - more comments
skabraha 12/02/97 - moved oci1.h to the front of include files.
jiyang 12/18/97 - Add OCI_NLS_MAX_BUFSZ
rhwu 12/02/97 - move oci1.h up
ewaugh 12/15/97 - Add short names for the OCIFormat package.
rkasamse 12/02/97 - Add a constant for memory cartridge services -- OCI_M
nmallava 12/31/97 - open/close for internal lobs
khnguyen 11/27/97 - add OCI_ATTR_LFPRECISION, OCI_ATTR_FSPRECISION
rkasamse 11/03/97 - add types for pickler cartridge services
mluong 11/20/97 - changed ubig_ora to ub4 per skotsovo
ssamu 11/14/97 - add oci1.h
jiyang 11/13/97 - Add NLS service for cartridge
esoyleme 12/15/97 - support failover callback retry
jwijaya 10/21/97 - change OCILobOffset/Length from ubig_ora to ub4
cxcheng 07/28/97 - fix compile with SLSHORTNAME
schandra 06/25/97 - AQ OCI interface
sgollapu 07/25/97 - Add OCI_ATTR_DESC_PUBLIC
cxcheng 06/16/97 - add OCI_ATTR_TDO
skotsovo 06/05/97 - add fntcodes for lob buffering subsystem
esoyleme 05/13/97 - move failover callback prototype
skmishra 05/06/97 - stdc compiler fixes
skmishra 04/22/97 - Provide C++ compatibility
lchidamb 04/19/97 - add OCI_ATTR_SESSLANG
ramkrish 04/15/97 - Add OCI_LOB_BUFFER_(NO)FREE
sgollapu 04/18/97 - Add OCI_ATTR_TABLESPACE
skaluska 04/17/97 - Add OCI_ATTR_SUB_NAME
schandra 04/10/97 - Use long OCI names
aroy 03/27/97 - add OCI_DTYPE_FILE
sgollapu 03/26/97 - Add OCI_OTYPEs
skmishra 04/09/97 - Added constant OCI_ROWID_LEN
dchatter 03/21/97 - add attr OCI_ATTR_IN_V8_MODE
lchidamb 03/21/97 - add OCI_COMMIT_ON_SUCCESS execution mode
skmishra 03/20/97 - Added OCI_ATTR_LOBEMPTY
sgollapu 03/19/97 - Add OCI_ATTR_OVRLD_ID
aroy 03/17/97 - add postprocessing callback
sgollapu 03/15/97 - Add OCI_ATTR_PARAM
cxcheng 02/07/97 - change OCI_PTYPE codes for type method for consistenc
cxcheng 02/05/97 - add OCI_PTYPE_TYPE_RESULT
cxcheng 02/04/97 - rename OCI_PTYPE constants to be more consistent
cxcheng 02/03/97 - add OCI_ATTR, OCI_PTYPE contants for describe type
esoyleme 01/23/97 - merge neerja callback
sgollapu 12/30/96 - Remove OCI_DTYPE_SECURITY
asurpur 12/26/96 - CHanging OCI_NO_AUTH to OCI_AUTH
sgollapu 12/23/96 - Add more attrs to COL, ARG, and SEQ
sgollapu 12/12/96 - Add OCI_DESCRIBE_ONLY
slari 12/11/96 - change prototype of OCICallbackInBind
nbhatt 12/05/96 - "callback"
lchidamb 11/19/96 - handle subclassing
sgollapu 11/09/96 - OCI_PATTR_*
dchatter 11/04/96 - add attr OCI_ATTR_CHRCNT
mluong 11/01/96 - test
cxcheng 10/31/96 - add #defines for OCILobLength etc
dchatter 10/31/96 - add lob read write call back fp defs
dchatter 10/30/96 - more changes
rhari 10/30/96 - Include ociextp.h at the very end
lchidamb 10/22/96 - add fdo attribute for bind/server handle
dchatter 10/22/96 - change attr defn for prefetch parameters & lobs/file
calls
slari 10/21/96 - add OCI_ENV_NO_MUTEX
rhari 10/25/96 - Include ociextp.h
rxgovind 10/25/96 - add OCI_LOBMAXSIZE, remove OCI_FILE_READWRITE
sgollapu 10/24/96 - Correct OCILogon and OCILogoff
sgollapu 10/24/96 - Correct to OCILogon and OCILogoff
sgollapu 10/21/96 - Add ocilon and ociloff
skaluska 10/31/96 - Add OCI_PTYPE values
sgollapu 10/17/96 - correct OCI_ATTR_SVCCTX to OCI_ATTR_SERVER
rwessman 10/16/96 - Added security functions and fixed olint errors.
sthakur 10/14/96 - add more COR attributes
cxcheng 10/14/96 - re-enable LOB functions
sgollapu 10/10/96 - Add ocibdp and ocibdn
slari 10/07/96 - add back OCIRowid
aroy 10/08/96 - add typedef ocibfill for PRO*C
mluong 10/11/96 - replace OCI_ATTR_CHARSET* with OCI_ATTR_CHARSET_*
cxcheng 10/10/96 - temporarily take out #define for lob functions
sgollapu 10/02/96 - Rename OCI functions and datatypes
skotsovo 10/01/96 - move orl lob fnts to oci
aroy 09/10/96 - fix merge errors
aroy 08/19/96 - NCHAR support
jboonleu 09/05/96 - add OCI attributes for object cache
dchatter 08/20/96 - HTYPE ranges from 1-50; DTYPE from 50-255
slari 08/06/96 - define OCI_DTYPE_ROWID
sthakur 08/14/96 - complex object support
schandra 06/17/96 - Convert XA to use new OCI
abrik 08/15/96 - OCI_ATTR_HEAPALLOC added
aroy 07/17/96 - terminology change: ocilobd => ocilobl
aroy 07/03/96 - add lob typedefs for Pro*C
slari 06/28/96 - add OCI_ATTR_STMT_TYPE
lchidamb 06/26/96 - reorg #ifndef
schandra 05/31/96 - attribute types for internal and external client name
asurpur 05/30/96 - Changing the value of mode
schandra 05/18/96 - OCI_TRANS_TWOPHASE -> 0x00000001 to 0x00100000
slari 05/30/96 - add callback function prototypes
jbellemo 05/23/96 - remove ociisc
schandra 04/23/96 - loosely-coupled branches
asurpur 05/15/96 - New mode for ocicpw
aroy 04/24/96 - making ocihandles opaque
slari 04/18/96 - add missing defines
schandra 03/27/96 - V8OCI - add transaction related calls
dchatter 04/01/96 - add OCI_FILE options
dchatter 03/21/96 - add oci2lda conversion routines
dchatter 03/07/96 - add OCI piece definition
slari 03/12/96 - add describe attributes
slari 03/12/96 - add OCI_OTYPE_QUERY
aroy 02/28/96 - Add column attributes
slari 02/09/96 - add OCI_OBJECT
slari 02/07/96 - add OCI_HYTPE_DSC
aroy 01/10/96 - adding function code defines...
dchatter 01/03/96 - define OCI_NON_BLOCKING
dchatter 01/02/96 - Add Any descriptor
dchatter 01/02/96 - Add Select List descriptor
dchatter 12/29/95 - V8 OCI definitions
dchatter 12/29/95 - Creation
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef ORATYPES
#include <oratypes.h>
#endif
#ifndef OCIDFN
#include <ocidfn.h>
#endif
#ifndef OCIVER_ORACLE
#include <ociver.h>
#endif
#ifndef OCI_ORACLE
# define OCI_ORACLE
/*---------------------------------------------------------------------------
Short names provided for platforms which do not allow extended symbolic names
---------------------------------------------------------------------------*/
#ifdef SLSHORTNAME
/* Translation of the long function/type names to short names for IBM only */
/* maybe lint will use this too */
#define OCISessionEnd ocitac
#define OCIResultSetToStmt ocirs2sh
#define OCISessionBegin ociauth
#define OCIServerAttach ociatch
#define OCIDescriptorAlloc ocigdesc
#define OCIServerDetach ocidtch
#define OCIDescriptorFree ocifdesc
#define OCIServerVersion ocivers
#define OCIDescribeAny ocidsca
#define OCIBindDynamic ocibda
#define OCIBindByName ocibdn
#define OCIBindByPos ocibdp
#define OCIErrorGet ocigdr
#define OCIBindArrayOfStruct ocibsa
#define OCIEnvInit ociinit
#define OCIBindObject ocibndt
#define OCIHandleAlloc ocighndl
#define OCIHandleFree ocifhndl
#define OCIRowidToChar ociri2c
#ifdef NEVER
#define OCIStmtBindByPos ocibndp
#define OCIStmtBindByName ocibndn
#endif
#define OCIAttrGet ocigattr
#define OCIDefineByPos ocidfne
#define OCIAttrSet ocisattr
#define OCIDefineDynamic ociddf
#define OCILdaToSvcCtx ocild2sv
#define OCIDefineArrayOfStruct ocidarr
#define OCIInitialize ocipi
#define OCIDefineObject ocidndt
#define OCIStmtExecute ociexec
#define OCILobAppend ocilfap
#define OCILobOpenFile ocifopn
#define OCILobCloseFile ocifcls
#define OCILobLocator ocilobd
#define OCILobGetDeduplicateRegions ocilgshr
#define OCILobRegion ocilregd
#define OCILobCopy ocilfcp
#define OCILobFileCreate ocifcrt
#define OCILobFileDelete ocifdel
#define OCILobGetLength ocilfln
#define OCILobWrite ocilfwr
#define OCILobRead ocilfrd
#define OCILobErase ocilfer
#define OCILobTrim ocilftr
#define OCILobSetOptions ocinglso
#define OCILobGetOptions ocinglgo
#define OCILobFragmentInsert ocinglfi
#define OCILobFragmentDelete ocinglfd
#define OCILobFragmentMove ocinglfm
#define OCILobFragmentReplace ocinglfr
#define OCILobSetContentType ocinglsct
#define OCILobGetContentType ocinglgct
#define OCIStmtFetch ocifch
#define OCIStmtGetBindInfo ocigbp
#define OCIStmtGetPieceInfo ocigpi
#define OCIStmtPrepare ocireq
#define OCIStmtSetPieceInfo ocispi
#define OCISvcCtxToLda ocisv2ld
#define OCITransCommit ocitxcm
#define OCITransDetach ocitxdt
#define OCITransForget ocitxfgt
#define OCITransPrepare ocitxpre
#define OCITransRollback ocitxrl
#define OCIPasswordChange ocicpw
#define OCITransStart ocitxst
#define OCITransMultiPrepare ocitxmp
#define OCIBreak ocibreak
#define OCIParamGet ocigparm
#define OCIParamSet ocisparm
#define OCISecurityOpenWallet ocizwOpenWallet
#define OCISecurityCloseWallet ocizwCloseWallet
#define OCISecurityCreateWallet ocizwCreateWallet
#define OCISecurityDestroyWallet ocizwDestroyWallet
#define OCISecurityStorePersona ocizeStorePersona
#define OCISecurityOpenPersona ocizeOpenPersona
#define OCISecurityClosePersona ocizeClosePersona
#define OCISecurityRemovePersona ocizeRemovePersona
#define OCISecurityCreatePersona ocizeCreatePersona
#define OCISecuritySetProtection ocizeSetProtection
#define OCISecurityGetProtection ocizeGetProtection
#define OCISecurityRemoveIdentity ociziRemoveIdentity
#define OCISecurityCreateIdentity ociziCreateIdentity
#define OCISecurityAbortIdentity ociziAbortIdentity
#define OCISecurityFreeIdentity ociziFreeIdentity
#define OCISecurityStoreTrustedIdentity ociziStoreTrustedIdentity
#define OCISecuritySign ocizSign
#define OCISecuritySignExpansion ocizxSignExpansion
#define OCISecurityVerify ocizVerify
#define OCISecurityValidate ocizValidate
#define OCISecuritySignDetached ocizsd_SignDetached
#define OCISecuritySignDetExpansion ocizxsd_SignDetachedExpansion
#define OCISecurityVerifyDetached ocizved_VerifyDetached
#define OCISecurity_PKEncrypt ocizkec_PKEncrypt
#define OCISecurityPKEncryptExpansion ocizxkec_PKEncryptExpansion
#define OCISecurityPKDecrypt ocizkdc_PKDecrypt
#define OCISecurityEncrypt ocizEncrypt
#define OCISecurityEncryptExpansion ocizxEncryptExpansion
#define OCISecurityDecrypt ocizDecrypt
#define OCISecurityEnvelope ocizEnvelope
#define OCISecurityDeEnvelope ocizDeEnvelope
#define OCISecurityKeyedHash ocizKeyedHash
#define OCISecurityKeyedHashExpansion ocizxKeyedHashExpansion
#define OCISecurityHash ocizHash
#define OCISecurityHashExpansion ocizxHashExpansion
#define OCISecuritySeedRandom ocizSeedRandom
#define OCISecurityRandomBytes ocizrb_RandomBytes
#define OCISecurityRandomNumber ocizrn_RandomNumber
#define OCISecurityInitBlock ocizibInitBlock
#define OCISecurityReuseBlock ocizrbReuseBlock
#define OCISecurityPurgeBlock ocizpbPurgeBlock
#define OCISecuritySetBlock ocizsbSetBlock
#define OCISecurityGetIdentity ocizgi_GetIdentity
#define OCIExtractInit ocixeini
#define OCIExtractTerm ocixetrm
#define OCIExtractReset ocixerst
#define OCIExtractSetNumKeys ocixesnk
#define OCIExtractSetKey ocixesk
#define OCIExtractFromFile ocixeff
#define OCIExtractFromStr ocixefs
#define OCIExtractToInt ocixeti
#define OCIExtractToBool ocixetb
#define OCIExtractToStr ocixets
#define OCIExtractToOCINum ocixeton
#define OCIExtractToList ocixetl
#define OCIExtractFromList ocixefl
#define OCIDateTimeGetTime ocidt01_GetTime
#define OCIDateTimeGetDate ocidt02_GetDate
#define OCIDateTimeGetTimeZoneOffset ocidt03_GetTZ
#define OCIDateTimeSysTimeStamp ocidt07_SysTS
#define OCIDateTimeAssign ocidt08_Assign
#define OCIDateTimeToText ocidt09_ToText
#define OCIDateTimeFromText ocidt10_FromText
#define OCIDateTimeCompare ocidt11_Compare
#define OCIDateTimeCheck ocidt12_Check
#define OCIDateTimeConvert ocidt13_Convert
#define OCIDateTimeSubtract ocidt14_Subtract
#define OCIDateTimeIntervalAdd ocidt15_IntervalAdd
#define OCIDateTimeIntervalSub ocidt16_IntervalSub
#define OCIDateTimeGetTimeZoneName ocidt17_Gettzname
#define OCIDateTimeToArray ocidt18_ToArray
#define OCIDateTimeFromArray ocidt19_FromArray
#define OCIIntervalSubtract ociint01_Subtract
#define OCIIntervalAdd ociint02_Add
#define OCIIntervalMultiply ociint03_Multiply
#define OCIIntervalDivide ociint04_Divide
#define OCIIntervalCompare ociint05_Compare
#define OCIIntervalFromText ociint06_FromText
#define OCIIntervalToText ociint07_ToText
#define OCIIntervalToNumber ociint08_ToNumber
#define OCIIntervalCheck ociint09_Check
#define OCIIntervalAssign ociint10_Assign
#define OCIIntervalGetYearMonth ociint11_GetYearMonth
#define OCIIntervalSetYearMonth ociint12_SetYearMonth
#define OCIIntervalGetDaySecond ociint13_GetDaySecond
#define OCIIntervalSetDaySecond ociint14_SetDaySecond
#define OCIIntervalFromNumber ociint15_FromNumber
#define OCIIntervalFromTZ ociint16_FromTZ
#define OCIFormatInit ocixs01_Init
#define OCIFormatString ocixs02_Format
#define OCIFormatTerm ocixs03_Term
#define OCIFormatTUb1 ocixs04_TUb1
#define OCIFormatTUb2 ocixs05_TUb2
#define OCIFormatTUb4 ocixs06_TUb4
#define OCIFormatTUword ocixs07_TUword
#define OCIFormatTUbig_ora ocixs08_TUbig_ora
#define OCIFormatTSb1 ocixs09_TSb1
#define OCIFormatTSb2 ocixs10_TSb2
#define OCIFormatTSb4 ocixs11_TSb4
#define OCIFormatTSword ocixs12_TSword
#define OCIFormatTSbig_ora ocixs13_TSbig_ora
#define OCIFormatTEb1 ocixs14_TEb1
#define OCIFormatTEb2 ocixs15_TEb2
#define OCIFormatTEb4 ocixs16_TEb4
#define OCIFormatTEword ocixs17_TEword
#define OCIFormatTChar ocixs18_TChar
#define OCIFormatTText ocixs19_TText
#define OCIFormatTDouble ocixs20_TDouble
#define OCIFormatTDvoid ocixs21_TDvoid
#define OCIFormatTEnd ocixs22_TEnd
#define OCIFileInit ocifinit
#define OCIFileTerm ocifterm
#define OCIFileOpen ocifopen
#define OCIFileClose ocifclose
#define OCIFileRead ocifread
#define OCIFileWrite ocifwrite
#define OCIFileSeek ocifseek
#define OCIFileExists ocifexists
#define OCIFileGetLength ocifglen
#define OCIFileFlush ocifflush
/* OCIThread short name */
#define OCIThreadProcessInit ocitt01_ProcessInit
#define OCIThreadInit ocitt02_Init
#define OCIThreadTerm ocitt03_Term
#define OCIThreadIsMulti ocitt04_IsMulti
#define OCIThreadMutexInit ocitt05_MutexInit
#define OCIThreadMutexDestroy ocitt06_MutexDestroy
#define OCIThreadMutexAcquire ocitt07_MutexAcquire
#define OCIThreadMutexRelease ocitt08_MutexRelease
#define OCIThreadKeyInit ocitt09_KeyInit
#define OCIThreadKeyDestroy ocitt10_KeyDestroy
#define OCIThreadKeyGet ocitt11_KeyGet
#define OCIThreadKeySet ocitt12_KeySet
#define OCIThreadIdInit ocitt13_IdInit
#define OCIThreadIdDestroy ocitt14_IdDestroy
#define OCIThreadIdSet ocitt15_IdSet
#define OCIThreadIdSetNull ocitt16_IdSetNull
#define OCIThreadIdGet ocitt17_IdGet
#define OCIThreadIdSame ocitt18_IdSame
#define OCIThreadIdNull ocitt19_IdNull
#define OCIThreadHndInit ocitt20_HndInit
#define OCIThreadHndDestroy ocitt21_HndDestroy
#define OCIThreadCreate ocitt22_Create
#define OCIThreadJoin ocitt23_Join
#define OCIThreadClose ocitt24_Close
#define OCIThreadHandleGet ocitt25_HandleGet
/* Translation between the old and new datatypes */
#define OCISession ociusrh
#define OCIBind ocibndh
#define OCIDescribe ocidsch
#define OCIDefine ocidfnh
#define OCIEnv ocienvh
#define OCIError ocierrh
#define OCICPool ocicpool
#define OCISPool ocispool
#define OCIAuthInfo ociauthinfo
#define OCILob ocilobd
#define OCILobLength ocillen
#define OCILobMode ocilmo
#define OCILobOffset ociloff
#define OCILobLocator ocilobd
#define OCIBlobLocator ociblobl
#define OCIClobLocator ociclobl
#define OCILobRegion ocilregd
#define OCIBFileLocator ocibfilel
#define OCIParam ocipard
#define OCIResult ocirstd
#define OCISnapshot ocisnad
#define OCIServer ocisrvh
#define OCIStmt ocistmh
#define OCISvcCtx ocisvch
#define OCITrans ocitxnh
#define OCICallbackInBind ocibicfp
#define OCICallbackOutBind ocibocfp
#define OCICallbackDefine ocidcfp
#define OCICallbackLobRead ocilrfp
#define OCICallbackLobWrite ocilwfp
#define OCICallbackLobGetDededuplicateRegions ocilgshr
#define OCISecurity ociossh
#define OCIComplexObject ocicorh
#define OCIComplexObjectComp ocicord
#define OCIRowid ociridd
#define OCIAQDeq ociaqdeq
#define OCIAQEnq ociaqenq
#define OCIConnectionPoolCreate ociconpc
#define OCIConnectionPoolDestroy ociconpd
#define OCIEnvCreate ocienvct
#define OCILobAssign ociloass
#define OCILobCharSetForm ocilocfm
#define OCILobCharSetId ocilocid
#define OCILobDisableBuffering ocilodbf
#define OCILobEnableBuffering ociloebf
#define OCILobFileClose ocilofcl
#define OCILobFileCloseAll ocilofca
#define OCILobFileExists ocilofex
#define OCILobFileGetName ocilofgn
#define OCILobFileIsOpen ocifiopn
#define OCILobFileOpen ocilofop
#define OCILobFileSetName ocilofsn
#define OCILobFlushBuffer ocilofbf
#define OCILobIsEqual ociloieq
#define OCILobLoadFromFile ocilolff
#define OCILobLocatorIsInit ocilolii
#define OCILobLocatorAssign ocilolas
#define OCILogon ocilogon
#define OCILogon2 ocilgon2
#define OCILogoff ocilgoff
#endif /* ifdef SLSHORTNAME */
/*---------------------------------------------------------------------------
PUBLIC TYPES AND CONSTANTS
---------------------------------------------------------------------------*/
/*-----------------------------Handle Types----------------------------------*/
/* handle types range from 1 - 49 */
#define OCI_HTYPE_FIRST 1 /* start value of handle type */
#define OCI_HTYPE_ENV 1 /* environment handle */
#define OCI_HTYPE_ERROR 2 /* error handle */
#define OCI_HTYPE_SVCCTX 3 /* service handle */
#define OCI_HTYPE_STMT 4 /* statement handle */
#define OCI_HTYPE_BIND 5 /* bind handle */
#define OCI_HTYPE_DEFINE 6 /* define handle */
#define OCI_HTYPE_DESCRIBE 7 /* describe handle */
#define OCI_HTYPE_SERVER 8 /* server handle */
#define OCI_HTYPE_SESSION 9 /* authentication handle */
#define OCI_HTYPE_AUTHINFO OCI_HTYPE_SESSION /* SessionGet auth handle */
#define OCI_HTYPE_TRANS 10 /* transaction handle */
#define OCI_HTYPE_COMPLEXOBJECT 11 /* complex object retrieval handle */
#define OCI_HTYPE_SECURITY 12 /* security handle */
#define OCI_HTYPE_SUBSCRIPTION 13 /* subscription handle */
#define OCI_HTYPE_DIRPATH_CTX 14 /* direct path context */
#define OCI_HTYPE_DIRPATH_COLUMN_ARRAY 15 /* direct path column array */
#define OCI_HTYPE_DIRPATH_STREAM 16 /* direct path stream */
#define OCI_HTYPE_PROC 17 /* process handle */
#define OCI_HTYPE_DIRPATH_FN_CTX 18 /* direct path function context */
#define OCI_HTYPE_DIRPATH_FN_COL_ARRAY 19 /* dp object column array */
#define OCI_HTYPE_XADSESSION 20 /* access driver session */
#define OCI_HTYPE_XADTABLE 21 /* access driver table */
#define OCI_HTYPE_XADFIELD 22 /* access driver field */
#define OCI_HTYPE_XADGRANULE 23 /* access driver granule */
#define OCI_HTYPE_XADRECORD 24 /* access driver record */
#define OCI_HTYPE_XADIO 25 /* access driver I/O */
#define OCI_HTYPE_CPOOL 26 /* connection pool handle */
#define OCI_HTYPE_SPOOL 27 /* session pool handle */
#define OCI_HTYPE_ADMIN 28 /* admin handle */
#define OCI_HTYPE_EVENT 29 /* HA event handle */
#define OCI_HTYPE_SODA_COLLECTION 30 /* SODA: Collection handle */
#define OCI_HTYPE_SODA_DOCUMENT 31 /* SODA: Document handle */
#define OCI_HTYPE_SODA_COLL_CURSOR 32 /* SODA: Collection Cursor handle */
#define OCI_HTYPE_SODA_OPER_OPTIONS 33 /* SODA: Operation options handle */
#define OCI_HTYPE_SODA_OUTPUT_OPTIONS 34 /* SODA: Output options handle */
#define OCI_HTYPE_SODA_METADATA 35 /* SODA: Metadata handle */
#define OCI_HTYPE_SODA_DOC_CURSOR 36 /* SODA: Document cursor handle */
#define OCI_HTYPE_LAST 36 /* last value of a handle type */
/*---------------------------------------------------------------------------*/
/*-------------------------Descriptor Types----------------------------------*/
/* descriptor values range from 50 - 255 */
#define OCI_DTYPE_FIRST 50 /* start value of descriptor type */
#define OCI_DTYPE_LOB 50 /* lob locator */
#define OCI_DTYPE_SNAP 51 /* snapshot descriptor */
#define OCI_DTYPE_RSET 52 /* result set descriptor */
#define OCI_DTYPE_PARAM 53 /* a parameter descriptor obtained from ocigparm */
#define OCI_DTYPE_ROWID 54 /* rowid descriptor */
#define OCI_DTYPE_COMPLEXOBJECTCOMP 55
/* complex object retrieval descriptor */
#define OCI_DTYPE_FILE 56 /* File Lob locator */
#define OCI_DTYPE_AQENQ_OPTIONS 57 /* enqueue options */
#define OCI_DTYPE_AQDEQ_OPTIONS 58 /* dequeue options */
#define OCI_DTYPE_AQMSG_PROPERTIES 59 /* message properties */
#define OCI_DTYPE_AQAGENT 60 /* aq agent */
#define OCI_DTYPE_LOCATOR 61 /* LOB locator */
#define OCI_DTYPE_INTERVAL_YM 62 /* Interval year month */
#define OCI_DTYPE_INTERVAL_DS 63 /* Interval day second */
#define OCI_DTYPE_AQNFY_DESCRIPTOR 64 /* AQ notify descriptor */
#define OCI_DTYPE_DATE 65 /* Date */
#define OCI_DTYPE_TIME 66 /* Time */
#define OCI_DTYPE_TIME_TZ 67 /* Time with timezone */
#define OCI_DTYPE_TIMESTAMP 68 /* Timestamp */
#define OCI_DTYPE_TIMESTAMP_TZ 69 /* Timestamp with timezone */
#define OCI_DTYPE_TIMESTAMP_LTZ 70 /* Timestamp with local tz */
#define OCI_DTYPE_UCB 71 /* user callback descriptor */
#define OCI_DTYPE_SRVDN 72 /* server DN list descriptor */
#define OCI_DTYPE_SIGNATURE 73 /* signature */
#define OCI_DTYPE_RESERVED_1 74 /* reserved for internal use */
#define OCI_DTYPE_AQLIS_OPTIONS 75 /* AQ listen options */
#define OCI_DTYPE_AQLIS_MSG_PROPERTIES 76 /* AQ listen msg props */
#define OCI_DTYPE_CHDES 77 /* Top level change notification desc */
#define OCI_DTYPE_TABLE_CHDES 78 /* Table change descriptor */
#define OCI_DTYPE_ROW_CHDES 79 /* Row change descriptor */
#define OCI_DTYPE_CQDES 80 /* Query change descriptor */
#define OCI_DTYPE_LOB_REGION 81 /* LOB Share region descriptor */
#define OCI_DTYPE_AQJMS_PROPERTIES 82 /* AQ JMS message properties */
#define OCI_DTYPE_SHARDING_KEY 83 /* Sharding/Super Sharding Key Descriptor */
#define OCI_DTYPE_SHARD_INST 84 /* Shard Instance Descriptor */
#define OCI_DTYPE_LAST 84 /* last value of a descriptor type */
/*---------------------------------------------------------------------------*/
/*--------------------------------LOB types ---------------------------------*/
#define OCI_TEMP_BLOB 1 /* LOB type - BLOB ------------------ */
#define OCI_TEMP_CLOB 2 /* LOB type - CLOB ------------------ */
/*---------------------------------------------------------------------------*/
/*-------------------------Object Ptr Types----------------------------------*/
#define OCI_OTYPE_NAME 1 /* object name */
#define OCI_OTYPE_REF 2 /* REF to TDO */
#define OCI_OTYPE_PTR 3 /* PTR to TDO */
/* AQ array error handling uses DML method of accessing errors */
#define OCI_ATTR_AQ_NUM_ERRORS OCI_ATTR_NUM_DML_ERRORS
#define OCI_ATTR_AQ_ERROR_INDEX OCI_ATTR_DML_ROW_OFFSET
#define OCI_ATTR_PURITY_DEFAULT 0x00
#define OCI_ATTR_PURITY_NEW 0x01
#define OCI_ATTR_PURITY_SELF 0x02
#define OCI_XDS_POLICY_NONE 0
#define OCI_XDS_POLICY_ENABLED 1
#define OCI_XDS_POLICY_UNKNOWN 2
/*----------------------------OCI Collation IDs------------------------------*/
/* collation IDs of a number of frequently used collations, mainly
pseudo-collations; they are returned as values of the attribute
OCI_ATTR_COLLATION_ID; the SQL names of the collations corresponding
to the IDs are given in comments below */
/* undefined collation; no collation has been specified */
#define OCI_COLLATION_NONE ((ub4)0x00000000)
/* pseudo-collation USING_NLS_COMP */
#define OCI_COLLATION_NLS_COMP ((ub4)0x00003FFE)
/* pseudo-collation USING_NLS_SORT */
#define OCI_COLLATION_NLS_SORT ((ub4)0x00003FFD)
/* pseudo-collation USING_NLS_SORT_CI */
#define OCI_COLLATION_NLS_SORT_CI ((ub4)0x00003FFC)
/* pseudo-collation USING_NLS_SORT_AI */
#define OCI_COLLATION_NLS_SORT_AI ((ub4)0x00003FFB)
/* pseudo-collation USING_NLS_SORT_CS */
#define OCI_COLLATION_NLS_SORT_CS ((ub4)0x00003FFA)
/* pseudo-collation USING_NLS_SORT_VAR1 */
#define OCI_COLLATION_NLS_SORT_VAR1 ((ub4)0x00003FF9)
/* pseudo-collation USING_NLS_SORT_VAR1_CI */
#define OCI_COLLATION_NLS_SORT_VAR1_CI ((ub4)0x00003FF8)
/* pseudo-collation USING_NLS_SORT_VAR1_AI */
#define OCI_COLLATION_NLS_SORT_VAR1_AI ((ub4)0x00003FF7)
/* pseudo-collation USING_NLS_SORT_VAR1_CS */
#define OCI_COLLATION_NLS_SORT_VAR1_CS ((ub4)0x00003FF6)
/* BINARY */
#define OCI_COLLATION_BINARY ((ub4)0x00003FFF)
/* BINARY_CI */
#define OCI_COLLATION_BINARY_CI ((ub4)0x00023FFF)
/* BINARY_AI */
#define OCI_COLLATION_BINARY_AI ((ub4)0x00013FFF)
/* ATTRIBUTE NUMBERS ARE GLOBAL
*
* DO NOT ADD NEW ATTRIBUTES HERE -- ADD WHERE IT SAYS
* "new attributes must be added just before this block" (UPPERCASED, unquoted)
*/
/* DB Change: Event types ---------------*/
#define OCI_EVENT_NONE 0x0 /* None */
#define OCI_EVENT_STARTUP 0x1 /* Startup database */
#define OCI_EVENT_SHUTDOWN 0x2 /* Shutdown database */
#define OCI_EVENT_SHUTDOWN_ANY 0x3 /* Startup instance */
#define OCI_EVENT_DROP_DB 0x4 /* Drop database */
#define OCI_EVENT_DEREG 0x5 /* Subscription deregistered */
#define OCI_EVENT_OBJCHANGE 0x6 /* Object change notification */
#define OCI_EVENT_QUERYCHANGE 0x7 /* query result change */
/* DB Change: Operation types -----------*/
#define OCI_OPCODE_ALLROWS 0x1 /* all rows invalidated */
#define OCI_OPCODE_ALLOPS 0x0 /* interested in all operations */
#define OCI_OPCODE_INSERT 0x2 /* INSERT */
#define OCI_OPCODE_UPDATE 0x4 /* UPDATE */
#define OCI_OPCODE_DELETE 0x8 /* DELETE */
#define OCI_OPCODE_ALTER 0x10 /* ALTER */
#define OCI_OPCODE_DROP 0x20 /* DROP TABLE */
#define OCI_OPCODE_UNKNOWN 0x40 /* GENERIC/ UNKNOWN*/
/*------------- Supported Values for protocol for recepient -----------------*/
#define OCI_SUBSCR_PROTO_OCI 0 /* oci */
#define OCI_SUBSCR_PROTO_MAIL 1 /* mail */
#define OCI_SUBSCR_PROTO_SERVER 2 /* server */
#define OCI_SUBSCR_PROTO_HTTP 3 /* http */
#define OCI_SUBSCR_PROTO_MAX 4 /* max current protocols */
/*------------- Supported Values for presentation for recepient -------------*/
#define OCI_SUBSCR_PRES_DEFAULT 0 /* default */
#define OCI_SUBSCR_PRES_XML 1 /* xml */
#define OCI_SUBSCR_PRES_MAX 2 /* max current presentations */
/*------------- Supported QOS values for notification registrations ---------*/
#define OCI_SUBSCR_QOS_RELIABLE 0x01 /* reliable */
#define OCI_SUBSCR_QOS_PAYLOAD 0x02 /* payload delivery */
#define OCI_SUBSCR_QOS_REPLICATE 0x04 /* replicate to director */
/* internal qos - 12c secure ntfns with client initiated connections */
#define OCI_SUBSCR_QOS_SECURE 0x08 /* secure payload delivery */
#define OCI_SUBSCR_QOS_PURGE_ON_NTFN 0x10 /* purge on first ntfn */
#define OCI_SUBSCR_QOS_MULTICBK 0x20 /* multi instance callback */
/* 0x40 is used for a internal flag */
#define OCI_SUBSCR_QOS_HAREG 0x80 /* HA reg */
/* non-durable registration. For now supported only with secure ntfns */
#define OCI_SUBSCR_QOS_NONDURABLE 0x100 /* non-durable reg */
#define OCI_SUBSCR_QOS_ASYNC_DEQ 0x200 /* Asyncronous Deq */
#define OCI_SUBSCR_QOS_AUTO_ACK 0x400 /* auto acknowledgement */
#define OCI_SUBSCR_QOS_TX_ACK 0x800 /* transacted acks */
#define OCI_SUBSCR_QOS_PLS_NTFN 0x1000 /*11g plsql ntfn - sharded */
#define OCI_SUBSCR_QOS_AUTO_DEQ 0x2000 /* plsql automatic deq */
/* ----QOS flags specific to change notification/ continuous queries CQ -----*/
#define OCI_SUBSCR_CQ_QOS_QUERY 0x01 /* query level notification */
#define OCI_SUBSCR_CQ_QOS_BEST_EFFORT 0x02 /* best effort notification */
#define OCI_SUBSCR_CQ_QOS_CLQRYCACHE 0x04 /* client query caching */
/*------------- Supported Values for notification grouping class ------------*/
#define OCI_SUBSCR_NTFN_GROUPING_CLASS_TIME 1 /* time */
/*------------- Supported Values for notification grouping type -------------*/
#define OCI_SUBSCR_NTFN_GROUPING_TYPE_SUMMARY 1 /* summary */
#define OCI_SUBSCR_NTFN_GROUPING_TYPE_LAST 2 /* last */
/* ----- Temporary attribute value for UCS2/UTF16 character set ID -------- */
#define OCI_UCS2ID 1000 /* UCS2 charset ID */
#define OCI_UTF16ID 1000 /* UTF16 charset ID */
/* -------------------------- Implicit Result types ------------------------ */
#define OCI_RESULT_TYPE_SELECT 1
/*============================== End OCI Attribute Types ====================*/
/*---------------- Server Handle Attribute Values ---------------------------*/
/* OCI_ATTR_SERVER_STATUS */
#define OCI_SERVER_NOT_CONNECTED 0x0
#define OCI_SERVER_NORMAL 0x1
/*---------------------------------------------------------------------------*/
/*------------------------- Supported Namespaces ---------------------------*/
#define OCI_SUBSCR_NAMESPACE_ANONYMOUS 0 /* Anonymous Namespace */
#define OCI_SUBSCR_NAMESPACE_AQ 1 /* Advanced Queues */
#define OCI_SUBSCR_NAMESPACE_DBCHANGE 2 /* change notification */
#define OCI_SUBSCR_NAMESPACE_RESERVED1 3
#define OCI_SUBSCR_NAMESPACE_MAX 4 /* Max Name Space Number */
/*-------------------------Credential Types----------------------------------*/
#define OCI_CRED_RDBMS 1 /* database username/password */
#define OCI_CRED_EXT 2 /* externally provided credentials */
#define OCI_CRED_PROXY 3 /* proxy authentication */
#define OCI_CRED_RESERVED_1 4 /* reserved */
#define OCI_CRED_RESERVED_2 5 /* reserved */
#define OCI_CRED_RESERVED_3 6 /* reserved */
/*---------------------------------------------------------------------------*/
/*------------------------Error Return Values--------------------------------*/
#define OCI_SUCCESS 0 /* maps to SQL_SUCCESS of SAG CLI */
#define OCI_SUCCESS_WITH_INFO 1 /* maps to SQL_SUCCESS_WITH_INFO */
#define OCI_RESERVED_FOR_INT_USE 200 /* reserved */
#define OCI_NO_DATA 100 /* maps to SQL_NO_DATA */
#define OCI_ERROR -1 /* maps to SQL_ERROR */
#define OCI_INVALID_HANDLE -2 /* maps to SQL_INVALID_HANDLE */
#define OCI_NEED_DATA 99 /* maps to SQL_NEED_DATA */
#define OCI_STILL_EXECUTING -3123 /* OCI would block error */
/*---------------------------------------------------------------------------*/
/*--------------------- User Callback Return Values -------------------------*/
#define OCI_CONTINUE -24200 /* Continue with the body of the OCI function */
#define OCI_ROWCBK_DONE -24201 /* done with user row callback */
/*---------------------------------------------------------------------------*/
/*------------------DateTime and Interval check Error codes------------------*/
/* DateTime Error Codes used by OCIDateTimeCheck() */
#define OCI_DT_INVALID_DAY 0x1 /* Bad day */
#define OCI_DT_DAY_BELOW_VALID 0x2 /* Bad DAy Low/high bit (1=low)*/
#define OCI_DT_INVALID_MONTH 0x4 /* Bad MOnth */
#define OCI_DT_MONTH_BELOW_VALID 0x8 /* Bad MOnth Low/high bit (1=low) */
#define OCI_DT_INVALID_YEAR 0x10 /* Bad YeaR */
#define OCI_DT_YEAR_BELOW_VALID 0x20 /* Bad YeaR Low/high bit (1=low) */
#define OCI_DT_INVALID_HOUR 0x40 /* Bad HouR */
#define OCI_DT_HOUR_BELOW_VALID 0x80 /* Bad HouR Low/high bit (1=low) */
#define OCI_DT_INVALID_MINUTE 0x100 /* Bad MiNute */
#define OCI_DT_MINUTE_BELOW_VALID 0x200 /*Bad MiNute Low/high bit (1=low) */
#define OCI_DT_INVALID_SECOND 0x400 /* Bad SeCond */
#define OCI_DT_SECOND_BELOW_VALID 0x800 /*bad second Low/high bit (1=low)*/
#define OCI_DT_DAY_MISSING_FROM_1582 0x1000
/* Day is one of those "missing" from 1582 */
#define OCI_DT_YEAR_ZERO 0x2000 /* Year may not equal zero */
#define OCI_DT_INVALID_TIMEZONE 0x4000 /* Bad Timezone */
#define OCI_DT_INVALID_FORMAT 0x8000 /* Bad date format input */
/* Interval Error Codes used by OCIInterCheck() */
#define OCI_INTER_INVALID_DAY 0x1 /* Bad day */
#define OCI_INTER_DAY_BELOW_VALID 0x2 /* Bad DAy Low/high bit (1=low) */
#define OCI_INTER_INVALID_MONTH 0x4 /* Bad MOnth */
#define OCI_INTER_MONTH_BELOW_VALID 0x8 /*Bad MOnth Low/high bit (1=low) */
#define OCI_INTER_INVALID_YEAR 0x10 /* Bad YeaR */
#define OCI_INTER_YEAR_BELOW_VALID 0x20 /*Bad YeaR Low/high bit (1=low) */
#define OCI_INTER_INVALID_HOUR 0x40 /* Bad HouR */
#define OCI_INTER_HOUR_BELOW_VALID 0x80 /*Bad HouR Low/high bit (1=low) */
#define OCI_INTER_INVALID_MINUTE 0x100 /* Bad MiNute */
#define OCI_INTER_MINUTE_BELOW_VALID 0x200
/*Bad MiNute Low/high bit(1=low) */
#define OCI_INTER_INVALID_SECOND 0x400 /* Bad SeCond */
#define OCI_INTER_SECOND_BELOW_VALID 0x800
/*bad second Low/high bit(1=low) */
#define OCI_INTER_INVALID_FRACSEC 0x1000 /* Bad Fractional second */
#define OCI_INTER_FRACSEC_BELOW_VALID 0x2000
/* Bad fractional second Low/High */
/*------------------------Parsing Syntax Types-------------------------------*/
#define OCI_V7_SYNTAX 2 /* V815 language - for backwards compatibility */
#define OCI_V8_SYNTAX 3 /* V815 language - for backwards compatibility */
#define OCI_NTV_SYNTAX 1 /* Use what so ever is the native lang of server */
#define OCI_FOREIGN_SYNTAX UB4MAXVAL /* Foreign syntax - require translation */
/* these values must match the values defined in kpul.h */
/*---------------------------------------------------------------------------*/
/*------------------------(Scrollable Cursor) Fetch Options-------------------
* For non-scrollable cursor, the only valid (and default) orientation is
* OCI_FETCH_NEXT
*/
#define OCI_FETCH_CURRENT 0x00000001 /* refetching current position */
#define OCI_FETCH_NEXT 0x00000002 /* next row */
#define OCI_FETCH_FIRST 0x00000004 /* first row of the result set */
#define OCI_FETCH_LAST 0x00000008 /* the last row of the result set */
#define OCI_FETCH_PRIOR 0x00000010 /* previous row relative to current */
#define OCI_FETCH_ABSOLUTE 0x00000020 /* absolute offset from first */
#define OCI_FETCH_RELATIVE 0x00000040 /* offset relative to current */
#define OCI_FETCH_RESERVED_1 0x00000080 /* reserved */
#define OCI_FETCH_RESERVED_2 0x00000100 /* reserved */
#define OCI_FETCH_RESERVED_3 0x00000200 /* reserved */
#define OCI_FETCH_RESERVED_4 0x00000400 /* reserved */
#define OCI_FETCH_RESERVED_5 0x00000800 /* reserved */
#define OCI_FETCH_RESERVED_6 0x00001000 /* reserved */
/*---------------------------------------------------------------------------*/
/*------------------------Bind and Define Options----------------------------*/
#define OCI_SB2_IND_PTR 0x00000001 /* unused */
#define OCI_DATA_AT_EXEC 0x00000002 /* data at execute time */
#define OCI_DYNAMIC_FETCH 0x00000002 /* fetch dynamically */
#define OCI_PIECEWISE 0x00000004 /* piecewise DMLs or fetch */
#define OCI_DEFINE_RESERVED_1 0x00000008 /* reserved */
#define OCI_BIND_RESERVED_2 0x00000010 /* reserved */
#define OCI_DEFINE_RESERVED_2 0x00000020 /* reserved */
#define OCI_BIND_SOFT 0x00000040 /* soft bind or define */
#define OCI_DEFINE_SOFT 0x00000080 /* soft bind or define */
#define OCI_BIND_RESERVED_3 0x00000100 /* reserved */
#define OCI_IOV 0x00000200 /* For scatter gather bind/define */
/*---------------------------------------------------------------------------*/
/*----------------------------- Various Modes ------------------------------*/
#define OCI_DEFAULT 0x00000000
/* the default value for parameters and attributes */
/*-------------OCIInitialize Modes / OCICreateEnvironment Modes -------------*/
#define OCI_THREADED 0x00000001 /* appl. in threaded environment */
#define OCI_OBJECT 0x00000002 /* application in object environment */
#define OCI_EVENTS 0x00000004 /* application is enabled for events */
#define OCI_RESERVED1 0x00000008 /* reserved */
#define OCI_SHARED 0x00000010 /* the application is in shared mode */
#define OCI_RESERVED2 0x00000020 /* reserved */
/* The following *TWO* are only valid for OCICreateEnvironment call */
#define OCI_NO_UCB 0x00000040 /* No user callback called during ini */
#define OCI_NO_MUTEX 0x00000080 /* the environment handle will not be */
/* protected by a mutex internally */
#define OCI_SHARED_EXT 0x00000100 /* Used for shared forms */
#define OCI_ENVCR_RESERVED9 0x00000200 /* reserved */
#define OCI_ALWAYS_BLOCKING 0x00000400 /* all connections always blocking */
/************************** 0x00000800 free **********************************/
#define OCI_USE_LDAP 0x00001000 /* allow LDAP connections */
#define OCI_REG_LDAPONLY 0x00002000 /* only register to LDAP */
#define OCI_UTF16 0x00004000 /* mode for all UTF16 metadata */
#define OCI_AFC_PAD_ON 0x00008000
/* turn on AFC blank padding when rlenp present */
#define OCI_ENVCR_RESERVED3 0x00010000 /* reserved */
#define OCI_NEW_LENGTH_SEMANTICS 0x00020000 /* adopt new length semantics */
/* the new length semantics, always bytes, is used by OCIEnvNlsCreate */
#define OCI_NO_MUTEX_STMT 0x00040000 /* Do not mutex stmt handle */
#define OCI_MUTEX_ENV_ONLY 0x00080000 /* Mutex only the environment handle */
#define OCI_SUPPRESS_NLS_VALIDATION 0x00100000 /* suppress nls validation */
/* nls validation suppression is on by default;
use OCI_ENABLE_NLS_VALIDATION to disable it */
#define OCI_MUTEX_TRY 0x00200000 /* try and acquire mutex */
#define OCI_NCHAR_LITERAL_REPLACE_ON 0x00400000 /* nchar literal replace on */
#define OCI_NCHAR_LITERAL_REPLACE_OFF 0x00800000 /* nchar literal replace off*/
#define OCI_ENABLE_NLS_VALIDATION 0x01000000 /* enable nls validation */
#define OCI_ENVCR_RESERVED4 0x02000000 /* reserved */
#define OCI_ENVCR_RESERVED5 0x04000000 /* reserved */
#define OCI_ENVCR_RESERVED6 0x08000000 /* reserved */
#define OCI_ENVCR_RESERVED7 0x10000000 /* reserved */
#define OCI_ENVCR_RESERVED8 0x80000000 /* reserved */
/* client initiated notification listener connections, applicable only for
12c queues and above */
#define OCI_SECURE_NOTIFICATION 0x20000000
#define OCI_DISABLE_DIAG 0x40000000 /* disable diagnostics */
/*---------------------------------------------------------------------------*/
/*------------------------OCIConnectionpoolCreate Modes----------------------*/
#define OCI_CPOOL_REINITIALIZE 0x111
/*---------------------------------------------------------------------------*/
/*--------------------------------- OCILogon2 Modes -------------------------*/
#define OCI_LOGON2_SPOOL 0x0001 /* Use session pool */
#define OCI_LOGON2_STMTCACHE 0x0004 /* Use Stmt Caching */
#define OCI_LOGON2_PROXY 0x0008 /* Proxy authentiaction */
#define OCI_LOGON2_CPOOL 0x0200 /* Use connection pool */
/*---------------------------------------------------------------------------*/
/*------------------------- OCISessionPoolCreate Modes ----------------------*/
#define OCI_SPC_REINITIALIZE 0x0001 /* Reinitialize the session pool */
#define OCI_SPC_HOMOGENEOUS 0x0002 /* Session pool is homogeneneous */
#define OCI_SPC_STMTCACHE 0x0004 /* Session pool has stmt cache */
#define OCI_SPC_NO_RLB 0x0008 /* Do not enable Runtime load balancing */
/*---------------------------------------------------------------------------*/
/*--------------------------- OCISessionGet Modes ---------------------------*/
#define OCI_SESSGET_SPOOL 0x0001 /* SessionGet called in SPOOL mode */
#define OCI_SESSGET_STMTCACHE 0x0004 /* Use statement cache */
#define OCI_SESSGET_CREDPROXY 0x0008 /* SessionGet called in proxy mode */
#define OCI_SESSGET_CREDEXT 0x0010
#define OCI_SESSGET_SPOOL_MATCHANY 0x0020
#define OCI_SESSGET_PURITY_NEW 0x0040
#define OCI_SESSGET_PURITY_SELF 0x0080
#define OCI_SESSGET_SYSDBA 0x0100 /* SessionGet with SYSDBA privileges */
#define OCI_SESSGET_CPOOL 0x0200 /* SessionGet called in CPOOL mode */
#define OCI_SESSGET_MULTIPROPERTY_TAG 0x0400 /* multi property tag */
#define OCI_SESSGET_CUSTOM_POOL 0x0800 /* Custom Pool Mode */
/*---------------------------------------------------------------------------*/
/*------------------------ATTR Values for Session Pool-----------------------*/
/* Attribute values for OCI_ATTR_SPOOL_GETMODE */
#define OCI_SPOOL_ATTRVAL_WAIT 0 /* block till you get a session */
#define OCI_SPOOL_ATTRVAL_NOWAIT 1 /* error out if no session avaliable */
#define OCI_SPOOL_ATTRVAL_FORCEGET 2 /* get session even if max is exceeded */
#define OCI_SPOOL_ATTRVAL_TIMEDWAIT 3 /* wait for specified timeout if pool
* is maxed out */
/*---------------------------------------------------------------------------*/
/*--------------------------- OCISessionRelease Modes -----------------------*/
#define OCI_SESSRLS_DROPSESS 0x0001 /* Drop the Session */
#define OCI_SESSRLS_RETAG 0x0002 /* Retag the session */
#define OCI_SESSRLS_MULTIPROPERTY_TAG 0x0004 /* multi property tag */
/*---------------------------------------------------------------------------*/
/*----------------------- OCISessionPoolDestroy Modes -----------------------*/
#define OCI_SPD_FORCE 0x0001 /* Force the sessions to terminate.
Even if there are some busy
sessions close them */
/*---------------------------------------------------------------------------*/
/*----------------------------- OCIRequestEnd Modes -------------------------*/
#define OCI_REQUEST_END_KEEP_SESSION 0x0001 /* Don't drop the session for
planned maintenance */
/*---------------------------------------------------------------------------*/
/*----------------------------- Statement States ----------------------------*/
#define OCI_STMT_STATE_INITIALIZED 0x0001
#define OCI_STMT_STATE_EXECUTED 0x0002
#define OCI_STMT_STATE_END_OF_FETCH 0x0003
/*---------------------------------------------------------------------------*/
/*----------------------------- OCIMemStats Modes ---------------------------*/
#define OCI_MEM_INIT 0x01
#define OCI_MEM_CLN 0x02
#define OCI_MEM_FLUSH 0x04
#define OCI_DUMP_HEAP 0x80
#define OCI_CLIENT_STATS 0x10
#define OCI_SERVER_STATS 0x20
/*----------------------------- OCIEnvInit Modes ----------------------------*/
/* NOTE: NO NEW MODES SHOULD BE ADDED HERE BECAUSE THE RECOMMENDED METHOD
* IS TO USE THE NEW OCICreateEnvironment MODES.
*/
#define OCI_ENV_NO_UCB 0x01 /* A user callback will not be called in
OCIEnvInit() */
#define OCI_ENV_NO_MUTEX 0x08 /* the environment handle will not be protected
by a mutex internally */
/*---------------------------------------------------------------------------*/
/*------------------------ Prepare Modes ------------------------------------*/
#define OCI_NO_SHARING 0x01 /* turn off statement handle sharing */
#define OCI_PREP_RESERVED_1 0x02 /* reserved */
#define OCI_PREP_AFC_PAD_ON 0x04 /* turn on blank padding for AFC */
#define OCI_PREP_AFC_PAD_OFF 0x08 /* turn off blank padding for AFC */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*----------------------- Execution Modes -----------------------------------*/
#define OCI_BATCH_MODE 0x00000001 /* batch the oci stmt for exec */
#define OCI_EXACT_FETCH 0x00000002 /* fetch exact rows specified */
/* #define 0x00000004 available */
#define OCI_STMT_SCROLLABLE_READONLY \
0x00000008 /* if result set is scrollable */
#define OCI_DESCRIBE_ONLY 0x00000010 /* only describe the statement */
#define OCI_COMMIT_ON_SUCCESS 0x00000020 /* commit, if successful exec */
#define OCI_NON_BLOCKING 0x00000040 /* non-blocking */
#define OCI_BATCH_ERRORS 0x00000080 /* batch errors in array dmls */
#define OCI_PARSE_ONLY 0x00000100 /* only parse the statement */
#define OCI_EXACT_FETCH_RESERVED_1 0x00000200 /* reserved */
#define OCI_SHOW_DML_WARNINGS 0x00000400
/* return OCI_SUCCESS_WITH_INFO for delete/update w/no where clause */
#define OCI_EXEC_RESERVED_2 0x00000800 /* reserved */
#define OCI_DESC_RESERVED_1 0x00001000 /* reserved */
#define OCI_EXEC_RESERVED_3 0x00002000 /* reserved */
#define OCI_EXEC_RESERVED_4 0x00004000 /* reserved */
#define OCI_EXEC_RESERVED_5 0x00008000 /* reserved */
#define OCI_EXEC_RESERVED_6 0x00010000 /* reserved */
#define OCI_RESULT_CACHE 0x00020000 /* hint to use query caching */
#define OCI_NO_RESULT_CACHE 0x00040000 /*hint to bypass query caching*/
#define OCI_EXEC_RESERVED_7 0x00080000 /* reserved */
#define OCI_RETURN_ROW_COUNT_ARRAY 0x00100000 /* Per Iter DML Row Count mode */
/*---------------------------------------------------------------------------*/
/*------------------------Authentication Modes-------------------------------*/
#define OCI_MIGRATE 0x00000001 /* migratable auth context */
#define OCI_SYSDBA 0x00000002 /* for SYSDBA authorization */
#define OCI_SYSOPER 0x00000004 /* for SYSOPER authorization */
#define OCI_PRELIM_AUTH 0x00000008 /* for preliminary authorization */
#define OCIP_ICACHE 0x00000010 /* Private OCI cache mode */
#define OCI_AUTH_RESERVED_1 0x00000020 /* reserved */
#define OCI_STMT_CACHE 0x00000040 /* enable OCI Stmt Caching */
#define OCI_STATELESS_CALL 0x00000080 /* stateless at call boundary */
#define OCI_STATELESS_TXN 0x00000100 /* stateless at txn boundary */
#define OCI_STATELESS_APP 0x00000200 /* stateless at user-specified pts */
#define OCI_AUTH_RESERVED_2 0x00000400 /* reserved */
#define OCI_AUTH_RESERVED_3 0x00000800 /* reserved */
#define OCI_AUTH_RESERVED_4 0x00001000 /* reserved */
#define OCI_AUTH_RESERVED_5 0x00002000 /* reserved */
#define OCI_SYSASM 0x00008000 /* for SYSASM authorization */
#define OCI_AUTH_RESERVED_6 0x00010000 /* reserved */
#define OCI_SYSBKP 0x00020000 /* for SYSBACKUP authorization */
#define OCI_SYSDGD 0x00040000 /* for SYSDG authorization */
#define OCI_SYSKMT 0x00080000 /* for SYSKM authorization */
#define OCI_SYSRAC 0x00100000 /* for SYSRAC authorization */
/*---------------------------------------------------------------------------*/
/*------------------------Session End Modes----------------------------------*/
#define OCI_SESSEND_RESERVED_1 0x0001 /* reserved */
#define OCI_SESSEND_RESERVED_2 0x0002 /* reserved */
/*---------------------------------------------------------------------------*/
/*------------------------Attach Modes---------------------------------------*/
/* The following attach modes are the same as the UPI modes defined in
* UPIDEF.H. Do not use these values externally.
*/
#define OCI_FASTPATH 0x0010 /* Attach in fast path mode */
#define OCI_ATCH_RESERVED_1 0x0020 /* reserved */
#define OCI_ATCH_RESERVED_2 0x0080 /* reserved */
#define OCI_ATCH_RESERVED_3 0x0100 /* reserved */
#define OCI_CPOOL 0x0200 /* Attach using server handle from pool */
#define OCI_ATCH_RESERVED_4 0x0400 /* reserved */
#define OCI_ATCH_RESERVED_5 0x2000 /* reserved */
#define OCI_ATCH_ENABLE_BEQ 0x4000 /* Allow bequeath connect strings */
#define OCI_ATCH_RESERVED_6 0x8000 /* reserved */
#define OCI_ATCH_RESERVED_7 0x10000 /* reserved */
#define OCI_ATCH_RESERVED_8 0x20000 /* reserved */
#define OCI_ATCH_RESERVED_9 0x40000 /* reserved */
#define OCI_SRVATCH_RESERVED5 0x01000000 /* reserved */
#define OCI_SRVATCH_RESERVED6 0x02000000 /* reserved */
/*---------------------OCIStmtPrepare2 Modes---------------------------------*/
#define OCI_PREP2_CACHE_SEARCHONLY 0x0010 /* ONly Search */
#define OCI_PREP2_GET_PLSQL_WARNINGS 0x0020 /* Get PL/SQL warnings */
#define OCI_PREP2_RESERVED_1 0x0040 /* reserved */
#define OCI_PREP2_RESERVED_2 0x0080 /* reserved */
#define OCI_PREP2_RESERVED_3 0x0100 /* reserved */
#define OCI_PREP2_RESERVED_4 0x0200 /* reserved */
#define OCI_PREP2_IMPL_RESULTS_CLIENT 0x0400 /* client for implicit results */
#define OCI_PREP2_RESERVED_5 0x0800 /* reserved */
#define OCI_PREP2_RESERVED_6 0x1000 /* reserved */
#define OCI_PREP2_GET_SQL_ID 0x2000 /* Get SQL_ID for the SQL stmt */
#define OCI_PREP2_RESERVED_7 0x4000 /* reserved */
#define OCI_PREP2_RESERVED_8 0x8000 /* reserved */
#define OCI_PREP2_RESERVED_9 0x10000 /* reserved */
/*---------------------OCIStmtRelease Modes----------------------------------*/
#define OCI_STRLS_CACHE_DELETE 0x0010 /* Delete from Cache */
/*---------------------OCIHanlde Mgmt Misc Modes-----------------------------*/
#define OCI_STM_RESERVED4 0x00100000 /* reserved */
/*-----------------------------End Various Modes ----------------------------*/
/*------------------------Piece Information----------------------------------*/
#define OCI_PARAM_IN 0x01 /* in parameter */
#define OCI_PARAM_OUT 0x02 /* out parameter */
/*---------------------------------------------------------------------------*/
/*------------------------ Transaction Start Flags --------------------------*/
/* NOTE: OCI_TRANS_JOIN and OCI_TRANS_NOMIGRATE not supported in 8.0.X */
#define OCI_TRANS_NEW 0x00000001 /* start a new local or global txn */
#define OCI_TRANS_JOIN 0x00000002 /* join an existing global txn */
#define OCI_TRANS_RESUME 0x00000004 /* resume the global txn branch */
#define OCI_TRANS_PROMOTE 0x00000008 /* promote the local txn to global */
#define OCI_TRANS_STARTMASK 0x000000ff /* mask for start operation flags */
#define OCI_TRANS_READONLY 0x00000100 /* start a readonly txn */
#define OCI_TRANS_READWRITE 0x00000200 /* start a read-write txn */
#define OCI_TRANS_SERIALIZABLE 0x00000400 /* start a serializable txn */
#define OCI_TRANS_ISOLMASK 0x0000ff00 /* mask for start isolation flags */
#define OCI_TRANS_LOOSE 0x00010000 /* a loosely coupled branch */
#define OCI_TRANS_TIGHT 0x00020000 /* a tightly coupled branch */
#define OCI_TRANS_TYPEMASK 0x000f0000 /* mask for branch type flags */
#define OCI_TRANS_NOMIGRATE 0x00100000 /* non migratable transaction */
#define OCI_TRANS_SEPARABLE 0x00200000 /* separable transaction (8.1.6+) */
#define OCI_TRANS_OTSRESUME 0x00400000 /* OTS resuming a transaction */
#define OCI_TRANS_OTHRMASK 0xfff00000 /* mask for other start flags */
/*---------------------------------------------------------------------------*/
/*------------------------ Transaction End Flags ----------------------------*/
#define OCI_TRANS_TWOPHASE 0x01000000 /* use two phase commit */
#define OCI_TRANS_WRITEBATCH 0x00000001 /* force cmt-redo for local txns */
#define OCI_TRANS_WRITEIMMED 0x00000002 /* no force cmt-redo */
#define OCI_TRANS_WRITEWAIT 0x00000004 /* no sync cmt-redo */
#define OCI_TRANS_WRITENOWAIT 0x00000008 /* sync cmt-redo for local txns */
/*---------------------------------------------------------------------------*/
/*------------------------- AQ Constants ------------------------------------
* NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
* The following constants must match the PL/SQL dbms_aq constants
* NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
*/
/* ------------------------- Visibility flags -------------------------------*/
#define OCI_ENQ_IMMEDIATE 1 /* enqueue is an independent transaction */
#define OCI_ENQ_ON_COMMIT 2 /* enqueue is part of current transaction */
/* ----------------------- Dequeue mode flags -------------------------------*/
#define OCI_DEQ_BROWSE 1 /* read message without acquiring a lock */
#define OCI_DEQ_LOCKED 2 /* read and obtain write lock on message */
#define OCI_DEQ_REMOVE 3 /* read the message and delete it */
#define OCI_DEQ_REMOVE_NODATA 4 /* delete message w'o returning payload */
#define OCI_DEQ_GETSIG 5 /* get signature only */
/* ----------------- Dequeue navigation flags -------------------------------*/
#define OCI_DEQ_FIRST_MSG 1 /* get first message at head of queue */
#define OCI_DEQ_NEXT_MSG 3 /* next message that is available */
#define OCI_DEQ_NEXT_TRANSACTION 2 /* get first message of next txn group */
#define OCI_DEQ_FIRST_MSG_MULTI_GROUP 4
/* start from first message and array deq across txn groups */
#define OCI_DEQ_MULT_TRANSACTION 5 /* array dequeue across txn groups */
#define OCI_DEQ_NEXT_MSG_MULTI_GROUP OCI_DEQ_MULT_TRANSACTION
/* array dequeue across txn groups */
/* ----------------- Dequeue Option Reserved flags ------------------------- */
#define OCI_DEQ_RESERVED_1 0x000001
/* --------------------- Message states -------------------------------------*/
#define OCI_MSG_WAITING 1 /* the message delay has not yet completed */
#define OCI_MSG_READY 0 /* the message is ready to be processed */
#define OCI_MSG_PROCESSED 2 /* the message has been processed */
#define OCI_MSG_EXPIRED 3 /* message has moved to exception queue */
/* --------------------- Sequence deviation ---------------------------------*/
#define OCI_ENQ_BEFORE 2 /* enqueue message before another message */
#define OCI_ENQ_TOP 3 /* enqueue message before all messages */
/* ------------------------- Visibility flags -------------------------------*/
#define OCI_DEQ_IMMEDIATE 1 /* dequeue is an independent transaction */
#define OCI_DEQ_ON_COMMIT 2 /* dequeue is part of current transaction */
/* ------------------------ Wait --------------------------------------------*/
#define OCI_DEQ_WAIT_FOREVER -1 /* wait forever if no message available */
#define OCI_NTFN_GROUPING_FOREVER -1 /* send grouping notifications forever */
#define OCI_DEQ_NO_WAIT 0 /* do not wait if no message is available */
#define OCI_FLOW_CONTROL_NO_TIMEOUT -1
/* streaming enqueue: no timeout for flow control */
/* ------------------------ Delay -------------------------------------------*/
#define OCI_MSG_NO_DELAY 0 /* message is available immediately */
/* ------------------------- Expiration -------------------------------------*/
#define OCI_MSG_NO_EXPIRATION -1 /* message will never expire */
#define OCI_MSG_PERSISTENT_OR_BUFFERED 3
#define OCI_MSG_BUFFERED 2
#define OCI_MSG_PERSISTENT 1
/* ----------------------- Reserved/AQE pisdef flags ------------------------*/
#define OCI_AQ_RESERVED_1 0x0002
#define OCI_AQ_RESERVED_2 0x0004
#define OCI_AQ_RESERVED_3 0x0008
#define OCI_AQ_RESERVED_4 0x0010
#define OCI_AQ_STREAMING_FLAG 0x02000000
/* AQ JMS message types */
#define OCI_AQJMS_RAW_MSG 0x00000001 /* raw message */
#define OCI_AQJMS_TEXT_MSG 0x00000002 /* text message */
#define OCI_AQJMS_MAP_MSG 0x00000004 /* map message */
#define OCI_AQJMS_BYTE_MSG 0x00000008 /* byte message */
#define OCI_AQJMS_STREAM_MSG 0x00000010 /* stream message */
#define OCI_AQJMS_ADT_MSG 0x00000020 /* adt message */
/* AQ JMS Message streaming flags */
#define OCI_AQMSG_FIRST_CHUNK 0x00000001 /* first chunk of message */
#define OCI_AQMSG_NEXT_CHUNK 0x00000002 /* next chunk of message */
#define OCI_AQMSG_LAST_CHUNK 0x00000004 /* last chunk of message */
/* ------------------------------ Replay Info -------------------------------*/
#define OCI_AQ_LAST_ENQUEUED 0
#define OCI_AQ_LAST_ACKNOWLEDGED 1
/* -------------------------- END AQ Constants ----------------------------- */
/* --------------------END DateTime and Interval Constants ------------------*/
/*-----------------------Object Types----------------------------------------*/
/*-----------Object Types **** Not to be Used **** --------------------------*/
/* Deprecated */
#define OCI_OTYPE_UNK 0
#define OCI_OTYPE_TABLE 1
#define OCI_OTYPE_VIEW 2
#define OCI_OTYPE_SYN 3
#define OCI_OTYPE_PROC 4
#define OCI_OTYPE_FUNC 5
#define OCI_OTYPE_PKG 6
#define OCI_OTYPE_STMT 7
/*---------------------------------------------------------------------------*/
/*=======================Describe Handle Parameter Attributes ===============*/
/*
These attributes were historically orthogonal to the other set of attributes
defined above. These attrubutes are to be used only for the describe
handle. However, this contributes to confusion during attribute
creation. All new attributes for handles and descriptors should be added
where it says "new attributes must be added just before this block"
(UPPERCASED, unquoted)
*/
/*===========================================================================*/
/* Attributes common to Columns and Stored Procs */
#define OCI_ATTR_DATA_SIZE 1 /* maximum size of the data */
#define OCI_ATTR_DATA_TYPE 2 /* the SQL type of the column/argument */
#define OCI_ATTR_DISP_SIZE 3 /* the display size */
#define OCI_ATTR_NAME 4 /* the name of the column/argument */
#define OCI_ATTR_PRECISION 5 /* precision if number type */
#define OCI_ATTR_SCALE 6 /* scale if number type */
#define OCI_ATTR_IS_NULL 7 /* is it null ? */
#define OCI_ATTR_TYPE_NAME 8
/* name of the named data type or a package name for package private types */
#define OCI_ATTR_SCHEMA_NAME 9 /* the schema name */
#define OCI_ATTR_SUB_NAME 10 /* type name if package private type */
#define OCI_ATTR_POSITION 11
/* relative position of col/arg in the list of cols/args */
#define OCI_ATTR_PACKAGE_NAME 12 /* package name of package type */
/*---------------------------End Describe Handle Attributes -----------------*/
/*--------------------------------------------------------------
Flags coresponding to the column properties
----------------------------------------------------------------*/
#define OCI_ATTR_COL_PROPERTY_IS_IDENTITY 0x0000000000000001
#define OCI_ATTR_COL_PROPERTY_IS_GEN_ALWAYS 0x0000000000000002
#define OCI_ATTR_COL_PROPERTY_IS_GEN_BY_DEF_ON_NULL 0x0000000000000004
#define OCI_ATTR_COL_PROPERTY_IS_LPART 0x0000000000000008
#define OCI_ATTR_COL_PROPERTY_IS_CONID 0x0000000000000010
#define OCI_EVENTTYPE_HA 0 /* valid value for OCI_ATTR_EVENTTYPE */
/* valid values for OCI_ATTR_HA_SOURCE */
#define OCI_HA_SOURCE_INSTANCE 0
#define OCI_HA_SOURCE_DATABASE 1
#define OCI_HA_SOURCE_NODE 2
#define OCI_HA_SOURCE_SERVICE 3
#define OCI_HA_SOURCE_SERVICE_MEMBER 4
#define OCI_HA_SOURCE_ASM_INSTANCE 5
#define OCI_HA_SOURCE_SERVICE_PRECONNECT 6
/*---------------------------------------------------------------------------*/
/* ------------------DirPathAPI attribute Section----------------------------*/
/* Old DirPathAPI attributes are in this section of the file. */
/* ATTRIBUTE NUMBERS ARE GLOBAL
*
* DO NOT ADD NEW ATTRIBUTES HERE -- ADD WHERE IT SAYS
* "new attributes must be added just before this block" (UPPERCASED, unquoted)
*/
/*------------- Supported Values for Direct Path Stream Version -------------*/
#define OCI_DIRPATH_STREAM_VERSION_1 100
#define OCI_DIRPATH_STREAM_VERSION_2 200
#define OCI_DIRPATH_STREAM_VERSION_3 300 /* default */
#define OCI_ATTR_DIRPATH_MODE 78 /* mode of direct path operation */
#define OCI_ATTR_DIRPATH_NOLOG 79 /* nologging option */
#define OCI_ATTR_DIRPATH_PARALLEL 80 /* parallel (temp seg) option */
#define OCI_ATTR_DIRPATH_SORTED_INDEX 137 /* index that data is sorted on */
/* direct path index maint method (see oci8dp.h) */
#define OCI_ATTR_DIRPATH_INDEX_MAINT_METHOD 138
/* parallel load: db file, initial and next extent sizes */
#define OCI_ATTR_DIRPATH_FILE 139 /* DB file to load into */
#define OCI_ATTR_DIRPATH_STORAGE_INITIAL 140 /* initial extent size */
#define OCI_ATTR_DIRPATH_STORAGE_NEXT 141 /* next extent size */
/* direct path index maint method (see oci8dp.h) */
#define OCI_ATTR_DIRPATH_SKIPINDEX_METHOD 145
/* 8.2 dpapi support of ADTs */
#define OCI_ATTR_DIRPATH_EXPR_TYPE 150 /* expr type of OCI_ATTR_NAME */
/* For the direct path API there are three data formats:
* TEXT - used mainly by SQL*Loader, data is in textual form
* STREAM - used by datapump, data is in stream loadable form
* OCI - used by OCI programs utilizing the DpApi, data is in binary form
*/
#define OCI_ATTR_DIRPATH_INPUT 151
#define OCI_DIRPATH_INPUT_TEXT 0x01 /* text */
#define OCI_DIRPATH_INPUT_STREAM 0x02 /* stream (datapump) */
#define OCI_DIRPATH_INPUT_OCI 0x04 /* binary (oci) */
#define OCI_DIRPATH_INPUT_UNKNOWN 0x08
#define OCI_ATTR_DIRPATH_FN_CTX 167 /* fn ctx ADT attrs or args */
#define OCI_ATTR_DIRPATH_OID 187 /* loading into an OID col */
#define OCI_ATTR_DIRPATH_SID 194 /* loading into an SID col */
#define OCI_ATTR_DIRPATH_OBJ_CONSTR 206 /* obj type of subst obj tbl */
/* Attr to allow setting of the stream version PRIOR to calling Prepare */
#define OCI_ATTR_DIRPATH_STREAM_VERSION 212 /* version of the stream*/
#define OCIP_ATTR_DIRPATH_VARRAY_INDEX 213 /* varray index column */
/*------------- Supported Values for Direct Path Date cache -----------------*/
#define OCI_ATTR_DIRPATH_DCACHE_NUM 303 /* date cache entries */
#define OCI_ATTR_DIRPATH_DCACHE_SIZE 304 /* date cache limit */
#define OCI_ATTR_DIRPATH_DCACHE_MISSES 305 /* date cache misses */
#define OCI_ATTR_DIRPATH_DCACHE_HITS 306 /* date cache hits */
#define OCI_ATTR_DIRPATH_DCACHE_DISABLE 307 /* on set: disable datecache
* on overflow.
* on get: datecache disabled?
* could be due to overflow
* or others */
/*------------- Attributes for 10i Updates to the DirPath API ---------------*/
#define OCI_ATTR_DIRPATH_RESERVED_7 326 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_8 327 /* reserved */
#define OCI_ATTR_DIRPATH_CONVERT 328 /* stream conversion needed? */
#define OCI_ATTR_DIRPATH_BADROW 329 /* info about bad row */
#define OCI_ATTR_DIRPATH_BADROW_LENGTH 330 /* length of bad row info */
#define OCI_ATTR_DIRPATH_WRITE_ORDER 331 /* column fill order */
#define OCI_ATTR_DIRPATH_GRANULE_SIZE 332 /* granule size for unload */
#define OCI_ATTR_DIRPATH_GRANULE_OFFSET 333 /* offset to last granule */
#define OCI_ATTR_DIRPATH_RESERVED_1 334 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_2 335 /* reserved */
/*------ Attributes for 10i DirPathAPI conversion (NLS lang, terr, cs) ------*/
#define OCI_ATTR_DIRPATH_RESERVED_3 337 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_4 338 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_5 357 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_6 358 /* reserved */
#define OCI_ATTR_DIRPATH_LOCK_WAIT 359 /* wait for lock in dpapi */
/* ATTRIBUTE NUMBERS ARE GLOBAL
*
* DO NOT ADD NEW ATTRIBUTES HERE -- ADD WHERE IT SAYS
* "new attributes must be added just before this block" (UPPERCASED, unquoted)
*/
/*------ Attribute to determine last column successfully converted ----------*/
#define OCI_ATTR_CURRENT_ERRCOL 2003 /* current error column */
#define OCI_ATTR_DIRPATH_RESERVED_9 2000 /* reserved */
/*------ Attribute for 10iR2 for column encryption for Direct Path API ------*/
#define OCI_ATTR_DIRPATH_RESERVED_10 2001 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_11 2002 /* reserved */
/*--Attributes for 11gR1 for multiple subtype support in Direct Path API - */
#define OCI_ATTR_DIRPATH_SUBTYPE_INDEX 2004 /* sbtyp indx for attribute */
#define OCI_ATTR_DIRPATH_RESERVED_12 2005 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_13 2006 /* reserver */
/*--Attribute for partitioning constraint optimization in Direct Path API */
#define OCI_ATTR_DIRPATH_RESERVED_14 2007 /* reserved */
/*--Attribute for interval partitioning in Direct Path API */
#define OCI_ATTR_DIRPATH_RESERVED_15 2008 /* reserved */
/*--Attribute for interval partitioning in Direct Path API */
#define OCI_ATTR_DIRPATH_RESERVED_16 2009 /* reserved */
/*--Attribute for allowing parallel lob loads in Direct Path API */
#define OCI_ATTR_DIRPATH_RESERVED_17 2010 /* reserved */
/*--Attribute for process order number of table being loaded/unloaded */
#define OCI_ATTR_DIRPATH_RESERVED_18 2011 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_19 2012 /* reserved */
#define OCI_ATTR_DIRPATH_NO_INDEX_ERRORS 2013 /* reserved */
/*--Attribute for private sqlldr no index errors */
#define OCI_ATTR_DIRPATH_RESERVED_20 2014 /* reserved */
/*--Attribute for private sqlldr partition memory limit */
#define OCI_ATTR_DIRPATH_RESERVED_21 2015 /* reserved */
#define OCI_ATTR_DIRPATH_RESERVED_22 2016 /* reserved */
/*--Attribute to use caller's transaction rather than starting on in kpodpp */
#define OCI_ATTR_DIRPATH_USE_ACTIVE_TRANS 2017 /* reserved */
/*--Attribute for recnum column */
#define OCI_ATTR_DIRPATH_RESERVED_23 2018 /* reserved */
/*--Attribute for long varchar columns */
#define OCI_ATTR_DIRPATH_RESERVED_24 2019 /* reserved */
/*--Attribute for reject replacement chars */
#define OCI_ATTR_DIRPATH_REJECT_ROWS_REPCHR 2020
/*--Attribute for CLOB xmltype dumpfile format */
#define OCI_ATTR_DIRPATH_RESERVED_25 2021 /* reserved */
/*--Attribute for PGA spill limit */
#define OCI_ATTR_DIRPATH_PGA_LIM 2022
/*--Atribute for number of passes to load partitions */
#define OCI_ATTR_DIRPATH_SPILL_PASSES 2023
/*--Attribute for direct path flags */
#define OCI_ATTR_DIRPATH_FLAGS 2024
/* Assign new public flag to next higher bit in the 11 low order bits. e.g.
* define OCI_ATTR_DIRPATH_FLAGS_VLDT 0x00000001
* define OCI_ATTR_DIRPATH_FLAGS_<second> 0x00000002
* define OCI_ATTR_DIRPATH_FLAGS_<third> 0x00000004
*/
#define OCI_ATTR_DIRPATH_FLAGS_VLDT 0x00000001 /* validate table data */
#define OCI_ATTR_DIRPATH_FLAGS_TRUNCCOL 0x00000004 /* truncate char data to
fit column */
#define OCI_ATTR_DIRPATH_FLAGS_RESERVED 0xFFFFF800 /* Reserved flags */
#define OCI_ATTR_DIRPATH_FLAGS_MASK 0x000007FF /* Public flags mask */
/*--Attribute for direct path compress of unload buffers */
#define OCI_ATTR_DIRPATH_RESERVED_26 2025
/*--Attribute for direct path reset stream conversion */
#define OCI_ATTR_DIRPATH_RESERVED_27 2026
/*--Attribute for direct path reset of kla parsing */
#define OCI_ATTR_DIRPATH_RESERVED_28 2027
/*--Attribute for direct path column level null on errors */
#define OCI_ATTR_DIRPATH_RESERVED_29 2028
/*--Attribute for direct path column array convert */
#define OCI_ATTR_DIRPATH_RESERVED_30 2029
/*--Attribute for direct path metadata changed */
#define OCI_ATTR_DIRPATH_RESERVED_31 2030
/* ATTRIBUTE NUMBERS ARE GLOBAL
*
* DO NOT ADD NEW ATTRIBUTES HERE -- ADD WHERE IT SAYS
* "new attributes must be added just before this block" (UPPERCASED, unquoted)
*/
/* ------------------End of DirPathAPI attribute Section --------------------*/
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*=============================Attribute Types===============================*/
/*
Note: All attributes are global. New attibutes should be added to the end
of the list. Before you add an attribute see if an existing one can be
used for your handle. Note: this does not mean reuse an existing number;
it means use an attribute name from another handle for your handle.
If you see any holes please use the holes first. However, be very
careful, as this file is not fully ordered.
*/
/*===========================================================================*/
#define OCI_ATTR_FNCODE 1 /* the OCI function code */
#define OCI_ATTR_OBJECT 2 /* is the environment initialized in object mode */
#define OCI_ATTR_NONBLOCKING_MODE 3 /* non blocking mode */
#define OCI_ATTR_SQLCODE 4 /* the SQL verb */
#define OCI_ATTR_ENV 5 /* the environment handle */
#define OCI_ATTR_SERVER 6 /* the server handle */
#define OCI_ATTR_SESSION 7 /* the user session handle */
#define OCI_ATTR_TRANS 8 /* the transaction handle */
#define OCI_ATTR_ROW_COUNT 9 /* the rows processed so far */
#define OCI_ATTR_SQLFNCODE 10 /* the SQL verb of the statement */
#define OCI_ATTR_PREFETCH_ROWS 11 /* sets the number of rows to prefetch */
#define OCI_ATTR_NESTED_PREFETCH_ROWS 12 /* the prefetch rows of nested table*/
#define OCI_ATTR_PREFETCH_MEMORY 13 /* memory limit for rows fetched */
#define OCI_ATTR_NESTED_PREFETCH_MEMORY 14 /* memory limit for nested rows */
#define OCI_ATTR_CHAR_COUNT 15
/* this specifies the bind and define size in characters */
#define OCI_ATTR_PDSCL 16 /* packed decimal scale */
#define OCI_ATTR_FSPRECISION OCI_ATTR_PDSCL
/* fs prec for datetime data types */
#define OCI_ATTR_PDPRC 17 /* packed decimal format */
#define OCI_ATTR_LFPRECISION OCI_ATTR_PDPRC
/* fs prec for datetime data types */
#define OCI_ATTR_PARAM_COUNT 18 /* number of column in the select list */
#define OCI_ATTR_ROWID 19 /* the rowid */
#define OCI_ATTR_CHARSET 20 /* the character set value */
#define OCI_ATTR_NCHAR 21 /* NCHAR type */
#define OCI_ATTR_USERNAME 22 /* username attribute */
#define OCI_ATTR_PASSWORD 23 /* password attribute */
#define OCI_ATTR_STMT_TYPE 24 /* statement type */
#define OCI_ATTR_INTERNAL_NAME 25 /* user friendly global name */
#define OCI_ATTR_EXTERNAL_NAME 26 /* the internal name for global txn */
#define OCI_ATTR_XID 27 /* XOPEN defined global transaction id */
#define OCI_ATTR_TRANS_LOCK 28 /* */
#define OCI_ATTR_TRANS_NAME 29 /* string to identify a global transaction */
#define OCI_ATTR_HEAPALLOC 30 /* memory allocated on the heap */
#define OCI_ATTR_CHARSET_ID 31 /* Character Set ID */
#define OCI_ATTR_ENV_CHARSET_ID OCI_ATTR_CHARSET_ID /* charset id in env */
#define OCI_ATTR_CHARSET_FORM 32 /* Character Set Form */
#define OCI_ATTR_MAXDATA_SIZE 33 /* Maximumsize of data on the server */
#define OCI_ATTR_CACHE_OPT_SIZE 34 /* object cache optimal size */
#define OCI_ATTR_CACHE_MAX_SIZE 35 /* object cache maximum size percentage */
#define OCI_ATTR_PINOPTION 36 /* object cache default pin option */
#define OCI_ATTR_ALLOC_DURATION 37
/* object cache default allocation duration */
#define OCI_ATTR_PIN_DURATION 38 /* object cache default pin duration */
#define OCI_ATTR_FDO 39 /* Format Descriptor object attribute */
#define OCI_ATTR_POSTPROCESSING_CALLBACK 40
/* Callback to process outbind data */
#define OCI_ATTR_POSTPROCESSING_CONTEXT 41
/* Callback context to process outbind data */
#define OCI_ATTR_ROWS_RETURNED 42
/* Number of rows returned in current iter - for Bind handles */
#define OCI_ATTR_FOCBK 43 /* Failover Callback attribute */
#define OCI_ATTR_IN_V8_MODE 44 /* is the server/service context in V8 mode */
#define OCI_ATTR_LOBEMPTY 45 /* empty lob ? */
#define OCI_ATTR_SESSLANG 46 /* session language handle */
#define OCI_ATTR_VISIBILITY 47 /* visibility */
#define OCI_ATTR_RELATIVE_MSGID 48 /* relative message id */
#define OCI_ATTR_SEQUENCE_DEVIATION 49 /* sequence deviation */
#define OCI_ATTR_CONSUMER_NAME 50 /* consumer name */
/* complex object retrieval parameter attributes */
#define OCI_ATTR_COMPLEXOBJECTCOMP_TYPE 50
#define OCI_ATTR_DEQ_MODE 51 /* dequeue mode */
#define OCI_ATTR_COMPLEXOBJECTCOMP_TYPE_LEVEL 51
#define OCI_ATTR_NAVIGATION 52 /* navigation */
#define OCI_ATTR_COMPLEXOBJECT_LEVEL 52
#define OCI_ATTR_WAIT 53 /* wait */
#define OCI_ATTR_COMPLEXOBJECT_COLL_OUTOFLINE 53
#define OCI_ATTR_DEQ_MSGID 54 /* dequeue message id */
#define OCI_ATTR_PRIORITY 55 /* priority */
#define OCI_ATTR_DELAY 56 /* delay */
#define OCI_ATTR_EXPIRATION 57 /* expiration */
#define OCI_ATTR_CORRELATION 58 /* correlation id */
#define OCI_ATTR_ATTEMPTS 59 /* # of attempts */
#define OCI_ATTR_RECIPIENT_LIST 60 /* recipient list */
#define OCI_ATTR_EXCEPTION_QUEUE 61 /* exception queue name */
#define OCI_ATTR_ENQ_TIME 62 /* enqueue time (only OCIAttrGet) */
#define OCI_ATTR_MSG_STATE 63/* message state (only OCIAttrGet) */
/* NOTE: 64-66 used below */
#define OCI_ATTR_AGENT_NAME 64 /* agent name */
#define OCI_ATTR_AGENT_ADDRESS 65 /* agent address */
#define OCI_ATTR_AGENT_PROTOCOL 66 /* agent protocol */
#define OCI_ATTR_USER_PROPERTY 67 /* user property */
#define OCI_ATTR_SENDER_ID 68 /* sender id */
#define OCI_ATTR_ORIGINAL_MSGID 69 /* original message id */
#define OCI_ATTR_QUEUE_NAME 70 /* queue name */
#define OCI_ATTR_NFY_MSGID 71 /* message id */
#define OCI_ATTR_MSG_PROP 72 /* message properties */
#define OCI_ATTR_NUM_DML_ERRORS 73 /* num of errs in array DML */
#define OCI_ATTR_DML_ROW_OFFSET 74 /* row offset in the array */
#define OCI_ATTR_DATEFORMAT 75 /* default date format string */
#define OCI_ATTR_BUF_ADDR 76 /* buffer address */
#define OCI_ATTR_BUF_SIZE 77 /* buffer size */
/* For values 78 - 80, see DirPathAPI attribute section in this file */
#define OCI_ATTR_NUM_ROWS 81 /* number of rows in column array */
/* NOTE that OCI_ATTR_NUM_COLS is a column
* array attribute too.
*/
#define OCI_ATTR_COL_COUNT 82 /* columns of column array
processed so far. */
#define OCI_ATTR_STREAM_OFFSET 83 /* str off of last row processed */
#define OCI_ATTR_SHARED_HEAPALLOC 84 /* Shared Heap Allocation Size */
#define OCI_ATTR_SERVER_GROUP 85 /* server group name */
#define OCI_ATTR_MIGSESSION 86 /* migratable session attribute */
#define OCI_ATTR_NOCACHE 87 /* Temporary LOBs */
#define OCI_ATTR_MEMPOOL_SIZE 88 /* Pool Size */
#define OCI_ATTR_MEMPOOL_INSTNAME 89 /* Instance name */
#define OCI_ATTR_MEMPOOL_APPNAME 90 /* Application name */
#define OCI_ATTR_MEMPOOL_HOMENAME 91 /* Home Directory name */
#define OCI_ATTR_MEMPOOL_MODEL 92 /* Pool Model (proc,thrd,both)*/
#define OCI_ATTR_MODES 93 /* Modes */
#define OCI_ATTR_SUBSCR_NAME 94 /* name of subscription */
#define OCI_ATTR_SUBSCR_CALLBACK 95 /* associated callback */
#define OCI_ATTR_SUBSCR_CTX 96 /* associated callback context */
#define OCI_ATTR_SUBSCR_PAYLOAD 97 /* associated payload */
#define OCI_ATTR_SUBSCR_NAMESPACE 98 /* associated namespace */
#define OCI_ATTR_PROXY_CREDENTIALS 99 /* Proxy user credentials */
#define OCI_ATTR_INITIAL_CLIENT_ROLES 100 /* Initial client role list */
/* Only Columns */
#define OCI_ATTR_DISP_NAME 100 /* the display name */
#define OCI_ATTR_UNK 101 /* unknown attribute */
#define OCI_ATTR_ENCC_SIZE 101 /* encrypted data size */
#define OCI_ATTR_NUM_COLS 102 /* number of columns */
#define OCI_ATTR_COL_ENC 102 /* column is encrypted ? */
#define OCI_ATTR_LIST_COLUMNS 103 /* parameter of the column list */
#define OCI_ATTR_COL_ENC_SALT 103 /* is encrypted column salted ? */
#define OCI_ATTR_RDBA 104 /* DBA of the segment header */
#define OCI_ATTR_COL_PROPERTIES 104 /* column properties */
#define OCI_ATTR_CLUSTERED 105 /* whether the table is clustered */
#define OCI_ATTR_PARTITIONED 106 /* whether the table is partitioned */
#define OCI_ATTR_INDEX_ONLY 107 /* whether the table is index only */
#define OCI_ATTR_LIST_ARGUMENTS 108 /* parameter of the argument list */
#define OCI_ATTR_LIST_SUBPROGRAMS 109 /* parameter of the subprogram list */
#define OCI_ATTR_REF_TDO 110 /* REF to the type descriptor */
#define OCI_ATTR_LINK 111 /* the database link name */
#define OCI_ATTR_MIN 112 /* minimum value */
#define OCI_ATTR_MAX 113 /* maximum value */
#define OCI_ATTR_INCR 114 /* increment value */
#define OCI_ATTR_CACHE 115 /* number of sequence numbers cached */
#define OCI_ATTR_ORDER 116 /* whether the sequence is ordered */
#define OCI_ATTR_HW_MARK 117 /* high-water mark */
#define OCI_ATTR_TYPE_SCHEMA 118 /* type's schema name */
#define OCI_ATTR_TIMESTAMP 119 /* timestamp of the object */
#define OCI_ATTR_NUM_ATTRS 120 /* number of sttributes */
#define OCI_ATTR_NUM_PARAMS 121 /* number of parameters */
#define OCI_ATTR_OBJID 122 /* object id for a table or view */
#define OCI_ATTR_PTYPE 123 /* type of info described by */
#define OCI_ATTR_PARAM 124 /* parameter descriptor */
#define OCI_ATTR_OVERLOAD_ID 125 /* overload ID for funcs and procs */
#define OCI_ATTR_TABLESPACE 126 /* table name space */
#define OCI_ATTR_TDO 127 /* TDO of a type */
#define OCI_ATTR_LTYPE 128 /* list type */
#define OCI_ATTR_PARSE_ERROR_OFFSET 129 /* Parse Error offset */
#define OCI_ATTR_IS_TEMPORARY 130 /* whether table is temporary */
#define OCI_ATTR_IS_TYPED 131 /* whether table is typed */
#define OCI_ATTR_DURATION 132 /* duration of temporary table */
#define OCI_ATTR_IS_INVOKER_RIGHTS 133 /* is invoker rights */
#define OCI_ATTR_OBJ_NAME 134 /* top level schema obj name */
#define OCI_ATTR_OBJ_SCHEMA 135 /* schema name */
#define OCI_ATTR_OBJ_ID 136 /* top level schema object id */
#define OCI_ATTR_LIST_PKG_TYPES 137 /* parameter of the package type list */
/* For values 137 - 141, see DirPathAPI attribute section in this file */
#define OCI_ATTR_TRANS_TIMEOUT 142 /* transaction timeout */
#define OCI_ATTR_SERVER_STATUS 143/* state of the server handle */
#define OCI_ATTR_STATEMENT 144 /* statement txt in stmt hdl */
/* For value 145, see DirPathAPI attribute section in this file */
#define OCI_ATTR_DEQCOND 146 /* dequeue condition */
#define OCI_ATTR_RESERVED_2 147 /* reserved */
#define OCI_ATTR_SUBSCR_RECPT 148 /* recepient of subscription */
#define OCI_ATTR_SUBSCR_RECPTPROTO 149 /* protocol for recepient */
/* For values 150 - 151, see DirPathAPI attribute section in this file */
#define OCI_ATTR_LDAP_HOST 153 /* LDAP host to connect to */
#define OCI_ATTR_LDAP_PORT 154 /* LDAP port to connect to */
#define OCI_ATTR_BIND_DN 155 /* bind DN */
#define OCI_ATTR_LDAP_CRED 156 /* credentials to connect to LDAP */
#define OCI_ATTR_WALL_LOC 157 /* client wallet location */
#define OCI_ATTR_LDAP_AUTH 158 /* LDAP authentication method */
#define OCI_ATTR_LDAP_CTX 159 /* LDAP adminstration context DN */
#define OCI_ATTR_SERVER_DNS 160 /* list of registration server DNs */
#define OCI_ATTR_DN_COUNT 161 /* the number of server DNs */
#define OCI_ATTR_SERVER_DN 162 /* server DN attribute */
#define OCI_ATTR_MAXCHAR_SIZE 163 /* max char size of data */
#define OCI_ATTR_CURRENT_POSITION 164 /* for scrollable result sets*/
/* Added to get attributes for ref cursor to statement handle */
#define OCI_ATTR_RESERVED_3 165 /* reserved */
#define OCI_ATTR_RESERVED_4 166 /* reserved */
/* For value 167, see DirPathAPI attribute section in this file */
#define OCI_ATTR_DIGEST_ALGO 168 /* digest algorithm */
#define OCI_ATTR_CERTIFICATE 169 /* certificate */
#define OCI_ATTR_SIGNATURE_ALGO 170 /* signature algorithm */
#define OCI_ATTR_CANONICAL_ALGO 171 /* canonicalization algo. */
#define OCI_ATTR_PRIVATE_KEY 172 /* private key */
#define OCI_ATTR_DIGEST_VALUE 173 /* digest value */
#define OCI_ATTR_SIGNATURE_VAL 174 /* signature value */
#define OCI_ATTR_SIGNATURE 175 /* signature */
/* attributes for setting OCI stmt caching specifics in svchp */
#define OCI_ATTR_STMTCACHESIZE 176 /* size of the stm cache */
/* --------------------------- Connection Pool Attributes ------------------ */
#define OCI_ATTR_CONN_NOWAIT 178
#define OCI_ATTR_CONN_BUSY_COUNT 179
#define OCI_ATTR_CONN_OPEN_COUNT 180
#define OCI_ATTR_CONN_TIMEOUT 181
#define OCI_ATTR_STMT_STATE 182
#define OCI_ATTR_CONN_MIN 183
#define OCI_ATTR_CONN_MAX 184
#define OCI_ATTR_CONN_INCR 185
/* For value 187, see DirPathAPI attribute section in this file */
#define OCI_ATTR_NUM_OPEN_STMTS 188 /* open stmts in session */
#define OCI_ATTR_RESERVED_189 189
#define OCI_ATTR_DESCRIBE_NATIVE OCI_ATTR_RESERVED_189
#define OCI_ATTR_BIND_COUNT 190 /* number of bind postions */
#define OCI_ATTR_HANDLE_POSITION 191 /* pos of bind/define handle */
#define OCI_ATTR_RESERVED_5 192 /* reserverd */
#define OCI_ATTR_SERVER_BUSY 193 /* call in progress on server*/
/* For value 194, see DirPathAPI attribute section in this file */
/* notification presentation for recipient */
#define OCI_ATTR_SUBSCR_RECPTPRES 195
#define OCI_ATTR_TRANSFORMATION 196 /* AQ message transformation */
#define OCI_ATTR_ROWS_FETCHED 197 /* rows fetched in last call */
/* --------------------------- Snapshot attributes ------------------------- */
#define OCI_ATTR_SCN_BASE 198 /* snapshot base */
#define OCI_ATTR_SCN_WRAP 199 /* snapshot wrap */
/* --------------------------- Miscellanous attributes --------------------- */
#define OCI_ATTR_RESERVED_6 200 /* reserved */
#define OCI_ATTR_READONLY_TXN 201 /* txn is readonly */
#define OCI_ATTR_RESERVED_7 202 /* reserved */
#define OCI_ATTR_ERRONEOUS_COLUMN 203 /* position of erroneous col */
#define OCI_ATTR_RESERVED_8 204 /* reserved */
#define OCI_ATTR_ASM_VOL_SPRT 205 /* ASM volume supported? */
/* For value 206, see DirPathAPI attribute section in this file */
#define OCI_ATTR_INST_TYPE 207 /* oracle instance type */
#define OCI_ATTR_SPOOL_STMTCACHESIZE 208 /*Stmt cache size of pool */
#define OCI_ATTR_ENV_UTF16 209 /* is env in utf16 mode? */
/*Only Stored Procs */
#define OCI_ATTR_RESERVED_9 210 /* reserved */
#define OCI_ATTR_OVERLOAD 210/* is this position overloaded */
#define OCI_ATTR_RESERVED_10 211 /* reserved */
#define OCI_ATTR_LEVEL 211 /* level for structured types */
#define OCI_ATTR_HAS_DEFAULT 212 /* has a default value */
#define OCI_ATTR_IOMODE 213 /* in, out inout */
/* For values 212 and 213, see ALSO DirPathAPI attribute section in this file */
#define OCI_ATTR_RESERVED_12 214 /* reserved */
#define OCI_ATTR_RADIX 214 /* returns a radix */
#define OCI_ATTR_RESERVED_13 215 /* reserved */
#define OCI_ATTR_NUM_ARGS 215 /* total number of arguments */
#define OCI_ATTR_IS_EXTERNAL 216 /* whether table is external */
#define OCI_ATTR_TYPECODE 216 /* object or collection */
/* -------------------------- Statement Handle Attributes ------------------ */
#define OCI_ATTR_RESERVED_15 217 /* reserved */
#define OCI_ATTR_COLLECTION_TYPECODE 217 /* varray or nested table */
#define OCI_ATTR_STMT_IS_RETURNING 218 /* stmt has returning clause */
#define OCI_ATTR_VERSION 218 /* user assigned version */
#define OCI_ATTR_RESERVED_16 219 /* reserved */
#define OCI_ATTR_IS_INCOMPLETE_TYPE 219 /* is this an incomplete type */
#define OCI_ATTR_RESERVED_17 220 /* reserved */
#define OCI_ATTR_IS_SYSTEM_TYPE 220 /* a system type */
#define OCI_ATTR_RESERVED_18 221 /* reserved */
#define OCI_ATTR_IS_PREDEFINED_TYPE 221 /* a predefined type */
/* --------------------------- session attributes ---------------------------*/
#define OCI_ATTR_RESERVED_19 222 /* reserved */
#define OCI_ATTR_IS_TRANSIENT_TYPE 222 /* a transient type */
#define OCI_ATTR_RESERVED_20 223 /* reserved */
#define OCI_ATTR_IS_SYSTEM_GENERATED_TYPE 223 /* system generated type */
#define OCI_ATTR_CURRENT_SCHEMA 224 /* Current Schema */
#define OCI_ATTR_HAS_NESTED_TABLE 224 /* contains nested table attr */
/* ------------------------- notification subscription ----------------------*/
#define OCI_ATTR_SUBSCR_QOSFLAGS 225 /* QOS flags */
#define OCI_ATTR_HAS_LOB 225 /* has a lob attribute */
#define OCI_ATTR_SUBSCR_PAYLOADCBK 226 /* Payload callback */
#define OCI_ATTR_HAS_FILE 226 /* has a file attribute */
#define OCI_ATTR_SUBSCR_TIMEOUT 227 /* Timeout */
#define OCI_ATTR_COLLECTION_ELEMENT 227 /* has a collection attribute */
#define OCI_ATTR_SUBSCR_NAMESPACE_CTX 228 /* Namespace context */
#define OCI_ATTR_NUM_TYPE_ATTRS 228 /* number of attribute types */
#define OCI_ATTR_SUBSCR_CQ_QOSFLAGS 229
/* change notification (CQ) specific QOS flags */
#define OCI_ATTR_LIST_TYPE_ATTRS 229 /* list of type attributes */
#define OCI_ATTR_SUBSCR_CQ_REGID 230
/* change notification registration id */
#define OCI_ATTR_NUM_TYPE_METHODS 230 /* number of type methods */
#define OCI_ATTR_SUBSCR_NTFN_GROUPING_CLASS 231 /* ntfn grouping class */
#define OCI_ATTR_LIST_TYPE_METHODS 231 /* list of type methods */
#define OCI_ATTR_SUBSCR_NTFN_GROUPING_VALUE 232 /* ntfn grouping value */
#define OCI_ATTR_MAP_METHOD 232 /* map method of type */
#define OCI_ATTR_SUBSCR_NTFN_GROUPING_TYPE 233 /* ntfn grouping type */
#define OCI_ATTR_ORDER_METHOD 233 /* order method of type */
#define OCI_ATTR_SUBSCR_NTFN_GROUPING_START_TIME 234/* ntfn grp start time */
#define OCI_ATTR_NUM_ELEMS 234 /* number of elements */
#define OCI_ATTR_SUBSCR_NTFN_GROUPING_REPEAT_COUNT 235 /* ntfn grp rep count */
#define OCI_ATTR_ENCAPSULATION 235 /* encapsulation level */
#define OCI_ATTR_AQ_NTFN_GROUPING_MSGID_ARRAY 236 /* aq grp msgid array */
#define OCI_ATTR_IS_SELFISH 236 /* method selfish */
#define OCI_ATTR_AQ_NTFN_GROUPING_COUNT 237 /* ntfns recd in grp */
#define OCI_ATTR_IS_VIRTUAL 237 /* virtual */
#define OCI_ATTR_IS_INLINE 238 /* inline */
#define OCI_ATTR_IS_CONSTANT 239 /* constant */
#define OCI_ATTR_HAS_RESULT 240 /* has result */
#define OCI_ATTR_IS_CONSTRUCTOR 241 /* constructor */
#define OCI_ATTR_IS_DESTRUCTOR 242 /* destructor */
#define OCI_ATTR_IS_OPERATOR 243 /* operator */
#define OCI_ATTR_IS_MAP 244 /* a map method */
#define OCI_ATTR_IS_ORDER 245 /* order method */
#define OCI_ATTR_IS_RNDS 246 /* read no data state method */
#define OCI_ATTR_IS_RNPS 247 /* read no process state */
#define OCI_ATTR_IS_WNDS 248 /* write no data state method */
#define OCI_ATTR_IS_WNPS 249 /* write no process state */
#define OCI_ATTR_DESC_PUBLIC 250 /* public object */
/* Object Cache Enhancements : attributes for User Constructed Instances */
#define OCI_ATTR_CACHE_CLIENT_CONTEXT 251
#define OCI_ATTR_UCI_CONSTRUCT 252
#define OCI_ATTR_UCI_DESTRUCT 253
#define OCI_ATTR_UCI_COPY 254
#define OCI_ATTR_UCI_PICKLE 255
#define OCI_ATTR_UCI_UNPICKLE 256
#define OCI_ATTR_UCI_REFRESH 257
/* for type inheritance */
#define OCI_ATTR_IS_SUBTYPE 258
#define OCI_ATTR_SUPERTYPE_SCHEMA_NAME 259
#define OCI_ATTR_SUPERTYPE_NAME 260
/* for schemas */
#define OCI_ATTR_LIST_OBJECTS 261 /* list of objects in schema */
/* for database */
#define OCI_ATTR_NCHARSET_ID 262 /* char set id */
#define OCI_ATTR_ENV_NCHARSET_ID OCI_ATTR_NCHARSET_ID /* ncharset id in env */
#define OCI_ATTR_LIST_SCHEMAS 263 /* list of schemas */
#define OCI_ATTR_MAX_PROC_LEN 264 /* max procedure length */
#define OCI_ATTR_MAX_COLUMN_LEN 265 /* max column name length */
#define OCI_ATTR_CURSOR_COMMIT_BEHAVIOR 266 /* cursor commit behavior */
#define OCI_ATTR_MAX_CATALOG_NAMELEN 267 /* catalog namelength */
#define OCI_ATTR_CATALOG_LOCATION 268 /* catalog location */
#define OCI_ATTR_SAVEPOINT_SUPPORT 269 /* savepoint support */
#define OCI_ATTR_NOWAIT_SUPPORT 270 /* nowait support */
#define OCI_ATTR_AUTOCOMMIT_DDL 271 /* autocommit DDL */
#define OCI_ATTR_LOCKING_MODE 272 /* locking mode */
/* for externally initialized context */
#define OCI_ATTR_APPCTX_SIZE 273 /* count of context to be init*/
#define OCI_ATTR_APPCTX_LIST 274 /* count of context to be init*/
#define OCI_ATTR_APPCTX_NAME 275 /* name of context to be init*/
#define OCI_ATTR_APPCTX_ATTR 276 /* attr of context to be init*/
#define OCI_ATTR_APPCTX_VALUE 277 /* value of context to be init*/
/* for client id propagation */
#define OCI_ATTR_CLIENT_IDENTIFIER 278 /* value of client id to set*/
/* for inheritance - part 2 */
#define OCI_ATTR_IS_FINAL_TYPE 279 /* is final type ? */
#define OCI_ATTR_IS_INSTANTIABLE_TYPE 280 /* is instantiable type ? */
#define OCI_ATTR_IS_FINAL_METHOD 281 /* is final method ? */
#define OCI_ATTR_IS_INSTANTIABLE_METHOD 282 /* is instantiable method ? */
#define OCI_ATTR_IS_OVERRIDING_METHOD 283 /* is overriding method ? */
#define OCI_ATTR_DESC_SYNBASE 284 /* Describe the base object */
#define OCI_ATTR_CHAR_USED 285 /* char length semantics */
#define OCI_ATTR_CHAR_SIZE 286 /* char length */
/* SQLJ support */
#define OCI_ATTR_IS_JAVA_TYPE 287 /* is java implemented type ? */
#define OCI_ATTR_EDITION 288 /* ORA_EDITION */
/* N-Tier support */
#define OCI_ATTR_DISTINGUISHED_NAME 300 /* use DN as user name */
#define OCI_ATTR_BIND_ROWCBK 301 /* bind row callback */
#define OCI_ATTR_KERBEROS_TICKET 301 /* Kerberos ticket as cred. */
#define OCI_ATTR_BIND_ROWCTX 302 /* ctx for bind row callback */
#define OCI_ATTR_ORA_DEBUG_JDWP 302 /* ORA_DEBUG_JDWP attribute */
#define OCI_ATTR_SKIP_BUFFER 303 /* skip buffer in array ops */
#define OCI_ATTR_RESERVED_14 303 /* reserved */
#define OCI_ATTR_CQ_QUERYID 304
#define OCI_ATTR_EVTCBK 304 /* ha callback */
#define OCI_ATTR_EVTCTX 305 /* ctx for ha callback */
/* ------------------ User memory attributes (all handles) ----------------- */
#define OCI_ATTR_USER_MEMORY 306 /* pointer to user memory */
/* For values 303 - 307, see ALSO DirPathAPI attribute section in this file */
#define OCI_ATTR_ACCESS_BANNER 307 /* access banner */
#define OCI_ATTR_AUDIT_BANNER 308 /* audit banner */
#define OCI_ATTR_SPOOL_TIMEOUT 308 /* session timeout */
#define OCI_ATTR_SPOOL_GETMODE 309 /* session get mode */
#define OCI_ATTR_SPOOL_BUSY_COUNT 310 /* busy session count */
#define OCI_ATTR_SPOOL_OPEN_COUNT 311 /* open session count */
#define OCI_ATTR_SPOOL_MIN 312 /* min session count */
#define OCI_ATTR_SPOOL_MAX 313 /* max session count */
#define OCI_ATTR_SPOOL_INCR 314 /* session increment count */
/*---------------------------- For XML Types ------------------------------- */
/* For table, view and column */
#define OCI_ATTR_IS_XMLTYPE 315 /* Is the type an XML type? */
#define OCI_ATTR_XMLSCHEMA_NAME 316 /* Name of XML Schema */
#define OCI_ATTR_XMLELEMENT_NAME 317 /* Name of XML Element */
#define OCI_ATTR_XMLSQLTYPSCH_NAME 318 /* SQL type's schema for XML Ele */
#define OCI_ATTR_XMLSQLTYPE_NAME 319 /* Name of SQL type for XML Ele */
#define OCI_ATTR_XMLTYPE_STORED_OBJ 320 /* XML type stored as object? */
/*---------------------------- For Subtypes ------------------------------- */
/* For type */
#define OCI_ATTR_HAS_SUBTYPES 321 /* Has subtypes? */
#define OCI_ATTR_NUM_SUBTYPES 322 /* Number of subtypes */
#define OCI_ATTR_LIST_SUBTYPES 323 /* List of subtypes */
/* XML flag */
#define OCI_ATTR_XML_HRCHY_ENABLED 324 /* hierarchy enabled? */
/* Method flag */
#define OCI_ATTR_IS_OVERRIDDEN_METHOD 325 /* Method is overridden? */
/* For values 326 - 335, see DirPathAPI attribute section in this file */
/*------------- Attributes for 10i Distributed Objects ----------------------*/
#define OCI_ATTR_OBJ_SUBS 336 /* obj col/tab substitutable */
/* For values 337 - 338, see DirPathAPI attribute section in this file */
/*---------- Attributes for 10i XADFIELD (NLS language, territory -----------*/
#define OCI_ATTR_XADFIELD_RESERVED_1 339 /* reserved */
#define OCI_ATTR_XADFIELD_RESERVED_2 340 /* reserved */
/*------------- Kerberos Secure Client Identifier ---------------------------*/
#define OCI_ATTR_KERBEROS_CID 341 /* Kerberos db service ticket*/
/*------------------------ Attributes for Rules objects ---------------------*/
#define OCI_ATTR_CONDITION 342 /* rule condition */
#define OCI_ATTR_COMMENT 343 /* comment */
#define OCI_ATTR_VALUE 344 /* Anydata value */
#define OCI_ATTR_EVAL_CONTEXT_OWNER 345 /* eval context owner */
#define OCI_ATTR_EVAL_CONTEXT_NAME 346 /* eval context name */
#define OCI_ATTR_EVALUATION_FUNCTION 347 /* eval function name */
#define OCI_ATTR_VAR_TYPE 348 /* variable type */
#define OCI_ATTR_VAR_VALUE_FUNCTION 349 /* variable value function */
#define OCI_ATTR_XSTREAM_ACK_INTERVAL 350 /* XStream ack interval */
#define OCI_ATTR_VAR_METHOD_FUNCTION 350 /* variable method function */
#define OCI_ATTR_XSTREAM_IDLE_TIMEOUT 351 /* XStream idle timeout */
#define OCI_ATTR_ACTION_CONTEXT 351 /* action context */
#define OCI_ATTR_LIST_TABLE_ALIASES 352 /* list of table aliases */
#define OCI_ATTR_LIST_VARIABLE_TYPES 353 /* list of variable types */
#define OCI_ATTR_TABLE_NAME 356 /* table name */
/* For values 357 - 359, see DirPathAPI attribute section in this file */
#define OCI_ATTR_MESSAGE_CSCN 360 /* message cscn */
#define OCI_ATTR_MESSAGE_DSCN 361 /* message dscn */
/*--------------------- Audit Session ID ------------------------------------*/
#define OCI_ATTR_AUDIT_SESSION_ID 362 /* Audit session ID */
/*--------------------- Kerberos TGT Keys -----------------------------------*/
#define OCI_ATTR_KERBEROS_KEY 363 /* n-tier Kerberos cred key */
#define OCI_ATTR_KERBEROS_CID_KEY 364 /* SCID Kerberos cred key */
#define OCI_ATTR_TRANSACTION_NO 365 /* AQ enq txn number */
/*----------------------- Attributes for End To End Tracing -----------------*/
#define OCI_ATTR_MODULE 366 /* module for tracing */
#define OCI_ATTR_ACTION 367 /* action for tracing */
#define OCI_ATTR_CLIENT_INFO 368 /* client info */
#define OCI_ATTR_COLLECT_CALL_TIME 369 /* collect call time */
#define OCI_ATTR_CALL_TIME 370 /* extract call time */
#define OCI_ATTR_ECONTEXT_ID 371 /* execution-id context */
#define OCI_ATTR_ECONTEXT_SEQ 372 /*execution-id sequence num */
/*------------------------------ Session attributes -------------------------*/
#define OCI_ATTR_SESSION_STATE 373 /* session state */
#define OCI_SESSION_STATELESS 1 /* valid states */
#define OCI_SESSION_STATEFUL 2
#define OCI_ATTR_SESSION_STATETYPE 374 /* session state type */
#define OCI_SESSION_STATELESS_DEF 0 /* valid state types */
#define OCI_SESSION_STATELESS_CAL 1
#define OCI_SESSION_STATELESS_TXN 2
#define OCI_SESSION_STATELESS_APP 3
#define OCI_ATTR_SESSION_STATE_CLEARED 376 /* session state cleared */
#define OCI_ATTR_SESSION_MIGRATED 377 /* did session migrate */
#define OCI_ATTR_SESSION_PRESERVE_STATE 388 /* preserve session state */
/* -------------------------- Admin Handle Attributes ---------------------- */
#define OCI_ATTR_ADMIN_PFILE 389 /* client-side param file */
#define OCI_ATTR_SUBSCR_PORTNO 390 /* port no to listen */
#define OCI_ATTR_HOSTNAME 390 /* SYS_CONTEXT hostname */
#define OCI_ATTR_DBNAME 391 /* SYS_CONTEXT dbname */
#define OCI_ATTR_INSTNAME 392 /* SYS_CONTEXT instance name */
#define OCI_ATTR_SERVICENAME 393 /* SYS_CONTEXT service name */
#define OCI_ATTR_INSTSTARTTIME 394 /* v$instance instance start time */
#define OCI_ATTR_HA_TIMESTAMP 395 /* event time */
#define OCI_ATTR_RESERVED_22 396 /* reserved */
#define OCI_ATTR_RESERVED_23 397 /* reserved */
#define OCI_ATTR_RESERVED_24 398 /* reserved */
#define OCI_ATTR_DBDOMAIN 399 /* db domain */
#define OCI_ATTR_EVENTTYPE 400 /* event type */
#define OCI_ATTR_HA_SOURCE 401
#define OCI_ATTR_CHNF_TABLENAMES 401 /* out: array of table names */
#define OCI_ATTR_CHNF_ROWIDS 402 /* in: rowids needed */
#define OCI_ATTR_HA_STATUS 402
# define OCI_HA_STATUS_DOWN 0/* valid values for OCI_ATTR_HA_STATUS */
# define OCI_HA_STATUS_UP 1
#define OCI_ATTR_CHNF_OPERATIONS 403 /* in: notification operation filter */
#define OCI_ATTR_HA_SRVFIRST 403
#define OCI_ATTR_CHNF_CHANGELAG 404 /* txn lag between notifications */
#define OCI_ATTR_HA_SRVNEXT 404
#define OCI_ATTR_CHDES_DBNAME 405 /* source database */
#define OCI_ATTR_TAF_ENABLED 405
#define OCI_ATTR_CHDES_NFYTYPE 406 /* notification type flags */
#define OCI_ATTR_NFY_FLAGS 406
#define OCI_ATTR_CHDES_XID 407 /* XID of the transaction */
#define OCI_ATTR_MSG_DELIVERY_MODE 407 /* msg delivery mode */
#define OCI_ATTR_CHDES_TABLE_CHANGES 408/* array of table chg descriptors*/
#define OCI_ATTR_CHDES_TABLE_NAME 409 /* table name */
#define OCI_ATTR_CHDES_TABLE_OPFLAGS 410 /* table operation flags */
#define OCI_ATTR_CHDES_TABLE_ROW_CHANGES 411 /* array of changed rows */
#define OCI_ATTR_CHDES_ROW_ROWID 412 /* rowid of changed row */
#define OCI_ATTR_CHDES_ROW_OPFLAGS 413 /* row operation flags */
#define OCI_ATTR_CHNF_REGHANDLE 414 /* IN: subscription handle */
#define OCI_ATTR_RESERVED_21 415 /* reserved */
#define OCI_ATTR_NETWORK_FILE_DESC 415 /* network file descriptor */
#define OCI_ATTR_PROXY_CLIENT 416/* client nam 4 single sess proxy */
#define OCI_ATTR_DB_CHARSET_ID 416 /* database charset ID */
#define OCI_ATTR_TABLE_ENC 417/* does table have any encrypt columns */
#define OCI_ATTR_DB_NCHARSET_ID 417 /* database ncharset ID */
#define OCI_ATTR_TABLE_ENC_ALG 418 /* Table encryption Algorithm */
#define OCI_ATTR_RESERVED_25 418 /* reserved */
#define OCI_ATTR_TABLE_ENC_ALG_ID 419 /* Internal Id of encryption Algorithm*/
#define OCI_ATTR_STMTCACHE_CBKCTX 420 /* opaque context on stmt */
#define OCI_ATTR_STMTCACHE_CBK 421 /* callback fn for stmtcache */
#define OCI_ATTR_CQDES_OPERATION 422
#define OCI_ATTR_RESERVED_26 422
#define OCI_ATTR_XMLTYPE_BINARY_XML 422 /* XML type stored as binary? */
#define OCI_ATTR_CQDES_TABLE_CHANGES 423
#define OCI_ATTR_FLOW_CONTROL_TIMEOUT 423 /* AQ: flow control timeout */
#define OCI_ATTR_CQDES_QUERYID 424
#define OCI_ATTR_DRIVER_NAME 424 /* Driver Name */
#define OCI_ATTR_ENV_NLS_LANGUAGE 424
#define OCI_ATTR_CHDES_QUERIES 425 /* Top level change desc
array of queries */
#define OCI_ATTR_CONNECTION_CLASS 425
#define OCI_ATTR_RESERVED_27 425 /* reserved */
#define OCI_ATTR_ENV_NLS_TERRITORY 425
#define OCI_ATTR_PURITY 426
#define OCI_ATTR_RESERVED_28 426 /* reserved */
#define OCI_ATTR_RESERVED_29 427 /* reserved */
#define OCI_ATTR_RESERVED_30 428 /* reserved */
#define OCI_ATTR_RESERVED_31 429 /* reserved */
#define OCI_ATTR_RESERVED_32 430 /* reserved */
/* ----------- Reserve internal attributes for workload replay ------------ */
#define OCI_ATTR_RESERVED_33 433
#define OCI_ATTR_RESERVED_34 434
/* -------- Attributes for Network Session Time Out--------------------------*/
#define OCI_ATTR_SEND_TIMEOUT 435 /* NS send timeout */
#define OCI_ATTR_RECEIVE_TIMEOUT 436 /* NS receive timeout */
#define OCI_ATTR_RESERVED_35 437
/*--------- Attributes related to LOB prefetch------------------------------ */
#define OCI_ATTR_DEFAULT_LOBPREFETCH_SIZE 438 /* default prefetch size */
#define OCI_ATTR_LOBPREFETCH_SIZE 439 /* prefetch size */
#define OCI_ATTR_LOBPREFETCH_LENGTH 440 /* prefetch length & chunk */
/*--------- Attributes related to LOB Deduplicate Regions ------------------ */
#define OCI_ATTR_LOB_REGION_PRIMARY 442 /* Primary LOB Locator */
#define OCI_ATTR_LOB_REGION_PRIMOFF 443 /* Offset into Primary LOB */
#define OCI_ATTR_RESERVED_36 444
#define OCI_ATTR_LOB_REGION_OFFSET 445 /* Region Offset */
#define OCI_ATTR_LOB_REGION_LENGTH 446 /* Region Length Bytes/Chars */
#define OCI_ATTR_LOB_REGION_MIME 447 /* Region mime type */
/*--------------------Attribute to fetch ROWID ------------------------------*/
#define OCI_ATTR_FETCH_ROWID 448
/* server attribute */
#define OCI_ATTR_RESERVED_37 449
/*-------------------Attributes for OCI column security-----------------------*/
#define OCI_ATTR_NO_COLUMN_AUTH_WARNING 450
#define OCI_ATTR_XDS_POLICY_STATUS 451
/* --------------- ip address attribute in environment handle -------------- */
#define OCI_ATTR_SUBSCR_IPADDR 452 /* ip address to listen on */
#define OCI_ATTR_RESERVED_40 453
#define OCI_ATTR_RESERVED_41 454
#define OCI_ATTR_RESERVED_42 455
#define OCI_ATTR_RESERVED_43 456
/* statement attribute */
#define OCI_ATTR_UB8_ROW_COUNT 457 /* ub8 value of row count */
/* ------------- round trip callback attributes in the process handle ----- */
#define OCI_ATTR_RESERVED_458 458 /* reserved */
#define OCI_ATTR_RESERVED_459 459 /* reserved */
#define OCI_ATTR_SPOOL_AUTH 460 /* Auth handle on pool handle */
#define OCI_ATTR_SHOW_INVISIBLE_COLUMNS 460 /* invisible columns support */
#define OCI_ATTR_INVISIBLE_COL 461 /* invisible columns support */
/* support at most once transaction semantics */
#define OCI_ATTR_LTXID 462 /* logical transaction id */
#define OCI_ATTR_LAST_LOGON_TIME_UTC 463 /* Last Successful Logon Time */
#define OCI_ATTR_IMPLICIT_RESULT_COUNT 463
#define OCI_ATTR_RESERVED_464 464
#define OCI_ATTR_RESERVED_465 465
#define OCI_ATTR_TRANSACTIONAL_TAF 466
#define OCI_ATTR_RESERVED_467 467
/* SQL translation profile session attribute */
#define OCI_ATTR_SQL_TRANSLATION_PROFILE 468
/* Per Iteration array DML rowcount attribute */
#define OCI_ATTR_DML_ROW_COUNT_ARRAY 469
#define OCI_ATTR_RESERVED_470 470
/* session handle attribute */
#define OCI_ATTR_MAX_OPEN_CURSORS 471
/* Can application failover and recover from this error?
* e.g. ORA-03113 is recoverable while ORA-942 (table or view does not exist)
* is not.
*/
#define OCI_ATTR_ERROR_IS_RECOVERABLE 472
/* ONS specific private attribute */
#define OCI_ATTR_RESERVED_473 473
/* Attribute to check if ILM Write Access Tracking is enabled or not */
#define OCI_ATTR_ILM_TRACK_WRITE 474
/* Notification subscription failure callback and context */
#define OCI_ATTR_SUBSCR_FAILURE_CBK 477
#define OCI_ATTR_SUBSCR_FAILURE_CTX 478
/* AQ JMS properties attributes */
#define OCI_ATTR_AQJMS_HEADER_PROP 479
#define OCI_ATTR_AQJMS_USER_PROP 480
#define OCI_ATTR_AQJMS_PROPERTIES 481
#define OCI_ATTR_AQJMS_MSG_TYPE 482
/* A SQL translation profile with FOREIGN_SQL_SYNTAX attribute is set in the
* database session.
*/
#define OCI_ATTR_TRANS_PROFILE_FOREIGN 483
/* is a transaction active on the session? */
#define OCI_ATTR_TRANSACTION_IN_PROGRESS 484
/* add attribute for DBOP: DataBase OPeration */
#define OCI_ATTR_DBOP 485
/* FAN-HA private attribute */
#define OCI_ATTR_RESERVED_486 486
/* reserved */
#define OCI_ATTR_RESERVED_487 487
#define OCI_ATTR_RESERVED_488 488
#define OCI_ATTR_VARTYPE_MAXLEN_COMPAT 489
/* Max Lifetime for session */
#define OCI_ATTR_SPOOL_MAX_LIFETIME_SESSION 490
#define OCI_ATTR_RESERVED_491 491
#define OCI_ATTR_RESERVED_492 492
#define OCI_ATTR_AUTOTUNING_ENABLED OCI_ATTR_RESERVED_492
/* Bit Mask indicating which feature is being auto tuned */
#define OCI_AUTOTUNED_STMT_CACHE 0x00000001
/* OCI statement caching feature is being auto tuned */
#define OCI_ATTR_RESERVED_493 493 /* reserved */
#define OCI_ATTR_ITERS_PROCESSED 494
#define OCI_ATTR_BREAK_ON_NET_TIMEOUT 495 /* Break on timeout */
#define OCI_ATTR_SHARDING_KEY 496
/* Sharding Key (OCIShardingKey *) attribute of OCIAuth/OCISvcCtx */
#define OCI_ATTR_SUPER_SHARDING_KEY 497
/* Super Sharding Key (OCIShardingKey *) attribute of OCIAuth/OCISvcCtx */
#define OCI_ATTR_SHARDING_KEY_B64 498
/* Base64 Sharding Key: read only attribute of OCIShardingKey */
#define OCI_ATTR_COLLATION_ID 499 /* Collation ID */
#define OCI_ATTR_MAX_IDENTIFIER_LEN 500 /* max identifier length */
#define OCI_ATTR_FIXUP_CALLBACK 501
/* session state fixup callback */
#define OCI_ATTR_VIRTUAL_COL 502
#define OCI_ATTR_RESERVED_503 503 /* reserved */
#define OCI_ATTR_SQL_ID 504 /* SQL ID in text form */
#define OCI_ATTR_SHARD_HAS_WRITABLECHUNK 505
#define OCI_ATTR_SPOOL_WAIT_TIMEOUT 506
#define OCI_ATTR_RESERVED_507 507
#define OCI_ATTR_FO_TYPE 508 /* see OCI_FO_xxx */
/* HCS Hierarchy and Analytic View Column Attributes */
#define OCI_ATTR_OLAP_ROLE 509 /* hier / analytic view role */
#define OCI_ATTR_DIMENSION_NAME 510 /* analytic view dim name */
#define OCI_ATTR_HIERARCHY_NAME 511 /* analytic view hier name */
#define OCI_ATTR_RESERVED_512 512 /* reserved */
#define OCI_ATTR_RESERVED_513 513 /* reserved */
/*------ Attributes for DirPathAPI default support 12.2 ---------------------*/
#define OCI_ATTR_DIRPATH_DEFAULTS 513 /* how to handle defaults */
/* Evaluate once, unless a sequence is involved, then evaluate every row.
* Error if unsupported default value seen. This is the default. */
#define OCI_DIRPATH_DEFAULTS_DEFAULT 0
/* Evaluate once, at the start of the load. Error if unsupported default
* value seen. */
#define OCI_DIRPATH_DEFAULTS_EVALUATE_ONCE 1
/* Evaluate every row. Error if unsupported default value seen */
#define OCI_DIRPATH_DEFAULTS_EVALUATE_EVERY_ROW 2
/* Ignore all defaults (load NULLs) */
#define OCI_DIRPATH_DEFAULTS_IGNORE 3
/* Ignore unsuppored defaults (load NULLS) , evaluate supported once */
#define OCI_DIRPATH_DEFAULTS_IGNORE_UNSUPPORTED_EVALUATE_ONCE 4
/* Ignore unsuppored defaults (load NULLS), evaluate supported every row */
#define OCI_DIRPATH_DEFAULTS_IGNORE_UNSUPPORTED_EVALUATE_EVERY_ROW 5
#define OCI_ATTR_DIRPATH_DEF_EXP_CACHE_SIZE 514 /* default expr cache size */
#define OCI_ATTR_RESERVED_515 515
#define OCI_ATTR_RESERVED_516 516
/*------ Attributes for client to server charset conversion ratio -----------*/
#define OCI_ATTR_MAX_CHARSET_RATIO 517
#define OCI_ATTR_MAX_NCHARSET_RATIO 518
#define OCI_ATTR_RESERVED_519 519
#define OCI_ATTR_LOB_REMOTE 520 /* remote lob ? */
#define OCI_ATTR_RESERVED_521 521
#define OCI_ATTR_RESERVED_522 522
#define OCI_ATTR_RESERVED_523 523
#define OCI_ATTR_PDBNAME 524 /* PDB name */
#define OCI_ATTR_RESERVED_524 524
#define OCI_ATTR_RESERVED_525 525
#define OCI_ATTR_RESERVED_526 526
#define OCI_ATTR_RESERVED_527 527
#define OCI_ATTR_RESERVED_528 528
#define OCI_ATTR_RESERVED_529 529
#define OCI_ATTR_RESERVED_530 530
#define OCI_ATTR_CALL_TIMEOUT 531
/*------------------- Not persisteble types ---------------------------------*/
#define OCI_ATTR_IS_NOT_PERSISTABLE_TYPE 532 /* is not persistable type */
#define OCI_ATTR_RESERVED_533 533 /* reserved */
#define OCI_ATTR_JSON_COL 534 /* col holding JSON */
/*
* OCI SODA defines
*/
/* OCI SODA collection and metadata atributes */
#define OCI_ATTR_SODA_COLL_NAME 535
#define OCI_ATTR_SODA_DESCRIPTOR 536
#define OCI_ATTR_SODA_SCHEMA 537
#define OCI_ATTR_SODA_TABLE_NAME 538
#define OCI_ATTR_SODA_VIEW_NAME 539
#define OCI_ATTR_SODA_TABLESPACE 540
#define OCI_ATTR_SODA_STORAGE_INIT_SIZE 541
#define OCI_ATTR_SODA_STORAGE_INC_PCT 542
#define OCI_ATTR_SODA_KEY_COL_NAME 543
#define OCI_ATTR_SODA_KEY_SQL_TYPE 544
#define OCI_ATTR_SODA_KEY_MAX_LEN 545
#define OCI_ATTR_SODA_KEY_ASSIGN_METHOD 546
#define OCI_ATTR_SODA_KEY_SEQ_NAME 547
#define OCI_ATTR_SODA_CTNT_COL_NAME 548
#define OCI_ATTR_SODA_CTNT_SQL_TYPE 549
#define OCI_ATTR_SODA_CTNT_MAX_LEN 550
#define OCI_ATTR_SODA_CTNT_VALIDATION 551
#define OCI_ATTR_SODA_CTNT_COMPRESS 552
#define OCI_ATTR_SODA_CTNT_CACHE 553
#define OCI_ATTR_SODA_CTNT_ENCRYPT 554
#define OCI_ATTR_SODA_CTNT_TABLESPACE 555
#define OCI_ATTR_SODA_VERSION_COL_NAME 556
#define OCI_ATTR_SODA_VERSION_METHOD 557
#define OCI_ATTR_SODA_MODTIME_COL_NAME 558
#define OCI_ATTR_SODA_MODTIME_INDEX 559
#define OCI_ATTR_SODA_CRTIME_COL_NAME 560
#define OCI_ATTR_SODA_MTYPE_COL_NAME 561
#define OCI_ATTR_SODA_READONLY 562
/* OCI SODA Document attributes */
#define OCI_ATTR_SODA_KEY 563
#define OCI_ATTR_SODA_LASTMOD_TIMESTAMP 564
#define OCI_ATTR_SODA_CREATE_TIMESTAMP 565
#define OCI_ATTR_SODA_VERSION 566
#define OCI_ATTR_SODA_CONTENT 567
#define OCI_ATTR_SODA_JSON_CHARSET_ID 568
#define OCI_ATTR_SODA_DETECT_JSON_ENC 569
#define OCI_ATTR_SODA_MEDIA_TYPE 571
/* OCI SODA Operation Options attributes */
#define OCI_ATTR_SODA_KEYS 573
#define OCI_ATTR_SODA_KEY_LENGTHS 574
#define OCI_ATTR_SODA_KEY_COUNT 575
#define OCI_ATTR_SODA_FILTER 576
#define OCI_ATTR_SODA_SKIP 577
#define OCI_ATTR_SODA_LIMIT 578
#define OCI_ATTR_SPOOL_MAX_USE_SESSION 580
#define OCI_ATTR_RESERVED_581 581
#define OCI_ATTR_RESERVED_582 582
#define OCI_ATTR_RESERVED_583 583
#define OCI_ATTR_RESERVED_584 584
#define OCI_ATTR_RESERVED_586 586
#define OCI_ATTR_RESERVED_587 587
#define OCI_ATTR_RESERVED_588 588
#define OCI_ATTR_RESERVED_589 589
#define OCI_ATTR_RESERVED_590 590
#define OCI_ATTR_LOB_TYPE 591
#define OCI_ATTR_RESERVED_592 592
/* OCI SODA Output Options attributes */
#define OCI_ATTR_SODA_DOC_COUNT 593
/* Other attributes */
#define OCI_ATTR_RESERVED_595 595
#define OCI_ATTR_RESERVED_596 596
#define OCI_ATTR_RESERVED_597 597
#define OCI_ATTR_RESERVED_598 598
#define OCI_ATTR_RESERVED_599 599
#define OCI_ATTR_RESERVED_600 600
#define OCI_ATTR_SPOOL_MAX_PER_SHARD 602
/* OCI SODA MODE TYPES */
/* OCI_DEFAULT can be passed as a valid SODA mode.
* It has no effect, i.e. it is a no-op
*/
#define OCI_SODA_ATOMIC_COMMIT 0x00000001
/* OCISodaCollCreate specific modes */
#define OCI_SODA_COLL_CREATE_MAP 0x00010000
/* Create collection in MAP mode */
/* OCISodaIndexDrop specific modes */
#define OCI_SODA_INDEX_DROP_FORCE 0x00010000
/* Drop domain index with FORCE */
/* OCI SODA Document flags */
#define OCI_SODA_DETECT_JSON_ENC 0x00000001 /* Detect the JSON encoding */
#define OCI_SODA_AS_STORED 0x00000002
/* Retrieve as stored in BLOB column */
#define OCI_SODA_AS_AL32UTF8 0x00000004 /* Retrieve as UTF-8 */
/* The following are possilble values to be set for key validation */
#define OCI_SODA_KEY_METHOD_UUID 1
#define OCI_SODA_KEY_METHOD_GUID 2
#define OCI_SODA_KEY_METHOD_SEQUENCE 3
#define OCI_SODA_KEY_METHOD_CLIENT 4
/* The following are the possible values for content validation methods */
#define OCI_SODA_JSON_VALIDATION_STRICT 1
#define OCI_SODA_JSON_VALIDATION_LAX 2
#define OCI_SODA_JSON_VALIDATION_STD 3
/* Possible values for LOB compression mechanism */
#define OCI_SODA_LOB_COMPRESS_NONE 1
#define OCI_SODA_LOB_COMPRESS_HIGH 2
#define OCI_SODA_LOB_COMPRESS_MEDIUM 3
#define OCI_SODA_LOB_COMPRESS_LOW 4
/* Possible values for LOB encryption mechanism */
#define OCI_SODA_LOB_ENCRYPT_NONE 1
#define OCI_SODA_LOB_ENCRYPT_3DES168 2
#define OCI_SODA_LOB_ENCRYPT_AES128 3
#define OCI_SODA_LOB_ENCRYPT_AES192 4
#define OCI_SODA_LOB_ENCRYPT_AES256 5
/* Possible methods for version generation */
#define OCI_SODA_VERSION_UUID 1
#define OCI_SODA_VERSION_TIMESTAMP 2
#define OCI_SODA_VERSION_MD5 3
#define OCI_SODA_VERSION_SHA256 4
#define OCI_SODA_VERSION_SEQUENTIAL 5
#define OCI_SODA_VERSION_NONE 6
/*---------------------------------------------------------------------------*/
/*
* NEW ATTRIBUTES MUST BE ADDED JUST BEFORE THIS BLOCK
*
* PLEASE DO NOT PLACE ATTRIBUTE *VALUES* HERE; PLACE THEM ELSEWHERE IN THE FILE
* (i.e. OCI_<attrname>_<valuename>; e.g. OCI_EVENT_STARTUP);
*
* (just *below* here is fine for the *values*, with
* sufficient white space for this notice to stand out)
*/
/*---------------------------------------------------------------------------*/
/*---------------- Describe Handle Parameter Attribute Values ---------------*/
/* OCI_ATTR_CURSOR_COMMIT_BEHAVIOR */
#define OCI_CURSOR_OPEN 0
#define OCI_CURSOR_CLOSED 1
/* OCI_ATTR_CATALOG_LOCATION */
#define OCI_CL_START 0
#define OCI_CL_END 1
/* OCI_ATTR_SAVEPOINT_SUPPORT */
#define OCI_SP_SUPPORTED 0
#define OCI_SP_UNSUPPORTED 1
/* OCI_ATTR_NOWAIT_SUPPORT */
#define OCI_NW_SUPPORTED 0
#define OCI_NW_UNSUPPORTED 1
/* OCI_ATTR_AUTOCOMMIT_DDL */
#define OCI_AC_DDL 0
#define OCI_NO_AC_DDL 1
/* OCI_ATTR_LOCKING_MODE */
#define OCI_LOCK_IMMEDIATE 0
#define OCI_LOCK_DELAYED 1
/* ------------------- Instance type attribute values -----------------------*/
#define OCI_INSTANCE_TYPE_UNKNOWN 0
#define OCI_INSTANCE_TYPE_RDBMS 1
#define OCI_INSTANCE_TYPE_OSM 2
#define OCI_INSTANCE_TYPE_PROXY 3
#define OCI_INSTANCE_TYPE_IOS 4
/* ---------------- ASM Volume Device Support attribute values --------------*/
#define OCI_ASM_VOLUME_UNSUPPORTED 0
#define OCI_ASM_VOLUME_SUPPORTED 1
/*---------------------------------------------------------------------------*/
/*---------------------------OCIPasswordChange-------------------------------*/
#define OCI_AUTH 0x00000008 /* Change the password but do not login */
#define OCI_CPW_SYSDBA 0x00000010 /* Password change with SYSDBA auth */
#define OCI_CPW_SYSOPER 0x00000020 /* Password change with SYSOPER auth */
#define OCI_CPW_SYSASM 0x00800040 /* Password change with SYSASM auth */
#define OCI_CPW_SYSBKP 0x00000080 /* Password change with SYSBACKUP auth */
#define OCI_CPW_SYSDGD 0x00000100 /* Password change with SYSDG auth */
#define OCI_CPW_SYSKMT 0x00000200 /* Password change with SYSKM auth */
/*------------------------Other Constants------------------------------------*/
#define OCI_MAX_FNS 100 /* max number of OCI Functions */
#define OCI_SQLSTATE_SIZE 5
#define OCI_ERROR_MAXMSG_SIZE 1024 /* max size of an error message */
#define OCI_ERROR_MAXMSG_SIZE2 3072 /* new len max size of an error message */
#define OCI_LOBMAXSIZE MINUB4MAXVAL /* maximum lob data size */
#define OCI_ROWID_LEN 23
#define OCI_LOB_CONTENTTYPE_MAXSIZE 128 /* max size of securefile contenttype */
#define OCI_LOB_CONTENTTYPE_MAXBYTESIZE OCI_LOB_CONTENTTYPE_MAXSIZE
/*---------------------------------------------------------------------------*/
/*------------------------ Fail Over Events ---------------------------------*/
#define OCI_FO_END 0x00000001
#define OCI_FO_ABORT 0x00000002
#define OCI_FO_REAUTH 0x00000004
#define OCI_FO_BEGIN 0x00000008
#define OCI_FO_ERROR 0x00000010
/*---------------------------------------------------------------------------*/
/*------------------------ Fail Over Callback Return Codes ------------------*/
#define OCI_FO_RETRY 25410
/*---------------------------------------------------------------------------*/
/*------------------------- Fail Over Types ---------------------------------*/
#define OCI_FO_NONE 0x00000001
#define OCI_FO_SESSION 0x00000002
#define OCI_FO_SELECT 0x00000004
#define OCI_FO_TXNAL 0x00000008
/*---------------------------------------------------------------------------*/
/*--------------------- OCI_ATTR_VARTYPE_MAXLEN_COMPAT values ---------------*/
#define OCI_ATTR_MAXLEN_COMPAT_STANDARD 1
#define OCI_ATTR_MAXLEN_COMPAT_EXTENDED 2
/*---------------------------------------------------------------------------*/
/*-----------------------Function Codes--------------------------------------*/
#define OCI_FNCODE_INITIALIZE 1 /* OCIInitialize */
#define OCI_FNCODE_HANDLEALLOC 2 /* OCIHandleAlloc */
#define OCI_FNCODE_HANDLEFREE 3 /* OCIHandleFree */
#define OCI_FNCODE_DESCRIPTORALLOC 4 /* OCIDescriptorAlloc */
#define OCI_FNCODE_DESCRIPTORFREE 5 /* OCIDescriptorFree */
#define OCI_FNCODE_ENVINIT 6 /* OCIEnvInit */
#define OCI_FNCODE_SERVERATTACH 7 /* OCIServerAttach */
#define OCI_FNCODE_SERVERDETACH 8 /* OCIServerDetach */
/* unused 9 */
#define OCI_FNCODE_SESSIONBEGIN 10 /* OCISessionBegin */
#define OCI_FNCODE_SESSIONEND 11 /* OCISessionEnd */
#define OCI_FNCODE_PASSWORDCHANGE 12 /* OCIPasswordChange */
#define OCI_FNCODE_STMTPREPARE 13 /* OCIStmtPrepare */
/* unused 14- 16 */
#define OCI_FNCODE_BINDDYNAMIC 17 /* OCIBindDynamic */
#define OCI_FNCODE_BINDOBJECT 18 /* OCIBindObject */
/* 19 unused */
#define OCI_FNCODE_BINDARRAYOFSTRUCT 20 /* OCIBindArrayOfStruct */
#define OCI_FNCODE_STMTEXECUTE 21 /* OCIStmtExecute */
/* unused 22-24 */
#define OCI_FNCODE_DEFINEOBJECT 25 /* OCIDefineObject */
#define OCI_FNCODE_DEFINEDYNAMIC 26 /* OCIDefineDynamic */
#define OCI_FNCODE_DEFINEARRAYOFSTRUCT 27 /* OCIDefineArrayOfStruct */
#define OCI_FNCODE_STMTFETCH 28 /* OCIStmtFetch */
#define OCI_FNCODE_STMTGETBIND 29 /* OCIStmtGetBindInfo */
/* 30, 31 unused */
#define OCI_FNCODE_DESCRIBEANY 32 /* OCIDescribeAny */
#define OCI_FNCODE_TRANSSTART 33 /* OCITransStart */
#define OCI_FNCODE_TRANSDETACH 34 /* OCITransDetach */
#define OCI_FNCODE_TRANSCOMMIT 35 /* OCITransCommit */
/* 36 unused */
#define OCI_FNCODE_ERRORGET 37 /* OCIErrorGet */
#define OCI_FNCODE_LOBFILEOPEN 38 /* OCILobFileOpen */
#define OCI_FNCODE_LOBOPENFILE 38 /* for compatibility */
#define OCI_FNCODE_LOBFILECLOSE 39 /* OCILobFileClose */
#define OCI_FNCODE_LOBCLOSEFILE 39 /* for compatibility */
/* 40 was LOBCREATEFILE, unused */
/* 41 was OCILobFileDelete, unused */
#define OCI_FNCODE_LOBCOPY 42 /* OCILobCopy */
#define OCI_FNCODE_LOBAPPEND 43 /* OCILobAppend */
#define OCI_FNCODE_LOBERASE 44 /* OCILobErase */
#define OCI_FNCODE_LOBLENGTH 45 /* OCILobGetLength */
#define OCI_FNCODE_LOBTRIM 46 /* OCILobTrim */
#define OCI_FNCODE_LOBREAD 47 /* OCILobRead */
#define OCI_FNCODE_LOBWRITE 48 /* OCILobWrite */
/* 49 unused */
#define OCI_FNCODE_SVCCTXBREAK 50 /* OCIBreak */
#define OCI_FNCODE_SERVERVERSION 51 /* OCIServerVersion */
#define OCI_FNCODE_KERBATTRSET 52 /* OCIKerbAttrSet */
#define OCI_FNCODE_SERVERRELEASE 53 /* OCIServerRelease */
#define OCI_FNCODE_ATTRGET 54 /* OCIAttrGet */
#define OCI_FNCODE_ATTRSET 55 /* OCIAttrSet */
#define OCI_FNCODE_PARAMSET 56 /* OCIParamSet */
#define OCI_FNCODE_PARAMGET 57 /* OCIParamGet */
#define OCI_FNCODE_STMTGETPIECEINFO 58 /* OCIStmtGetPieceInfo */
#define OCI_FNCODE_LDATOSVCCTX 59 /* OCILdaToSvcCtx */
/* 60 unused */
#define OCI_FNCODE_STMTSETPIECEINFO 61 /* OCIStmtSetPieceInfo */
#define OCI_FNCODE_TRANSFORGET 62 /* OCITransForget */
#define OCI_FNCODE_TRANSPREPARE 63 /* OCITransPrepare */
#define OCI_FNCODE_TRANSROLLBACK 64 /* OCITransRollback */
#define OCI_FNCODE_DEFINEBYPOS 65 /* OCIDefineByPos */
#define OCI_FNCODE_BINDBYPOS 66 /* OCIBindByPos */
#define OCI_FNCODE_BINDBYNAME 67 /* OCIBindByName */
#define OCI_FNCODE_LOBASSIGN 68 /* OCILobAssign */
#define OCI_FNCODE_LOBISEQUAL 69 /* OCILobIsEqual */
#define OCI_FNCODE_LOBISINIT 70 /* OCILobLocatorIsInit */
#define OCI_FNCODE_LOBENABLEBUFFERING 71 /* OCILobEnableBuffering */
#define OCI_FNCODE_LOBCHARSETID 72 /* OCILobCharSetId */
#define OCI_FNCODE_LOBCHARSETFORM 73 /* OCILobCharSetForm */
#define OCI_FNCODE_LOBFILESETNAME 74 /* OCILobFileSetName */
#define OCI_FNCODE_LOBFILEGETNAME 75 /* OCILobFileGetName */
#define OCI_FNCODE_LOGON 76 /* OCILogon */
#define OCI_FNCODE_LOGOFF 77 /* OCILogoff */
#define OCI_FNCODE_LOBDISABLEBUFFERING 78 /* OCILobDisableBuffering */
#define OCI_FNCODE_LOBFLUSHBUFFER 79 /* OCILobFlushBuffer */
#define OCI_FNCODE_LOBLOADFROMFILE 80 /* OCILobLoadFromFile */
#define OCI_FNCODE_LOBOPEN 81 /* OCILobOpen */
#define OCI_FNCODE_LOBCLOSE 82 /* OCILobClose */
#define OCI_FNCODE_LOBISOPEN 83 /* OCILobIsOpen */
#define OCI_FNCODE_LOBFILEISOPEN 84 /* OCILobFileIsOpen */
#define OCI_FNCODE_LOBFILEEXISTS 85 /* OCILobFileExists */
#define OCI_FNCODE_LOBFILECLOSEALL 86 /* OCILobFileCloseAll */
#define OCI_FNCODE_LOBCREATETEMP 87 /* OCILobCreateTemporary */
#define OCI_FNCODE_LOBFREETEMP 88 /* OCILobFreeTemporary */
#define OCI_FNCODE_LOBISTEMP 89 /* OCILobIsTemporary */
#define OCI_FNCODE_AQENQ 90 /* OCIAQEnq */
#define OCI_FNCODE_AQDEQ 91 /* OCIAQDeq */
#define OCI_FNCODE_RESET 92 /* OCIReset */
#define OCI_FNCODE_SVCCTXTOLDA 93 /* OCISvcCtxToLda */
#define OCI_FNCODE_LOBLOCATORASSIGN 94 /* OCILobLocatorAssign */
/* 95 unused, available */
#define OCI_FNCODE_AQLISTEN 96 /* OCIAQListen */
#define OCI_FNCODE_SVC2HST 97 /* reserved */
#define OCI_FNCODE_SVCRH 98 /* reserved */
/* 97 and 98 are reserved for Oracle internal use */
#define OCI_FNCODE_TRANSMULTIPREPARE 99 /* OCITransMultiPrepare */
#define OCI_FNCODE_CPOOLCREATE 100 /* OCIConnectionPoolCreate */
#define OCI_FNCODE_CPOOLDESTROY 101 /* OCIConnectionPoolDestroy */
#define OCI_FNCODE_LOGON2 102 /* OCILogon2 */
#define OCI_FNCODE_ROWIDTOCHAR 103 /* OCIRowidToChar */
#define OCI_FNCODE_SPOOLCREATE 104 /* OCISessionPoolCreate */
#define OCI_FNCODE_SPOOLDESTROY 105 /* OCISessionPoolDestroy */
#define OCI_FNCODE_SESSIONGET 106 /* OCISessionGet */
#define OCI_FNCODE_SESSIONRELEASE 107 /* OCISessionRelease */
#define OCI_FNCODE_STMTPREPARE2 108 /* OCIStmtPrepare2 */
#define OCI_FNCODE_STMTRELEASE 109 /* OCIStmtRelease */
#define OCI_FNCODE_AQENQARRAY 110 /* OCIAQEnqArray */
#define OCI_FNCODE_AQDEQARRAY 111 /* OCIAQDeqArray */
#define OCI_FNCODE_LOBCOPY2 112 /* OCILobCopy2 */
#define OCI_FNCODE_LOBERASE2 113 /* OCILobErase2 */
#define OCI_FNCODE_LOBLENGTH2 114 /* OCILobGetLength2 */
#define OCI_FNCODE_LOBLOADFROMFILE2 115 /* OCILobLoadFromFile2 */
#define OCI_FNCODE_LOBREAD2 116 /* OCILobRead2 */
#define OCI_FNCODE_LOBTRIM2 117 /* OCILobTrim2 */
#define OCI_FNCODE_LOBWRITE2 118 /* OCILobWrite2 */
#define OCI_FNCODE_LOBGETSTORAGELIMIT 119 /* OCILobGetStorageLimit */
#define OCI_FNCODE_DBSTARTUP 120 /* OCIDBStartup */
#define OCI_FNCODE_DBSHUTDOWN 121 /* OCIDBShutdown */
#define OCI_FNCODE_LOBARRAYREAD 122 /* OCILobArrayRead */
#define OCI_FNCODE_LOBARRAYWRITE 123 /* OCILobArrayWrite */
#define OCI_FNCODE_AQENQSTREAM 124 /* OCIAQEnqStreaming */
#define OCI_FNCODE_AQGETREPLAY 125 /* OCIAQGetReplayInfo */
#define OCI_FNCODE_AQRESETREPLAY 126 /* OCIAQResetReplayInfo */
#define OCI_FNCODE_ARRAYDESCRIPTORALLOC 127 /*OCIArrayDescriptorAlloc */
#define OCI_FNCODE_ARRAYDESCRIPTORFREE 128 /* OCIArrayDescriptorFree */
#define OCI_FNCODE_LOBGETOPT 129 /* OCILobGetOptions */
#define OCI_FNCODE_LOBSETOPT 130 /* OCILobSetOptions */
#define OCI_FNCODE_LOBFRAGINS 131 /* OCILobFragmentInsert */
#define OCI_FNCODE_LOBFRAGDEL 132 /* OCILobFragmentDelete */
#define OCI_FNCODE_LOBFRAGMOV 133 /* OCILobFragmentMove */
#define OCI_FNCODE_LOBFRAGREP 134 /* OCILobFragmentReplace */
#define OCI_FNCODE_LOBGETDEDUPLICATEREGIONS 135/* OCILobGetDeduplicateRegions */
#define OCI_FNCODE_APPCTXSET 136 /* OCIAppCtxSet */
#define OCI_FNCODE_APPCTXCLEARALL 137 /* OCIAppCtxClearAll */
#define OCI_FNCODE_LOBGETCONTENTTYPE 138 /* OCILobGetContentType */
#define OCI_FNCODE_LOBSETCONTENTTYPE 139 /* OCILobSetContentType */
#define OCI_FNCODE_DEFINEBYPOS2 140 /* OCIDefineByPos2 */
#define OCI_FNCODE_BINDBYPOS2 141 /* OCIBindByPos2 */
#define OCI_FNCODE_BINDBYNAME2 142 /* OCIBindByName2 */
#define OCI_FNCODE_STMTGETNEXTRESULT 143 /* OCIStmtGetNextResult */
#define OCI_FNCODE_AQENQ2 144 /* OCIAQEnq2 */
#define OCI_FNCODE_AQDEQ2 145 /* OCIAQDeq2 */
#define OCI_FNCODE_TYPEBYNAME 146 /* OCITypeByName */
#define OCI_FNCODE_TYPEBYFULLNAME 147 /* OCITypeByFullName */
#define OCI_FNCODE_TYPEBYREF 148 /* OCITypeByRef */
#define OCI_FNCODE_TYPEARRAYBYNAME 149 /* OCITypeArrayByName */
#define OCI_FNCODE_TYPEARRAYBYFULLNAME 150 /* OCITypeArrayByFullName */
#define OCI_FNCODE_TYPEARRAYBYREF 151 /* OCITypeArrayByRef */
#define OCI_FNCODE_LOBGETCHUNKSIZE 152 /* OCILobGetChunkSize */
#define OCI_FNCODE_LOBWRITEAPPEND 153 /* OCILobWriteAppend */
#define OCI_FNCODE_LOBWRITEAPPEND2 154 /* OCILobWriteAppend2 */
#define OCI_FNCODE_RESERVED_155 155 /* maximum OCI function code */
#define OCI_FNCODE_SODACOLLCREATE 156 /* OCISodaCollCreate */
#define OCI_FNCODE_SODAMETADATABUILD 157 /* OCISodaMetadataBuild */
#define OCI_FNCODE_SODACOLLCREATEWITHMETADATA 158 /* OCISodaCollCreateWithMetadata */
#define OCI_FNCODE_SODACOLLOPEN 159 /* OCISodaCollOpen */
#define OCI_FNCODE_SODADOCCREATE 160 /* OCISodaDocCreate */
#define OCI_FNCODE_SODADOCCREATEWITHKEY 161 /* OCISodaDocCreateWithKey */
#define OCI_FNCODE_SODADOCCREATEWITHKEYANDMTYPE 162 /* OCISodaDocCreateWithKeyAndMType */
#define OCI_FNCODE_SODAINSERT 163 /* OCISodaInsert */
#define OCI_FNCODE_SODABULKINSERT 164 /* OCISodaBulkInsert */
#define OCI_FNCODE_SODAINSERTANDGET 165 /* OCISodaInsertAndGet */
#define OCI_FNCODE_SODABULKINSERTANDGET 166 /* OCISodaBulkInsertAndGet */
#define OCI_FNCODE_SODAINSERTWITHCTNT 167 /* OCISodaInsertWithCtnt */
#define OCI_FNCODE_SODAINSERTANDGETWITHCTNT 168 /* OCISodaInsertAndGetWithCtnt */
#define OCI_FNCODE_SODABULKINSERTWITHCTNT 169 /* OCISodaBulkInsertWithCtnt */
#define OCI_FNCODE_SODABULKINSERTANDGETWITHCTNT 170 /* OCISodaBulkInsertAndGetWithCtnt */
#define OCI_FNCODE_SODASAVE 171 /* OCISodaSave */
#define OCI_FNCODE_SODASAVEANDGET 172 /* OCISodaSaveAndGet */
#define OCI_FNCODE_SODASAVEWITHCTNT 173 /* OCISodaSaveWithCtnt */
#define OCI_FNCODE_SODASAVEANDGETWITHCTNT 174 /* OCISodaSaveAndGetWithCtnt */
#define OCI_FNCODE_SODAFIND 175 /* OCISodaFind */
#define OCI_FNCODE_SODAFINDONE 176 /* OCISodaFindOne */
#define OCI_FNCODE_SODADOCGETNEXT 177 /* OCISodaDocGetNext */
#define OCI_FNCODE_SODAFINDONEWITHKEY 178 /* OCISodaFindOneWithKey */
#define OCI_FNCODE_SODACOLLLIST 179 /* OCISodaCollList */
#define OCI_FNCODE_SODADOCCOUNT 180 /* OCISodaDocCount */
#define OCI_FNCODE_SODADOCCOUNTWITHFILTER 181 /* OCISodaDocCountWithFilter */
#define OCI_FNCODE_SODAREPLONE 182 /* OCISodaReplOne */
#define OCI_FNCODE_SODAREPLONEANDGET 183 /* OCISodaReplOneAndGet */
#define OCI_FNCODE_SODAREPLONEWITHCTNT 184 /* OCISodaReplOneWithCtnt */
#define OCI_FNCODE_SODAREPLONEANDGETWITHCTNT 185 /* OCISodaReplOneAndGetWithCtnt */
#define OCI_FNCODE_SODAREPLONEWITHKEY 186 /* OCISodaReplOneWithKey */
#define OCI_FNCODE_SODAREPLONEANDGETWITHKEY 187 /* OCISodaReplOneAndGetWithKey */
#define OCI_FNCODE_SODAREMOVE 188 /* OCISodaRemove */
#define OCI_FNCODE_SODAREMOVEONEWITHKEY 189 /* OCISodaRemoveOneWithKey */
#define OCI_FNCODE_SODACOLLDROP 190 /* OCISodaCollDrop */
#define OCI_FNCODE_SODAINDEXCREATE 191 /* OCISodaIndexCreate */
#define OCI_FNCODE_SODAINDEXDROP 192 /* OCISodaIndexDrop */
#define OCI_FNCODE_SODADATAGUIDEGET 193 /* OCISodaDataGuideGet */
#define OCI_FNCODE_SODACOLLGETNEXT 194 /* OCISodaCollGetNext */
#define OCI_FNCODE_SERVERRELEASE2 195 /* OCIServerRelease2 */
#define OCI_FNCODE_SODAOPERKEYSSET 196 /* OCISodaOperKeysSet */
#define OCI_FNCODE_MAXFCN 196 /* maximum OCI function code */
/*---------------Statement Cache callback modes-----------------------------*/
#define OCI_CBK_STMTCACHE_STMTPURGE 0x01
/*---------------------------------------------------------------------------*/
/*-----------------------Handle Definitions----------------------------------*/
typedef struct OCIEnv OCIEnv; /* OCI environment handle */
typedef struct OCIError OCIError; /* OCI error handle */
typedef struct OCISvcCtx OCISvcCtx; /* OCI service handle */
typedef struct OCIStmt OCIStmt; /* OCI statement handle */
typedef struct OCIBind OCIBind; /* OCI bind handle */
typedef struct OCIDefine OCIDefine; /* OCI Define handle */
typedef struct OCIDescribe OCIDescribe; /* OCI Describe handle */
typedef struct OCIServer OCIServer; /* OCI Server handle */
typedef struct OCISession OCISession; /* OCI Authentication handle */
typedef struct OCIComplexObject OCIComplexObject; /* OCI COR handle */
typedef struct OCITrans OCITrans; /* OCI Transaction handle */
typedef struct OCISecurity OCISecurity; /* OCI Security handle */
typedef struct OCISubscription OCISubscription; /* subscription handle */
typedef struct OCICPool OCICPool; /* connection pool handle */
typedef struct OCISPool OCISPool; /* session pool handle */
typedef struct OCIAuthInfo OCIAuthInfo; /* auth handle */
typedef struct OCIAdmin OCIAdmin; /* admin handle */
typedef struct OCIEvent OCIEvent; /* HA event handle */
/*-----------------------Descriptor Definitions------------------------------*/
typedef struct OCISnapshot OCISnapshot; /* OCI snapshot descriptor */
typedef struct OCIResult OCIResult; /* OCI Result Set Descriptor */
typedef struct OCILobLocator OCILobLocator; /* OCI Lob Locator descriptor */
typedef struct OCILobRegion OCILobRegion; /* OCI Lob Regions descriptor */
typedef struct OCIParam OCIParam; /* OCI PARameter descriptor */
typedef struct OCIComplexObjectComp OCIComplexObjectComp;
/* OCI COR descriptor */
typedef struct OCIRowid OCIRowid; /* OCI ROWID descriptor */
typedef struct OCIDateTime OCIDateTime; /* OCI DateTime descriptor */
typedef struct OCIInterval OCIInterval; /* OCI Interval descriptor */
typedef struct OCIUcb OCIUcb; /* OCI User Callback descriptor */
typedef struct OCIServerDNs OCIServerDNs; /* OCI server DN descriptor */
typedef struct OCIShardingKey OCIShardingKey;
/* OCI Sharding Key Descriptor */
typedef struct OCIShardInst OCIShardInst;
/* OCI Shard Instance Descriptor */
/*-------------------------- AQ Descriptors ---------------------------------*/
typedef struct OCIAQEnqOptions OCIAQEnqOptions; /* AQ Enqueue Options hdl */
typedef struct OCIAQDeqOptions OCIAQDeqOptions; /* AQ Dequeue Options hdl */
typedef struct OCIAQMsgProperties OCIAQMsgProperties; /* AQ Mesg Properties */
typedef struct OCIAQAgent OCIAQAgent; /* AQ Agent descriptor */
typedef struct OCIAQNfyDescriptor OCIAQNfyDescriptor; /* AQ Nfy descriptor */
typedef struct OCIAQSignature OCIAQSignature; /* AQ Siganture */
typedef struct OCIAQListenOpts OCIAQListenOpts; /* AQ listen options */
typedef struct OCIAQLisMsgProps OCIAQLisMsgProps; /* AQ listen msg props */
typedef struct OCIAQJmsgProperties OCIAQJmsgProperties; /* AQ JMS Properties */
/*---------------------------------------------------------------------------*/
/* Lob typedefs for Pro*C */
typedef struct OCILobLocator OCIClobLocator; /* OCI Character LOB Locator */
typedef struct OCILobLocator OCIBlobLocator; /* OCI Binary LOB Locator */
typedef struct OCILobLocator OCIBFileLocator; /* OCI Binary LOB File Locator */
/*---------------------------------------------------------------------------*/
/* OCI SODA typedefs */
typedef struct OCISodaColl OCISodaColl; /* OCI SODA collection handle */
typedef struct OCISodaDoc OCISodaDoc; /* OCI SODA document handle */
typedef struct OCISodaDocCursor OCISodaDocCursor;/* OCI SODA document cursor */
typedef struct OCISodaOperationOptions OCISodaOperationOptions;
/*OCI SODA document cursor */
typedef struct OCISodaOutputOptions OCISodaOutputOptions;
/* OCI SODA output optns */
typedef struct OCISodaMetadata OCISodaMetadata;
/* OCI SODA metadata of a collection*/
typedef struct OCISodaCollCursor OCISodaCollCursor;
/* OCI SODA collection cursor */
/*---------------------------------------------------------------------------*/
/* Undefined value for tz in interval types*/
#define OCI_INTHR_UNK 24
/* These defined adjustment values */
#define OCI_ADJUST_UNK 10
#define OCI_ORACLE_DATE 0
#define OCI_ANSI_DATE 1
/*------------------------ Lob-specific Definitions -------------------------*/
/*
* ociloff - OCI Lob OFFset
*
* The offset in the lob data. The offset is specified in terms of bytes for
* BLOBs and BFILes. Character offsets are used for CLOBs, NCLOBs.
* The maximum size of internal lob data is 4 gigabytes. FILE LOB
* size is limited by the operating system.
*/
typedef ub4 OCILobOffset;
/*
* ocillen - OCI Lob LENgth (of lob data)
*
* Specifies the length of lob data in bytes for BLOBs and BFILes and in
* characters for CLOBs, NCLOBs. The maximum length of internal lob
* data is 4 gigabytes. The length of FILE LOBs is limited only by the
* operating system.
*/
typedef ub4 OCILobLength;
/*
* ocilmo - OCI Lob open MOdes
*
* The mode specifies the planned operations that will be performed on the
* FILE lob data. The FILE lob can be opened in read-only mode only.
*
* In the future, we may include read/write, append and truncate modes. Append
* is equivalent to read/write mode except that the FILE is positioned for
* writing to the end. Truncate is equivalent to read/write mode except that
* the FILE LOB data is first truncated to a length of 0 before use.
*/
enum OCILobMode
{
OCI_LOBMODE_READONLY = 1, /* read-only */
OCI_LOBMODE_READWRITE = 2 /* read_write for internal lobs only */
};
typedef enum OCILobMode OCILobMode;
/*---------------------------------------------------------------------------*/
/*----------------------------Piece Definitions------------------------------*/
/* if ocidef.h is being included in the app, ocidef.h should precede oci.h */
/*
* since clients may use oci.h, ocidef.h and ocidfn.h the following defines
* need to be guarded, usually internal clients
*/
#ifndef OCI_FLAGS
#define OCI_FLAGS
#define OCI_ONE_PIECE 0 /* one piece */
#define OCI_FIRST_PIECE 1 /* the first piece */
#define OCI_NEXT_PIECE 2 /* the next of many pieces */
#define OCI_LAST_PIECE 3 /* the last piece */
#endif
/*---------------------------------------------------------------------------*/
/*--------------------------- FILE open modes -------------------------------*/
#define OCI_FILE_READONLY 1 /* readonly mode open for FILE types */
/*---------------------------------------------------------------------------*/
/*--------------------------- LOB open modes --------------------------------*/
#define OCI_LOB_READONLY 1 /* readonly mode open for ILOB types */
#define OCI_LOB_READWRITE 2 /* read write mode open for ILOBs */
#define OCI_LOB_WRITEONLY 3 /* Writeonly mode open for ILOB types*/
#define OCI_LOB_APPENDONLY 4 /* Appendonly mode open for ILOB types */
#define OCI_LOB_FULLOVERWRITE 5 /* Completely overwrite ILOB */
#define OCI_LOB_FULLREAD 6 /* Doing a Full Read of ILOB */
/*----------------------- LOB Buffering Flush Flags -------------------------*/
#define OCI_LOB_BUFFER_FREE 1
#define OCI_LOB_BUFFER_NOFREE 2
/*---------------------------------------------------------------------------*/
/*---------------------------LOB Option Types -------------------------------*/
#define OCI_LOB_OPT_COMPRESS 1 /* SECUREFILE Compress */
#define OCI_LOB_OPT_ENCRYPT 2 /* SECUREFILE Encrypt */
#define OCI_LOB_OPT_DEDUPLICATE 4 /* SECUREFILE Deduplicate */
#define OCI_LOB_OPT_ALLOCSIZE 8 /* SECUREFILE Allocation Size */
#define OCI_LOB_OPT_CONTENTTYPE 16 /* SECUREFILE Content Type */
#define OCI_LOB_OPT_MODTIME 32 /* SECUREFILE Modification Time */
/*------------------------ LOB Option Values ------------------------------*/
/* Compression */
#define OCI_LOB_COMPRESS_OFF 0 /* Compression off */
#define OCI_LOB_COMPRESS_ON 1 /* Compression on */
/* Encryption */
#define OCI_LOB_ENCRYPT_OFF 0 /* Encryption Off */
#define OCI_LOB_ENCRYPT_ON 2 /* Encryption On */
/* Deduplciate */
#define OCI_LOB_DEDUPLICATE_OFF 0 /* Deduplicate Off */
#define OCI_LOB_DEDUPLICATE_ON 4 /* Deduplicate Lobs */
/*--------------------------- OCI Statement Types ---------------------------*/
#define OCI_STMT_UNKNOWN 0 /* Unknown statement */
#define OCI_STMT_SELECT 1 /* select statement */
#define OCI_STMT_UPDATE 2 /* update statement */
#define OCI_STMT_DELETE 3 /* delete statement */
#define OCI_STMT_INSERT 4 /* Insert Statement */
#define OCI_STMT_CREATE 5 /* create statement */
#define OCI_STMT_DROP 6 /* drop statement */
#define OCI_STMT_ALTER 7 /* alter statement */
#define OCI_STMT_BEGIN 8 /* begin ... (pl/sql statement)*/
#define OCI_STMT_DECLARE 9 /* declare .. (pl/sql statement ) */
#define OCI_STMT_CALL 10 /* call statement */
#define OCI_STMT_MERGE 16 /* merge statement */
/*---------------------------------------------------------------------------*/
/*--------------------------- OCI Parameter Types ---------------------------*/
#define OCI_PTYPE_UNK 0 /* unknown */
#define OCI_PTYPE_TABLE 1 /* table */
#define OCI_PTYPE_VIEW 2 /* view */
#define OCI_PTYPE_PROC 3 /* procedure */
#define OCI_PTYPE_FUNC 4 /* function */
#define OCI_PTYPE_PKG 5 /* package */
#define OCI_PTYPE_TYPE 6 /* user-defined type */
#define OCI_PTYPE_SYN 7 /* synonym */
#define OCI_PTYPE_SEQ 8 /* sequence */
#define OCI_PTYPE_COL 9 /* column */
#define OCI_PTYPE_ARG 10 /* argument */
#define OCI_PTYPE_LIST 11 /* list */
#define OCI_PTYPE_TYPE_ATTR 12 /* user-defined type's attribute */
#define OCI_PTYPE_TYPE_COLL 13 /* collection type's element */
#define OCI_PTYPE_TYPE_METHOD 14 /* user-defined type's method */
#define OCI_PTYPE_TYPE_ARG 15 /* user-defined type method's arg */
#define OCI_PTYPE_TYPE_RESULT 16/* user-defined type method's result */
#define OCI_PTYPE_SCHEMA 17 /* schema */
#define OCI_PTYPE_DATABASE 18 /* database */
#define OCI_PTYPE_RULE 19 /* rule */
#define OCI_PTYPE_RULE_SET 20 /* rule set */
#define OCI_PTYPE_EVALUATION_CONTEXT 21 /* evaluation context */
#define OCI_PTYPE_TABLE_ALIAS 22 /* table alias */
#define OCI_PTYPE_VARIABLE_TYPE 23 /* variable type */
#define OCI_PTYPE_NAME_VALUE 24 /* name value pair */
#define OCI_PTYPE_HIERARCHY 25 /* hierarchy */
#define OCI_PTYPE_ANALYTIC_VIEW 26 /* analytic view */
/*---------------------------------------------------------------------------*/
/*----------------------------- OCI List Types ------------------------------*/
#define OCI_LTYPE_UNK 0 /* unknown */
#define OCI_LTYPE_COLUMN 1 /* column list */
#define OCI_LTYPE_ARG_PROC 2 /* procedure argument list */
#define OCI_LTYPE_ARG_FUNC 3 /* function argument list */
#define OCI_LTYPE_SUBPRG 4 /* subprogram list */
#define OCI_LTYPE_TYPE_ATTR 5 /* type attribute */
#define OCI_LTYPE_TYPE_METHOD 6 /* type method */
#define OCI_LTYPE_TYPE_ARG_PROC 7 /* type method w/o result argument list */
#define OCI_LTYPE_TYPE_ARG_FUNC 8 /* type method w/result argument list */
#define OCI_LTYPE_SCH_OBJ 9 /* schema object list */
#define OCI_LTYPE_DB_SCH 10 /* database schema list */
#define OCI_LTYPE_TYPE_SUBTYPE 11 /* subtype list */
#define OCI_LTYPE_TABLE_ALIAS 12 /* table alias list */
#define OCI_LTYPE_VARIABLE_TYPE 13 /* variable type list */
#define OCI_LTYPE_NAME_VALUE 14 /* name value list */
#define OCI_LTYPE_PACKAGE_TYPE 15 /* package type list */
/*---------------------------------------------------------------------------*/
/*-------------------------- Memory Cartridge Services ---------------------*/
#define OCI_MEMORY_CLEARED 1
/*-------------------------- Pickler Cartridge Services ---------------------*/
typedef struct OCIPicklerTdsCtx OCIPicklerTdsCtx;
typedef struct OCIPicklerTds OCIPicklerTds;
typedef struct OCIPicklerImage OCIPicklerImage;
typedef struct OCIPicklerFdo OCIPicklerFdo;
typedef ub4 OCIPicklerTdsElement;
typedef struct OCIAnyData OCIAnyData;
typedef struct OCIAnyDataSet OCIAnyDataSet;
typedef struct OCIAnyDataCtx OCIAnyDataCtx;
/*---------------------------------------------------------------------------*/
/*--------------------------- User Callback Constants -----------------------*/
#define OCI_UCBTYPE_ENTRY 1 /* entry callback */
#define OCI_UCBTYPE_EXIT 2 /* exit callback */
#define OCI_UCBTYPE_REPLACE 3 /* replacement callback */
/*---------------------------------------------------------------------------*/
/*--------------------- NLS service type and constance ----------------------*/
#define OCI_NLS_DAYNAME1 1 /* Native name for Monday */
#define OCI_NLS_DAYNAME2 2 /* Native name for Tuesday */
#define OCI_NLS_DAYNAME3 3 /* Native name for Wednesday */
#define OCI_NLS_DAYNAME4 4 /* Native name for Thursday */
#define OCI_NLS_DAYNAME5 5 /* Native name for Friday */
#define OCI_NLS_DAYNAME6 6 /* Native name for for Saturday */
#define OCI_NLS_DAYNAME7 7 /* Native name for for Sunday */
#define OCI_NLS_ABDAYNAME1 8 /* Native abbreviated name for Monday */
#define OCI_NLS_ABDAYNAME2 9 /* Native abbreviated name for Tuesday */
#define OCI_NLS_ABDAYNAME3 10 /* Native abbreviated name for Wednesday */
#define OCI_NLS_ABDAYNAME4 11 /* Native abbreviated name for Thursday */
#define OCI_NLS_ABDAYNAME5 12 /* Native abbreviated name for Friday */
#define OCI_NLS_ABDAYNAME6 13 /* Native abbreviated name for for Saturday */
#define OCI_NLS_ABDAYNAME7 14 /* Native abbreviated name for for Sunday */
#define OCI_NLS_MONTHNAME1 15 /* Native name for January */
#define OCI_NLS_MONTHNAME2 16 /* Native name for February */
#define OCI_NLS_MONTHNAME3 17 /* Native name for March */
#define OCI_NLS_MONTHNAME4 18 /* Native name for April */
#define OCI_NLS_MONTHNAME5 19 /* Native name for May */
#define OCI_NLS_MONTHNAME6 20 /* Native name for June */
#define OCI_NLS_MONTHNAME7 21 /* Native name for July */
#define OCI_NLS_MONTHNAME8 22 /* Native name for August */
#define OCI_NLS_MONTHNAME9 23 /* Native name for September */
#define OCI_NLS_MONTHNAME10 24 /* Native name for October */
#define OCI_NLS_MONTHNAME11 25 /* Native name for November */
#define OCI_NLS_MONTHNAME12 26 /* Native name for December */
#define OCI_NLS_ABMONTHNAME1 27 /* Native abbreviated name for January */
#define OCI_NLS_ABMONTHNAME2 28 /* Native abbreviated name for February */
#define OCI_NLS_ABMONTHNAME3 29 /* Native abbreviated name for March */
#define OCI_NLS_ABMONTHNAME4 30 /* Native abbreviated name for April */
#define OCI_NLS_ABMONTHNAME5 31 /* Native abbreviated name for May */
#define OCI_NLS_ABMONTHNAME6 32 /* Native abbreviated name for June */
#define OCI_NLS_ABMONTHNAME7 33 /* Native abbreviated name for July */
#define OCI_NLS_ABMONTHNAME8 34 /* Native abbreviated name for August */
#define OCI_NLS_ABMONTHNAME9 35 /* Native abbreviated name for September */
#define OCI_NLS_ABMONTHNAME10 36 /* Native abbreviated name for October */
#define OCI_NLS_ABMONTHNAME11 37 /* Native abbreviated name for November */
#define OCI_NLS_ABMONTHNAME12 38 /* Native abbreviated name for December */
#define OCI_NLS_YES 39 /* Native string for affirmative response */
#define OCI_NLS_NO 40 /* Native negative response */
#define OCI_NLS_AM 41 /* Native equivalent string of AM */
#define OCI_NLS_PM 42 /* Native equivalent string of PM */
#define OCI_NLS_AD 43 /* Native equivalent string of AD */
#define OCI_NLS_BC 44 /* Native equivalent string of BC */
#define OCI_NLS_DECIMAL 45 /* decimal character */
#define OCI_NLS_GROUP 46 /* group separator */
#define OCI_NLS_DEBIT 47 /* Native symbol of debit */
#define OCI_NLS_CREDIT 48 /* Native sumbol of credit */
#define OCI_NLS_DATEFORMAT 49 /* Oracle date format */
#define OCI_NLS_INT_CURRENCY 50 /* International currency symbol */
#define OCI_NLS_LOC_CURRENCY 51 /* Locale currency symbol */
#define OCI_NLS_LANGUAGE 52 /* Language name */
#define OCI_NLS_ABLANGUAGE 53 /* Abbreviation for language name */
#define OCI_NLS_TERRITORY 54 /* Territory name */
#define OCI_NLS_CHARACTER_SET 55 /* Character set name */
#define OCI_NLS_LINGUISTIC_NAME 56 /* Linguistic name */
#define OCI_NLS_CALENDAR 57 /* Calendar name */
#define OCI_NLS_DUAL_CURRENCY 78 /* Dual currency symbol */
#define OCI_NLS_WRITINGDIR 79 /* Language writing direction */
#define OCI_NLS_ABTERRITORY 80 /* Territory Abbreviation */
#define OCI_NLS_DDATEFORMAT 81 /* Oracle default date format */
#define OCI_NLS_DTIMEFORMAT 82 /* Oracle default time format */
#define OCI_NLS_SFDATEFORMAT 83 /* Local string formatted date format */
#define OCI_NLS_SFTIMEFORMAT 84 /* Local string formatted time format */
#define OCI_NLS_NUMGROUPING 85 /* Number grouping fields */
#define OCI_NLS_LISTSEP 86 /* List separator */
#define OCI_NLS_MONDECIMAL 87 /* Monetary decimal character */
#define OCI_NLS_MONGROUP 88 /* Monetary group separator */
#define OCI_NLS_MONGROUPING 89 /* Monetary grouping fields */
#define OCI_NLS_INT_CURRENCYSEP 90 /* International currency separator */
#define OCI_NLS_CHARSET_MAXBYTESZ 91 /* Maximum character byte size */
#define OCI_NLS_CHARSET_FIXEDWIDTH 92 /* Fixed-width charset byte size */
#define OCI_NLS_CHARSET_ID 93 /* Character set id */
#define OCI_NLS_NCHARSET_ID 94 /* NCharacter set id */
#define OCI_NLS_MAXBUFSZ 100 /* Max buffer size may need for OCINlsGetInfo */
#define OCI_NLS_BINARY 0x1 /* for the binary comparison */
#define OCI_NLS_LINGUISTIC 0x2 /* for linguistic comparison */
#define OCI_NLS_CASE_INSENSITIVE 0x10 /* for case-insensitive comparison */
#define OCI_NLS_UPPERCASE 0x20 /* convert to uppercase */
#define OCI_NLS_LOWERCASE 0x40 /* convert to lowercase */
#define OCI_NLS_CS_IANA_TO_ORA 0 /* Map charset name from IANA to Oracle */
#define OCI_NLS_CS_ORA_TO_IANA 1 /* Map charset name from Oracle to IANA */
#define OCI_NLS_LANG_ISO_TO_ORA 2 /* Map language name from ISO to Oracle */
#define OCI_NLS_LANG_ORA_TO_ISO 3 /* Map language name from Oracle to ISO */
#define OCI_NLS_TERR_ISO_TO_ORA 4 /* Map territory name from ISO to Oracle*/
#define OCI_NLS_TERR_ORA_TO_ISO 5 /* Map territory name from Oracle to ISO*/
#define OCI_NLS_TERR_ISO3_TO_ORA 6 /* Map territory name from 3-letter ISO */
/* abbreviation to Oracle */
#define OCI_NLS_TERR_ORA_TO_ISO3 7 /* Map territory name from Oracle to */
/* 3-letter ISO abbreviation */
#define OCI_NLS_LOCALE_A2_ISO_TO_ORA 8
/*Map locale name from A2 ISO to oracle*/
#define OCI_NLS_LOCALE_A2_ORA_TO_ISO 9
/*Map locale name from oracle to A2 ISO*/
typedef struct OCIMsg OCIMsg;
typedef ub4 OCIWchar;
#define OCI_XMLTYPE_CREATE_OCISTRING 1
#define OCI_XMLTYPE_CREATE_CLOB 2
#define OCI_XMLTYPE_CREATE_BLOB 3
/*------------------------- Kerber Authentication Modes ---------------------*/
#define OCI_KERBCRED_PROXY 1 /* Apply Kerberos Creds for Proxy */
#define OCI_KERBCRED_CLIENT_IDENTIFIER 2/*Apply Creds for Secure Client ID */
/*------------------------- Database Startup Flags --------------------------*/
#define OCI_DBSTARTUPFLAG_FORCE 0x00000001 /* Abort running instance, start */
#define OCI_DBSTARTUPFLAG_RESTRICT 0x00000002 /* Restrict access to DBA */
/*------------------------- Database Shutdown Modes -------------------------*/
#define OCI_DBSHUTDOWN_TRANSACTIONAL 1 /* Wait for all the transactions */
#define OCI_DBSHUTDOWN_TRANSACTIONAL_LOCAL 2 /* Wait for local transactions */
#define OCI_DBSHUTDOWN_IMMEDIATE 3 /* Terminate and roll back */
#define OCI_DBSHUTDOWN_ABORT 4 /* Terminate and don't roll back */
#define OCI_DBSHUTDOWN_FINAL 5 /* Orderly shutdown */
/*---------------------- OCIIOV structure definitions -----------------------*/
struct OCIIOV
{
void *bfp; /* The Pointer to the data buffer */
ub4 bfl; /* Length of the Data Buffer */
};
typedef struct OCIIOV OCIIOV;
/*-----------------Macros to get the various version number components------ */
/* Note: These macros are intended to be used in conjunction with the encoded
* database version number returned by OCIServerRelease2() to extract each of
* the 5 digits of the database version.
*
* These macros are named according to the new release naming scheme started
* with 18.1. The 5 digits extracted from the version number are:
* - feature release
* - release update
* - release update revision
* - increment
* - extension
*
* Even though the naming is based on the new convention, for convenience,
* the same macros can be used to extract the corresponding 5 digits of the
* database version from an encoded version number returned by
* OCIServerRelease() from a pre 18.1 database (which used a different encoding
* scheme). In that case though, the digits correspond to the following:
* - version number
* - release number
* - update number
* - porting release number
* - porting update number
*/
#define OCI_SERVER_RELEASE_REL(v) ((sword)(((v) >> 24) & 0x000000FF))
/* old: version number */
/* new: feature release */
#define OCI_SERVER_RELEASE_REL_UPD(v)\
((OCI_SERVER_RELEASE_REL(v) < 18)? \
((sword)(((v) >> 20) & 0x0000000F)):\
((sword)(((v) >> 16) & 0x000000FF))) /* old: release number */
/* new: release update */
#define OCI_SERVER_RELEASE_REL_UPD_REV(v)\
((OCI_SERVER_RELEASE_REL(v) < 18)? \
((sword)(((v) >> 12) & 0x000000FF)):\
((sword)(((v) >> 12) & 0x0000000F)))
/* old: update number */
/* new: release update revision */
#define OCI_SERVER_RELEASE_REL_UPD_INC(v)\
((OCI_SERVER_RELEASE_REL(v) < 18)? \
((sword)(((v) >> 8) & 0x0000000F)):\
((sword)(((v) >> 4) & 0x0000000FF)))
/* old: porting release number */
/* new: release update increment */
#define OCI_SERVER_RELEASE_EXT(v)\
((OCI_SERVER_RELEASE_REL(v) < 18)? \
((sword)(((v) >> 0) & 0x000000FF)):\
((sword)(((v) >> 0) & 0x0000000F)))
/* old: porting update number */
/* new: extension */
/*---------------------------------------------------------------------------
PRIVATE TYPES AND CONSTANTS
---------------------------------------------------------------------------*/
/* None */
/*---------------------------------------------------------------------------
PUBLIC FUNCTIONS
---------------------------------------------------------------------------*/
/* see ociap.h or ocikp.h */
/*---------------------------------------------------------------------------
PRIVATE FUNCTIONS
---------------------------------------------------------------------------*/
/* None */
#endif /* OCI_ORACLE */
/* more includes */
#ifndef OCI1_ORACLE
#include <oci1.h>
#endif
#ifndef ORO_ORACLE
#include <oro.h>
#endif
#ifndef ORI_ORACLE
#include <ori.h>
#endif
#ifndef ORL_ORACLE
#include <orl.h>
#endif
#ifndef ORT_ORACLE
#include <ort.h>
#endif
#ifndef OCIEXTP_ORACLE
#include <ociextp.h>
#endif
#include <ociapr.h>
#include <ociap.h>
#ifndef OCIXMLDB_ORACLE
#include <ocixmldb.h>
#endif
#ifndef OCI8DP_ORACLE
#include <oci8dp.h> /* interface definitions for the direct path api */
#endif
#ifndef OCIEXTP_ORACLE
#include <ociextp.h>
#endif
#ifndef OCIXSTREAM_ORACLE
#include <ocixstream.h>
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
| victormwenda/dbcrudgen-cpp | include/oracle/instantclient_18_5/sdk/include/oci.h | C | mit | 214,558 |
module Cloudpress
module Dropbox
class Cleaner
def initialize(remote_paths, local_paths)
@local_paths = local_paths
@remote_paths = remote_paths
end
def orphaned_paths
@orphaned_paths ||= @local_paths - @remote_paths
end
def clean!
Post.where(file_path: orphaned_paths).destroy_all if orphaned_paths.any?
end
end
end
end | adamcarlile/cloudpress | lib/cloudpress/dropbox/cleaner.rb | Ruby | mit | 404 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Aureus Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef AUREUS_UINT256_H
#define AUREUS_UINT256_H
#include <assert.h>
#include <cstring>
#include <stdexcept>
#include <stdint.h>
#include <string>
#include <vector>
#include "crypto/common.h"
/** Template base class for fixed-sized opaque blobs. */
template<unsigned int BITS>
class base_blob
{
protected:
enum { WIDTH=BITS/8 };
uint8_t data[WIDTH];
public:
base_blob()
{
memset(data, 0, sizeof(data));
}
explicit base_blob(const std::vector<unsigned char>& vch);
bool IsNull() const
{
for (int i = 0; i < WIDTH; i++)
if (data[i] != 0)
return false;
return true;
}
void SetNull()
{
memset(data, 0, sizeof(data));
}
friend inline bool operator==(const base_blob& a, const base_blob& b) { return memcmp(a.data, b.data, sizeof(a.data)) == 0; }
friend inline bool operator!=(const base_blob& a, const base_blob& b) { return memcmp(a.data, b.data, sizeof(a.data)) != 0; }
friend inline bool operator<(const base_blob& a, const base_blob& b) { return memcmp(a.data, b.data, sizeof(a.data)) < 0; }
std::string GetHex() const;
void SetHex(const char* psz);
void SetHex(const std::string& str);
std::string ToString() const;
unsigned char* begin()
{
return &data[0];
}
unsigned char* end()
{
return &data[WIDTH];
}
const unsigned char* begin() const
{
return &data[0];
}
const unsigned char* end() const
{
return &data[WIDTH];
}
unsigned int size() const
{
return sizeof(data);
}
unsigned int GetSerializeSize(int nType, int nVersion) const
{
return sizeof(data);
}
template<typename Stream>
void Serialize(Stream& s, int nType, int nVersion) const
{
s.write((char*)data, sizeof(data));
}
template<typename Stream>
void Unserialize(Stream& s, int nType, int nVersion)
{
s.read((char*)data, sizeof(data));
}
};
/** 160-bit opaque blob.
* @note This type is called uint160 for historical reasons only. It is an opaque
* blob of 160 bits and has no integer operations.
*/
class uint160 : public base_blob<160> {
public:
uint160() {}
uint160(const base_blob<160>& b) : base_blob<160>(b) {}
explicit uint160(const std::vector<unsigned char>& vch) : base_blob<160>(vch) {}
};
/** 256-bit opaque blob.
* @note This type is called uint256 for historical reasons only. It is an
* opaque blob of 256 bits and has no integer operations. Use arith_uint256 if
* those are required.
*/
class uint256 : public base_blob<256> {
public:
uint256() {}
uint256(const base_blob<256>& b) : base_blob<256>(b) {}
explicit uint256(const std::vector<unsigned char>& vch) : base_blob<256>(vch) {}
/** A cheap hash function that just returns 64 bits from the result, it can be
* used when the contents are considered uniformly random. It is not appropriate
* when the value can easily be influenced from outside as e.g. a network adversary could
* provide values to trigger worst-case behavior.
*/
uint64_t GetCheapHash() const
{
return ReadLE64(data);
}
/** A more secure, salted hash function.
* @note This hash is not stable between little and big endian.
*/
uint64_t GetHash(const uint256& salt) const;
};
/* uint256 from const char *.
* This is a separate function because the constructor uint256(const char*) can result
* in dangerously catching uint256(0).
*/
inline uint256 uint256S(const char *str)
{
uint256 rv;
rv.SetHex(str);
return rv;
}
/* uint256 from std::string.
* This is a separate function because the constructor uint256(const std::string &str) can result
* in dangerously catching uint256(0) via std::string(const char*).
*/
inline uint256 uint256S(const std::string& str)
{
uint256 rv;
rv.SetHex(str);
return rv;
}
#endif // AUREUS_UINT256_H
| hideoussquid/aureus-12-bitcore | src/uint256.h | C | mit | 4,215 |
<?php
namespace Kunstmaan\MediaBundle\Command;
use ImagickException;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class CreatePdfPreviewCommand extends ContainerAwareCommand
{
public function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln('Creating PDF preview images...');
$pdfTransformer = $this->getContainer()->get('kunstmaan_media.pdf_transformer');
$webPath = realpath($this->getContainer()->get('kernel')->getRootDir().'/../web').DIRECTORY_SEPARATOR;
/**
* @var EntityManager
*/
$em = $this->getContainer()->get('doctrine.orm.entity_manager');
$medias = $em->getRepository('KunstmaanMediaBundle:Media')->findBy(
['contentType' => 'application/pdf', 'deleted' => false]
);
/** @var Media $media */
foreach ($medias as $media) {
try {
$pdfTransformer->apply($webPath.$media->getUrl());
} catch (ImagickException $e) {
$output->writeln('<comment>'.$e->getMessage().'</comment>');
}
}
$output->writeln('<info>PDF preview images have been created.</info>');
}
/**
* Checks whether the command is enabled or not in the current environment.
*
* Override this to check for x or y and return false if the command can not
* run properly under the current conditions.
*
* @return bool
*/
public function isEnabled()
{
return $this->getContainer()->getParameter('kunstmaan_media.enable_pdf_preview');
}
protected function configure()
{
parent::configure();
$this
->setName('kuma:media:create-pdf-previews')
->setDescription('Create preview images for PDFs that have already been uploaded')
->setHelp(
'The <info>kuma:media:create-pdf-previews</info> command can be used to create preview images for PDFs that have already been uploaded.'
);
}
}
| hgabka/KunstmaanBundlesCMS | src/Kunstmaan/MediaBundle/Command/CreatePdfPreviewCommand.php | PHP | mit | 2,153 |
class GalleriesController < ApplicationController
load_and_authorize_resource
before_action :set_gallery, only: [:show, :edit, :update, :destroy]
# GET /galleries
# GET /galleries.json
def index
if admin?
# load all galleries for manage overview
@q = Gallery.search(params[:q])
@galleries = @q.result(distinct: true).paginate(page: params[:page], per_page: 10).order(date: :desc)
@owners = User.includes(:role).where('roles.name' => 'admin')
render 'manage'
else
# allow user only to see permitted galleries
@galleries = current_user.permitted_galleries
end
end
# GET /galleries/1
# GET /galleries/1.json
def show
end
# GET /galleries/new
def new
@gallery = Gallery.new
end
# GET /galleries/1/edit
def edit
case params[:tab]
when 'images'
case @gallery.type
when 'PicasaGallery'
repo = PicasaWebAlbums.get_repository(ENV['PICASA_GOOGLE_USER'], ENV['PICASA_GOOGLE_PASSWORD'])
@albums = repo.get_all_albums
render 'edit_picasa'
when 'SelfHostedGallery'
@image = Image.new
render 'edit_images'
end
when 'permissions'
render 'edit_permissions'
when 'preview'
render 'preview'
when 'general'
render 'edit' #this action
else
redirect_to edit_gallery_path(@gallery, tab: 'general')
end
end
# POST /galleries
# POST /galleries.json
def create
@gallery = Gallery.new(gallery_params)
@gallery.owner = current_user
respond_to do |format|
if @gallery.save
format.html { redirect_to edit_gallery_path(@gallery, tab: :images), notice: t('gallery.created') }
format.json { render action: 'show', status: :created, location: @gallery }
else
format.html { render action: 'new' }
format.json { render json: @gallery.errors, status: :unprocessable_entity }
end
end
end
# PATCH/PUT /galleries/1
# PATCH/PUT /galleries/1.json
def update
respond_to do |format|
if @gallery.update(gallery_params)
format.html { redirect_to edit_gallery_path(@gallery), notice: t('gallery.updated') }
format.json { head :no_content }
else
format.html { render action: 'edit' }
format.json { render json: @gallery.errors, status: :unprocessable_entity }
end
end
end
# DELETE /galleries/1
# DELETE /galleries/1.json
def destroy
@gallery.destroy
respond_to do |format|
format.html { redirect_to galleries_url }
format.json { head :no_content }
end
end
private
# Use callbacks to share common setup or constraints between actions.
def set_gallery
@gallery = Gallery.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def gallery_params
params.require(:gallery).permit(:name, :date, :photographer, :key, :type, :published, :picasa_webalbum_id)
end
end
| taufderl/pb-gallery | app/controllers/galleries_controller.rb | Ruby | mit | 2,990 |
cmdfu(){ curl "http://www.commandlinefu.com/commands/matching/$@/$(echo -n $@ | openssl base64)/plaintext"; }
man2pdf(){ man -t $1 | open -f -a preview; }
biggest(){ du -sk ./* | sort -n | awk 'BEGIN{ pref[1]="K"; pref[2]="M"; pref[3]="G";} { total = total + $1; x = $1; y = 1; while( x > 1024 ) { x = (x + 1023)/1024; y++; } printf("%g%s\t%s\n",int(x*10)/10,pref[y],$2); } END { y = 1; while( total > 1024 ) { total = (total + 1023)/1024; y++; } printf("Total: %g%s\n",int(total*10)/10,pref[y]); }'; }
showtree(){ find $1 -type d -print 2>/dev/null|awk '!/\.$/ {for (i=1;i<NF;i++){d=length($i);if ( d < 5 && i != 1 )d=5;printf("%"d"s","|")}print "---"$NF}' FS='/'; }
hasip(){ dig -x $1 @224.0.0.251 -p 5353 +short; }
getCert() {
if test -n "$1"
then ip=$1
else
echo "no IP given" && return 1
fi
if test -n "$2"
then port=$2
else
echo "no port given, asuming 443" && port=443
fi
echo -n | openssl s_client -connect $ip:$port | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' 2>/dev/null
}
### Bitcoin Stuff ###
kolacoins(){
coins=$(curl http://www.bitcoincharts.com/markets/currencies/ 2> /dev/null | grep -A 1 EUR | grep -o "[0-9]*\.[0-9]*")
mate=0.66
current_price=$(bc <<< "scale=8;$mate/$coins")
echo "Current Bitcoin Price: 0$current_price"
qrencode -o ~/Desktop/kolacoins.png "bitcoin:1HG34qznjurDFe2V2wCEvQk7tK2oiHnrF5?amount=0$current_price&label=Trinkpost&message=Mate-Kola"
echo "URL: bitcoin:1HG34qznjurDFe2V2wCEvQk7tK2oiHnrF5?amount=0$current_price&label=Trinkpost&message=Mate-Kola"; }
bitcoins(){
coins=$(curl http://www.bitcoincharts.com/markets/currencies/ 2> /dev/null | grep -A 1 EUR | grep -o "[0-9]*\.[0-9]*")
kohlen=$1
test -z "$kohlen" && kohlen=1
current_coins=$(bc <<< "scale=8;$kohlen / $coins")
current_euros=$(bc <<< "scale=8;$kohlen * $coins")
echo "$kohlen Bitcoin is $current_euros €"
echo "$kohlen € are $current_coins Bitcoins"; }
btc_sell () {
echo EUR
for url in http://bitcoincharts.com/markets/mtgoxEUR.html http://bitcoincharts.com/markets/btcdeEUR.html http://bitcoincharts.com/markets/vcxEUR.html http://www.bitcoincharts.com/markets/localbtcEUR.html http://www.bitcoincharts.com/markets/btceEUR.html http://www.bitcoincharts.com/markets/bitcurexEUR.html
do symbol=${url/*.*\//}
echo $(curl $url 2>/dev/null | grep "Best Bid" | sed 's|\<p\>\<label\>Best Bid\<\/label\>\<span\>\(.*\)\</span></p>|\1|g') ${symbol/.html/}
done | sort -nr
}
btc_buy () {
echo EUR
for url in http://bitcoincharts.com/markets/mtgoxEUR.html http://bitcoincharts.com/markets/btcdeEUR.html http://bitcoincharts.com/markets/vcxEUR.html http://www.bitcoincharts.com/markets/localbtcEUR.html http://www.bitcoincharts.com/markets/btceEUR.html http://www.bitcoincharts.com/markets/bitcurexEUR.html
do symbol=${url/*.*\//}
echo $(curl $url 2>/dev/null | grep "Best Ask" | sed 's|\<p\>\<label\>Best Ask\<\/label\>\<span\>\(.*\)\</span></p>|\1|g') ${symbol/.html/}
done | sort -n
}
btc_markets () {
echo EUR
for url in http://bitcoincharts.com/markets/mtgoxEUR.html http://bitcoincharts.com/markets/btcdeEUR.html http://bitcoincharts.com/markets/vcxEUR.html http://bitcoincharts.com/markets/btceEUR.html http://bitcoincharts.com/markets/bitcurexEUR.html
do symbol=${url/*.*\//}
echo $(curl $url 2>/dev/null | grep "Last Trade" | sed 's|\<p\>\<label\>Last Trade\<\/label\>\<span\>\(.*\)\</span></p>|\1|g') ${symbol/.html/}
done | sort -n
echo USD
for url in http://bitcoincharts.com/markets/mtgoxUSD.html http://bitcoincharts.com/markets/bitstampUSD.html http://bitcoincharts.com/markets/vcxUSD.html http://bitcoincharts.com/markets/btceUSD.html
do symbol=${url/*.*\//}
echo $(curl $url 2>/dev/null | grep "Last Trade" | sed 's|\<p\>\<label\>Last Trade\<\/label\>\<span\>\(.*\)\</span></p>|\1|g') ${symbol/.html/}
done | sort -n
}
| peshay/misc | functions.zsh | Shell | mit | 3,946 |
<!DOCTYPE html>
<html class="no-js" lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing.">
<title tabindex="1">examples | p5.js</title>
<link rel="stylesheet" href="/assets/css/all.css?v=4c8161">
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="/../../assets/img/favicon.ico">
<link rel="icon" href="/../../assets/img/favicon.ico">
<script src="/../../assets/js/vendor/jquery-1.12.4.min.js"></script>
<script src="/../../assets/js/vendor/ace-nc/ace.js"></script>
<script src="/../../assets/js/vendor/ace-nc/mode-javascript.js"></script>
<script src="/../../assets/js/vendor/prism.js"></script>
<script src="/assets/js/init.js?v=97b4f7"></script>
</head>
<body>
<a href="#content" class="sr-only">Ir al contenido</a>
<!-- p5*js language buttons -->
<div id="i18n-btn">
<h2 id="i18n-settings" class="sr-only">Preferencias de idioma</h2>
<ul id="i18n-buttons" aria-labelledby="i18n-settings">
<li><a href='#' lang='en' data-lang='en'>English</a></li>
<li><a href='#' lang='es' data-lang='es'>Español</a></li>
<li><a href='#' lang='zh-Hans' data-lang='zh-Hans'>简体中文</a></li>
<li><a href='#' lang='ko' data-lang='ko'>한국어</a></li>
<li><a href='#' lang='hi' data-lang='hi'>हिन्दी</a></li>
</ul>
</div> <!-- .container -->
<div class="container">
<!-- logo -->
<header id="lockup">
<a href="/es/">
<img src="/../../assets/img/p5js.svg" alt="p5 homepage" id="logo_image" class="logo" />
<div id="p5_logo"></div>
</a>
</header>
<!-- close logo -->
<div id="examples-page">
<!-- site navigation -->
<div class="column-span">
<nav class="sidebar-menu-nav-element">
<h2 id="menu-title" class="sr-only">Navegación del sitio</h2>
<input class="sidebar-menu-btn" type="checkbox" id="sidebar-menu-btn" />
<label class="sidebar-menu-icon" for="sidebar-menu-btn"><span class="sidebar-nav-icon"></span></label>
<ul id="menu" class="sidebar-menu" aria-labelledby="menu-title">
<li><a href="/es/">Inicio</a></li>
<li><a href="https://editor.p5js.org">Editor</a></li>
<li><a href="/es/download/">Descargar</a></li>
<li><a href="/es/download/support.html">Donar</a></li>
<li><a href="/es/get-started/">Empezar</a></li>
<li><a href="/es/reference/">Referencia</a></li>
<li><a href="/es/libraries/">Bibliotecas</a></li>
<li><a href="/es/learn/">Aprender</a></li>
<li><a href="/es/teach/">Enseñar</a></li>
<li><a href="/es/examples/">Ejemplos</a></li>
<li><a href="/es/books/">Libros</a></li>
<li><a href="/es/community/">Comunidad</a></li>
<li><a href="https://showcase.p5js.org">Showcase</a></li>
<li><a href="https://discourse.processing.org/c/p5js" target=_blank class="other-link">Foro</a></li>
<li><a href="http://github.com/processing/p5.js" target=_blank class="other-link">GitHub</a></li>
<li><a href="http://twitter.com/p5xjs" target=_blank class="other-link">Twitter</a></li>
<li><a href="https://www.instagram.com/p5xjs/" target=_blank class="other-link">Instagram</a></li>
<li><a href="https://discord.gg/SHQ8dH25r9" target=_blank class="other-link">Discord</a></li>
</ul>
</nav>
</div>
<div class="column-span">
<main id="content" >
<p id="backlink"><a href="./">< Volver a Ejemplos</a></p>
<h1 id='example-name'>example name placeholder</h1>
<p id='example-desc'>example description placeholder</p>
<div id="exampleDisplay">
<div class="edit_space">
<button id="toggleTextOutput" class="sr-only">toggle text output</button>
<button id="runButton" class="edit_button">run</button>
<button id="resetButton" class="reset_button">reset</button>
<button id="copyButton" class="copy_button">copy</button>
</div>
<div id="exampleEditor"></div>
<iframe id="exampleFrame" src="../../assets/examples/example.html" aria-label="example arialabel placeholder" ></iframe>
</div>
<p><a style="border-bottom:none !important;" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target=_blank><img src="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png" alt="creative commons license" style="width:88px"/></a></p>
</main>
<footer>
<h2 class="sr-only">Créditos</h2>
<p>
p5.js está actualmente dirigido por <a href='http://qianqian-ye.com/' target="_blank">Qianqian Ye</a> y <a href='http://www.outofambit.com/' target="_blank">evelyn masso</a> y fue creado por <a href='https://lauren-mccarthy.com' target="_blank">Lauren Lee McCarthy</a>. p5.js es desarrollado por una comunidad de colaboradores, con el apoyo de <a href="https://processingfoundation.org/" target="_blank">Processing Foundation</a> y <a href="https://itp.nyu.edu/itp/" target="_blank">NYU ITP</a>. Identidad y diseño gráfico por <a href="https://jereljohnson.com/" target="_blank">Jerel Johnson</a>. <a href="/es/copyright.html">© Info</a>.
</p>
</footer>
</div> <!-- end column-span -->
<!-- outside of column for footer to go across both -->
<p class="clearfix"> </p>
<object type="image/svg+xml" data="../../assets/img/thick-asterisk-alone.svg" id="asterisk-design-element" aria-hidden="true">
</object>
<!-- <script src="../../assets/js/vendor/ace-nc/ace.js"></script>
<script src="../../assets/js/examples.js"></script> -->
<script>
window._p5jsExample = '../../assets/examples/es/33_Sound/05_Sound_Effect.js';
window.addEventListener('load', function() {
// examples.init('../../assets/examples/es/33_Sound/05_Sound_Effect.js');
if (false) {
var isMobile = window.matchMedia("only screen and (max-width: 767px)");
// isMobile is true if viewport is less than 768 pixels wide
document.getElementById('exampleFrame').style.display = 'none';
if (isMobile.matches) {
document.getElementById('notMobile-message').style.display = 'none';
document.getElementById('isMobile-displayButton').style.display = 'block';
} else {
document.getElementById('notMobile-message').style.display = 'block';
document.getElementById('isMobile-displayButton').style.display = 'none';
document.getElementById('runButton').style.display = 'none';
document.getElementById('resetButton').style.display = 'none';
document.getElementById('copyButton').style.display = 'none';
}
}
}, true);
</script>
</div><!-- end id="get-started-page" -->
<script src="/../../assets/js/examples.js"></script>
</div> <!-- close class='container'-->
<nav id="family" aria-labelledby="processing-sites-heading">
<h2 id="processing-sites-heading" class="sr-only">Processing Sister Sites</h2>
<ul id="processing-sites" aria-labelledby="processing-sites-heading">
<li><a href="https://processing.org">Processing</a></li>
<li><a class="here" href="/es/">p5.js</a></li>
<li><a href="https://py.processing.org/">Processing.py</a></li>
<li><a href="https://android.processing.org/">Processing for Android</a></li>
<li><a href="https://pi.processing.org/">Processing for Pi</a></li>
<li><a href="https://processingfoundation.org/">Processing Foundation</a></li>
</ul>
<a tabindex="1" href="#content" id="skip-to-content">Skip to main content</a>
</nav>
<script>
var langs = ["en","es","hi","ko","zh-Hans"];
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53383000-1', 'auto');
ga('send', 'pageview');
$(window).ready(function() {
if (window.location.pathname !== '/' && window.location.pathname !== '/index.html') {
$('#top').remove();
} else {
$('#top').show();
}
});
</script>
</body>
</html>
| mayaman26/p5js-website | es/examples/sound-sound-effect.html | HTML | mit | 8,840 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_05) on Sat Jul 12 19:54:12 EDT 2014 -->
<title>Uses of Class banking.model.Account</title>
<meta name="date" content="2014-07-12">
<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 banking.model.Account";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<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="../../../banking/model/Account.html" title="class in banking.model">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?banking/model/class-use/Account.html" target="_top">Frames</a></li>
<li><a href="Account.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class banking.model.Account" class="title">Uses of Class<br>banking.model.Account</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="../../../banking/model/Account.html" title="class in banking.model">Account</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="#banking.dao">banking.dao</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#banking.dao.mapimpl">banking.dao.mapimpl</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#banking.rest.resources">banking.rest.resources</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="banking.dao">
<!-- -->
</a>
<h3>Uses of <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> in <a href="../../../banking/dao/package-summary.html">banking.dao</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="../../../banking/dao/package-summary.html">banking.dao</a> that return <a href="../../../banking/model/Account.html" title="class in banking.model">Account</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="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#deleteAccount-banking.model.Account-">deleteAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#findAccountById-java.lang.Integer-">findAccountById</a></span>(java.lang.Integer id)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#saveAccount-banking.model.Account-">saveAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#updateAccount-banking.model.Account-">updateAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</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="../../../banking/dao/package-summary.html">banking.dao</a> that return types with arguments of type <a href="../../../banking/model/Account.html" title="class in banking.model">Account</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>java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#findAccounts--">findAccounts</a></span>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">CustomerDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/CustomerDao.html#findAccounts-banking.model.Customer-">findAccounts</a></span>(<a href="../../../banking/model/Customer.html" title="class in banking.model">Customer</a> customer)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#findAccountsByCustomer-banking.model.Customer-">findAccountsByCustomer</a></span>(<a href="../../../banking/model/Customer.html" title="class in banking.model">Customer</a> customer)</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="../../../banking/dao/package-summary.html">banking.dao</a> with parameters of type <a href="../../../banking/model/Account.html" title="class in banking.model">Account</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="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#deleteAccount-banking.model.Account-">deleteAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#saveAccount-banking.model.Account-">saveAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDao.</span><code><span class="memberNameLink"><a href="../../../banking/dao/AccountDao.html#updateAccount-banking.model.Account-">updateAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="banking.dao.mapimpl">
<!-- -->
</a>
<h3>Uses of <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> in <a href="../../../banking/dao/mapimpl/package-summary.html">banking.dao.mapimpl</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="../../../banking/dao/mapimpl/package-summary.html">banking.dao.mapimpl</a> that return <a href="../../../banking/model/Account.html" title="class in banking.model">Account</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="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#deleteAccount-banking.model.Account-">deleteAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#deleteAccountById-java.lang.Integer-">deleteAccountById</a></span>(java.lang.Integer id)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#findAccountById-java.lang.Integer-">findAccountById</a></span>(java.lang.Integer id)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#findAccountById-java.lang.Integer-">findAccountById</a></span>(java.lang.Integer id)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#saveAccount-banking.model.Account-">saveAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#saveAccount-banking.model.Account-">saveAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#updateAccount-banking.model.Account-">updateAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#updateAccount-banking.model.Account-">updateAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</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="../../../banking/dao/mapimpl/package-summary.html">banking.dao.mapimpl</a> that return types with arguments of type <a href="../../../banking/model/Account.html" title="class in banking.model">Account</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 java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#findAccountByCustomer-banking.model.Customer-">findAccountByCustomer</a></span>(<a href="../../../banking/model/Customer.html" title="class in banking.model">Customer</a> customer)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#findAccounts--">findAccounts</a></span>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">CustomerDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/CustomerDaoMapImpl.html#findAccounts-banking.model.Customer-">findAccounts</a></span>(<a href="../../../banking/model/Customer.html" title="class in banking.model">Customer</a> customer)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#findAccountsByCustomer-banking.model.Customer-">findAccountsByCustomer</a></span>(<a href="../../../banking/model/Customer.html" title="class in banking.model">Customer</a> customer)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.util.Collection<<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a>></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#findAllAccounts--">findAllAccounts</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="../../../banking/dao/mapimpl/package-summary.html">banking.dao.mapimpl</a> with parameters of type <a href="../../../banking/model/Account.html" title="class in banking.model">Account</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="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#deleteAccount-banking.model.Account-">deleteAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#saveAccount-banking.model.Account-">saveAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#saveAccount-banking.model.Account-">saveAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">BankingDatabaseMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/BankingDatabaseMapImpl.html#updateAccount-banking.model.Account-">updateAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../banking/model/Account.html" title="class in banking.model">Account</a></code></td>
<td class="colLast"><span class="typeNameLabel">AccountDaoMapImpl.</span><code><span class="memberNameLink"><a href="../../../banking/dao/mapimpl/AccountDaoMapImpl.html#updateAccount-banking.model.Account-">updateAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="banking.rest.resources">
<!-- -->
</a>
<h3>Uses of <a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> in <a href="../../../banking/rest/resources/package-summary.html">banking.rest.resources</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="../../../banking/rest/resources/package-summary.html">banking.rest.resources</a> with parameters of type <a href="../../../banking/model/Account.html" title="class in banking.model">Account</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>javax.ws.rs.core.Response</code></td>
<td class="colLast"><span class="typeNameLabel">AccountResource.</span><code><span class="memberNameLink"><a href="../../../banking/rest/resources/AccountResource.html#saveAccount-banking.model.Account-">saveAccount</a></span>(<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code>
<div class="block">Creates a new account.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>javax.ws.rs.core.Response</code></td>
<td class="colLast"><span class="typeNameLabel">AccountResource.</span><code><span class="memberNameLink"><a href="../../../banking/rest/resources/AccountResource.html#updateAccount-java.lang.Integer-banking.model.Account-">updateAccount</a></span>(java.lang.Integer id,
<a href="../../../banking/model/Account.html" title="class in banking.model">Account</a> account)</code>
<div class="block">Updates an account.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<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="../../../banking/model/Account.html" title="class in banking.model">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?banking/model/class-use/Account.html" target="_top">Frames</a></li>
<li><a href="Account.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| javaclinic/banking-jersey-app | src/main/webapp/docs/banking/model/class-use/Account.html | HTML | mit | 24,481 |
import { expect } from "chai";
import { createStore, applyMiddleware } from 'redux';
import Immutable from 'immutable';
import reducers from '../src/lib/reducers';
import * as Utils from '../src/lib/utils';
describe('utils', function () {
beforeEach(function () {
this.state = Immutable.fromJS([
{title: "alpha"},
{title: "beta", children: [
{title: "foo"},
{title: "bar", children: [
{title: "quux"},
{title: "xyzzy"}
]},
{title: "baz"}
]},
{title: "gamma"},
{title: "level1", children: [
{title: 'level2', children: [
{title: 'level3', children: [
{title: 'level4'}
]}
]}
]},
{title: 'thud'}
]);
this.store = createStore(reducers, {
nodes: this.state
});
this.expectedSeries = [
'0',
'1',
'1.children.0',
'1.children.1',
'1.children.1.children.0',
'1.children.1.children.1',
'1.children.2',
'2',
'3',
'3.children.0',
'3.children.0.children.0',
'3.children.0.children.0.children.0',
'4'
];
this.expectedSiblings = [
['0', '1', '2', '3', '4'],
['1.children.0', '1.children.1', '1.children.2'],
['1.children.1.children.0', '1.children.1.children.1'],
['3.children.0']
['3.children.0.children.0'],
['3.children.0.children.0.children.0'],
];
});
describe('splitPath', function () {
it('should split a dot-delimited path into a key array', function () {
expect(Utils.splitPath('1.children.1.children.2'))
.to.deep.equal(['1', 'children', '1', 'children', '2']);
})
})
describe('getNodeContext', function () {
it('should construct contextual information for a node path', function () {
var path = '1.children.1.children.0';
var expected = {
key: ['1', 'children', '1', 'children', '0'],
parentKey: ['1', 'children', '1'],
index: 0,
value: this.state.getIn(['1', 'children', '1', 'children', '0']),
siblings: this.state.getIn(['1', 'children', '1', 'children'])
};
var result = Utils.getNodeContext(this.state, path);
expect(result).to.deep.equal(expected);
})
});
function commonSiblingPathTest (inReverse, state, expectedSiblings) {
var traversal = inReverse ?
Utils.getPreviousSiblingPath :
Utils.getNextSiblingPath;
var siblingList;
while (siblingList = expectedSiblings.shift()) {
if (inReverse) { siblingList.reverse(); }
var current, expected, result;
current = siblingList.shift();
while (siblingList.length) {
expected = siblingList.shift();
result = traversal(state, current);
expect(result).to.equal(expected);
current = expected;
}
result = traversal(state, current);
expect(result).to.equal(null);
}
}
describe('getNextSiblingPath', function () {
it('should find the path to the next sibling', function () {
commonSiblingPathTest(false, this.state, this.expectedSiblings);
});
});
describe('getPreviousSiblingPath', function () {
it('should find the path to the previous sibling', function () {
commonSiblingPathTest(true, this.state, this.expectedSiblings);
});
});
function commonNodePathTest (inReverse, state, expectedSeries) {
var current, expected, result;
var traversal = (inReverse) ?
Utils.getPreviousNodePath : Utils.getNextNodePath;
if (inReverse) { expectedSeries.reverse(); }
current = expectedSeries.shift();
while (expectedSeries.length) {
expected = expectedSeries.shift();
result = traversal(state, current);
expect(result).to.equal(expected);
current = expected;
}
}
describe('getNextNodePath', function () {
it('should find the path to the next node', function () {
commonNodePathTest(false, this.state, this.expectedSeries);
})
it('should skip children of collapsed nodes', function () {
let state = this.state;
['1', '3.children.0'].forEach(path => {
state = state.updateIn(
path.split('.'),
n => n.set('collapsed', true));
});
commonNodePathTest(false, state,
['0', '1', '2', '3', '3.children.0', '4']);
});
});
describe('getPreviousNodePath', function () {
it('should find the path to the previous node', function () {
commonNodePathTest(true, this.state, this.expectedSeries);
});
it('should skip children of collapsed nodes', function () {
let state = this.state;
['1', '3.children.0'].forEach(path => {
state = state.updateIn(
path.split('.'),
n => n.set('collapsed', true));
});
commonNodePathTest(true, state,
['0', '1', '2', '3', '3.children.0', '4']);
});
});
});
| lmorchard/arboretum | test/test-utils.js | JavaScript | mit | 4,905 |
polyglot-utils
==============
https://github.com/rsp/polyglot-utils
| rsp/polyglot-utils | README.md | Markdown | mit | 70 |
---
layout: 2015_layout
title: Join us for SRCCON
subtitle: Two days of building better newsroom code, culture, and process—together.
eventdate: June 25 & 26 in Minneapolis
section: homepage
background: homepage
byline: Dustin Gaffke
bylineurl: https://www.flickr.com/photos/onepointfour/15434041227/
permalink: /index.html
---
<!--{% include schedulebutton.html %}-->
SRCCON is a two-day conference built around participatory, interactive sessions and focused on the challenges that news technology and data teams encounter every day. Expect delicious food, great coffee, and the chance to dig into hard questions with amazing people.
<ul class="homepage" style="margin-bottom:8em;">
<li class="left"><a href="http://schedule.srccon.org"><img src="/media/img/2015/session_dot.jpg"></a><h3><a href="http://schedule.srccon.org">Schedule</a></h3><p>Our peer-led sessions combine skillsharing, discussion, and collaboration. <a href="http://schedule.srccon.org">This year's full schedule is now up</a>. </p></li>
<li class="right"><a href="/logistics"><img src="/media/img/2015/location.jpg"></a><h3><a href="/logistics">Logistics</a></h3><p>In 2015, we meet in Minneapolis. <a href="/logistics">Book your hotel, register for free childcare, and get local info</a>. </p></li>
<li class="left"><a href="/docs"><img src="/media/img/2015/docs_dot.jpg" class="right"></a><h3><a href="/docs">Docs</a></h3><p>We build SRCCON in the open. Check out <a href="/docs">our documentation</a>.</p></li>
</ul>
## About SRCCON
SRCCON, launched in 2014 in Philadelphia and <a href="/logistics">returning in 2015 in Minneapolis</a>, is produced by <a href="http://opennews.org">Knight-Mozilla OpenNews</a>, an organization built to support the community of news developers, designers, and data reporters helping journalism thrive on the open web. (The "src" in SRCCON stands for "<a href="http://source.opennews.org">Source</a>," and we pronounce it "Source-con," though you can say it however you want.)
<a href="/sessions">Our sessions</a> focus on technical, design, editorial, and cultural topics within the news world, and we welcome participants from all fields who want to strengthen journalism online.
| sinker/srccon | homepage.md | Markdown | mit | 2,202 |
<?php
declare(strict_types=1);
namespace Funivan\PhpTokenizer;
use Funivan\PhpTokenizer\Query\QueryInterface;
/**
* Simple token finder
* You can pass query to search tokens in collection
*
* For example find all echo values
*
* ```
* $finder = new TokenFinder($collection)
* $items = $finder->find((new Query())->valueIs('echo'));
* ```
*/
class TokenFinder
{
/**
* @var Collection
*/
private $collection;
/**
* @param Collection $collection
*/
public function __construct(Collection $collection)
{
$this->collection = $collection;
}
/**
* @param QueryInterface $query
* @return Collection
*/
public function find(QueryInterface $query): Collection
{
$result = new Collection();
foreach ($this->collection as $token) {
if ($query->isValid($token)) {
$result[] = $token;
}
}
return $result;
}
} | funivan/PhpTokenizer | src/TokenFinder.php | PHP | mit | 969 |
function child() {
alert('child');
}
function parent() {
alert('parent');
}
function grandParent() {
alert('grand parent');
} | mwagg/stylo | features/fixtures/grand_parent_with_parent_with_child.js | JavaScript | mit | 139 |
<?php
namespace RdnUpload\View\Helper;
use RdnUpload\ContainerInterface;
use RdnUpload\ContainerObject\ObjectInterface;
use Zend\View\Helper\AbstractHelper;
/**
* Helper to render public path to uploaded files.
*/
class Uploads extends AbstractHelper
{
/**
* @var ContainerInterface
*/
protected $container;
public function __construct(ContainerInterface $container)
{
$this->container = $container;
}
/**
* @param string $id
*
* @return self|ObjectInterface
*/
public function __invoke($id = null)
{
if (func_num_args() == 0)
{
return $this;
}
return $this->get($id);
}
/**
* Get the upload container.
*
* @return ContainerInterface
*/
public function getContainer()
{
return $this->container;
}
/**
* @param string $id
*
* @return ObjectInterface
*/
public function get($id)
{
return $this->container->get($id);
}
/**
* @param string $id
*
* @return boolean
*/
public function has($id)
{
return $this->container->has($id);
}
}
| radnan/rdn-upload | src/RdnUpload/View/Helper/Uploads.php | PHP | mit | 1,016 |
<?php
namespace Nozifel\UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Validator\Constraints as Assert;
use Nozifel\UserBundle\Validator\ForgotPasswordConstraint;
class ForgotPasswordType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('email', TextType::class, array(
'required' => true,
'label' => 'nozifel.forgotpassword.request.email',
'constraints' => array(
new Assert\NotBlank(),
new ForgotPasswordConstraint
)
) );
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => null,
));
}
} | Nozifel/UserBundle | Form/ForgotPasswordType.php | PHP | mit | 1,147 |
# frozen_string_literal: true
RSpec.describe "ferver" do
let(:ferver_directory) { double("Ferver::FerverDirectory", path: "/", full_path: "/path/to/files", found_files: []) }
before do
Ferver.configure do |conf|
conf.directory = ferver_directory
end
end
context "given a request to the server root" do
before do
get "/"
end
it "should return redirect" do
expect(last_response).to be_redirect
end
it "should redirect to file list" do
follow_redirect!
expect(last_response).to be_ok
expect(last_request.url).to match(/files/)
end
end
describe "configuration error" do
context "when directory does not exist" do
before do
allow(ferver_directory).to receive(:found_files).and_raise(Ferver::DirectoryNotFoundError)
end
it "will return server error status" do
get "/files"
expect(last_response.status).to eql 500
end
end
end
context "given an empty list of files" do
before do
allow(ferver_directory).to receive(:found_files).and_return(EMPTY_FILE_LIST)
end
context "when no content-type is requested" do
before { get "/files" }
it "should return valid response" do
expect(last_response).to be_ok
end
it "should contain no file list in response content" do
expect(last_response.body).not_to have_tag("li")
expect(last_response.body).to have_tag("p", text: /0 files/)
end
end
context "when json content-type is requested" do
before do
get "/files", {}, "HTTP_ACCEPT" => "application/json"
end
it "should return valid response" do
expect(last_response).to be_ok
expect(last_response.content_type).to include("application/json")
end
it "should contain no file list in response content" do
list = JSON.parse last_response.body
expect(list).to eq(EMPTY_FILE_LIST)
end
end
end
context "given a list of files" do
let(:file_1) { double("file", name: "file1") }
let(:file_2) { double("file", name: "file2") }
before do
allow(ferver_directory).to receive(:found_files).and_return([file_1, file_2])
end
describe "file list request" do
context "when no content-type is requested" do
before { get "/files" }
it "should return valid response" do
expect(last_response).to be_ok
end
it "should contain no file list in response content" do
expect(last_response.body).to have_tag("li", count: 2)
expect(last_response.body).to have_tag("p", text: /2 files/)
end
it "should list filenames" do
expect(last_response.body).to have_tag("li") do
with_tag("a", text: "file1")
with_tag("a", text: "file2")
end
end
end
context "when json content-type is requested" do
before do
get "/files", {}, "HTTP_ACCEPT" => "application/json"
end
it "should return valid response" do
expect(last_response).to be_ok
expect(last_response.content_type).to include("application/json")
end
it "should contain no file list in response content" do
list = JSON.parse last_response.body
expect(list.count).to eq(2)
expect(list).to match_array([file_1.name, file_2.name])
end
end
end
describe "downloading a file" do
context "when requesting a file out of range" do
before do
get "/files/3"
end
it "should return not_found" do
expect(last_response).to be_not_found
end
end
context "when requesting invalid file id" do
before { get "/files/foo" }
it "should return not_found" do
expect(last_response).to be_bad_request
end
end
context "when requesting a valid file id" do
before { get "/files/0" }
xit "should return ok response" do
expect(last_response).to be_ok
end
xit "should return octet-stream content-type" do
expect(last_response.headers["Content-Type"]).to eq("application/octet-stream")
end
end
end
end
end
| rob-murray/ferver | spec/ferver_spec.rb | Ruby | mit | 4,278 |
//
// 268.cpp
// LeetCode
//
// Created by Narikbi on 25.02.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <cmath>
#include <numeric>
using namespace std;
int missingNumber(vector<int>& nums) {
int res = nums.size();
for (int i = 0; i < nums.size(); i++) {
res ^= i;
res ^= nums[i];
}
return res;
}
//int main(int argc, const char * argv[]) {
//
// vector<int> v = {0, 1, 2, 3, 4, 5, 7};
// cout << missingNumber(v);
//
// return 0;
//}
| narikbi/LeetCode | source/268.cpp | C++ | mit | 713 |
# deep-objects
Provides functions to get, set or delete deep object properties using dot notation.
## Installation
```bash
$ npm install deep-objects
```
## Usage
```javascript
var o = require('deep-objects');
o.getProperty({ a: { b: ['foo', 'bar'] }}, 'a.b.0');
// 'foo'
o.hasProperty({ a: { b: ['foo', 'bar'] }}, 'a.b.0');
// true
o.hasProperty({ a: { b: ['foo', 'bar'] }}, 'a.c');
// false
o.setProperty({ a: 'foo' }, 'b.c', 'bar');
// { a: 'foo', b: { c: 'bar' }}
o.deleteProperty({ a: 'foo', b: { c: 'bar' }}, 'b.c');
// { a: 'foo', b: {}}
```
## Version
The current version is 1.0.0
## Tests
```bash
$ npm install
$ npm test
```
## License
[MIT](LICENSE) | ceresith/deep-objects | README.md | Markdown | mit | 676 |
package dmserver
import (
"auth"
"colorlog"
"conf"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"strconv"
"time"
"utils"
"regexp"
"os/exec"
)
var config conf.Cnf
var serverSaved = make(map[int]*ServerLocal, 0)
var servers = make(map[int]*ServerRun, 0)
var requestHandlers = make(map[string]*[]func([]byte) []byte,0)
func connErrorToExit(errorInfo string, c net.Conn) {
res, _ := json.Marshal(Response{-1, errorInfo})
c.Write(res)
c.Close()
}
// 保存服务器信息
func saveServerInfo() error {
b, err := json.Marshal(serverSaved)
if err != nil {
return err
}
ioutil.WriteFile(config.ServerManager.Servers, b, 0664)
return nil
}
// 处理本地命令
func handleConnection(c net.Conn) {
buf := make([]byte, config.DaemonServer.DefaultBufLength)
length, _ := c.Read(buf)
request := InterfaceRequest{}
err := json.Unmarshal(buf[:length], &request)
if err != nil {
connErrorToExit(err.Error(), c)
}
if request.Auth == config.DaemonServer.VerifyCode {
res, _ := json.Marshal(handleRequest(request.Req))
c.Write(res)
c.Close()
} else {
connErrorToExit("No command or Auth error.", c)
}
}
// 命令处理器
func handleRequest(request Request) Response {
// Received ? Who cares?
colorlog.PointPrint("Received " + colorlog.ColorSprint(request.Method, colorlog.FR_GREEN) + " Command!")
if functions,ok := requestHandlers[request.Method];ok {
colorlog.LogPrint("Calling plugin functions")
for _,function := range *functions{
resp := Response{}
b,_ := json.Marshal(request)
err := json.Unmarshal(function(b),&resp)
if err != nil {
colorlog.ErrorPrint("dmserver.handle during unmarshall json : ",err)
return Response{-1,"Plugin override error."}
}
return resp
}
}
switch request.Method {
case "List":
return outputListOfServers()
case "Create":
if _, ok := serverSaved[request.OperateID]; ok {
return Response{-1, "Server id: " + strconv.Itoa(request.OperateID) + "has been token"}
}
serverSaved[request.OperateID] = &ServerLocal{
ID: request.OperateID,
Name: request.Message,
Executable: "",
Status: 0,
MaxCpuUtilizatioRate: 1,
MaxMem: 1024,
MaxHardDiskCapacity: 0,
MaxHardDiskReadSpeed: 50,
MaxHardDiskWriteSpeed: 50,
MaxUnusedUpBandwidth: 100,
MaxUsingUpBandwidth: 100,
Expire: time.Now().Unix() + 3600,
}
// 序列化b来储存。
b, err := json.MarshalIndent(serverSaved, "", "\t")
// 新创建的服务器写入data文件
err2 := ioutil.WriteFile(config.ServerManager.Servers, b, 0666)
if err2 != nil {
return Response{
-1,
err2.Error(),
}
}
if err != nil {
return Response{
-1,
err.Error(),
}
}
return Response{
0,
"OK",
}
serverSaved[0].MaxMem = 1
case "Delete":
if _, ok := serverSaved[request.OperateID]; ok {
serverSaved[request.OperateID].Delete()
} else {
return Response{-1, "Invalid server id."}
}
return Response{0, "OK"}
case "Start":
// 运行这个服务器
if server, ok := serverSaved[request.OperateID]; ok {
if server.Status != SERVER_STATUS_CLOSED {
return Response{-1, "Server Running or staring"}
}
if server.MaxHardDiskCapacity == 0 {
return Response{-1, "Please set MaxHardDiskCapacity!"}
}
err := server.Start()
if err == nil {
return Response{
0, "OK",
}
} else {
return Response{-1, err.Error()}
}
} else {
return Response{-1, "Invalid server id."}
}
case "Stop":
colorlog.LogPrint("Stop command sent.")
if server, ok := servers[request.OperateID]; ok {
server.Close()
} else {
return Response{-1, "Invalid server id"}
}
return Response{0, "OK"}
case "ExecInstall":
colorlog.LogPrint("Try to auto install " + request.Message)
conn, err := http.Get( "http://vae.fg.mcpe.cc/exec?name=" + request.Message + "&arch=" + getArch())
if err != nil {
return Response{-1, err.Error()}
}
defer conn.Body.Close()
respData, err := ioutil.ReadAll(conn.Body)
if err != nil {
fmt.Println("Read body error")
return Response{-1, err.Error()}
}
var resp Response
err = json.Unmarshal(respData, &config)
if err != nil {
fmt.Println("Json Unmarshal error!")
return Response{-1, err.Error()}
}
if resp.Status != 0 {
return Response{-1, "return error:" + resp.Message}
}
var config ExecInstallConfig
err = json.Unmarshal([]byte(resp.Message),&config)
// 解析成功且没有错误
go install(config)
return Response{0, "OK,installing"}
case "SetServerConfig":
var elements []ServerAttrElement
err := json.Unmarshal([]byte(request.Message), &elements)
if err != nil {
return Response{-1, "Json decoding error:" + err.Error()}
}
nums, err2 := setServerConfigAll(elements, request.OperateID)
if err2 != nil {
return Response{-1, err2.Error()}
}
return Response{0, fmt.Sprintf("OK,Setted %d element(s)", nums)}
case "InputLineToServer":
// 此方法将一行指令输入至服务端
if server, ok := servers[request.OperateID]; ok {
err := server.inputLine(request.Message)
if err != nil {
return Response{-1, err.Error()}
} else {
return Response{0, "Send OK"}
}
} else {
return Response{-1, "Invalid Server id"}
}
case "GetServerPlayers":
if server, ok := servers[request.OperateID]; ok {
b, _ := json.Marshal(server.Players)
return Response{-1, fmt.Sprintf("%s", b)}
} else {
return Response{-1, "Invalid server id"}
}
case "KeyRegister":
auth.KeyRegister(request.Message, request.OperateID)
return Response{0, "OK"}
case "GetServerDir":
if server, ok := serverSaved[request.OperateID]; ok {
if validateOperateDir("../servers/server"+strconv.Itoa(server.ID)+"/serverData/", request.Message) {
infos, err := ioutil.ReadDir("../servers/server" + strconv.Itoa(server.ID) + "/serverData/" + request.Message)
if err != nil {
colorlog.ErrorPrint("Server Reading dir: ID:" + strconv.Itoa(server.ID) ,err)
return Response{-1, "Reading Dir :" + err.Error()}
}
b, _ := json.Marshal(buildServerInfos(infos))
return Response{0, string(b)}
} else {
return Response{-1, "Permission denied."}
}
}
return Response{-1, "Invalid server id"}
case "DeleteServerFile":
if server, ok := serverSaved[request.OperateID]; ok {
if validateOperateDir("../servers/server"+strconv.Itoa(server.ID)+"/serverData/", request.Message) {
err := os.RemoveAll("../servers/server" + strconv.Itoa(server.ID) + "/serverData/" + request.Message)
if err != nil {
colorlog.ErrorPrint("Server Reading dir error: ID:" + strconv.Itoa(server.ID) ,err)
return Response{-1, "Reading Dir :" + err.Error()}
}
return Response{0, "Deleted dir."}
} else {
return Response{-1, "Permission denied."}
}
}
case "GetExecList":
info,err := ioutil.ReadDir("../exec")
if err != nil {
colorlog.ErrorPrint("read exec path",err)
return Response{-1,"Reading dir :" + err.Error()}
}
result := make([]string,0)
for _,v := range info {
s := v.Name()
cstr := utils.CString(s)
if !v.IsDir() && cstr.Contains(".json"){
result = append(result,regexp.MustCompile("\\.json$").ReplaceAllString(v.Name(),""))
}
}
lang, err := json.Marshal(result)
if err == nil {
return Response{0, string(lang)}
}else{
fmt.Println("Json Unmarshal error!")
return Response{-1, err.Error()}
}
}
return Response{
-1, "Unexpected err",
}
}
func setServerConfigAll(attrs []ServerAttrElement, index int) (int, error) {
res := 0
// 设置该设置的Attrs
if server, ok := serverSaved[index]; ok {
// 判断被设置那个服务器是否存在于映射
for i := 0; i < len(attrs); i++ {
colorlog.LogPrint("Attempt to set " + colorlog.ColorSprint(attrs[i].AttrName, colorlog.FR_CYAN) + "=" + colorlog.ColorSprint(attrs[i].AttrValue, colorlog.FR_GREEN) + " to server" + strconv.Itoa(index))
switch attrs[i].AttrName {
case "MaxCpuRate":
rate, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.MaxCpuUtilizatioRate = rate
case "MaxMem":
mem, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.MaxMem = mem
case "Executable":
server.Executable = attrs[i].AttrValue
case "MaxHardDiskCapacity":
disk, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.MaxHardDiskCapacity = disk
case "Name":
server.Name = attrs[i].AttrValue
case "Expire":
expire, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.Expire = server.Expire + int64(expire) - 3600
case "MaxHardDiskWriteSpeed":
speed, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.MaxHardDiskWriteSpeed = speed
case "MaxHardDiskReadSpeed":
speed, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.MaxHardDiskReadSpeed = speed
case "MaxUnusedUpBandwidth":
width, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.MaxUnusedUpBandwidth = width
case "MaxUsingUpBandwidth":
width, err := strconv.Atoi(attrs[i].AttrValue)
if err != nil {
return -1, err
}
server.MaxUsingUpBandwidth = width
default:
colorlog.WarningPrint("Attr " + colorlog.ColorSprint(attrs[i].AttrName, colorlog.FR_RED) + " not found or cannot be set.")
}
res++
}
server.networkFlush()
server.performanceFlush()
return res, nil
}
return -1, errors.New("Err with invalid server id.")
}
func outputListOfServers() Response {
b, _ := json.Marshal(serverSaved)
return Response{0, string(b)}
}
func getArch() string {
cmd := exec.Command("uname","-a")
out,err := cmd.CombinedOutput()
if err != nil {
colorlog.ErrorPrint("run [uname -a]",err)
utils.OutputErrReason(out)
}
cstr := utils.CString(string(out))
if cstr.Contains("86_64"){
return "64"
} else {
return "32"
}
} | Rubiginosu/FrozenDaemon | daemon/src/dmserver/handle.go | GO | mit | 10,148 |
The MIT License (MIT)
Copyright (c) 2015 Katie McLaughlin
Permission is hereby granted, free of charge, to any person 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, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT 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.
| glasnt/ebooks | LICENSE.md | Markdown | mit | 1,084 |
<?php
namespace SleepingOwl\Admin\Widgets;
use Illuminate\Contracts\View\View;
use SleepingOwl\Admin\Contracts\Widgets\WidgetInterface;
abstract class Widget implements WidgetInterface
{
/**
* @var View
*/
protected $view;
/**
* @return bool
*/
public function active()
{
return true;
}
/**
* @return int
*/
public function position()
{
return 0;
}
/**
* @param View $view
*/
public function setInjectableView(View $view)
{
$this->view = $view;
}
/**
* @return array
*/
public function toArray()
{
return [
'block' => $this->block(),
'template' => $this->template(),
'html' => $this->toHtml(),
'position' => $this->position(),
];
}
}
| LaravelRUS/SleepingOwlAdmin | src/Widgets/Widget.php | PHP | mit | 853 |
class Stats
def self.debug(message)
puts(message) if ENV["DEBUG"]
end
def self.since(last_date)
message = "\n"
new_members = Membership.active.since(last_date);
groups = new_members.group_by(&:level);
plans = MembershipPlan.all.sort_by(&:amount);
plans.select{|plan| groups[plan.product_id.to_s] }.
map{|plan| [plan, groups[plan.product_id.to_s]] }.
each do |plan, group|
message << "#{group.size} new #{plan.product.shortname} #{"member".pluralize(group.size)}"
names = group.map{|m| [m.name, m.url].compact.join(" ") if m.name }.compact
message << " including\n - #{names.join("\n - ")}" if names.any?
message << "\n"
end
companies, people = new_members.partition(&:corporate?)
message << "\n"
message << "#{people.count} new #{"developer".pluralize(people.count)}\n"
message << "#{companies.count} new #{"company".pluralize(companies.count)}\n"
message << "#{new_members.size} new #{"member".pluralize(new_members.size)} total\n"
message << "\n"
counts = Membership.active.group(:level).count.map do |id, c|
[MembershipPlan.monthly(id), c]
end.to_h
corp, dev = counts.partition{|s,c| s.corporate? }
message << "#{corp.map(&:last).inject(:+)} #{"company".pluralize(companies.count)} ("
message << corp.sort_by{|s,c| -s.amount}.map{|s,c| "#{c} #{s.product.shortname}" }.join(", ")
message << ")\n"
message << "#{dev.map(&:last).inject(:+)} #{"developer".pluralize(people.count)} ("
message << dev.sort_by{|s,c| -s.amount}.map{|s,c| "#{c} #{s.product.shortname}" }.join(", ")
message << ")\n"
end
end
| rubytogether/rubytogether.org | app/lib/stats.rb | Ruby | mit | 1,656 |
package main
import (
"log"
"time"
"dwmb/comm"
"dwmb/display"
"dwmb/request"
"dwmb/rfid"
"dwmb/sound"
)
func quickMessage(messages chan<- *comm.DisplayMessage, text string) {
messages <- &comm.DisplayMessage{Message: text}
}
func processResponse(messages chan<- *comm.DisplayMessage, messageTimer *time.Timer, resp *request.Response) {
log.Printf("got response: %v\n", resp)
message := &comm.DisplayMessage{}
if resp.Message != "" && resp.Message != "ok" {
text, timeout := display.MakeMessage(resp)
messageTimer.Reset(timeout * time.Second)
message.Message = text
}
for i, slot := range resp.Slots {
switch slot {
case request.Free:
message.Lights[i] = comm.Green
case request.Occupied:
message.Lights[i] = comm.Yellow
case request.Alarm:
message.Lights[i] = comm.Red
default:
message.Lights[i] = comm.Off
}
}
messages <- message
return
}
func main() {
states, messages, err := comm.Init("/dev/ttyAMA0", 115200)
if err != nil {
log.Fatal(err)
}
tags, err := rfid.Init("/tmp/poop")
if err != nil {
log.Fatal(err)
}
server := request.NewServer("http://do:1234", "6x9=42")
state := &comm.State{Message: ""}
tag := &rfid.Tag{}
sound := sound.NewSound("./sounds")
messages <- &comm.DisplayMessage{Message: "hi!"}
messageTimer := time.NewTimer(3 * time.Second)
go func() {
for {
<-messageTimer.C
messages <- &comm.DisplayMessage{Message: "\a"}
}
}()
for {
select {
case state = <-states:
state.Snapshot = "/tmp/cam1/lastsnap.jpg"
resp, err := server.SendState(state)
if err != nil {
log.Print(err)
} else {
if resp.Message == "theft" {
sound.Play("alarm", true)
} else {
sound.Stop()
}
processResponse(messages, messageTimer, resp)
}
case tag = <-tags:
resp, err := server.SendTag(tag)
if err != nil {
quickMessage(messages, "error :(")
log.Print(err)
} else {
sound.Play("poop", false)
processResponse(messages, messageTimer, resp)
}
}
}
}
| qweqq/dwmb | pi_code/src/dwmb/test.go | GO | mit | 2,008 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>The Xavante Lua Web Server Manual</title>
<link rel="stylesheet" href="doc.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<div id="container">
<div id="product">
<div id="product_logo"><a href="http://www.keplerproject.org">
<img alt="Xavante logo" src="xavante.gif" width="128" height="128"/></a>
</div>
<div id="product_name"><big><strong>Xavante</strong></big></div>
<div id="product_description">A Lua Web Server with WSAPI support</div>
</div> <!-- id="product" -->
<div id="main">
<div id="navigation">
<h1>Xavante</h1>
<ul>
<li><a href="index.html">Home</a>
<ul>
<li><a href="index.html#over">Overview</a></li>
<li><a href="index.html#status">Status</a></li>
<li><a href="index.html#download">Download</a></li>
<li><a href="index.html#dependencies">Dependencies</a></li>
<li><a href="index.html#history">History</a></li>
<li><a href="index.html#credits">Credits</a></li>
<li><a href="index.html#contact">Contact us</a></li>
</ul>
</li>
<li><strong>Manual</strong>
<ul>
<li><a href="manual.html#install">Installing</a></li>
<li><a href="manual.html#config">Configuring</a></li>
<li><a href="manual.html#running">Running</a></li>
</ul>
</li>
<li><a href="sajax.html">Sajax</a></li>
<li><a href="http://luaforge.net/projects/xavante/">Project</a>
<ul>
<li><a href="http://luaforge.net/tracker/?group_id=6">Bug Tracker</a></li>
<li><a href="http://luaforge.net/scm/?group_id=6">CVS</a></li>
</ul>
</li>
<li><a href="license.html">License</a></li>
</ul>
</div> <!-- id="navigation" -->
<div id="content">
<h2><a name="install"></a>Installing</h2>
<p>You can install Xavante using <a href="http://www.luarocks.org">LuaRocks</a>:</p>
<pre class="example">
luarocks install xavante
</pre>
<p>The "xavante" package installs Xavante as a library. To run Xavante as an application please install <a href="http://wsapi.luaforge.net">WSAPI</a>:</p>
<pre class="example">
luarocks install wsapi-xavante
</pre>
<h2><a name="config"></a>Configuring</h2>
<p>
After the Xavante module is loaded, it needs to be configured before
being able to serve requests. You need to register the handlers
using the <code>xavante.HTTP</code> constructor.
</p>
<p>
<code>xavante.HTTP</code> defines <em>virtualhosts</em> for each site
that will be served. Each virtualhost can define a set of <em>rules</em>
for it.
Each rule matches a <em>URL Lua pattern</em> with a handler.
Xavante currently offers a <strong>file handler</strong>,
a <strong>redirect handler</strong> and
a <strong>CGILua handler</strong> for general files, URL
remapping and CGILua scripts respectively.
</p>
<p>A typical use would be:</p>
<pre class="example">
local hfile = require "xavante.filehandler"
local hcgi = require "xavante.cgiluahandler"
local hredir = require "xavante.redirecthandler"
local xavante = require "xavante"
-- Define here where Xavante HTTP documents scripts are located
local webDir = XAVANTE_WEB
local simplerules = {
{ -- URI remapping example
match = "^[^%./]*/$",
with = hredir,
params = {"index.lp"}
},
{ -- cgiluahandler example
match = {"%.lp$", "%.lp/.*$", "%.lua$", "%.lua/.*$" },
with = hcgi.makeHandler (webDir)
},
{ -- filehandler example
match = ".",
with = hfile,
params = {baseDir = webDir}
},
}
xavante.HTTP{
server = {host = "*", port = 8080},
defaultHost = {
rules = simplerules
},
}
</pre>
<p>Note the use of <code>webDir</code> both to set the base directory
for the file handler and for the CGILua scripts. These paths should contain the
desired directories in your structure.</p>
<p>To use virtual hosts with Xavante, the call to <code>xavante.HTTP</code>
would be changed to something like</p>
<pre class="example">
xavante.HTTP{
server = {host = "*", port = 8080},
defaultHost = {},
virtualhosts = {
["www.sitename.com"] = simplerules
}
}
</pre>
<h2><a name="running"></a>Running</h2>
<p>
If you are using Xavante as a module, then to start it you need to call
<code>xavante.start([checkfunction[, timeout]])</code> passing an optional
checking function and connection timeout value. The checking function, if
present, will be called periodically to check if Xavante should continue to
run. This function can be also used for maintenance tasks or as a callback to
your application.
</p>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p>
<p><small>$Id: manual.html,v 1.46 2008/05/23 20:18:58 carregal Exp $</small></p>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
| arventwei/WioEngine | Tools/jamplus/src/luaplus/Src/Modules/xavante/doc/us/manual.html | HTML | mit | 5,232 |
/**
* Created by ko on 2016-07-15.
*/
$(document).ready(function () {
var pageNo= 1;
// webtoon
$("#recipe").on("click", function () {
$("#travel_content").html("");
$("#youtube_content").html("");
$("#honbap_content").html("");
$("#game_content").html("");
$("#parcelArea").css("display","none");
$("#resultArea").html("");
$("#prodInfo_content").css("display", "none");
pageNo=1;
$("#cvs_content").css("display", "none");
common_module.moveYoutubeMenu();
recipe_module.recipeTitle();
recipe_module.showRecipe(1);
$(window).unbind('scroll');
$(window).scroll(function(){
if (Math.ceil($(window).scrollTop()) == $(document).height() - $(window).height()) {
pageNo +=1;
recipe_module.showRecipe(pageNo);
$(".loadingArea").html('<img src = "https://cdn.rawgit.com/kokk9239/singleLife_web/master/src/img/preloader.gif" style="width: 60px; height: 60px">');
}
});
$("#webtoon_content").css("display", "none");
});
});
| kokk9239/singleLife_web | src/js/recipe/event-recipe.js | JavaScript | mit | 1,136 |
require File.expand_path('../../helper', __FILE__)
describe 'Gtk3::ModifierType' do
it 'Lookup a modifier constant' do
Gtk3::ModifierType.lookup(:shift).should == Gtk3::ModifierType::SHIFT
Gtk3::ModifierType.lookup('shift').should == Gtk3::ModifierType::SHIFT
Gtk3::ModifierType.lookup(:test).should == nil
end
end
| YorickPeterse/ruby-gtk3 | spec/gtk3/modifier_type.rb | Ruby | mit | 335 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.