code stringlengths 4 991k | repo_name stringlengths 6 116 | path stringlengths 4 249 | language stringclasses 30 values | license stringclasses 15 values | size int64 4 991k | input_ids listlengths 502 502 | token_type_ids listlengths 502 502 | attention_mask listlengths 502 502 | labels listlengths 502 502 |
|---|---|---|---|---|---|---|---|---|---|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="text/css">
.highlight { display: block; background-color: #ddd; }
</style>
<script type="text/javascript">
function highlight() {
document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
}
</script>
</head>
<body onload="prettyPrint(); highlight();">
<pre class="prettyprint lang-js">/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
*/
<span id='Ext-Ajax'>/**
</span> * @class Ext.Ajax
* @singleton
* @markdown
* @extends Ext.data.Connection
A singleton instance of an {@link Ext.data.Connection}. This class
is used to communicate with your server side code. It can be used as follows:
Ext.Ajax.request({
url: 'page.php',
params: {
id: 1
},
success: function(response){
var text = response.responseText;
// process server response here
}
});
Default options for all requests can be set by changing a property on the Ext.Ajax class:
Ext.Ajax.timeout = 60000; // 60 seconds
Any options specified in the request method for the Ajax request will override any
defaults set on the Ext.Ajax class. In the code sample below, the timeout for the
request will be 60 seconds.
Ext.Ajax.timeout = 120000; // 120 seconds
Ext.Ajax.request({
url: 'page.aspx',
timeout: 60000
});
In general, this class will be used for all Ajax requests in your application.
The main reason for creating a separate {@link Ext.data.Connection} is for a
series of requests that share common settings that are different to all other
requests in the application.
*/
Ext.define('Ext.Ajax', {
extend: 'Ext.data.Connection',
singleton: true,
<span id='Ext-Ajax-cfg-url'> /**
</span> * @cfg {String} url @hide
*/
<span id='Ext-Ajax-cfg-extraParams'> /**
</span> * @cfg {Object} extraParams @hide
*/
<span id='Ext-Ajax-cfg-defaultHeaders'> /**
</span> * @cfg {Object} defaultHeaders @hide
*/
<span id='Ext-Ajax-cfg-method'> /**
</span> * @cfg {String} method (Optional) @hide
*/
<span id='Ext-Ajax-cfg-timeout'> /**
</span> * @cfg {Number} timeout (Optional) @hide
*/
<span id='Ext-Ajax-cfg-autoAbort'> /**
</span> * @cfg {Boolean} autoAbort (Optional) @hide
*/
<span id='Ext-Ajax-cfg-disableCaching'> /**
</span> * @cfg {Boolean} disableCaching (Optional) @hide
*/
<span id='Ext-Ajax-property-disableCaching'> /**
</span> * @property {Boolean} disableCaching
* True to add a unique cache-buster param to GET requests. Defaults to true.
*/
<span id='Ext-Ajax-property-url'> /**
</span> * @property {String} url
* The default URL to be used for requests to the server.
* If the server receives all requests through one URL, setting this once is easier than
* entering it on every request.
*/
<span id='Ext-Ajax-property-extraParams'> /**
</span> * @property {Object} extraParams
* An object containing properties which are used as extra parameters to each request made
* by this object. Session information and other data that you need
* to pass with each request are commonly put here.
*/
<span id='Ext-Ajax-property-defaultHeaders'> /**
</span> * @property {Object} defaultHeaders
* An object containing request headers which are added to each request made by this object.
*/
<span id='Ext-Ajax-property-method'> /**
</span> * @property {String} method
* The default HTTP method to be used for requests. Note that this is case-sensitive and
* should be all caps (if not set but params are present will use
* <tt>"POST"</tt>, otherwise will use <tt>"GET"</tt>.)
*/
<span id='Ext-Ajax-property-timeout'> /**
</span> * @property {Number} timeout
* The timeout in milliseconds to be used for requests. Defaults to 30000.
*/
<span id='Ext-Ajax-property-autoAbort'> /**
</span> * @property {Boolean} autoAbort
* Whether a new request should abort any pending requests.
*/
autoAbort : false
});
</pre>
</body>
</html>
| tonybaloney/Cloud-auto-scaling | doc/js/source/Ajax.html | HTML | lgpl-3.0 | 5,046 | [
30522,
1026,
999,
9986,
13874,
16129,
1028,
1026,
16129,
1028,
1026,
2132,
1028,
1026,
18804,
8299,
1011,
1041,
15549,
2615,
1027,
1000,
4180,
1011,
2828,
1000,
4180,
1027,
1000,
3793,
1013,
16129,
1025,
25869,
13462,
1027,
21183,
2546,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2000-2017 JetBrains s.r.o.
// Use of this source code is governed by the Apache 2.0 license that can be
// found in the LICENSE file.
package com.intellij.refactoring.extractMethod;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.util.Pass;
import com.intellij.psi.*;
import com.intellij.psi.codeStyle.JavaCodeStyleManager;
import com.intellij.psi.search.LocalSearchScope;
import com.intellij.psi.search.searches.ReferencesSearch;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.psi.util.PsiUtil;
import com.intellij.refactoring.HelpID;
import com.intellij.refactoring.RefactoringBundle;
import com.intellij.refactoring.util.CommonRefactoringUtil;
import com.intellij.refactoring.util.VariableData;
import com.intellij.refactoring.util.duplicates.*;
import com.intellij.util.ArrayUtil;
import com.intellij.util.IncorrectOperationException;
import com.intellij.util.containers.ContainerUtil;
import one.util.streamex.StreamEx;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
/**
* @author Pavel.Dolgov
*/
public class JavaDuplicatesExtractMethodProcessor extends ExtractMethodProcessor {
private static final Logger LOG = Logger.getInstance(JavaDuplicatesExtractMethodProcessor.class);
private static final Pass<ExtractMethodProcessor> USE_SNAPSHOT_TARGET_CLASS = new Pass<ExtractMethodProcessor>() {
@Override
public void pass(ExtractMethodProcessor processor) {} // it's a dummy but it's required to select the target class
};
public JavaDuplicatesExtractMethodProcessor(@NotNull PsiElement[] elements, @NotNull String refactoringName) {
this(elements, null, refactoringName);
}
public JavaDuplicatesExtractMethodProcessor(@NotNull PsiElement[] elements, @Nullable Editor editor, @Nullable String refactoringName) {
super(elements[0].getProject(), editor, elements, null, refactoringName, "", HelpID.EXTRACT_METHOD);
}
public void applyFrom(@NotNull ExtractMethodProcessor from, @NotNull Map<PsiVariable, PsiVariable> variablesMapping) {
myMethodName = from.myMethodName != null ? from.myMethodName : "dummyMethodName";
myStatic = from.myStatic;
myIsChainedConstructor = from.myIsChainedConstructor;
myMethodVisibility = from.myMethodVisibility;
myNullability = from.myNullability;
myReturnType = from.myReturnType;
myOutputVariables = Arrays.stream(from.myOutputVariables)
.map(variable -> variablesMapping.getOrDefault(variable, variable))
.toArray(PsiVariable[]::new);
myOutputVariable = ArrayUtil.getFirstElement(myOutputVariables);
myArtificialOutputVariable = variablesMapping.getOrDefault(from.myArtificialOutputVariable, from.myArtificialOutputVariable);
List<VariableData> variableDatum = new ArrayList<>();
List<VariableData> inputVariables = getInputVariables().getInputVariables();
for (int i = 0; i < from.myVariableDatum.length; i++) {
VariableData fromData = from.myVariableDatum[i];
PsiVariable mappedVariable = variablesMapping.get(fromData.variable);
if (isReferenced(mappedVariable, fromData.variable) && isUnchanged(mappedVariable, fromData.type, inputVariables)) {
VariableData newData = fromData.substitute(mappedVariable);
variableDatum.add(newData);
}
}
Set<PsiVariable> parameterVariables = ContainerUtil.map2Set(variableDatum, data -> data.variable);
for (VariableData data : inputVariables) {
if (!parameterVariables.contains(data.variable)) {
variableDatum.add(data);
}
}
myVariableDatum = variableDatum.toArray(new VariableData[0]);
}
private static boolean isUnchanged(PsiVariable fromVariable, PsiType fromType, @NotNull List<VariableData> inputVariables) {
for (VariableData data : inputVariables) {
if (data.variable == fromVariable) {
return data.type != null && data.type.equalsToText(fromType.getCanonicalText());
}
}
return true;
}
public boolean prepareFromSnapshot(@NotNull ExtractMethodSnapshot from, boolean showErrorHint) {
applyFromSnapshot(from);
PsiFile psiFile = myElements[0].getContainingFile();
ExtractMethodSnapshot.SNAPSHOT_KEY.set(psiFile, from);
try {
if (!prepare(USE_SNAPSHOT_TARGET_CLASS, showErrorHint)) {
return false;
}
}
finally {
ExtractMethodSnapshot.SNAPSHOT_KEY.set(psiFile, null);
}
myStatic = from.myStatic;
myInputVariables.setFoldingAvailable(from.myFoldable);
return true;
}
private void applyFromSnapshot(@NotNull ExtractMethodSnapshot from) {
myMethodName = from.myMethodName;
myStatic = from.myStatic;
myIsChainedConstructor = from.myIsChainedConstructor;
myMethodVisibility = from.myMethodVisibility;
myNullability = from.myNullability;
myReturnType = from.myReturnType != null ? from.myReturnType.getType() : null;
myOutputVariables = StreamEx.of(from.myOutputVariables).map(SmartPsiElementPointer::getElement).toArray(new PsiVariable[0]);
LOG.assertTrue(!ArrayUtil.contains(null, myOutputVariables));
myOutputVariable = ArrayUtil.getFirstElement(myOutputVariables);
myArtificialOutputVariable = from.myArtificialOutputVariable != null ? from.myArtificialOutputVariable.getElement() : null;
myVariableDatum = StreamEx.of(from.myVariableDatum).map(VariableDataSnapshot::getData).toArray(new VariableData[0]);
LOG.assertTrue(!ArrayUtil.contains(null, myVariableDatum));
}
private boolean isReferenced(@Nullable PsiVariable variable, PsiVariable fromVariable) {
return variable == fromVariable || // it's a freshlyDeclaredParameter
(variable != null && ReferencesSearch.search(variable, new LocalSearchScope(myElements)).findFirst() != null);
}
public void applyDefaults(@NotNull String methodName, @PsiModifier.ModifierConstant @NotNull String visibility) {
myMethodName = methodName;
myVariableDatum = getInputVariables().getInputVariables().toArray(new VariableData[0]);
myMethodVisibility = visibility;
myArtificialOutputVariable = PsiType.VOID.equals(myReturnType) ? getArtificialOutputVariable() : null;
final PsiType returnType = myArtificialOutputVariable != null ? myArtificialOutputVariable.getType() : myReturnType;
if (returnType != null) {
myReturnType = returnType;
}
}
@Override
public void doExtract() {
super.chooseAnchor();
super.doExtract();
}
public void updateStaticModifier(List<Match> matches) {
if (!isStatic() && isCanBeStatic()) {
for (Match match : matches) {
if (!isInSameFile(match) || !isInSameClass(match)) {
PsiUtil.setModifierProperty(myExtractedMethod, PsiModifier.STATIC, true);
myStatic = true;
break;
}
}
}
}
public void putExtractedParameters(Map<PsiLocalVariable, ExtractedParameter> extractedParameters) {
for (Map.Entry<PsiLocalVariable, ExtractedParameter> entry : extractedParameters.entrySet()) {
myInputVariables.foldExtractedParameter(entry.getKey(), entry.getValue().myPattern.getUsage());
}
}
public boolean prepare(boolean showErrorHint) {
return prepare(null, showErrorHint);
}
private boolean prepare(@Nullable Pass<ExtractMethodProcessor> pass, boolean showErrorHint) {
setShowErrorDialogs(false);
try {
if (super.prepare(pass)) {
return true;
}
final String message = RefactoringBundle.getCannotRefactorMessage(
RefactoringBundle.message("is.not.supported.in.the.current.context", myRefactoringName));
LOG.info(message);
if (showErrorHint) {
CommonRefactoringUtil.showErrorHint(myProject, null, message, myRefactoringName, HelpID.EXTRACT_METHOD);
}
return false;
}
catch (PrepareFailedException e) {
LOG.info(e);
if (showErrorHint) {
CommonRefactoringUtil.showErrorHint(myProject, null, e.getMessage(), myRefactoringName, HelpID.EXTRACT_METHOD);
}
return false;
}
}
@Override
public PsiElement processMatch(Match match) throws IncorrectOperationException {
boolean inSameFile = isInSameFile(match);
if (!inSameFile) {
relaxMethodVisibility(match);
}
boolean inSameClass = isInSameClass(match);
PsiElement element = super.processMatch(match);
if (!inSameFile || !inSameClass) {
PsiMethodCallExpression callExpression = getMatchMethodCallExpression(element);
if (callExpression != null) {
return updateCallQualifier(callExpression);
}
}
return element;
}
@Override
protected boolean isFoldingApplicable() {
return false;
}
@NotNull
private PsiElement updateCallQualifier(PsiMethodCallExpression callExpression) {
PsiElementFactory factory = JavaPsiFacade.getElementFactory(myProject);
PsiClass psiClass = myExtractedMethod.getContainingClass();
LOG.assertTrue(psiClass != null, "myExtractedMethod.getContainingClass");
PsiReferenceExpression newQualifier = factory.createReferenceExpression(psiClass);
callExpression.getMethodExpression().setQualifierExpression(newQualifier);
return JavaCodeStyleManager.getInstance(myProject).shortenClassReferences(callExpression);
}
@NotNull
public DuplicatesFinder createDuplicatesFinder() {
ReturnValue returnValue = myOutputVariables.length == 1 ? new VariableReturnValue(myOutputVariables[0]) : null;
Set<PsiVariable> effectivelyLocal = getEffectivelyLocalVariables();
return new DuplicatesFinder(myElements, myInputVariables, returnValue,
Collections.emptyList(), DuplicatesFinder.MatchType.PARAMETRIZED, effectivelyLocal, null);
}
private void relaxMethodVisibility(Match match) {
if (isInSamePackage(match)) {
PsiUtil.setModifierProperty(myExtractedMethod, PsiModifier.PRIVATE, false);
}
else {
PsiUtil.setModifierProperty(myExtractedMethod, PsiModifier.PUBLIC, true);
}
}
private boolean isInSameFile(Match match) {
return myExtractedMethod.getContainingFile() == match.getMatchStart().getContainingFile();
}
private boolean isInSamePackage(Match match) {
PsiFile psiFile = myExtractedMethod.getContainingFile();
PsiFile matchFile = match.getMatchStart().getContainingFile();
return psiFile instanceof PsiJavaFile &&
matchFile instanceof PsiJavaFile &&
Objects.equals(((PsiJavaFile)psiFile).getPackageName(), ((PsiJavaFile)matchFile).getPackageName());
}
private boolean isInSameClass(Match match) {
PsiClass matchClass = PsiTreeUtil.getParentOfType(match.getMatchStart(), PsiClass.class);
PsiClass psiClass = PsiTreeUtil.getParentOfType(myExtractedMethod, PsiClass.class);
return matchClass != null && PsiTreeUtil.isAncestor(psiClass, matchClass, false);
}
}
| goodwinnk/intellij-community | java/java-impl/src/com/intellij/refactoring/extractMethod/JavaDuplicatesExtractMethodProcessor.java | Java | apache-2.0 | 10,894 | [
30522,
1013,
1013,
9385,
2456,
1011,
2418,
6892,
10024,
7076,
1055,
1012,
1054,
1012,
1051,
1012,
1013,
1013,
2224,
1997,
2023,
3120,
3642,
2003,
9950,
2011,
1996,
15895,
1016,
1012,
1014,
6105,
2008,
2064,
2022,
1013,
1013,
2179,
1999,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
using Org.BouncyCastle.Asn1.Pkcs;
namespace Org.BouncyCastle.Asn1.Smime
{
public class SmimeCapability
: Asn1Encodable
{
/**
* general preferences
*/
public static readonly DerObjectIdentifier PreferSignedData = PkcsObjectIdentifiers.PreferSignedData;
public static readonly DerObjectIdentifier CannotDecryptAny = PkcsObjectIdentifiers.CannotDecryptAny;
public static readonly DerObjectIdentifier SmimeCapabilitiesVersions = PkcsObjectIdentifiers.SmimeCapabilitiesVersions;
/**
* encryption algorithms preferences
*/
public static readonly DerObjectIdentifier DesCbc = new DerObjectIdentifier("1.3.14.3.2.7");
public static readonly DerObjectIdentifier DesEde3Cbc = PkcsObjectIdentifiers.DesEde3Cbc;
public static readonly DerObjectIdentifier RC2Cbc = PkcsObjectIdentifiers.RC2Cbc;
private DerObjectIdentifier capabilityID;
private Asn1Object parameters;
public SmimeCapability(
Asn1Sequence seq)
{
capabilityID = (DerObjectIdentifier) seq[0].ToAsn1Object();
if (seq.Count > 1)
{
parameters = seq[1].ToAsn1Object();
}
}
public SmimeCapability(
DerObjectIdentifier capabilityID,
Asn1Encodable parameters)
{
if (capabilityID == null)
throw new ArgumentNullException("capabilityID");
this.capabilityID = capabilityID;
if (parameters != null)
{
this.parameters = parameters.ToAsn1Object();
}
}
public static SmimeCapability GetInstance(
object obj)
{
if (obj == null || obj is SmimeCapability)
{
return (SmimeCapability) obj;
}
if (obj is Asn1Sequence)
{
return new SmimeCapability((Asn1Sequence) obj);
}
throw new ArgumentException("Invalid SmimeCapability");
}
public DerObjectIdentifier CapabilityID
{
get { return capabilityID; }
}
public Asn1Object Parameters
{
get { return parameters; }
}
/**
* Produce an object suitable for an Asn1OutputStream.
* <pre>
* SMIMECapability ::= Sequence {
* capabilityID OBJECT IDENTIFIER,
* parameters ANY DEFINED BY capabilityID OPTIONAL
* }
* </pre>
*/
public override Asn1Object ToAsn1Object()
{
Asn1EncodableVector v = new Asn1EncodableVector(capabilityID);
if (parameters != null)
{
v.Add(parameters);
}
return new DerSequence(v);
}
}
}
| DSorlov/Sorlov.PowerShell | Sorlov.PowerShell/Lib/BouncyCastle/asn1/smime/SMIMECapability.cs | C# | gpl-3.0 | 2,695 | [
30522,
2478,
2291,
1025,
2478,
8917,
1012,
8945,
4609,
5666,
23662,
1012,
2004,
2078,
2487,
1012,
1052,
2243,
6169,
1025,
3415,
15327,
8917,
1012,
8945,
4609,
5666,
23662,
1012,
2004,
2078,
2487,
1012,
15488,
14428,
1063,
2270,
2465,
15488,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: 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.2 / stalmarck - 8.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
stalmarck
<small>
8.9.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-22 00:16:09 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-22 00:16:09 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.2 Formal proof management system
num 1.4 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.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: "palmskog@gmail.com"
homepage: "https://github.com/coq-community/stalmarck"
dev-repo: "git+https://github.com/coq-community/stalmarck.git"
bug-reports: "https://github.com/coq-community/stalmarck/issues"
license: "LGPL-2.1-or-later"
synopsis: "Proof of Stålmarck's algorithm in Coq"
description: """
A two-level approach to prove tautologies using Stålmarck's algorithm in Coq.
"""
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures"
"category:Miscellaneous/Extracted Programs/Decision procedures"
"keyword:boolean formula"
"keyword:tautology checker"
"logpath:Stalmarck"
"date:2019-05-19"
]
authors: [
"Pierre Letouzey"
"Laurent Théry"
]
url {
src: "https://github.com/coq-community/stalmarck/archive/v8.9.0.tar.gz"
checksum: "sha256=c0c6958e059d632cca0d0e67ff673d996abb0c9e389ecdffa9d1e1186884168b"
}
</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-stalmarck.8.9.0 coq.8.13.2</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.2).
The following dependencies couldn't be met:
- coq-stalmarck -> coq < 8.10~ -> 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-stalmarck.8.9.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/released/8.13.2/stalmarck/8.9.0.html | HTML | mit | 7,149 | [
30522,
1026,
999,
9986,
13874,
16129,
1028,
1026,
16129,
11374,
1027,
1000,
4372,
1000,
1028,
1026,
2132,
1028,
1026,
18804,
25869,
13462,
1027,
1000,
21183,
2546,
1011,
1022,
1000,
1028,
1026,
18804,
2171,
1027,
1000,
3193,
6442,
1000,
418... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2009 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include "AudioCommon/Mixer.h"
#include "Common/CommonTypes.h"
class SoundStream
{
protected:
std::unique_ptr<Mixer> m_mixer;
public:
SoundStream() : m_mixer(new Mixer(48000)) {}
virtual ~SoundStream() {}
static bool isValid() { return false; }
Mixer* GetMixer() const { return m_mixer.get(); }
virtual bool Init() { return false; }
virtual void SetVolume(int) {}
virtual void SoundLoop() {}
virtual void Update() {}
virtual bool SetRunning(bool running) { return false; }
};
| degasus/dolphin | Source/Core/AudioCommon/SoundStream.h | C | gpl-2.0 | 643 | [
30522,
1013,
1013,
9385,
2268,
17801,
7861,
20350,
2622,
1013,
1013,
7000,
2104,
14246,
2140,
2615,
2475,
1009,
1013,
1013,
6523,
2000,
1996,
6105,
1012,
19067,
2102,
5371,
2443,
1012,
1001,
10975,
8490,
2863,
2320,
1001,
2421,
1026,
3638,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# GuiasSixto
Guías de soporte para código rápido
| sortega7/GuiasSixto | README.md | Markdown | mit | 52 | [
30522,
1001,
26458,
12054,
7646,
3406,
26458,
3022,
2139,
2061,
6442,
2063,
11498,
19429,
14031,
5915,
2080,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (C) 2017 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief Mutex context switch benchmark
*
* @author Kaspar Schleiser <kaspar@schleiser.de>
*
* @}
*/
#include <stdio.h>
#include "macros/units.h"
#include "mutex.h"
#include "thread.h"
#include "xtimer.h"
#ifndef TEST_DURATION
#define TEST_DURATION (1000000U)
#endif
volatile unsigned _flag = 0;
static char _stack[THREAD_STACKSIZE_MAIN];
static mutex_t _mutex = MUTEX_INIT;
static void _timer_callback(void*arg)
{
(void)arg;
_flag = 1;
}
static void *_second_thread(void *arg)
{
(void)arg;
while(1) {
mutex_lock(&_mutex);
}
return NULL;
}
int main(void)
{
printf("main starting\n");
thread_create(_stack,
sizeof(_stack),
THREAD_PRIORITY_MAIN - 1,
THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST,
_second_thread,
NULL,
"second_thread");
/* lock the mutex, then yield to second_thread */
mutex_lock(&_mutex);
thread_yield_higher();
xtimer_t timer;
timer.callback = _timer_callback;
uint32_t n = 0;
xtimer_set(&timer, TEST_DURATION);
while(!_flag) {
mutex_unlock(&_mutex);
n++;
}
printf("{ \"result\" : %"PRIu32, n);
#ifdef CLOCK_CORECLOCK
printf(", \"ticks\" : %"PRIu32,
(uint32_t)((TEST_DURATION/US_PER_MS) * (CLOCK_CORECLOCK/KHZ(1)))/n);
#endif
puts(" }");
return 0;
}
| OTAkeys/RIOT | tests/bench_mutex_pingpong/main.c | C | lgpl-2.1 | 1,728 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2418,
10556,
27694,
8040,
7317,
17580,
2121,
1026,
10556,
27694,
1030,
8040,
7317,
17580,
2121,
1012,
2139,
1028,
1008,
1008,
2023,
5371,
2003,
3395,
2000,
1996,
3408,
1998,
3785,
1997,
1996,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html>
<html>
<head>
<title>添加邀请注册</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo $this->rootUrl; ?>/css/bootstrap-3.2.0.min.css">
<link rel="stylesheet" href="<?php echo $this->rootUrl; ?>/css/bootstrap-theme-3.2.0.min.css">
<link rel="stylesheet" href="<?php echo $this->rootUrl; ?>/css/bootstrap-switch-3.2.1.min.css">
<link rel="stylesheet" href="<?php echo $this->rootUrl; ?>/css/jquery-ui.min.css">
<link rel="stylesheet" href="<?php echo $this->rootUrl; ?>/css/activity/tuiguang.css">
<script src="<?php echo $this->rootUrl; ?>/js/jquery-2.0.3.min.js"></script>
<script src="<?php echo $this->rootUrl; ?>/js/bootstrap-3.2.0.min.js"></script>
<script src="<?php echo $this->rootUrl; ?>/js/jquery-ui-1.11.2.min.js"></script>
<script src="<?php echo $this->rootUrl; ?>/js/bootstrap-switch-3.2.1.min.js"></script>
</head>
<style type="text/css">
.tips {
font-weight: bold;
}
</style>
<body>
<div class="reward-edit">
<div class="panel panel-default">
<div class="panel-heading"><b></b></div>
<div class="panel-body">
<form class="form-horizontal" id="form" action ="<?php echo Yii::app()->createAbsoluteUrl('admin/uidiy/editconfig', array('id' => $config['id'])) ?>" method="post" enctype="multipart/form-data". >
<div class="form-group">
<label for="" class="col-sm-2 control-label">模块名称:</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="name" id="name" required autofocus autocomplete="off" value="<?PHP echo WebUtils::u($config['name']) ?>">
<span id="helpBlock" class="help-block"><small>模块名称 必填</small></span>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Icon:</label>
<div class="col-sm-10">
<a id="tip_upload" href="javascript:;" class="tips"onclick="nxxupload();">上传文件</a>
<a id="tip_text" href="javascript:;" onclick="nxxtext();">填写URL</a>
<input type="text" class="form-control" name="icon_text" style="display: none" id="icon_text" value="<?php echo $config['icon'] ?>" >
<input type="file" class="form-control" name="icon_file" style="display:done" id="icon_file">
<span id="helpBlock" class="help-block"><small>大小180*180 Jpg/Png文件</small></span>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">当前图标:</label>
<div class="col-sm-10">
<img src="<?php echo $config['icon'] ?>" class="img-thumbnail" style="width: 70px;height: 70px;">
</div>
</div>
<?php if (!empty($config['id'])) { ?>
<div class="form-group">
<label for="" class="col-sm-2 control-label">是否启用:</label>
<div class="col-sm-10">
<select name="status" class="form-control" >
<option value="1" <?php if ($config['status'] != '2') { ?>selected=""<?php } ?>>是</option>
<option value="2" <?php if ($config['status'] == '2') { ?>selected=""<?php } ?> >否</option>
</select>
<span id="helpBlock" class="help-block"><small>默认开启。如果关闭将不会在APP中显示</small></span>
</div>
</div>
<?php } ?>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit"class="btn btn-primary">提 交</button>
</div>
</div>
</form>
</div>
<div class="panel-footer"></div>
</div>
</div>
</body>
<script>
function nxxupload() {
document.getElementById("tip_text").className = '';
document.getElementById("tip_upload").className = 'tips';
document.getElementById("icon_text").style.display = 'none';
document.getElementById("icon_file").style.display = '';
}
function nxxtext() {
document.getElementById("tip_upload").className = '';
document.getElementById("tip_text").className = 'tips';
document.getElementById("icon_text").style.display = '';
document.getElementById("icon_file").style.display = 'none';
}
</script> | goyoo-php/mobcent | app/modules/admin/views/uidiy/configedit.php | PHP | gpl-3.0 | 5,489 | [
30522,
1026,
999,
9986,
13874,
16129,
1028,
1026,
16129,
1028,
1026,
2132,
1028,
1026,
2516,
1028,
100,
1779,
100,
100,
100,
100,
1026,
1013,
2516,
1028,
1026,
18804,
25869,
13462,
1027,
1000,
21183,
2546,
1011,
1022,
1000,
1028,
1026,
18... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2019 The Gitea Authors.
// All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package pull
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/structs"
"github.com/pkg/errors"
)
// MergeRequiredContextsCommitStatus returns a commit status state for given required contexts
func MergeRequiredContextsCommitStatus(commitStatuses []*models.CommitStatus, requiredContexts []string) structs.CommitStatusState {
if len(requiredContexts) == 0 {
status := models.CalcCommitStatus(commitStatuses)
if status != nil {
return status.State
}
return structs.CommitStatusSuccess
}
var returnedStatus = structs.CommitStatusSuccess
for _, ctx := range requiredContexts {
var targetStatus structs.CommitStatusState
for _, commitStatus := range commitStatuses {
if commitStatus.Context == ctx {
targetStatus = commitStatus.State
break
}
}
if targetStatus == "" {
targetStatus = structs.CommitStatusPending
commitStatuses = append(commitStatuses, &models.CommitStatus{
State: targetStatus,
Context: ctx,
Description: "Pending",
})
}
if targetStatus.NoBetterThan(returnedStatus) {
returnedStatus = targetStatus
}
}
return returnedStatus
}
// IsCommitStatusContextSuccess returns true if all required status check contexts succeed.
func IsCommitStatusContextSuccess(commitStatuses []*models.CommitStatus, requiredContexts []string) bool {
// If no specific context is required, require that last commit status is a success
if len(requiredContexts) == 0 {
status := models.CalcCommitStatus(commitStatuses)
if status == nil || status.State != structs.CommitStatusSuccess {
return false
}
return true
}
for _, ctx := range requiredContexts {
var found bool
for _, commitStatus := range commitStatuses {
if commitStatus.Context == ctx {
if commitStatus.State != structs.CommitStatusSuccess {
return false
}
found = true
break
}
}
if !found {
return false
}
}
return true
}
// IsPullCommitStatusPass returns if all required status checks PASS
func IsPullCommitStatusPass(pr *models.PullRequest) (bool, error) {
if err := pr.LoadProtectedBranch(); err != nil {
return false, errors.Wrap(err, "GetLatestCommitStatus")
}
if pr.ProtectedBranch == nil || !pr.ProtectedBranch.EnableStatusCheck {
return true, nil
}
state, err := GetPullRequestCommitStatusState(pr)
if err != nil {
return false, err
}
return state.IsSuccess(), nil
}
// GetPullRequestCommitStatusState returns pull request merged commit status state
func GetPullRequestCommitStatusState(pr *models.PullRequest) (structs.CommitStatusState, error) {
// Ensure HeadRepo is loaded
if err := pr.LoadHeadRepo(); err != nil {
return "", errors.Wrap(err, "LoadHeadRepo")
}
// check if all required status checks are successful
headGitRepo, err := git.OpenRepository(pr.HeadRepo.RepoPath())
if err != nil {
return "", errors.Wrap(err, "OpenRepository")
}
defer headGitRepo.Close()
if !headGitRepo.IsBranchExist(pr.HeadBranch) {
return "", errors.New("Head branch does not exist, can not merge")
}
sha, err := headGitRepo.GetBranchCommitID(pr.HeadBranch)
if err != nil {
return "", errors.Wrap(err, "GetBranchCommitID")
}
if err := pr.LoadBaseRepo(); err != nil {
return "", errors.Wrap(err, "LoadBaseRepo")
}
commitStatuses, err := models.GetLatestCommitStatus(pr.BaseRepo, sha, 0)
if err != nil {
return "", errors.Wrap(err, "GetLatestCommitStatus")
}
return MergeRequiredContextsCommitStatus(commitStatuses, pr.ProtectedBranch.StatusCheckContexts), nil
}
| vCaesar/gitea | services/pull/commit_status.go | GO | mit | 3,720 | [
30522,
1013,
1013,
9385,
10476,
1996,
21025,
27058,
6048,
1012,
1013,
1013,
2035,
2916,
9235,
1012,
1013,
1013,
2224,
1997,
2023,
3120,
3642,
2003,
9950,
2011,
1037,
10210,
1011,
2806,
1013,
1013,
6105,
2008,
2064,
2022,
2179,
1999,
1996,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/***************************************************************************
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
* copyright (C) 2004-2014 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
// own header
#include "textblock.h"
// local includes
#include "codedocument.h"
#include "codegenerationpolicy.h"
#include "debug_utils.h"
#include "uml.h"
// qt includes
#include <QRegExp>
#include <QTextStream>
/**
* Constructor.
*/
TextBlock::TextBlock(CodeDocument * parent, const QString & text)
: m_text(QString()),
m_tag(QString()),
m_canDelete(true),
m_writeOutText(true),
m_indentationLevel(0),
m_parentDocument(parent)
{
setText(text);
}
/**
* Destructor.
*/
TextBlock::~TextBlock()
{
}
/**
* Set the attribute m_canDelete.
* @param canDelete the new value to set
*/
void TextBlock::setCanDelete(bool canDelete)
{
m_canDelete = canDelete;
}
/**
* Determine if its OK to delete this textblock from the document.
* Used by the text editor to know if deletion could cause a crash of
* the program.
* @return the value of m_canDelete
*/
bool TextBlock::canDelete() const
{
return m_canDelete;
}
/**
* Get the value of m_parentDoc
* @return the value of m_parentDoc
*/
CodeDocument * TextBlock::getParentDocument() const
{
return m_parentDocument;
}
/**
* Set the value of m_text
* The actual text of this code block.
* @param text the new value of m_text
*/
void TextBlock::setText(const QString & text)
{
m_text = text;
}
/**
* Add text to this object.
* @param text the text to add
*/
void TextBlock::appendText(const QString & text)
{
m_text = m_text + text;
}
/**
* Get the value of m_text
* The actual text of this code block.
* @return the value of m_text
*/
QString TextBlock::getText() const
{
return m_text;
}
/**
* Get the tag of this text block. This tag
* may be used to find this text block in the code document
* to which it belongs.
* @return the tag
*/
QString TextBlock::getTag() const
{
return m_tag;
}
/**
* Set the tag of this text block. This tag
* may be used to find this text block in the code document
* to which it belongs.
* @param value the new value for the tag
*/
void TextBlock::setTag(const QString & value)
{
m_tag = value;
}
/**
* Set the value of m_writeOutText
* Whether or not to include the text of this TextBlock into a file.
* @param write the new value of m_writeOutText
*/
void TextBlock::setWriteOutText(bool write)
{
m_writeOutText = write;
}
/**
* Get the value of m_writeOutText
* Whether or not to include the text of this TextBlock into a file.
* @return the value of m_writeOutText
*/
bool TextBlock::getWriteOutText() const
{
return m_writeOutText;
}
/**
* Set how many times to indent this text block.
* The amount of each indenatation is determined from the parent
* codedocument codegeneration policy.
* @param level the new value for the indentation level
*/
void TextBlock::setIndentationLevel(int level)
{
m_indentationLevel = level;
}
/**
* Get how many times to indent this text block.
* The amount of each indenatation is determined from the parent
* codedocument codegeneration policy.
* @return the indentation level
*/
int TextBlock::getIndentationLevel() const
{
return m_indentationLevel;
}
/**
* Get the new line chars which ends the line.
* @return the ending chars for new line
*/
QString TextBlock::getNewLineEndingChars()
{
CodeGenerationPolicy* policy = UMLApp::app()->commonPolicy();
return policy->getNewLineEndingChars();
}
/**
* Get how much a single "level" of indentation will actually indent.
* @return the unit of indentation (for one level)
*/
QString TextBlock::getIndentation()
{
CodeGenerationPolicy* policy = UMLApp::app()->commonPolicy();
return policy->getIndentation();
}
/**
* Get the actual amount of indentation for a given level of indentation.
* @param level the level of interest
* @return the indentation string
*/
QString TextBlock::getIndentationString(int level) const
{
if (!level) {
level = m_indentationLevel;
}
QString indentAmount = getIndentation();
QString indentation;
for (int i=0; i<level; ++i) {
indentation.append(indentAmount);
}
return indentation;
}
/**
* TODO: Ush. These are terrifically bad and must one day go away.
* Both methods indicate the range of lines in this textblock
* which may be edited by the codeeditor (assuming that any are
* actually editable). The default case is no lines are editable.
* The line numbering starts with '0' and a '-1' means no line
* qualifies.
* @return line number
*/
int TextBlock::firstEditableLine()
{
return 0;
}
/**
* @see firstEditableLine
*/
int TextBlock::lastEditableLine()
{
return 0;
}
/**
* Used by the CodeEditor. It provides it with an appropriate
* starting string for a new line of text within the given textblock
* (for example a string with the proper indentation).
* If the indentation amount is '0' the current indentation string will
* be used.
* <p>
* TODO: Can be refactored away and replaced with
* <a href="#getIndentationString">getIndentationString</a>.
* @param amount the number of indent steps to use
* @return the new line
*/
QString TextBlock::getNewEditorLine(int amount)
{
return getIndentationString(amount);
}
/**
* UnFormat a long text string. Typically, this means removing
* the indentaion (linePrefix) and/or newline chars from each line.
* If an indentation is not specified, then the current indentation is used.
* @param text the original text for unformatting
* @param indent the indentation
* @return the unformatted text
*/
QString TextBlock::unformatText(const QString & text, const QString & indent)
{
QString output = text;
QString myIndent = indent;
if (myIndent.isEmpty()) {
myIndent = getIndentationString();
}
if (!output.isEmpty()) {
// remove indenation from this text block.
output.remove(QRegExp(QLatin1Char('^') + myIndent));
}
return output;
}
/**
* Causes the text block to release all of its connections
* and any other text blocks that it 'owns'.
* Needed to be called prior to deletion of the textblock.
* TODO: Does nothing.
*/
void TextBlock::release()
{
}
/**
* Format a long text string to be more readable.
* @param work the original text for formatting
* @param linePrefix a line prefix
* @param breakStr a break string
* @param addBreak control to add always a break string
* @param lastLineHasBreak control to add a break string to the last line
* @return the new formatted text
*/
QString TextBlock::formatMultiLineText(const QString & work, const QString & linePrefix,
const QString & breakStr, bool addBreak, bool lastLineHasBreak)
{
QString output;
QString text = work;
QString endLine = getNewLineEndingChars();
int matches = text.indexOf(QRegExp(breakStr));
if (matches >= 0) {
// check that last part of string matches, if not, then
// we have to tack on extra match
if (!text.contains(QRegExp(breakStr + QLatin1String("\\$"))))
matches++;
for (int i=0; i < matches; ++i) {
QString line = text.section(QRegExp(breakStr), i, i);
output += linePrefix + line;
if ((i != matches-1) || lastLineHasBreak)
output += endLine; // add break to line
}
} else {
output = linePrefix + text;
if (addBreak)
output += breakStr;
}
return output;
}
/**
* Set attributes of the node that represents this class
* in the XMI document.
* @param doc the xmi document
* @param blockElement the xmi element holding the attributes
*/
void TextBlock::setAttributesOnNode(QDomDocument & doc, QDomElement & blockElement)
{
Q_UNUSED(doc);
QString endLine = UMLApp::app()->commonPolicy()->getNewLineEndingChars();
blockElement.setAttribute(QLatin1String("tag"), getTag());
// only write these if different from defaults
const QString trueStr = QLatin1String("true");
const QString falseStr = QLatin1String("false");
if (getIndentationLevel())
blockElement.setAttribute(QLatin1String("indentLevel"), QString::number(getIndentationLevel()));
if (!m_text.isEmpty())
blockElement.setAttribute(QLatin1String("text"), encodeText(m_text, endLine));
if (!getWriteOutText())
blockElement.setAttribute(QLatin1String("writeOutText"), getWriteOutText() ? trueStr : falseStr);
if (!canDelete())
blockElement.setAttribute(QLatin1String("canDelete"), canDelete() ? trueStr : falseStr);
}
/**
* Set the class attributes from a passed object.
* @param obj text block from which the attributes are taken
*/
void TextBlock::setAttributesFromObject(TextBlock * obj)
{
// DON'T set tag here.
setIndentationLevel(obj->getIndentationLevel());
setText(obj->getText());
setWriteOutText(obj->getWriteOutText());
m_canDelete = obj->canDelete();
}
/**
* Set the class attributes of this object from
* the passed element node.
* @param root the xmi element from which to load
*/
void TextBlock::setAttributesFromNode(QDomElement & root)
{
QString endLine = UMLApp::app()->commonPolicy()->getNewLineEndingChars();
setIndentationLevel(root.attribute(QLatin1String("indentLevel"), QLatin1String("0")).toInt());
setTag(root.attribute(QLatin1String("tag")));
setText(decodeText(root.attribute(QLatin1String("text")), endLine));
const QString trueStr = QLatin1String("true");
setWriteOutText(root.attribute(QLatin1String("writeOutText"), trueStr) == trueStr);
m_canDelete = root.attribute(QLatin1String("canDelete"), trueStr) == trueStr;
}
/**
* Encode text for XML storage.
* We simply convert all types of newLines to the "\n" or 

* entity.
* @param text the not yet encoded text
* @param endLine the chars at the end of each line
* @return the encoded text
*/
QString TextBlock::encodeText(const QString & text, const QString & endLine)
{
QString encoded = text;
encoded.replace(QRegExp(endLine), QLatin1String("
"));
return encoded;
}
/**
* Decode text from XML storage.
* We simply convert all newLine entity 
 to chosen line ending.
* @param text the not yet decoded text
* @param endLine the chars at the end of each line
* @return the decoded text
*/
QString TextBlock::decodeText(const QString & text, const QString & endLine)
{
QString decoded = text;
decoded.replace(QRegExp(QLatin1String("
")), endLine);
return decoded;
}
/**
* Return the text in the right format. Returned string is empty
* if m_writeOutText is false.
* @return QString
*/
QString TextBlock::toString() const
{
// simple output method
if (m_writeOutText && !m_text.isEmpty()) {
QString endLine = UMLApp::app()->commonPolicy()->getNewLineEndingChars();
return formatMultiLineText(m_text, getIndentationString(), endLine);
}
else {
return QString();
}
}
/**
* Operator '<<' for TextBlock.
*/
QDebug operator<<(QDebug os, const TextBlock& obj)
{
os.nospace() << "TextBlock: tag=" << obj.getTag()
<< ", writeOutText=" << (obj.getWriteOutText() ? "true" : "false")
<< ", canDelete=" << (obj.canDelete() ? "true" : "false")
<< ", indentationLevel=" << obj.getIndentationLevel()
<< ", parentDocument id=" << (obj.getParentDocument() ? obj.getParentDocument()->ID()
: QLatin1String("null"))
<< ", text=" << obj.getText();
return os.space();
}
| behlingc/umbrello-behlingc | umbrello/codegenerators/textblock.cpp | C++ | gpl-2.0 | 12,390 | [
30522,
1013,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
///<reference path="../../../lib/RTCPeerConnection.d.ts"/>
///<reference path="WebRtcCommons.ts"/>
"use strict";
class WebRtcProducer {
private _id : string;
private _debugMode : boolean = false;
private _successCalled : boolean = false;
private connection: RTCPeerConnection = null;
private channel: RTCDataChannel = null;
private _onPassDataToPeer : IWebRtcConnectionDataCallback = null;
private _onConnectionSucces : () => void = null;
private _onConnectionError : (error: Object) => void = null;
private _config: any = null;
/**
* constructor
*/
constructor(servers: RTCIceServer[], _id?: string, _debugMode?: boolean) {
this._id = _id;
this._debugMode = _debugMode||false;
if (servers != null)
this._config = { "iceServers": servers };
}
/**
* setCallbacks
*/
setCallbacks(onPassDataToPeer: IWebRtcConnectionDataCallback,
onConnectionSucces: () => void, onConnectionError: (error: Object) => void): void {
this._onPassDataToPeer = onPassDataToPeer;
this._onConnectionSucces = onConnectionSucces;
this._onConnectionError = onConnectionError;
}
/**
* isConnected
*/
isConnected(): boolean {
return this.connection != null
&& (this.connection.iceConnectionState === 'completed' //RTCIceConnectionState.completed
|| this.connection.iceConnectionState === 'connected')
&& this.channel != null
&& this.channel.readyState === 'open' ; //RTCDataChannelState.open
}
/**
* configure
*/
configure(data: IWebRtcConnectionData): void {
var self = this;
// step 1
if (data === null) {
if (this._debugMode)
self.log('configure - Step1', data);
this.connection.createOffer(
function(sdp: RTCSessionDescription): void {
if (self._debugMode)
self.log('onOfferCreated', sdp);
self.connection.setLocalDescription(sdp, null);
self._onPassDataToPeer({'RTCSessionDescription': sdp});
},
function (errorInformation: DOMError): void {
console.error('onOfferError', errorInformation);
});
} else
// step 2
if (data['RTCSessionDescription'] != undefined) {
if (this._debugMode)
this.log('configure - Step2', data);
this.connection.setRemoteDescription(data['RTCSessionDescription']);
} else
// step 3
if (data['RTCIceCandidate'] != undefined) {
if (this._debugMode)
this.log('configure - Step3', data);
this.connection.addIceCandidate(data['RTCIceCandidate'],
function(): void {
if (self._debugMode)
self.log('onAddIceCandidateSuccess');
},
function (error): void {
if (self._debugMode)
self.log('onAddIceCandidateError');
});
}
}
/**
* sendText
*/
sendMessage(msg: string): void {
if (this._debugMode)
this.log('Sending message: "' +msg +'"');
if (!this.isConnected())
throw new WebRtcConnectionNotInitializedError('');
this.channel.send(msg);
}
/**
* open
*/
open(): void{
if (this._debugMode)
this.log('Creating new; iceServers: ' +JSON.stringify(this._config));
if (typeof webkitRTCPeerConnection === 'function') {
this.connection = new webkitRTCPeerConnection( this._config );
} else if (typeof mozRTCPeerConnection === 'function') {
throw new Error('Not implemented yet.');
//this.connection = new mozRTCPeerConnection( this._config );
} else
throw new Error('unknown implementation of RTCPeerConnection');
this.internalInit();
this._successCalled = false;
}
/**
* close
*/
close(): void{
this._successCalled = false;
if (this.channel != null)
this.channel.close();
if (this.connection != null)
this.connection.close();
}
/**
* internalInit
*/
private internalInit(): void {
this.channel = this.connection.createDataChannel('label', null);
this.channel.onopen = this.onReceiveChannelStateChange;
this.channel.onclose = this.onReceiveChannelStateChange;
this.connection.onicecandidate =
function(event: RTCIceCandidateEvent): void {
if (event.candidate) {
if (this._debugMode)
this.log('onIceCandidate', event.candidate);
this._onPassDataToPeer({'RTCIceCandidate': event.candidate});
}
this.tryCallSuccess();
}.bind(this);
this.connection.oniceconnectionstatechange =
function(event: Event): void {
if (this._debugMode)
this.log('onIceConnectionStateChange: ' +this.connection.iceConnectionState, event);
this.tryCallSuccess();
}.bind(this);
}
/**
* onReceiveChannelStateChange
*/
private onReceiveChannelStateChange = function(event: Event): void {
if (this._debugMode)
this.log('onReceiveChannelStateChange', event);
this.tryCallSuccess();
}.bind(this);
/**
* tryCallSuccess
*/
private tryCallSuccess = function(): void {
if (!this._successCalled && this.isConnected()) {
if (this._debugMode)
this.log('triggering onConnectionSucces callback');
this._successCalled = true;
this._onConnectionSucces();
}
}.bind(this);
/**
* log
*/
private log(msg: string, ...optionalParams: Object[]) {
if (!this._debugMode)
throw new Error('Debug mode is disabled.');
var arr: Object[] = new Array<Object>().concat(this.dbgId() + ' ' + msg).concat(optionalParams);
console.log.apply(console, arr);
document.writeln(this.dbgId() +' ' +msg +' ' +this.connectionState() +'<br>');
}
/**
* connectionState
*/
private connectionState(): string {
return '<b>[connected: '+this.isConnected() +']</b> '
+'connection.iceConnectionState: '+ (this.connection === null ? 'null' : this.connection.iceConnectionState) +'; '
+'connection.iceGatheringState: '+ (this.connection === null ? 'null' : this.connection.iceGatheringState) +'; '
+'connection.signalingState: '+ (this.connection === null ? 'null' : this.connection.signalingState) +'; '
+'channel.readyState: '+ (this.channel === null ? 'null' : this.channel.readyState);
}
/**
* dbgId
*/
private dbgId(): string{
return '[' +(this._id != '' ? this._id +' ' : '') +'producer]';
}
}
| twerno/CardGameJS | CardGameJS/src/utils/WebRtc/WebRtcProducer.ts | TypeScript | mit | 6,411 | [
30522,
1013,
1013,
1013,
1026,
4431,
4130,
1027,
1000,
1012,
1012,
1013,
1012,
1012,
1013,
1012,
1012,
1013,
5622,
2497,
1013,
19387,
21906,
11510,
8663,
2638,
7542,
1012,
1040,
1012,
24529,
1000,
1013,
1028,
1013,
1013,
1013,
1026,
4431,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php session_start();
include '../php/config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="../img/favicon.ico">
<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="">
<meta name="author" content="">
<title>Sahakit System</title>
<link href="../vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
<link href="../dist/css/sb-admin-2.css" rel="stylesheet">
<link href="../vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<?php
$status = null;
if (isset($_SESSION['status'])) {
$status = $_SESSION['status'];
}
?>
</head>
<body>
<?php include 'menu_index.php'?>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<!-- .panel-heading -->
<div class="panel-body">
<font color="red">สร้างเมื่อ วันพฤหัสบดี, 10 พฤศจิกายน 2559 20:28</font><br>
<p>สหกิจศึกษาคืออะไร<br> ในสภาวะการณ์ปัจจุบันใน ตลาดแรงงานมีการแข่งขันและลักษณะของบัณฑิตที่ตลาดแรงงานมีความต้องการได้พัฒนาไป ความต้องการของสถานประกอบการที่ต้องการให้มีในตัวบัณฑิต ได้แก่ การเป็นผู้ที่ไว้วางใจได้ในด้านการงาน ความคิดริเริ่ม ระเบียบวินัย จริยธรรม ศีลธรรม การสื่อสารข้อมูล การเป็นผู้นำ เป็นต้น สิ่งที่ท้าทายสำหรับบัณฑิตในปัจจุบัน คือ การได้มีโอกาสสร้างความเข้าใจและคุ้นเคยกับโลกแห่งความจริงของการทำงานและ การเรียนรู้ เพื่อให้ได้มาซึ่งทักษะของงานอาชีพและทักษะด้าน พัฒนาตนเอง นอกเหนือไปจากทักษะด้านวิชาการ ทักษะเหล่านี้จะเรียนรู้และพัฒนาได้โดยเร็วเมื่อนักศึกษาได้มีโอกาสไป ปฏิบัติงานจริง ในสถานประกอบการต่างๆ</p>
<p>หลักการและเหตุผล<br> สหกิจศึกษา (Cooperative Education) เป็นแผนการศึกษาโดยมีจุดมุ่งหมายให้นักศึกษาได้มีประสบการณ์ปฏิบัติงานจริง ในสถานประกอบการอย่างมีประสิทธิภาพ โดยเน้นให้นักศึกษาได้นำเอาวิชาการทั้งทางภาคทฤษฎีและปฏิบัติต่างๆ ที่ได้ศึกษามาแล้ว นำไปปฏิบัติในสถานประกอบการให้ได้ผลดี ทำให้นักศึกษาสามารถเรียนรู้ประสบการณ์จากการไปปฏิบัติงาน และทำให้นักศึกษามีคุณภาพตรงตามวัตถุประสงค์ที่สถานประกอบการต้องการมากที่ สุด เพื่อเป็นการส่งเสริมความสัมพันธ์และความร่วมมืออันดีระหว่างมหาวิทยาลัย เทคโนโลยีราชมงคลกรุงเทพ กับสถานประกอบการที่นักศึกษาได้ไปปฏิบัติงาน อีกทั้งเป็นการเผยแพร่เกียรติคุณ ของมหาวิทยาลัยเทคโนโลยีราชมงคลกรุงเทพที่มุ่งเน้นผลิตบัณฑิตนักปฏิบัติการ ต่อบุคคลและหน่วยงานต่างๆ ที่อยู่ภายนอก</p>
<p>ปรัชญา "มหาวิทยาลัยชีวิต เริ่มต้นที่สหกิจศึกษา "</p>
<p>ภารกิจหลัก<br> คัดเลือกนักศึกษาและจัดหาสถานประกอบการเพื่อให้นักศึกษาออกไปปฏิบัติงาน ณ สถานประกอบการ</p>
<p>วัตถุประสงค์<br> 1. เพื่อเปิดโอกาสให้นักศึกษาได้รับประสบการณ์ตรงเกี่ยวกับการ ทำงานจริงในสถานประกอบการ<br> 2. ศึกษาเรียนรู้เรื่องการจัดและบริหารงานในสถานประกอบการ อย่างละเอียด<br> 3. ได้พบเห็นปัญหาต่างๆ ที่แท้จริงของสถานประกอบการและ คิดค้นวิธีแก้ปัญหาเฉพาะหน้า <br> 4. ศึกษาเกี่ยวกับบุคลากรส่วนต่างๆ ของผู้ร่วมปฏิบัติงานสถานประกอบการทั้งด้านบุคลิกภาพ</p>
<p>หน้าที่ความรับผิดชอบการทำงานร่วมกันและการปฏิบัติงานเฉพาะทาง<br> 5. รู้จักปรับตัวให้เข้ากับสังคมในสถานประกอบการ การเป็นผู้นำและเป็นผู้ตามที่เหมาะสม<br> 6. เพื่อส่งเสริมความสัมพันธ์อันดีระหว่างมหาวิทยาลัย กับ สถาน ประกอบการที่นักศึกษาไปปฏิบัติงาน</p>
<p>สหกิจศึกษา<br> 7. เพื่อเผยแพร่ชื่อเสียงของมหาวิทยาลัยเทคโนโลยีราชมงคลกรุงเทพต่อบุคคลและ สถาบันต่างๆที่อยู่</p>
<p>ภายนอก</p>
<p>หลักสูตรที่เข้าร่วมสหกิจศึกษา<br> มหาวิทยาลัย เทคโนโลยีราชมงคลกรุงเทพได้จัดระบบการศึกษาเพื่อเป็น ระบบทวิภาค โดยใน 1 ปีการศึกษา จะประกอบด้วย 2 ภาคการศึกษา (1 ภาคการศึกษามีระยะเวลา 17 สัปดาห์) และ 1 ภาคการศึกษาสหกิจศึกษามีระยะเวลาเท่ากับ 17 สัปดาห์</p>
<p>หลักสูตรสหกิจศึกษามีลักษณะดังนี้<br> 1. เป็นหลักสูตรบังคับสำหรับนักศึกษาหลักสูตรวิศวกรรมศาสตร์และหลักสูตรอื่นๆ ที่เข้าร่วมสหกิจศึกษา โดยที่สาขาวิชาต้นสังกัดของนักศึกษาจะเป็นผู้รับผิดชอบ คัดเลือกนักศึกษาที่มีคุณสมบัติครบถ้วนเข้าร่วมสหกิจศึกษา<br> 2. จัดภาคการศึกษาสหกิจศึกษาไว้ในภาคการศึกษาที่ 2 ของปีที่ 3 ( ภาคสมทบ) และภาคการศึกษาที่ 1 ของปีที่ 4 ( ภาคปกติ)<br> 3. ภาคการศึกษาสหกิจศึกษามีค่าเท่ากับ 6 หน่วยกิต การประเมินผลเป็น S และ U<br> 4. กำหนดให้นักศึกษาจะต้องไปปฏิบัติงานอย่างน้อย 1 ภาคการศึกษา โดยจะต้องมีระยะเวลาการปฏิบัติงานตามที่กำหนด ทั้งนี้ไม่ต่ำกว่า 17 สัปดาห์</p>
<p>หน่วยงานและบุคลากรที่รับผิดชอบ<br> มหาวิทยาลัย เทคโนโลยีราชมงคลกรุงเทพ ได้จัดตั้งหน่วยงานที่เรียกว่า สำนักงานสหกิจศึกษา (Office of Cooperative Education : OCE) ภายใต้การกำกับของอธิการบดี เพื่อทำหน้าที่พัฒนารูปแบบระบบการศึกษาแบบสหกิจศึกษาให้เหมาะสม และ รับผิดชอบการประสานงาน ระหว่างนักศึกษา คณาจารย์และสถานประกอบการ ในการเตรียมความพร้อมนักศึกษาสำหรับการปฏิบัติงาน ณ สถานประกอบการ</p>
<p>1. เจ้าหน้าที่สหกิจศึกษา (OCE Coordinator)<br> บุคลากร ที่สังกัดสำนักงานสหกิจศึกษาเป็นผู้รับผิดชอบในการจัดเก็บข้อมูล ประสานงานและอำนวยความสะดวกแก่สถานประกอบการ อาจารย์ที่ปรึกษาสหกิจศึกษา และนักศึกษาสหกิจศึกษา ในส่วนที่เกี่ยวข้องกับสหกิจศึกษา ในฝ่ายต่างๆ<br>2. อาจารย์ที่ปรึกษาสหกิจศึกษา (OCE Advisor)<br> ทำหน้าที่เป็นผู้ประสานงานด้านสหกิจศึกษาภายในสาขาวิชา ดังนี้ <br> • ชี้แจงสถานการณ์ที่นักศึกษาจะต้องประสบและเสนอแนะวิธีการแก้ปัญหาที่อาจจะเกิดขึ้นใน</p>
<p>สถานประกอบการ<br> • นิเทศงาน อย่างน้อย 2 ครั้งต่อนักศึกษา 1 คน <br> • ให้คำปรึกษาแก่สถานประกอบการเพื่อช่วยแก้ปัญหาในการทำงาน ผ่านการปฏิบัติงานของ</p>
<p>นักศึกษาสหกิจศึกษา<br> • พบปะร่วมปรึกษากับพนักงานที่ปรึกษา และผู้บริหารสถานประกอบการที่นักศึกษาฝึกงาน</p>
<p>เพื่อรับฟังความคิดเห็น และข้อเสนอแนะต่างๆ <br> • สร้างความสัมพันธ์อันดีต่อคณะผู้บริหาร และผู้ร่วมงานในสถานประกอบการที่ไปนิเทศนัก</p>
<p>ศึกษาสหกิจศึกษา<br> • เข้าร่วมในการปฐมนิเทศ ปัจฉิมนิเทศ และกิจกรรมที่สำนักงานสหกิจศึกษาจัดขึ้น<br> • พิจารณาผลการปฏิบัติงานสหกิจศึกษา เพื่อประเมินผลการออกปฏิบัติงานสหกิจศึกษา ของนักศึกษาสหกิจศึกษาตามวันและเวลาที่กำหนด</p>
<p>ลักษณะงานสหกิจศึกษา ( ในส่วนของนักศึกษาที่ไปปฏิบัติการในสถานประกอบการ)<br> 1. เสมือนหนึ่งเป็นพนักงานชั่วคราว<br> 2. มีหน้าที่รับผิดชอบแน่นอน ( งานมีคุณภาพ)<br> 3. ทำงานเต็มเวลา (Full Time)<br> 4. ระยะเวลาการปฏิบัติงานเต็ม 1 ภาคการศึกษา ( ประมาณ 17 สัปดาห์)</p>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="../vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="../vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="../vendor/metisMenu/metisMenu.min.js"></script>
<!-- Morris Charts JavaScript -->
<script src="../vendor/raphael/raphael.min.js"></script>
<script src="../vendor/morrisjs/morris.min.js"></script>
<script src="../data/morris-data.js"></script>
<!-- Custom Theme JavaScript -->
<script src="../dist/js/sb-admin-2.js"></script>
</body>
</html>
| joesoftheart/Sahakit | pages/whit_sahakit.php | PHP | mit | 16,811 | [
30522,
1026,
1029,
25718,
5219,
1035,
2707,
1006,
1007,
1025,
2421,
1005,
1012,
1012,
1013,
25718,
1013,
9530,
8873,
2290,
1012,
25718,
1005,
1025,
1029,
1028,
1026,
999,
9986,
30524,
13462,
1027,
1000,
21183,
2546,
1011,
1022,
1000,
1028,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Zend\Mvc\Controller\Plugin;
use Zend\Mvc\Exception\RuntimeException;
use Zend\Session\Container;
/**
* Plugin to help facilitate Post/Redirect/Get (http://en.wikipedia.org/wiki/Post/Redirect/Get)
*/
class PostRedirectGet extends AbstractPlugin
{
/**
* @var Container
*/
protected $sessionContainer;
/**
* Perform PRG logic
*
* If a null value is present for the $redirect, the current route is
* retrieved and use to generate the URL for redirect.
*
* If the request method is POST, creates a session container set to expire
* after 1 hop containing the values of the POST. It then redirects to the
* specified URL using a status 303.
*
* If the request method is GET, checks to see if we have values in the
* session container, and, if so, returns them; otherwise, it returns a
* boolean false.
*
* @param null|string $redirect
* @param bool $redirectToUrl
* @return \Zend\Http\Response|array|\Traversable|false
*/
public function __invoke($redirect = null, $redirectToUrl = false)
{
$controller = $this->getController();
$request = $controller->getRequest();
$container = $this->getSessionContainer();
if ($request->isPost()) {
$container->setExpirationHops(1, 'post');
$container->post = $request->getPost()->toArray();
return $this->redirect($redirect, $redirectToUrl);
} else {
if ($container->post !== null) {
$post = $container->post;
unset($container->post);
return $post;
}
return false;
}
}
/**
* @return Container
*/
public function getSessionContainer()
{
if (!isset($this->sessionContainer)) {
$this->sessionContainer = new Container('prg_post1');
}
return $this->sessionContainer;
}
/**
* @param Container $container
* @return PostRedirectGet
*/
public function setSessionContainer(Container $container)
{
$this->sessionContainer = $container;
return $this;
}
/**
* TODO: Good candidate for traits method in PHP 5.4 with FilePostRedirectGet plugin
*
* @param string $redirect
* @param bool $redirectToUrl
* @return \Zend\Http\Response
* @throws \Zend\Mvc\Exception\RuntimeException
*/
protected function redirect($redirect, $redirectToUrl)
{
$controller = $this->getController();
$params = array();
$options = array('query' => $controller->params()->fromQuery());
$reuseMatchedParams = false;
if (null === $redirect) {
$routeMatch = $controller->getEvent()->getRouteMatch();
$redirect = $routeMatch->getMatchedRouteName();
//null indicates to redirect for self.
$reuseMatchedParams = true;
}
if (method_exists($controller, 'getPluginManager')) {
// get the redirect plugin from the plugin manager
$redirector = $controller->getPluginManager()->get('Redirect');
} else {
/*
* If the user wants to redirect to a route, the redirector has to come
* from the plugin manager -- otherwise no router will be injected
*/
if ($redirectToUrl === false) {
throw new RuntimeException('Could not redirect to a route without a router');
}
$redirector = new Redirect();
}
if ($redirectToUrl === false) {
$response = $redirector->toRoute($redirect, $params, $options, $reuseMatchedParams);
$response->setStatusCode(303);
return $response;
}
$response = $redirector->toUrl($redirect);
$response->setStatusCode(303);
return $response;
}
}
| JorikVartanov/zf2 | zf2_project/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/PostRedirectGet.php | PHP | bsd-3-clause | 4,294 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
1008,
16729,
2094,
7705,
1006,
8299,
1024,
1013,
1013,
7705,
1012,
16729,
2094,
1012,
4012,
1013,
1007,
1008,
1008,
1030,
4957,
8299,
1024,
1013,
1013,
21025,
2705,
12083,
1012,
4012,
1013,
16729,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
body {
background-color: #d0e4fe;
}
| vpenkoff/nodeserver | style.css | CSS | mit | 37 | [
30522,
2303,
1063,
4281,
1011,
3609,
1024,
1001,
1040,
2692,
2063,
2549,
7959,
1025,
1065,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* packet-ospf.c
* Routines for OSPF packet disassembly
* (c) Copyright Hannes R. Boehm <hannes@boehm.org>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
* At this time, this module is able to analyze OSPF
* packets as specified in RFC2328. MOSPF (RFC1584) and other
* OSPF Extensions which introduce new Packet types
* (e.g the External Atributes LSA) are not supported.
* Furthermore RFC2740 (OSPFv3 - OSPF for IPv6) is now supported
* - (c) 2001 Palle Lyckegaard <palle[AT]lyckegaard.dk>
*
* Added support to E-NNI routing (OIF2003.259.02)
* - (c) 2004 Roberto Morro <roberto.morro[AT]tilab.com>
*
* Added support for OSPF restart signaling:
* draft-nguyen-ospf-lls-05.txt
* draft-nguyen-ospf-oob-resync-05.txt
* draft-nguyen-ospf-restart-05.txt
* - (c) 2005 Michael Rozhavsky <mrozhavsky@fortinet.com>
*
* Added support of MPLS Diffserv-aware TE (RFC 4124); new BC sub-TLV
* - (c) 2006 (FF) <francesco.fondelli[AT]gmail.com>
*
* Added support for decoding the TLVs in a grace-LSA
* - (c) 2007 Todd J Martin <todd.martin@acm.org>
*
* Added support for draft-ietf-ospf-manet-or-02
* Added support for draft-ietf-ospf-af-alt-06
* - (c) 2008 Cisco Systems
*
* Added support for Multi-Topology (MT) Routing (RFC4915)
* - (c) 2009 Stig Bjorlykke <stig@bjorlykke.org>, Thales Norway AS
*
* Added support for OSPFv2 & OSPFv3 Router Information (RI) Opaque LSA (RFC4970); RI Capabilities TLV
* Added support for OSPFv2 & OSPFv3 Dynamic Hostname TLV in RI Opaque LSA (RFC5642)
* - (c) 2011 Salil Kanitkar <sskanitk@ncsu.edu>, North Carolina State University
*
* Added support for Type Classification of Experimental and Reserved sub-TLVs (RFC3630)
* - (c) 2013 Kaushal Shah <kshah3@ncsu.edu>, North Carolina State University
*/
#include "config.h"
#include <string.h>
#include <glib.h>
#include <epan/packet.h>
#include <epan/ipproto.h>
#include <epan/in_cksum.h>
#include <epan/wmem/wmem.h>
#include <epan/addr_resolv.h>
#include "packet-rsvp.h"
#define OSPF_VERSION_2 2
#define OSPF_VERSION_3 3
#define OSPF_AF_4 4
#define OSPF_AF_6 6
#define OSPF_VERSION_2_HEADER_LENGTH 24
#define OSPF_VERSION_3_HEADER_LENGTH 16
#define OSPF_HELLO 1
#define OSPF_DB_DESC 2
#define OSPF_LS_REQ 3
#define OSPF_LS_UPD 4
#define OSPF_LS_ACK 5
static const value_string pt_vals[] = {
{OSPF_HELLO, "Hello Packet" },
{OSPF_DB_DESC, "DB Description" },
{OSPF_LS_REQ, "LS Request" },
{OSPF_LS_UPD, "LS Update" },
{OSPF_LS_ACK, "LS Acknowledge" },
{0, NULL }
};
#define OSPF_AUTH_NONE 0
#define OSPF_AUTH_SIMPLE 1
#define OSPF_AUTH_CRYPT 2
static const value_string auth_vals[] = {
{OSPF_AUTH_NONE, "Null" },
{OSPF_AUTH_SIMPLE, "Simple password" },
{OSPF_AUTH_CRYPT, "Cryptographic" },
{0, NULL }
};
#define OSPF_V2_OPTIONS_MT 0x01
#define OSPF_V2_OPTIONS_E 0x02
#define OSPF_V2_OPTIONS_MC 0x04
#define OSPF_V2_OPTIONS_NP 0x08
#define OSPF_V2_OPTIONS_L 0x10
#define OSPF_V2_OPTIONS_DC 0x20
#define OSPF_V2_OPTIONS_O 0x40
#define OSPF_V2_OPTIONS_DN 0x80
#define OSPF_V3_OPTIONS_V6 0x01
#define OSPF_V3_OPTIONS_E 0x02
#define OSPF_V3_OPTIONS_MC 0x04
#define OSPF_V3_OPTIONS_N 0x08
#define OSPF_V3_OPTIONS_R 0x10
#define OSPF_V3_OPTIONS_DC 0x20
#define OSPF_V3_OPTIONS_AF 0x0100
#define OSPF_V3_OPTIONS_L 0x0200
#define OSPF_V3_OPTIONS_I 0x0400
#define OSPF_V3_OPTIONS_F 0x0800
/* Bitmask definitions for the informational capabilities bits. */
#define OSPF_RI_OPTIONS_GRC 0x80
#define OSPF_RI_OPTIONS_GRH 0x40
#define OSPF_RI_OPTIONS_SRS 0x20
#define OSPF_RI_OPTIONS_TES 0x10
#define OSPF_RI_OPTIONS_P2PLAN 0x08
#define OSPF_RI_OPTIONS_ETE 0x04
#define OSPF_LLS_EXT_OPTIONS_LR 0x00000001
#define OSPF_LLS_EXT_OPTIONS_RS 0x00000002
#define OSPF_V3_LLS_EXT_OPTIONS_LR 0x00000001
#define OSPF_V3_LLS_EXT_OPTIONS_RS 0x00000002
#define OSPF_V3_LLS_STATE_OPTIONS_R 0x80
#define OSPF_V3_LLS_STATE_OPTIONS_A 0x40
#define OSPF_V3_LLS_STATE_OPTIONS_N 0x20
#define OSPF_V3_LLS_RELAY_OPTIONS_A 0x80
#define OSPF_V3_LLS_RELAY_OPTIONS_N 0x40
#define OSPF_DBD_FLAG_MS 1
#define OSPF_DBD_FLAG_M 2
#define OSPF_DBD_FLAG_I 4
#define OSPF_DBD_FLAG_R 8
#define OSPF_LS_REQ_LENGTH 12
#define OSPF_LSTYPE_ROUTER 1
#define OSPF_LSTYPE_NETWORK 2
#define OSPF_LSTYPE_SUMMERY 3
#define OSPF_LSTYPE_ASBR 4
#define OSPF_LSTYPE_ASEXT 5
#define OSPF_LSTYPE_GRPMEMBER 6
#define OSPF_LSTYPE_ASEXT7 7
#define OSPF_LSTYPE_EXTATTR 8
#define OSPF_V3_LSTYPE_ROUTER 0x2001
#define OSPF_V3_LSTYPE_NETWORK 0x2002
#define OSPF_V3_LSTYPE_INTER_AREA_PREFIX 0x2003
#define OSPF_V3_LSTYPE_INTER_AREA_ROUTER 0x2004
#define OSPF_V3_LSTYPE_AS_EXTERNAL 0x4005
#define OSPF_V3_LSTYPE_GROUP_MEMBERSHIP 0x2006
#define OSPF_V3_LSTYPE_NSSA 0x2007
#define OSPF_V3_LSTYPE_LINK 0x0008
#define OSPF_V3_LSTYPE_INTRA_AREA_PREFIX 0x2009
#define OSPF_V3_LSTYPE_OPAQUE_RI 0x800c
/* Opaque LSA types */
#define OSPF_LSTYPE_OP_LINKLOCAL 9
#define OSPF_LSTYPE_OP_AREALOCAL 10
#define OSPF_LSTYPE_OP_ASWIDE 11
#define OSPF_V3_LSA_FUNCTION_CODE_ROUTER 1
#define OSPF_V3_LSA_FUNCTION_CODE_NETWORK 2
#define OSPF_V3_LSA_FUNCTION_CODE_INTER_AREA_PREFIX 3
#define OSPF_V3_LSA_FUNCTION_CODE_INTER_AREA_ROUTER 4
#define OSPF_V3_LSA_FUNCTION_CODE_AS_EXTERNAL 5
#define OSPF_V3_LSA_FUNCTION_CODE_GROUP_MEMBERSHIP 6
#define OSPF_V3_LSA_FUNCTION_CODE_NSSA 7
#define OSPF_V3_LSA_FUNCTION_CODE_LINK 8
#define OSPF_V3_LSA_FUNCTION_CODE_INTRA_AREA_PREFIX 9
#define OSPF_V3_LSA_FUNCTION_CODE_OPAQUE_RI 12
#define OSPF_LINK_PTP 1
#define OSPF_LINK_TRANSIT 2
#define OSPF_LINK_STUB 3
#define OSPF_LINK_VIRTUAL 4
#define OSPF_V3_LINK_PTP 1
#define OSPF_V3_LINK_TRANSIT 2
#define OSPF_V3_LINK_RESERVED 3
#define OSPF_V3_LINK_VIRTUAL 4
#define OSPF_LSA_HEADER_LENGTH 20
#define OSPF_DNA_LSA 0x8000
/* Known opaque LSAs */
#define OSPF_LSA_MPLS_TE 1
#define OSPF_LSA_GRACE 3
/* The type field "4" indicates the Opaque RI LSA with Optional Router Capabilites
advertized in the first TLV. (RFC4970) */
#define OSPF_LSA_OPAQUE_RI 4
#define OSPF_LSA_UNKNOWN 11
#define OSPF_RESTART_REASON_UNKNOWN 0
#define OSPF_RESTART_REASON_SWRESTART 1
#define OSPF_RESTART_REASON_SWRELOAD 2
#define OSPF_RESTART_REASON_SWITCH 3
static const value_string restart_reason_vals[] = {
{OSPF_RESTART_REASON_UNKNOWN, "Unknown" },
{OSPF_RESTART_REASON_SWRESTART, "Software Restart" },
{OSPF_RESTART_REASON_SWRELOAD, "Software Reload/Upgrade" },
{OSPF_RESTART_REASON_SWITCH, "Processor Switchover" },
{0, NULL}
};
/* grace-LSA TLV Types */
#define GRACE_TLV_PERIOD 1
#define GRACE_TLV_REASON 2
#define GRACE_TLV_IP 3
static const value_string grace_tlv_type_vals[] = {
{GRACE_TLV_PERIOD, "grace-LSA Grace Period"},
{GRACE_TLV_REASON, "grace-LSA Restart Reason"},
{GRACE_TLV_IP, "grace-LSA Restart IP"},
{0, NULL}
};
/* Opaque-LSA - Router Informational Capabilities: TLV Types*/
#define OPT_RI_TLV 1
#define DYN_HOSTNAME_TLV 7
#if 0
/* The Opaque RI LSA TLV types definitions. */
static const value_string ri_tlv_type_vals[] = {
{OPT_RI_TLV, "Optional Router Informational Capabilities TLV"},
{DYN_HOSTNAME_TLV, "Dynamic Hostname TLV"},
{0, NULL}
};
#endif
static const value_string ls_type_vals[] = {
{OSPF_LSTYPE_ROUTER, "Router-LSA" },
{OSPF_LSTYPE_NETWORK, "Network-LSA" },
{OSPF_LSTYPE_SUMMERY, "Summary-LSA (IP network)" },
{OSPF_LSTYPE_ASBR, "Summary-LSA (ASBR)" },
{OSPF_LSTYPE_ASEXT, "AS-External-LSA (ASBR)" },
{OSPF_LSTYPE_GRPMEMBER, "Group Membership LSA" },
{OSPF_LSTYPE_ASEXT7, "NSSA AS-External-LSA" },
{OSPF_LSTYPE_EXTATTR, "External Attributes LSA" },
{OSPF_LSTYPE_OP_LINKLOCAL, "Opaque LSA, Link-local scope" },
{OSPF_LSTYPE_OP_AREALOCAL, "Opaque LSA, Area-local scope" },
{0, NULL }
};
static const value_string ls_opaque_type_vals[] = {
{OSPF_LSA_MPLS_TE, "Traffic Engineering LSA" },
{2, "Sycamore Optical Topology Descriptions" },
{OSPF_LSA_GRACE, "grace-LSA" },
{OSPF_LSA_OPAQUE_RI, "Optional Router Capabilities Opaque RI LSA" },
{0, NULL }
};
static const value_string v3_ls_type_vals[] = {
{OSPF_V3_LSTYPE_ROUTER, "Router-LSA" },
{OSPF_V3_LSTYPE_NETWORK, "Network-LSA" },
{OSPF_V3_LSTYPE_INTER_AREA_PREFIX, "Inter-Area-Prefix-LSA" },
{OSPF_V3_LSTYPE_INTER_AREA_ROUTER, "Inter-Area-Router-LSA" },
{OSPF_V3_LSTYPE_AS_EXTERNAL, "AS-External-LSA" },
{OSPF_V3_LSTYPE_GROUP_MEMBERSHIP, "Group-Membership-LSA" },
{OSPF_V3_LSTYPE_NSSA, "NSSA-LSA" },
{OSPF_V3_LSTYPE_LINK, "Link-LSA" },
{OSPF_V3_LSTYPE_INTRA_AREA_PREFIX, "Intra-Area-Prefix-LSA" },
{OSPF_V3_LSTYPE_OPAQUE_RI, "Router Information Opaque-LSA"},
{0, NULL }
};
static const value_string lls_tlv_type_vals[] = {
{1, "Extended options TLV" },
{2, "Crypto Authentication TLV" },
{0, NULL }
};
/* OSPFv3 LLS TLV Types */
#define LLS_V3_EXT_OPT 1
#define LLS_V3_STATE_CHECK 3
#define LLS_V3_NBR_DROP 4
#define LLS_V3_RELAYS 7
#define LLS_V3_WILLING 8
#define LLS_V3_RQST_FROM 5
#define LLS_V3_FULL_STATE 6
static const value_string lls_v3_tlv_type_vals[] = {
{LLS_V3_EXT_OPT, "Extended Options TLV" },
{LLS_V3_STATE_CHECK, "State Check Sequence TLV" },
{LLS_V3_NBR_DROP, "Neighbor Drop TLV" },
{LLS_V3_RELAYS, "Active Overlapping Relays TLV" },
{LLS_V3_WILLING, "Willingness TLV" },
{LLS_V3_RQST_FROM, "Request From LTV" },
{LLS_V3_FULL_STATE, "Full State For TLV" },
{0, NULL }
};
static const value_string mpls_link_stlv_ltype_str[] = {
{1, "Point-to-point"},
{2, "Multi-access"},
{0, NULL}
};
/* FF: from www.iana.org/assignments/bandwidth-constraints-model-ids */
static const range_string mpls_link_stlv_bcmodel_rvals[] = {
{ 0, 0, "(Russian Dolls Model - RDM)" },
{ 1, 1, "(Maximum Allocation Model - MAM)" },
{ 2, 2, "(Maximum Allocation with Reservation Model - MAR)" },
{ 3, 239, "(Unassigned, Specification Required)" },
{ 240, 255, "(Reserved, Private Use)" },
{ 0, 0, NULL }
};
#define OSPF_V2_ROUTER_LSA_FLAG_B 0x01
#define OSPF_V2_ROUTER_LSA_FLAG_E 0x02
#define OSPF_V2_ROUTER_LSA_FLAG_V 0x04
#define OSPF_V2_ROUTER_LSA_FLAG_W 0x08
#define OSPF_V2_ROUTER_LSA_FLAG_N 0x10
#define OSPF_V3_ROUTER_LSA_FLAG_B 0x01
#define OSPF_V3_ROUTER_LSA_FLAG_E 0x02
#define OSPF_V3_ROUTER_LSA_FLAG_V 0x04
#define OSPF_V3_ROUTER_LSA_FLAG_W 0x08
#define OSPF_V3_PREFIX_OPTION_NU 0x01
#define OSPF_V3_PREFIX_OPTION_LA 0x02
#define OSPF_V3_PREFIX_OPTION_MC 0x04
#define OSPF_V3_PREFIX_OPTION_P 0x08
#define OSPF_V3_AS_EXTERNAL_FLAG_T 0x01
#define OSPF_V3_AS_EXTERNAL_FLAG_F 0x02
#define OSPF_V3_AS_EXTERNAL_FLAG_E 0x04
static int proto_ospf = -1;
static gint ett_ospf = -1;
static gint ett_ospf_hdr = -1;
static gint ett_ospf_hello = -1;
static gint ett_ospf_desc = -1;
static gint ett_ospf_lsr = -1;
static gint ett_ospf_lsa = -1;
static gint ett_ospf_lsa_router_link = -1;
static gint ett_ospf_lsa_upd = -1;
static gint ett_ospf_v2_options = -1;
static gint ett_ospf_ri_options = -1;
static gint ett_ospf_v3_options = -1;
static gint ett_ospf_dbd = -1;
static gint ett_ospf_lls_data_block = -1;
static gint ett_ospf_lls_tlv = -1;
static gint ett_ospf_lls_ext_options = -1;
static gint ett_ospf_v3_lls_ext_options_tlv = -1;
static gint ett_ospf_v3_lls_ext_options = -1;
static gint ett_ospf_v3_lls_state_tlv = -1;
static gint ett_ospf_v3_lls_state_scs = -1;
static gint ett_ospf_v3_lls_state_options = -1;
static gint ett_ospf_v3_lls_drop_tlv = -1;
static gint ett_ospf_v3_lls_relay_tlv = -1;
static gint ett_ospf_v3_lls_relay_added = -1;
static gint ett_ospf_v3_lls_relay_options = -1;
static gint ett_ospf_v3_lls_willingness_tlv = -1;
static gint ett_ospf_v3_lls_willingness = -1;
static gint ett_ospf_v3_lls_rf_tlv = -1;
static gint ett_ospf_v3_lls_fsf_tlv = -1;
static gint ett_ospf_v2_router_lsa_flags = -1;
static gint ett_ospf_v3_router_lsa_flags = -1;
static gint ett_ospf_v3_as_external_flags = -1;
static gint ett_ospf_v3_prefix_options = -1;
/* Trees for opaque LSAs */
static gint ett_ospf_lsa_mpls = -1;
static gint ett_ospf_lsa_mpls_router = -1;
static gint ett_ospf_lsa_mpls_link = -1;
static gint ett_ospf_lsa_mpls_link_stlv = -1;
static gint ett_ospf_lsa_mpls_link_stlv_admingrp = -1;
static gint ett_ospf_lsa_oif_tna = -1;
static gint ett_ospf_lsa_oif_tna_stlv = -1;
static gint ett_ospf_lsa_grace_tlv = -1;
static gint ett_ospf_lsa_opaque_ri = -1;
static gint ett_ospf_lsa_ri_tlv = -1;
static gint ett_ospf_lsa_dyn_hostname_tlv = -1;
static gint ett_ospf_lsa_unknown_tlv = -1;
static const true_false_string tfs_v2_options_dc = {
"Demand Circuits are supported",
"Demand Circuits are NOT supported"
};
static const true_false_string tfs_v2_options_l = {
"The packet contains LLS data block",
"The packet does NOT contain LLS data block"
};
static const true_false_string tfs_v2_options_np = {
"NSSA is supported",
"NSSA is NOT supported"
};
static const true_false_string tfs_v2_options_mc = {
"Multicast Capable",
"NOT Multicast Capable"
};
static const true_false_string tfs_v2_options_e = {
"External Routing Capability",
"NO External Routing Capability"
};
static const true_false_string tfs_v2_options_mt = {
"Multi-Topology Routing",
"NO Multi-Topology Routing"
};
static const true_false_string tfs_v2_options_o = {
"O-bit is SET",
"O-bit is NOT set"
};
static const true_false_string tfs_v2_options_dn = {
"DN-bit is SET",
"DN-bit is NOT set"
};
/* The Options field in the first TLV of the Opaque RI LSA with type field set to "4" for OSPFv2
and type field set to "12" in OSPFv3, is interpreted as advertizing optional router capabilties.
(RFC4970) */
static const true_false_string tfs_ri_options_grc = {
"OSPF Graceful Restart Capable",
"NOT OSPF Graceful Restart Capable"
};
static const true_false_string tfs_ri_options_grh = {
"OSPF Graceful Restart Helper",
"NOT OSPF Graceful Restart Helper"
};
static const true_false_string tfs_ri_options_srs = {
"OSPF Stub Router Support",
"NOT OSPF Stub Router Support"
};
static const true_false_string tfs_ri_options_tes = {
"OSPF Traffic Engineering Support",
"NOT OSPF Traffic Engineering Support"
};
static const true_false_string tfs_ri_options_p2plan = {
"OSPF point-to-point over LAN",
"NOT OSPF point-to-point over LAN"
};
static const true_false_string tfs_ri_options_ete = {
"OSPF Experimental TE",
"NOT OSPF Experimental TE"
};
static const true_false_string tfs_v3_options_v6 = {
"V6 is SET",
"V6 is NOT set"
};
static const true_false_string tfs_v3_options_e = {
"E is SET",
"E is NOT set"
};
static const true_false_string tfs_v3_options_mc = {
"MC is SET",
"MC is NOT set"
};
static const true_false_string tfs_v3_options_n = {
"N is SET",
"N is NOT set"
};
static const true_false_string tfs_v3_options_r = {
"R is SET",
"R is NOT set"
};
static const true_false_string tfs_v3_options_dc = {
"DC is SET",
"DC is NOT set"
};
static const true_false_string tfs_v3_options_af = {
"AF is SET",
"AF is NOT set"
};
static const true_false_string tfs_v3_options_l = {
"L is SET",
"L is NOT set"
};
static const true_false_string tfs_v3_options_i = {
"I is SET",
"I is NOT set"
};
static const true_false_string tfs_v3_options_f = {
"F is SET",
"F is NOT set"
};
static const true_false_string tfs_dbd_i = {
"Init bit is SET",
"Init bit is NOT set"
};
static const true_false_string tfs_dbd_m = {
"More bit is SET",
"More bit is NOT set"
};
static const true_false_string tfs_dbd_ms = {
"Master/Slave bit is SET",
"Master/Slave bit is NOT set"
};
static const true_false_string tfs_dbd_r = {
"OOBResync bit is SET",
"OOBResync bit is NOT set"
};
static const true_false_string tfs_lls_ext_options_lr = {
"LSDB Resynchronization (LR-bit) is SET",
"LSDB Resynchronization (LR-bit) is NOT set"
};
static const true_false_string tfs_lls_ext_options_rs = {
"Restart Signal (RS-bit) is SET",
"Restart Signal (RS-bit) is NOT set"
};
static const true_false_string tfs_v3_lls_ext_options_lr = {
"LSDB Resynchronization (LR-bit) is SET",
"LSDB Resynchronization (LR-bit) is NOT set"
};
static const true_false_string tfs_v3_lls_ext_options_rs = {
"Restart Signal (RS-bit) is SET",
"Restart Signal (RS-bit) is NOT set"
};
static const true_false_string tfs_v3_lls_state_options_r = {
"Request (R-bit) is SET",
"Request (R-bit) is NOT set",
};
static const true_false_string tfs_v3_lls_state_options_a = {
"Answer (A-bit) is SET",
"Answer (A-bit) is NOT set",
};
static const true_false_string tfs_v3_lls_state_options_n = {
"Incomplete (N-bit) is SET",
"Incomplete (N-bit) is NOT set",
};
static const true_false_string tfs_v3_lls_relay_options_a = {
"Always (A-bit) is SET",
"Always (A-bit) is NOT set",
};
static const true_false_string tfs_v3_lls_relay_options_n = {
"Never (N-bit) is SET",
"Never (N-bit) is NOT set",
};
static const true_false_string tfs_v2_router_lsa_flags_b = {
"Area border router",
"NO Area border router"
};
static const true_false_string tfs_v2_router_lsa_flags_e = {
"AS boundary router",
"NO AS boundary router"
};
static const true_false_string tfs_v2_router_lsa_flags_v = {
"Virtual link endpoint",
"NO Virtual link endpoint"
};
static const true_false_string tfs_v2_router_lsa_flags_w = {
"Wild-card multicast receiver",
"NO Wild-card multicast receiver"
};
static const true_false_string tfs_v2_router_lsa_flags_n = {
"N flag",
"NO N flag"
};
static const true_false_string tfs_v3_router_lsa_flags_b = {
"Area border router",
"NO Area border router"
};
static const true_false_string tfs_v3_router_lsa_flags_e = {
"AS boundary router",
"NO AS boundary router"
};
static const true_false_string tfs_v3_router_lsa_flags_v = {
"Virtual link endpoint",
"NO Virtual link endpoint"
};
static const true_false_string tfs_v3_router_lsa_flags_w = {
"Wild-card multicast receiver",
"NO Wild-card multicast receiver"
};
static const true_false_string tfs_v3_as_external_flags_t = {
"External Route Tag is included",
"External Route Tag is NOT included"
};
static const true_false_string tfs_v3_as_external_flags_f = {
"Forwarding Address is included",
"Forwarding Address is NOT included"
};
static const true_false_string tfs_v3_as_external_flags_e = {
"Type 2 external metric",
"Type 1 external metric"
};
static const true_false_string tfs_v3_prefix_options_nu = {
"NoUnicast capability bit is SET",
"NoUnicast capability bit is NOT set"
};
static const true_false_string tfs_v3_prefix_options_la = {
"LocalAddress capability bit is SET",
"LocalAddress capability bit is NOT set"
};
static const true_false_string tfs_v3_prefix_options_mc = {
"Multicast capability bit is SET",
"Multicast capability bit is NOT set"
};
static const true_false_string tfs_v3_prefix_options_p = {
"Propagate bit is SET",
"Propagate bit is NOT set"
};
/*-----------------------------------------------------------------------
* OSPF Filtering
*-----------------------------------------------------------------------*/
/* The OSPF filtering keys */
enum {
OSPFF_MSG_TYPE,
OSPFF_MSG_MIN,
OSPFF_MSG_HELLO,
OSPFF_MSG_DB_DESC,
OSPFF_MSG_LS_REQ,
OSPFF_MSG_LS_UPD,
OSPFF_MSG_LS_ACK,
OSPFF_LS_TYPE,
OSPFF_LS_OPAQUE_TYPE,
OSPFF_LS_MPLS_TE_INSTANCE,
OSPFF_LS_MIN,
OSPFF_LS_ROUTER,
OSPFF_LS_NETWORK,
OSPFF_LS_SUMMARY,
OSPFF_LS_ASBR,
OSPFF_LS_ASEXT,
OSPFF_LS_GRPMEMBER,
OSPFF_LS_ASEXT7,
OSPFF_LS_EXTATTR,
OSPFF_LS_OPAQUE,
OSPFF_V3_LS_TYPE,
OSPFF_V3_LS_MIN,
OSPFF_V3_LS_ROUTER,
OSPFF_V3_LS_NETWORK,
OSPFF_V3_LS_INTER_AREA_PREFIX,
OSPFF_V3_LS_INTER_AREA_ROUTER,
OSPFF_V3_LS_AS_EXTERNAL,
OSPFF_V3_LS_GROUP_MEMBERSHIP,
OSPFF_V3_LS_NSSA,
OSPFF_V3_LS_LINK,
OSPFF_V3_LS_INTRA_AREA_PREFIX,
OSPFF_V3_LS_OPAQUE_RI,
OSPFF_SRC_ROUTER,
OSPFF_ADV_ROUTER,
OSPFF_LS_MPLS,
OSPFF_LS_MPLS_ROUTERID,
OSPFF_LS_MPLS_LINKTYPE,
OSPFF_LS_MPLS_LINKID,
OSPFF_LS_MPLS_LOCAL_ADDR,
OSPFF_LS_MPLS_REMOTE_ADDR,
OSPFF_LS_MPLS_LOCAL_IFID,
OSPFF_LS_MPLS_REMOTE_IFID,
OSPFF_LS_MPLS_LINKCOLOR,
OSPFF_LS_MPLS_BC_MODEL_ID,
OSPFF_LS_OIF_LOCAL_NODE_ID,
OSPFF_LS_OIF_REMOTE_NODE_ID,
OSPFF_V2_OPTIONS,
OSPFF_V2_OPTIONS_MT,
OSPFF_V2_OPTIONS_E,
OSPFF_V2_OPTIONS_MC,
OSPFF_V2_OPTIONS_NP,
OSPFF_V2_OPTIONS_L,
OSPFF_V2_OPTIONS_DC,
OSPFF_V2_OPTIONS_O,
OSPFF_V2_OPTIONS_DN,
/* OSPF Filtering keys for Router Informational Capabilities Options field. */
OSPFF_RI_OPTIONS,
OSPFF_RI_OPTIONS_GRC,
OSPFF_RI_OPTIONS_GRH,
OSPFF_RI_OPTIONS_SRS,
OSPFF_RI_OPTIONS_TES,
OSPFF_RI_OPTIONS_P2PLAN,
OSPFF_RI_OPTIONS_ETE,
/* OSPF Filtering keys for Dynamic Hostname support (RFC5642) */
OSPFF_DYN_HOSTNAME,
OSPFF_OPAQUE_LSA_MBZ,
OSPFF_UNKNOWN_TLV_TXT,
OSPFF_V3_OPTIONS,
OSPFF_V3_OPTIONS_V6,
OSPFF_V3_OPTIONS_E,
OSPFF_V3_OPTIONS_MC,
OSPFF_V3_OPTIONS_N,
OSPFF_V3_OPTIONS_R,
OSPFF_V3_OPTIONS_DC,
OSPFF_V3_OPTIONS_AF,
OSPFF_V3_OPTIONS_L,
OSPFF_V3_OPTIONS_I,
OSPFF_V3_OPTIONS_F,
OSPFF_DBD,
OSPFF_DBD_R,
OSPFF_DBD_I,
OSPFF_DBD_M,
OSPFF_DBD_MS,
OSPFF_LLS_EXT_OPTIONS_TLV,
OSPFF_LLS_EXT_OPTIONS,
OSPFF_LLS_EXT_OPTIONS_LR,
OSPFF_LLS_EXT_OPTIONS_RS,
OSPFF_V3_LLS_EXT_OPTIONS_TLV,
OSPFF_V3_LLS_EXT_OPTIONS,
OSPFF_V3_LLS_EXT_OPTIONS_LR,
OSPFF_V3_LLS_EXT_OPTIONS_RS,
OSPFF_V3_LLS_STATE_TLV,
OSPFF_V3_LLS_STATE_SCS,
OSPFF_V3_LLS_STATE_OPTIONS,
OSPFF_V3_LLS_STATE_OPTIONS_R,
OSPFF_V3_LLS_STATE_OPTIONS_A,
OSPFF_V3_LLS_STATE_OPTIONS_N,
OSPFF_V3_LLS_DROP_TLV,
OSPFF_V3_LLS_RELAY_TLV,
OSPFF_V3_LLS_RELAY_ADDED,
OSPFF_V3_LLS_RELAY_OPTIONS,
OSPFF_V3_LLS_RELAY_OPTIONS_A,
OSPFF_V3_LLS_RELAY_OPTIONS_N,
OSPFF_V3_LLS_WILLINGNESS_TLV,
OSPFF_V3_LLS_WILLINGNESS,
OSPFF_V3_LLS_RF_TLV,
OSPFF_V3_LLS_FSF_TLV,
OSPFF_V2_ROUTER_LSA_FLAG,
OSPFF_V2_ROUTER_LSA_FLAG_B,
OSPFF_V2_ROUTER_LSA_FLAG_E,
OSPFF_V2_ROUTER_LSA_FLAG_V,
OSPFF_V2_ROUTER_LSA_FLAG_W,
OSPFF_V2_ROUTER_LSA_FLAG_N,
OSPFF_V3_ROUTER_LSA_FLAG,
OSPFF_V3_ROUTER_LSA_FLAG_B,
OSPFF_V3_ROUTER_LSA_FLAG_E,
OSPFF_V3_ROUTER_LSA_FLAG_V,
OSPFF_V3_ROUTER_LSA_FLAG_W,
OSPFF_V3_AS_EXTERNAL_FLAG,
OSPFF_V3_AS_EXTERNAL_FLAG_T,
OSPFF_V3_AS_EXTERNAL_FLAG_F,
OSPFF_V3_AS_EXTERNAL_FLAG_E,
OSPFF_V3_PREFIX_OPTION,
OSPFF_V3_PREFIX_OPTION_NU,
OSPFF_V3_PREFIX_OPTION_LA,
OSPFF_V3_PREFIX_OPTION_MC,
OSPFF_V3_PREFIX_OPTION_P,
OSPFF_V2_GRACE_TLV,
OSPFF_V2_GRACE_PERIOD,
OSPFF_V2_GRACE_REASON,
OSPFF_V2_GRACE_IP,
OSPFF_MAX
};
static int hf_ospf_filter[OSPFF_MAX];
static gint ospf_msg_type_to_filter (guint8 msg_type)
{
if (msg_type >= OSPF_HELLO &&
msg_type <= OSPF_LS_ACK)
return msg_type + OSPFF_MSG_MIN;
return -1;
}
static gint ospf_ls_type_to_filter (guint8 ls_type)
{
if (ls_type >= OSPF_LSTYPE_ROUTER &&
ls_type <= OSPF_LSTYPE_EXTATTR)
return OSPFF_LS_MIN + ls_type;
else if (ls_type >= OSPF_LSTYPE_OP_LINKLOCAL &&
ls_type <= OSPF_LSTYPE_OP_ASWIDE)
return OSPFF_LS_OPAQUE;
else
return -1;
}
static gint ospf_v3_ls_type_to_filter (guint16 ls_type)
{
guint16 function_code;
function_code = ls_type & 0x1fff;
if (function_code >= OSPF_V3_LSA_FUNCTION_CODE_ROUTER &&
function_code <= OSPF_V3_LSA_FUNCTION_CODE_INTRA_AREA_PREFIX)
return OSPFF_V3_LS_MIN + function_code;
else if (function_code == OSPF_V3_LSA_FUNCTION_CODE_OPAQUE_RI)
return OSPFF_V3_LS_OPAQUE_RI;
else
return -1;
}
typedef struct _bitfield_info {
int hfindex;
gint *ett;
int *idx;
int num;
} bitfield_info;
static int bf_dbd[] = {
OSPFF_DBD_R,
OSPFF_DBD_I,
OSPFF_DBD_M,
OSPFF_DBD_MS
};
static int bf_lls_ext_options[] = {
OSPFF_LLS_EXT_OPTIONS_RS,
OSPFF_LLS_EXT_OPTIONS_LR
};
static int bf_v3_lls_ext_options[] = {
OSPFF_V3_LLS_EXT_OPTIONS_LR,
OSPFF_V3_LLS_EXT_OPTIONS_RS
};
static int bf_v3_lls_state_options[] = {
OSPFF_V3_LLS_STATE_OPTIONS_R,
OSPFF_V3_LLS_STATE_OPTIONS_A,
OSPFF_V3_LLS_STATE_OPTIONS_N
};
static int bf_v3_lls_relay_options[] = {
OSPFF_V3_LLS_RELAY_OPTIONS_A,
OSPFF_V3_LLS_RELAY_OPTIONS_N
};
static int bf_v2_router_lsa_flags[] = {
OSPFF_V2_ROUTER_LSA_FLAG_V,
OSPFF_V2_ROUTER_LSA_FLAG_E,
OSPFF_V2_ROUTER_LSA_FLAG_B
};
static int bf_v2_router_lsa_mt_flags[] = {
OSPFF_V2_ROUTER_LSA_FLAG_N,
OSPFF_V2_ROUTER_LSA_FLAG_W,
OSPFF_V2_ROUTER_LSA_FLAG_V,
OSPFF_V2_ROUTER_LSA_FLAG_E,
OSPFF_V2_ROUTER_LSA_FLAG_B
};
static int bf_v3_router_lsa_flags[] = {
OSPFF_V3_ROUTER_LSA_FLAG_W,
OSPFF_V3_ROUTER_LSA_FLAG_V,
OSPFF_V3_ROUTER_LSA_FLAG_E,
OSPFF_V3_ROUTER_LSA_FLAG_B
};
static int bf_v3_as_external_flags[] = {
OSPFF_V3_AS_EXTERNAL_FLAG_E,
OSPFF_V3_AS_EXTERNAL_FLAG_F,
OSPFF_V3_AS_EXTERNAL_FLAG_T
};
static int bf_v2_options[] = {
OSPFF_V2_OPTIONS_DN,
OSPFF_V2_OPTIONS_O,
OSPFF_V2_OPTIONS_DC,
OSPFF_V2_OPTIONS_L,
OSPFF_V2_OPTIONS_NP,
OSPFF_V2_OPTIONS_MC,
OSPFF_V2_OPTIONS_E,
OSPFF_V2_OPTIONS_MT
};
/* Structures for handling the bitfield of the Options field of Optional Router Capabilites LSA (RFC4970). */
static int bf_ri_options[] = {
OSPFF_RI_OPTIONS_GRC,
OSPFF_RI_OPTIONS_GRH,
OSPFF_RI_OPTIONS_SRS,
OSPFF_RI_OPTIONS_TES,
OSPFF_RI_OPTIONS_P2PLAN,
OSPFF_RI_OPTIONS_ETE
};
static int bf_v3_options[] = {
OSPFF_V3_OPTIONS_F,
OSPFF_V3_OPTIONS_I,
OSPFF_V3_OPTIONS_L,
OSPFF_V3_OPTIONS_AF,
OSPFF_V3_OPTIONS_DC,
OSPFF_V3_OPTIONS_R,
OSPFF_V3_OPTIONS_N,
OSPFF_V3_OPTIONS_MC,
OSPFF_V3_OPTIONS_E,
OSPFF_V3_OPTIONS_V6
};
static int bf_v3_prefix_options[] = {
OSPFF_V3_PREFIX_OPTION_P,
OSPFF_V3_PREFIX_OPTION_MC,
OSPFF_V3_PREFIX_OPTION_LA,
OSPFF_V3_PREFIX_OPTION_NU
};
static bitfield_info bfinfo_dbd = {
OSPFF_DBD, &ett_ospf_dbd,
bf_dbd, array_length(bf_dbd)
};
static bitfield_info bfinfo_lls_ext_options = {
OSPFF_LLS_EXT_OPTIONS, &ett_ospf_lls_ext_options,
bf_lls_ext_options, array_length(bf_lls_ext_options)
};
static bitfield_info bfinfo_v3_lls_ext_options = {
OSPFF_V3_LLS_EXT_OPTIONS, &ett_ospf_v3_lls_ext_options,
bf_v3_lls_ext_options, array_length(bf_v3_lls_ext_options)
};
static bitfield_info bfinfo_v3_lls_state_options = {
OSPFF_V3_LLS_STATE_OPTIONS, &ett_ospf_v3_lls_state_options,
bf_v3_lls_state_options, array_length(bf_v3_lls_state_options)
};
static bitfield_info bfinfo_v3_lls_relay_options = {
OSPFF_V3_LLS_RELAY_OPTIONS, &ett_ospf_v3_lls_relay_options,
bf_v3_lls_relay_options, array_length(bf_v3_lls_relay_options)
};
static bitfield_info bfinfo_v2_router_lsa_flags = {
OSPFF_V2_ROUTER_LSA_FLAG, &ett_ospf_v2_router_lsa_flags,
bf_v2_router_lsa_flags, array_length(bf_v2_router_lsa_flags)
};
static bitfield_info bfinfo_v2_router_lsa_mt_flags = {
OSPFF_V2_ROUTER_LSA_FLAG, &ett_ospf_v2_router_lsa_flags,
bf_v2_router_lsa_mt_flags, array_length(bf_v2_router_lsa_mt_flags)
};
static bitfield_info bfinfo_v3_router_lsa_flags = {
OSPFF_V3_ROUTER_LSA_FLAG, &ett_ospf_v3_router_lsa_flags,
bf_v3_router_lsa_flags, array_length(bf_v3_router_lsa_flags)
};
static bitfield_info bfinfo_v3_as_external_flags = {
OSPFF_V3_AS_EXTERNAL_FLAG, &ett_ospf_v3_as_external_flags,
bf_v3_as_external_flags, array_length(bf_v3_as_external_flags)
};
static bitfield_info bfinfo_v2_options = {
OSPFF_V2_OPTIONS, &ett_ospf_v2_options,
bf_v2_options, array_length(bf_v2_options)
};
static bitfield_info bfinfo_v3_options = {
OSPFF_V3_OPTIONS, &ett_ospf_v3_options,
bf_v3_options, array_length(bf_v3_options)
};
static bitfield_info bfinfo_v3_prefix_options = {
OSPFF_V3_PREFIX_OPTION, &ett_ospf_v3_prefix_options,
bf_v3_prefix_options, array_length(bf_v3_prefix_options)
};
/* Structure used for dissecing the Options bitfield of the Optional Router Informational
Capabilities RI LSA. */
static bitfield_info bfinfo_ri_options = {
OSPFF_RI_OPTIONS, &ett_ospf_ri_options,
bf_ri_options, array_length(bf_ri_options)
};
#define MAX_OPTIONS_LEN 128
static void
dissect_ospf_bitfield (proto_tree *parent_tree, tvbuff_t *tvb, int offset,
bitfield_info *bfinfo)
{
proto_item *item = NULL;
proto_tree *tree = NULL;
guint32 flags;
char *str;
gint length, pos;
gint i;
header_field_info *hfinfo;
int hfindex, idx;
gint returned_length;
hfindex = hf_ospf_filter[bfinfo->hfindex];
hfinfo = proto_registrar_get_nth(hfindex);
switch (hfinfo->type) {
case FT_UINT8:
flags = tvb_get_guint8(tvb, offset);
length = 1;
break;
case FT_UINT16:
flags = tvb_get_ntohs(tvb, offset);
length = 2;
break;
case FT_UINT24:
flags = tvb_get_ntoh24(tvb, offset);
length = 3;
break;
case FT_UINT32:
flags = tvb_get_ntohl(tvb, offset);
length = 4;
break;
default:
return;
}
if (parent_tree) {
item = proto_tree_add_uint(parent_tree, hfindex, tvb, offset, length, flags);
tree = proto_item_add_subtree(item, *bfinfo->ett);
str = (char *)wmem_alloc(wmem_packet_scope(), MAX_OPTIONS_LEN);
str[0] = 0;
for (i = 0, pos = 0; i < bfinfo->num; i++) {
idx = hf_ospf_filter[bfinfo->idx[i]];
hfinfo = proto_registrar_get_nth(idx);
if (flags & hfinfo->bitmask) {
returned_length = g_snprintf(&str[pos], MAX_OPTIONS_LEN-pos, "%s%s",
pos ? ", " : "",
hfinfo->name);
pos += MIN(returned_length, MAX_OPTIONS_LEN-pos);
}
proto_tree_add_boolean(tree, idx, tvb, offset, length, flags);
}
if (str[0]) {
proto_item_append_text(item, " (%s)", str);
}
}
}
static dissector_handle_t data_handle;
static void dissect_ospf_hello(tvbuff_t*, int, proto_tree*, guint8, guint16);
static void dissect_ospf_db_desc(tvbuff_t*, int, proto_tree*, guint8, guint16, guint8);
static void dissect_ospf_ls_req(tvbuff_t*, int, proto_tree*, guint8, guint16);
static void dissect_ospf_ls_upd(tvbuff_t*, int, proto_tree*, guint8, guint16, guint8);
static void dissect_ospf_ls_ack(tvbuff_t*, int, proto_tree*, guint8, guint16, guint8);
static void dissect_ospf_lls_data_block(tvbuff_t*, int, proto_tree*, guint8);
/* dissect_ospf_v[23]lsa returns the offset of the next LSA
* if disassemble_body is set to FALSE (e.g. in LSA ACK
* packets), the offset is set to the offset of the next
* LSA header
*/
static int dissect_ospf_v2_lsa(tvbuff_t*, int, proto_tree*, gboolean disassemble_body);
static int dissect_ospf_v3_lsa(tvbuff_t*, int, proto_tree*, gboolean disassemble_body,
guint8);
static void dissect_ospf_v3_address_prefix(tvbuff_t *, int, int, proto_tree *, guint8);
static int
ospf_has_lls_block(tvbuff_t *tvb, int offset, guint8 packet_type, guint8 version)
{
guint8 flags;
guint32 v3flags;
/* LLS block can be found only in HELLO and DBDESC packets */
switch (packet_type) {
case OSPF_HELLO:
switch (version) {
case OSPF_VERSION_2:
flags = tvb_get_guint8 (tvb, offset + 6);
return flags & OSPF_V2_OPTIONS_L;
case OSPF_VERSION_3:
v3flags = tvb_get_ntohl(tvb, offset + 5);
v3flags = v3flags >> 8;
return v3flags & OSPF_V3_OPTIONS_L;
}
break;
case OSPF_DB_DESC:
switch (version) {
case OSPF_VERSION_2:
flags = tvb_get_guint8 (tvb, offset + 2);
return flags & OSPF_V2_OPTIONS_L;
case OSPF_VERSION_3:
v3flags = tvb_get_ntohl(tvb, offset + 1);
v3flags = v3flags >> 8;
return v3flags & OSPF_V3_OPTIONS_L;
}
break;
}
return 0;
}
static void
dissect_ospf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree *ospf_tree = NULL;
proto_item *ti, *hidden_item;
proto_tree *ospf_header_tree;
guint8 version;
guint8 packet_type;
guint16 ospflen;
vec_t cksum_vec[4];
int cksum_vec_len;
guint32 phdr[2];
guint16 cksum, computed_cksum;
guint length, reported_length;
guint16 auth_type;
char auth_data[8+1];
int crypto_len = 0;
unsigned int ospf_header_length;
guint8 instance_ID;
guint8 reserved;
guint32 areaid;
guint8 address_family = OSPF_AF_6;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "OSPF");
col_clear(pinfo->cinfo, COL_INFO);
version = tvb_get_guint8(tvb, 0);
switch (version) {
case OSPF_VERSION_2:
ospf_header_length = OSPF_VERSION_2_HEADER_LENGTH;
break;
case OSPF_VERSION_3:
ospf_header_length = OSPF_VERSION_3_HEADER_LENGTH;
break;
default:
ospf_header_length = 14;
break;
}
packet_type = tvb_get_guint8(tvb, 1);
col_add_str(pinfo->cinfo, COL_INFO,
val_to_str(packet_type, pt_vals, "Unknown (%u)"));
if (tree) {
ospflen = tvb_get_ntohs(tvb, 2);
ti = proto_tree_add_item(tree, proto_ospf, tvb, 0, -1, ENC_NA);
ospf_tree = proto_item_add_subtree(ti, ett_ospf);
ti = proto_tree_add_text(ospf_tree, tvb, 0, ospf_header_length,
"OSPF Header");
ospf_header_tree = proto_item_add_subtree(ti, ett_ospf_hdr);
proto_tree_add_text(ospf_header_tree, tvb, 0, 1, "OSPF Version: %u",
version);
proto_tree_add_item(ospf_header_tree, hf_ospf_filter[OSPFF_MSG_TYPE],
tvb, 1, 1, ENC_BIG_ENDIAN);
if (ospf_msg_type_to_filter(packet_type) != -1) {
hidden_item = proto_tree_add_item(ospf_header_tree,
hf_ospf_filter[ospf_msg_type_to_filter(packet_type)],
tvb, 1, 1, ENC_BIG_ENDIAN);
PROTO_ITEM_SET_HIDDEN(hidden_item);
}
proto_tree_add_text(ospf_header_tree, tvb, 2, 2, "Packet Length: %u",
ospflen);
proto_tree_add_item(ospf_header_tree, hf_ospf_filter[OSPFF_SRC_ROUTER],
tvb, 4, 4, ENC_BIG_ENDIAN);
areaid=tvb_get_ntohl(tvb,8);
proto_tree_add_text(ospf_header_tree, tvb, 8, 4, "Area ID: %s%s",
tvb_ip_to_str(tvb, 8), areaid == 0 ? " (Backbone)" : "");
/*
* Quit at this point if it's an unknown OSPF version.
*/
switch (version) {
case OSPF_VERSION_2:
case OSPF_VERSION_3:
break;
default:
cksum = tvb_get_ntohs(tvb, 12);
if (cksum == 0) {
/* No checksum supplied in the packet. */
proto_tree_add_text(ospf_header_tree, tvb, 12, 2,
"Packet Checksum: 0x%04x (none)", cksum);
} else {
proto_tree_add_text(ospf_header_tree, tvb, 12, 2,
"Packet Checksum: 0x%04x", cksum);
}
proto_tree_add_text(ospf_tree, tvb, 14, -1,
"Unknown OSPF version %u", version);
return;
}
cksum = tvb_get_ntohs(tvb, 12);
length = tvb_length(tvb);
/* XXX - include only the length from the OSPF header? */
reported_length = tvb_reported_length(tvb);
if (cksum == 0) {
/* No checksum supplied in the packet. */
proto_tree_add_text(ospf_header_tree, tvb, 12, 2,
"Packet Checksum: 0x%04x (none)", cksum);
} else if (!pinfo->fragmented && length >= reported_length
&& length >= ospf_header_length) {
/* The packet isn't part of a fragmented datagram and isn't
truncated, so we can checksum it. */
switch (version) {
case OSPF_VERSION_2:
/* Header, not including the authentication data (the OSPFv2
checksum excludes the 64-bit authentication field). */
cksum_vec[0].ptr = tvb_get_ptr(tvb, 0, 16);
cksum_vec[0].len = 16;
if (length > ospf_header_length) {
/* Rest of the packet, again not including the
authentication data. */
reported_length -= ospf_header_length;
cksum_vec[1].ptr = tvb_get_ptr(tvb, ospf_header_length, reported_length);
cksum_vec[1].len = reported_length;
cksum_vec_len = 2;
} else {
/* There's nothing but a header. */
cksum_vec_len = 1;
}
break;
case OSPF_VERSION_3:
/* IPv6-style checksum, covering the entire OSPF packet
and a prepended IPv6 pseudo-header. */
/* Set up the fields of the pseudo-header. */
cksum_vec[0].ptr = (guint8 *)pinfo->src.data;
cksum_vec[0].len = pinfo->src.len;
cksum_vec[1].ptr = (guint8 *)pinfo->dst.data;
cksum_vec[1].len = pinfo->dst.len;
cksum_vec[2].ptr = (const guint8 *)&phdr;
phdr[0] = g_htonl(ospflen);
phdr[1] = g_htonl(IP_PROTO_OSPF);
cksum_vec[2].len = 8;
cksum_vec[3].ptr = tvb_get_ptr(tvb, 0, reported_length);
cksum_vec[3].len = reported_length;
cksum_vec_len = 4;
break;
default:
DISSECTOR_ASSERT_NOT_REACHED();
cksum_vec_len = 0;
break;
}
computed_cksum = in_cksum(cksum_vec, cksum_vec_len);
if (computed_cksum == 0) {
proto_tree_add_text(ospf_header_tree, tvb, 12, 2,
"Packet Checksum: 0x%04x [correct]", cksum);
} else {
proto_tree_add_text(ospf_header_tree, tvb, 12, 2,
"Packet Checksum: 0x%04x [incorrect, should be 0x%04x]",
cksum, in_cksum_shouldbe(cksum, computed_cksum));
}
} else {
proto_tree_add_text(ospf_header_tree, tvb, 12, 2,
"Packet Checksum: 0x%04x", cksum);
}
switch (version) {
case OSPF_VERSION_2:
/* Authentication is only valid for OSPFv2 */
auth_type = tvb_get_ntohs(tvb, 14);
proto_tree_add_text(ospf_header_tree, tvb, 14, 2, "Auth Type: %s",
val_to_str(auth_type, auth_vals, "Unknown (%u)"));
switch (auth_type) {
case OSPF_AUTH_NONE:
proto_tree_add_text(ospf_header_tree, tvb, 16, 8, "Auth Data (none)");
break;
case OSPF_AUTH_SIMPLE:
tvb_get_nstringz0(tvb, 16, 8+1, auth_data);
proto_tree_add_text(ospf_header_tree, tvb, 16, 8, "Auth Data: %s", auth_data);
break;
case OSPF_AUTH_CRYPT:
proto_tree_add_text(ospf_header_tree, tvb, 18, 1, "Auth Key ID: %u",
tvb_get_guint8(tvb, 18));
crypto_len = tvb_get_guint8(tvb, 19);
proto_tree_add_text(ospf_header_tree, tvb, 19, 1, "Auth Data Length: %u",
crypto_len);
proto_tree_add_text(ospf_header_tree, tvb, 20, 4, "Auth Crypto Sequence Number: 0x%x",
tvb_get_ntohl(tvb, 20));
/* Show the message digest that was appended to the end of the
OSPF message - but only if it's present (we don't want
to get an exception before we've tried dissecting OSPF
message). */
if (tvb_bytes_exist(tvb, ospflen, crypto_len)) {
proto_tree_add_text(ospf_header_tree, tvb, ospflen, crypto_len,
"Auth Data: %s",
tvb_bytes_to_str(tvb, ospflen, crypto_len));
proto_tree_set_appendix(ospf_header_tree, tvb, ospflen, crypto_len);
}
break;
default:
proto_tree_add_text(ospf_header_tree, tvb, 16, 8, "Auth Data (unknown)");
break;
}
break;
case OSPF_VERSION_3:
/* Instance ID and "reserved" is OSPFv3-only */
instance_ID = tvb_get_guint8(tvb, 14);
ti = proto_tree_add_text(ospf_header_tree, tvb, 14, 1, "Instance ID: %u",
instance_ID);
if (instance_ID < 32) {
proto_item_append_text(ti, " (IPv6 unicast AF)");
address_family = OSPF_AF_6;
} else if (instance_ID < 64) {
proto_item_append_text(ti, " (IPv6 multicast AF)");
address_family = OSPF_AF_6;
} else if (instance_ID < 96) {
proto_item_append_text(ti, " (IPv4 unicast AF)");
address_family = OSPF_AF_4;
} else if (instance_ID < 128) {
proto_item_append_text(ti, " (IPv4 multicast AF)");
address_family = OSPF_AF_4;
} else {
proto_item_append_text(ti, " (Reserved)");
address_family = OSPF_AF_6;
}
reserved = tvb_get_guint8(tvb, 15);
proto_tree_add_text(ospf_header_tree, tvb, 15, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),
reserved);
break;
default:
DISSECTOR_ASSERT_NOT_REACHED();
break;
}
switch (packet_type){
case OSPF_HELLO:
dissect_ospf_hello(tvb, ospf_header_length, ospf_tree, version,
(guint16)(ospflen - ospf_header_length));
break;
case OSPF_DB_DESC:
dissect_ospf_db_desc(tvb, (int)ospf_header_length, ospf_tree, version,
(guint16)(ospflen - ospf_header_length),
address_family);
break;
case OSPF_LS_REQ:
dissect_ospf_ls_req(tvb, (int)ospf_header_length, ospf_tree, version,
(guint16)(ospflen - ospf_header_length));
break;
case OSPF_LS_UPD:
dissect_ospf_ls_upd(tvb, (int)ospf_header_length, ospf_tree, version,
(guint16)(ospflen - ospf_header_length),
address_family);
break;
case OSPF_LS_ACK:
dissect_ospf_ls_ack(tvb, (int)ospf_header_length, ospf_tree, version,
(guint16)(ospflen - ospf_header_length),
address_family);
break;
default:
call_dissector(data_handle,
tvb_new_subset_remaining(tvb, ospf_header_length), pinfo, tree);
break;
}
/* take care of the LLS data block */
if (ospf_has_lls_block(tvb, ospf_header_length, packet_type, version)) {
dissect_ospf_lls_data_block(tvb, ospflen + crypto_len, ospf_tree,
version);
}
}
}
static int
dissect_ospfv2_lls_tlv(tvbuff_t *tvb, int offset, proto_tree *tree)
{
proto_item *ti;
proto_tree *ospf_lls_tlv_tree;
guint16 type;
guint16 length;
type = tvb_get_ntohs(tvb, offset);
length = tvb_get_ntohs(tvb, offset + 2);
ti = proto_tree_add_text(tree, tvb, offset, length + 4, "%s",
val_to_str_const(type, lls_tlv_type_vals, "Unknown TLV"));
ospf_lls_tlv_tree = proto_item_add_subtree(ti, ett_ospf_lls_tlv);
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset, 2,
"Type: %d", type);
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset + 2, 2,
"Length: %d", length);
switch(type) {
case 1:
dissect_ospf_bitfield(ospf_lls_tlv_tree, tvb, offset + 4, &bfinfo_lls_ext_options);
break;
case 2:
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset + 4, 4,
"Sequence number 0x%08x",
tvb_get_ntohl(tvb, offset + 4));
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset + 8, length - 4,
"Auth Data: %s",
tvb_bytes_to_str(tvb, offset + 8, length - 4));
break;
}
return offset + length + 4;
}
static int
dissect_ospfv3_lls_tlv(tvbuff_t *tvb, int offset, proto_tree *tree)
{
proto_item *ti;
proto_tree *ospf_lls_tlv_tree;
guint16 type;
guint16 length;
guint8 relays_added;
int orig_offset;
type = tvb_get_ntohs(tvb, offset);
length = tvb_get_ntohs(tvb, offset + 2);
switch(type) {
case LLS_V3_EXT_OPT:
ti = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V3_LLS_EXT_OPTIONS_TLV], tvb,
offset, length + 4, ENC_NA);
break;
case LLS_V3_STATE_CHECK:
ti = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V3_LLS_STATE_TLV], tvb,
offset, length + 4, ENC_NA);
break;
case LLS_V3_NBR_DROP:
ti = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V3_LLS_DROP_TLV], tvb,
offset, length + 4, ENC_NA);
break;
case LLS_V3_RELAYS:
ti = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V3_LLS_RELAY_TLV], tvb,
offset, length + 4, ENC_NA);
break;
case LLS_V3_WILLING:
ti = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V3_LLS_WILLINGNESS_TLV], tvb,
offset, length + 4, ENC_NA);
break;
case LLS_V3_RQST_FROM:
ti = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V3_LLS_RF_TLV], tvb,
offset, length + 4, ENC_NA);
break;
case LLS_V3_FULL_STATE:
ti = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V3_LLS_FSF_TLV], tvb,
offset, length + 4, ENC_NA);
break;
default:
ti = proto_tree_add_text(tree, tvb, offset, length + 4, "%s",
val_to_str_const(type, lls_v3_tlv_type_vals, "Unknown TLV"));
}
ospf_lls_tlv_tree = proto_item_add_subtree(ti, ett_ospf_lls_tlv);
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset, 2,
"Type: %d", type);
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset + 2, 2,
"Length: %d", length);
orig_offset = offset;
switch (type) {
case LLS_V3_EXT_OPT:
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset + 4, 4,
"Extended Options: 0x%08x",
tvb_get_ntohl(tvb, offset + 4));
dissect_ospf_bitfield(ospf_lls_tlv_tree, tvb, offset + 4, &bfinfo_v3_lls_ext_options);
break;
case LLS_V3_STATE_CHECK:
proto_tree_add_item(ospf_lls_tlv_tree, hf_ospf_filter[OSPFF_V3_LLS_STATE_SCS],
tvb, offset+4, 2, ENC_BIG_ENDIAN);
dissect_ospf_bitfield(ospf_lls_tlv_tree, tvb, offset + 6,
&bfinfo_v3_lls_state_options);
break;
case LLS_V3_NBR_DROP:
offset += 4;
while (orig_offset + length >= offset) {
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset, 4,
"Dropped Neighbor: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
}
offset = orig_offset;
break;
case LLS_V3_RELAYS:
relays_added = tvb_get_guint8(tvb, offset+4);
proto_tree_add_item(ospf_lls_tlv_tree, hf_ospf_filter[OSPFF_V3_LLS_RELAY_ADDED],
tvb, offset+4, 1, ENC_BIG_ENDIAN);
dissect_ospf_bitfield(ospf_lls_tlv_tree, tvb, offset + 5,
&bfinfo_v3_lls_relay_options);
offset += 8;
while (orig_offset + length >= offset) {
ti = proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset, 4,
"Neighbor: %s",
tvb_ip_to_str(tvb, offset));
if (relays_added > 0) {
proto_item_append_text(ti, " Added");
} else {
proto_item_append_text(ti, " Deleted");
}
relays_added--;
offset += 4;
}
break;
case LLS_V3_WILLING:
proto_tree_add_item(ospf_lls_tlv_tree, hf_ospf_filter[OSPFF_V3_LLS_WILLINGNESS],
tvb, offset+4, 1, ENC_BIG_ENDIAN);
break;
case LLS_V3_RQST_FROM:
offset += 4;
while (orig_offset + length >= offset) {
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset, 4,
"Request From: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
}
offset = orig_offset;
break;
case LLS_V3_FULL_STATE:
offset += 4;
while (orig_offset + length >= offset) {
proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset, 4,
"Full State For: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
}
offset = orig_offset;
break;
}
return offset + length + 4;
}
static void
dissect_ospf_lls_data_block(tvbuff_t *tvb, int offset, proto_tree *tree,
guint8 version)
{
proto_tree *ospf_lls_data_block_tree;
proto_item *ti;
guint16 ospf_lls_len;
int orig_offset = offset;
ospf_lls_len = tvb_get_ntohs(tvb, offset + 2);
ti = proto_tree_add_text(tree, tvb, offset, -1, "OSPF LLS Data Block");
ospf_lls_data_block_tree = proto_item_add_subtree(ti,
ett_ospf_lls_data_block);
/* TODO: verify checksum */
proto_tree_add_text(ospf_lls_data_block_tree, tvb, offset, 2,
"Checksum: 0x%04x", tvb_get_ntohs(tvb, offset));
proto_tree_add_text(ospf_lls_data_block_tree, tvb, offset + 2, 2,
"LLS Data Length: %d bytes", ospf_lls_len * 4);
offset += 4;
DISSECTOR_ASSERT((version == OSPF_VERSION_2) || (version == OSPF_VERSION_3));
while (orig_offset + ospf_lls_len * 4 > offset) {
if (version == OSPF_VERSION_2)
offset = dissect_ospfv2_lls_tlv (tvb, offset, ospf_lls_data_block_tree);
else
offset = dissect_ospfv3_lls_tlv (tvb, offset, ospf_lls_data_block_tree);
}
}
static void
dissect_ospf_hello(tvbuff_t *tvb, int offset, proto_tree *tree, guint8 version,
guint16 length)
{
proto_tree *ospf_hello_tree;
proto_item *ti;
int orig_offset = offset;
ti = proto_tree_add_text(tree, tvb, offset, length, "OSPF Hello Packet");
ospf_hello_tree = proto_item_add_subtree(ti, ett_ospf_hello);
switch (version ) {
case OSPF_VERSION_2:
proto_tree_add_text(ospf_hello_tree, tvb, offset, 4, "Network Mask: %s",
tvb_ip_to_str(tvb, offset));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 4, 2,
"Hello Interval: %u seconds",
tvb_get_ntohs(tvb, offset + 4));
dissect_ospf_bitfield(ospf_hello_tree, tvb, offset + 6, &bfinfo_v2_options);
proto_tree_add_text(ospf_hello_tree, tvb, offset + 7, 1, "Router Priority: %u",
tvb_get_guint8(tvb, offset + 7));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 8, 4, "Router Dead Interval: %u seconds",
tvb_get_ntohl(tvb, offset + 8));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 12, 4, "Designated Router: %s",
tvb_ip_to_str(tvb, offset + 12));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 16, 4, "Backup Designated Router: %s",
tvb_ip_to_str(tvb, offset + 16));
offset += 20;
while (orig_offset + length > offset) {
proto_tree_add_text(ospf_hello_tree, tvb, offset, 4,
"Active Neighbor: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
}
break;
case OSPF_VERSION_3:
proto_tree_add_text(ospf_hello_tree, tvb, offset + 0, 4, "Interface ID: %u",
tvb_get_ntohl(tvb, offset + 0));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 4, 1, "Router Priority: %u",
tvb_get_guint8(tvb, offset + 4));
dissect_ospf_bitfield(ospf_hello_tree, tvb, offset + 5, &bfinfo_v3_options);
proto_tree_add_text(ospf_hello_tree, tvb, offset + 8, 2,
"Hello Interval: %u seconds",
tvb_get_ntohs(tvb, offset + 8));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 10, 2, "Router Dead Interval: %u seconds",
tvb_get_ntohs(tvb, offset + 10));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 12, 4, "Designated Router: %s",
tvb_ip_to_str(tvb, offset + 12));
proto_tree_add_text(ospf_hello_tree, tvb, offset + 16, 4, "Backup Designated Router: %s",
tvb_ip_to_str(tvb, offset + 16));
offset += 20;
while (orig_offset + length > offset) {
proto_tree_add_text(ospf_hello_tree, tvb, offset, 4,
"Active Neighbor: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
}
break;
}
}
static void
dissect_ospf_db_desc(tvbuff_t *tvb, int offset, proto_tree *tree,
guint8 version, guint16 length, guint8 address_family)
{
proto_tree *ospf_db_desc_tree=NULL;
proto_item *ti;
guint8 reserved;
int orig_offset = offset;
if (tree) {
ti = proto_tree_add_text(tree, tvb, offset, length, "OSPF DB Description");
ospf_db_desc_tree = proto_item_add_subtree(ti, ett_ospf_desc);
switch (version ) {
case OSPF_VERSION_2:
proto_tree_add_text(ospf_db_desc_tree, tvb, offset, 2, "Interface MTU: %u",
tvb_get_ntohs(tvb, offset));
dissect_ospf_bitfield(ospf_db_desc_tree, tvb, offset + 2, &bfinfo_v2_options);
dissect_ospf_bitfield(ospf_db_desc_tree, tvb, offset + 3, &bfinfo_dbd);
proto_tree_add_text(ospf_db_desc_tree, tvb, offset + 4, 4, "DD Sequence: %u",
tvb_get_ntohl(tvb, offset + 4));
offset += 8;
break;
case OSPF_VERSION_3:
reserved = tvb_get_guint8(tvb, offset);
proto_tree_add_text(ospf_db_desc_tree, tvb, offset, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),
reserved);
dissect_ospf_bitfield(ospf_db_desc_tree, tvb, offset + 1, &bfinfo_v3_options);
proto_tree_add_text(ospf_db_desc_tree, tvb, offset + 4, 2, "Interface MTU: %u",
tvb_get_ntohs(tvb, offset+4));
reserved = tvb_get_guint8(tvb, offset + 6);
proto_tree_add_text(ospf_db_desc_tree, tvb, offset + 6, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),
reserved);
dissect_ospf_bitfield(ospf_db_desc_tree, tvb, offset + 7, &bfinfo_dbd);
proto_tree_add_text(ospf_db_desc_tree, tvb, offset + 8, 4, "DD Sequence: %u",
tvb_get_ntohl(tvb, offset + 8));
offset += 12;
break;
}
}
/* LS Headers will be processed here */
/* skip to the end of DB-Desc header */
DISSECTOR_ASSERT((version == OSPF_VERSION_2) || (version == OSPF_VERSION_3));
while (orig_offset + length > offset) {
if ( version == OSPF_VERSION_2)
offset = dissect_ospf_v2_lsa(tvb, offset, tree, FALSE);
else
offset = dissect_ospf_v3_lsa(tvb, offset, tree, FALSE, address_family);
}
}
static void
dissect_ospf_ls_req(tvbuff_t *tvb, int offset, proto_tree *tree, guint8 version,
guint16 length)
{
proto_tree *ospf_lsr_tree;
proto_item *ti;
guint16 reserved;
int orig_offset = offset;
/* zero or more LS requests may be within a LS Request */
/* we place every request for a LSA in a single subtree */
while (orig_offset + length > offset) {
ti = proto_tree_add_text(tree, tvb, offset, OSPF_LS_REQ_LENGTH,
"Link State Request");
ospf_lsr_tree = proto_item_add_subtree(ti, ett_ospf_lsr);
switch ( version ) {
case OSPF_VERSION_2:
proto_tree_add_item(ospf_lsr_tree, hf_ospf_filter[OSPFF_LS_TYPE],
tvb, offset, 4, ENC_BIG_ENDIAN);
break;
case OSPF_VERSION_3:
reserved = tvb_get_ntohs(tvb, offset);
proto_tree_add_text(ospf_lsr_tree, tvb, offset, 2,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"), reserved);
proto_tree_add_item(ospf_lsr_tree, hf_ospf_filter[OSPFF_V3_LS_TYPE],
tvb, offset + 2, 2, ENC_BIG_ENDIAN);
break;
}
proto_tree_add_text(ospf_lsr_tree, tvb, offset + 4, 4, "Link State ID: %s",
tvb_ip_to_str(tvb, offset + 4));
proto_tree_add_item(ospf_lsr_tree, hf_ospf_filter[OSPFF_ADV_ROUTER],
tvb, offset + 8, 4, ENC_BIG_ENDIAN);
offset += 12;
}
}
static void
dissect_ospf_ls_upd(tvbuff_t *tvb, int offset, proto_tree *tree, guint8 version,
guint16 length, guint8 address_family)
{
proto_tree *ospf_lsa_upd_tree=NULL;
proto_item *ti;
guint32 lsa_nr;
guint32 lsa_counter;
ti = proto_tree_add_text(tree, tvb, offset, length, "LS Update Packet");
ospf_lsa_upd_tree = proto_item_add_subtree(ti, ett_ospf_lsa_upd);
lsa_nr = tvb_get_ntohl(tvb, offset);
proto_tree_add_text(ospf_lsa_upd_tree, tvb, offset, 4, "Number of LSAs: %u", lsa_nr);
/* skip to the beginning of the first LSA */
offset += 4; /* the LS Upd Packet contains only a 32 bit #LSAs field */
DISSECTOR_ASSERT((version == OSPF_VERSION_2) || (version == OSPF_VERSION_3));
lsa_counter = 0;
while (lsa_counter < lsa_nr) {
if (version == OSPF_VERSION_2)
offset = dissect_ospf_v2_lsa(tvb, offset, ospf_lsa_upd_tree, TRUE);
else
offset = dissect_ospf_v3_lsa(tvb, offset, ospf_lsa_upd_tree, TRUE,
address_family);
lsa_counter += 1;
}
}
static void
dissect_ospf_ls_ack(tvbuff_t *tvb, int offset, proto_tree *tree, guint8 version,
guint16 length, guint8 address_family)
{
int orig_offset = offset;
DISSECTOR_ASSERT((version == OSPF_VERSION_2) || (version == OSPF_VERSION_3));
/* the body of a LS Ack packet simply contains zero or more LSA Headers */
while (orig_offset + length > offset) {
if (version == OSPF_VERSION_2)
offset = dissect_ospf_v2_lsa(tvb, offset, tree, FALSE);
else
offset = dissect_ospf_v3_lsa(tvb, offset, tree, FALSE, address_family);
}
}
/*
* Returns if an LSA is opaque, i.e. requires special treatment
*/
static int
is_opaque(int lsa_type)
{
return (lsa_type >= OSPF_LSTYPE_OP_LINKLOCAL &&
lsa_type <= OSPF_LSTYPE_OP_ASWIDE);
}
/* MPLS/TE TLV types */
#define MPLS_TLV_ROUTER 1
#define MPLS_TLV_LINK 2
#define OIF_TLV_TNA 32768
/* MPLS/TE Link STLV types */
enum {
MPLS_LINK_TYPE = 1, /* RFC 3630, OSPF-TE */
MPLS_LINK_ID,
MPLS_LINK_LOCAL_IF,
MPLS_LINK_REMOTE_IF,
MPLS_LINK_TE_METRIC,
MPLS_LINK_MAX_BW,
MPLS_LINK_MAX_RES_BW,
MPLS_LINK_UNRES_BW,
MPLS_LINK_COLOR,
MPLS_LINK_LOCAL_REMOTE_ID = 11, /* RFC 4203, GMPLS */
MPLS_LINK_PROTECTION = 14,
MPLS_LINK_IF_SWITCHING_DESC,
MPLS_LINK_SHARED_RISK_GROUP,
MPLS_LINK_BANDWIDTH_CONSTRAINT = 17 /* RFC 4124, OSPF-DSTE */
};
/* OIF TLV types */
enum {
OIF_LOCAL_NODE_ID = 32773,
OIF_REMOTE_NODE_ID,
OIF_SONET_SDH_SWITCHING_CAPABILITY,
OIF_TNA_IPv4_ADDRESS,
OIF_NODE_ID,
OIF_TNA_IPv6_ADDRESS,
OIF_TNA_NSAP_ADDRESS
};
static const value_string mpls_link_stlv_str[] = {
{MPLS_LINK_TYPE, "Link Type"},
{MPLS_LINK_ID, "Link ID"},
{MPLS_LINK_LOCAL_IF, "Local Interface IP Address"},
{MPLS_LINK_REMOTE_IF, "Remote Interface IP Address"},
{MPLS_LINK_TE_METRIC, "Traffic Engineering Metric"},
{MPLS_LINK_MAX_BW, "Maximum Bandwidth"},
{MPLS_LINK_MAX_RES_BW, "Maximum Reservable Bandwidth"},
{MPLS_LINK_UNRES_BW, "Unreserved Bandwidth"},
{MPLS_LINK_COLOR, "Resource Class/Color"},
{MPLS_LINK_LOCAL_REMOTE_ID, "Link Local/Remote Identifier"},
{MPLS_LINK_PROTECTION, "Link Protection Type"},
{MPLS_LINK_IF_SWITCHING_DESC, "Interface Switching Capability Descriptor"},
{MPLS_LINK_SHARED_RISK_GROUP, "Shared Risk Link Group"},
{MPLS_LINK_BANDWIDTH_CONSTRAINT, "Bandwidth Constraints"},
{OIF_LOCAL_NODE_ID, "Local Node ID"},
{OIF_REMOTE_NODE_ID, "Remote Node ID"},
{OIF_SONET_SDH_SWITCHING_CAPABILITY, "Sonet/SDH Interface Switching Capability"},
{0, NULL},
};
static const range_string mpls_te_tlv_rvals[] = {
{ 3, 32767, "(Assigned via Standards Action)"},
{ 32768, 32777, "(For Experimental Use)"},
{ 32778, 65535, "(Not to be Assigned)"},
{ 0, 0, NULL}
};
static const range_string mpls_te_sub_tlv_rvals[] = {
{ 10, 32767, "(Assigned via Standards Action)"},
{ 32768, 32777, "(For Experimental Use)"},
{ 32778, 65535, "(Not to be Assigned)"},
{ 0, 0, NULL}
};
static const value_string oif_stlv_str[] = {
{OIF_TNA_IPv4_ADDRESS, "TNA address"},
{OIF_NODE_ID, "Node ID"},
{OIF_TNA_IPv6_ADDRESS, "TNA address"},
{OIF_TNA_NSAP_ADDRESS, "TNA address"},
{0, NULL},
};
/*
* Dissect MPLS/TE opaque LSA
*/
static void
dissect_ospf_lsa_mpls(tvbuff_t *tvb, int offset, proto_tree *tree,
guint32 length)
{
proto_item *ti, *hidden_item;
proto_tree *mpls_tree;
proto_tree *tlv_tree;
proto_tree *stlv_tree;
proto_tree *stlv_admingrp_tree = NULL;
int tlv_type;
int tlv_length;
int tlv_end_offset;
int stlv_type, stlv_len, stlv_offset;
const char *stlv_name;
guint32 stlv_admingrp, mask;
int i;
guint8 switch_cap;
const guint8 allzero[] = { 0x00, 0x00, 0x00 };
guint num_bcs = 0;
ti = proto_tree_add_text(tree, tvb, offset, length,
"MPLS Traffic Engineering LSA");
hidden_item = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_LS_MPLS],
tvb, offset, 2, ENC_BIG_ENDIAN);
PROTO_ITEM_SET_HIDDEN(hidden_item);
mpls_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls);
while (length != 0) {
tlv_type = tvb_get_ntohs(tvb, offset);
tlv_length = tvb_get_ntohs(tvb, offset + 2);
tlv_end_offset = offset + tlv_length + 4;
switch (tlv_type) {
case MPLS_TLV_ROUTER:
ti = proto_tree_add_text(mpls_tree, tvb, offset, tlv_length+4,
"Router Address: %s",
tvb_ip_to_str(tvb, offset+4));
tlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_router);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "TLV Type: 1 - Router Address");
proto_tree_add_text(tlv_tree, tvb, offset+2, 2, "TLV Length: %u",
tlv_length);
proto_tree_add_item(tlv_tree, hf_ospf_filter[OSPFF_LS_MPLS_ROUTERID],
tvb, offset+4, 4, ENC_BIG_ENDIAN);
break;
case MPLS_TLV_LINK:
ti = proto_tree_add_text(mpls_tree, tvb, offset, tlv_length+4,
"Link Information");
tlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "TLV Type: 2 - Link Information");
proto_tree_add_text(tlv_tree, tvb, offset+2, 2, "TLV Length: %u",
tlv_length);
stlv_offset = offset + 4;
/* Walk down the sub-TLVs for link information */
while (stlv_offset < tlv_end_offset) {
stlv_type = tvb_get_ntohs(tvb, stlv_offset);
stlv_len = tvb_get_ntohs(tvb, stlv_offset + 2);
stlv_name = val_to_str_const(stlv_type, mpls_link_stlv_str, "Unknown sub-TLV");
switch (stlv_type) {
case MPLS_LINK_TYPE:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %u - %s", stlv_name,
tvb_get_guint8(tvb, stlv_offset + 4),
val_to_str_const(tvb_get_guint8(tvb, stlv_offset + 4),
mpls_link_stlv_ltype_str, "Unknown Link Type"));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_item(stlv_tree, hf_ospf_filter[OSPFF_LS_MPLS_LINKTYPE],
tvb, stlv_offset+4, 1,ENC_BIG_ENDIAN);
break;
case MPLS_LINK_ID:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %s", stlv_name,
tvb_ip_to_str(tvb, stlv_offset + 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_item(stlv_tree, hf_ospf_filter[OSPFF_LS_MPLS_LINKID],
tvb, stlv_offset+4, 4, ENC_BIG_ENDIAN);
break;
case MPLS_LINK_LOCAL_IF:
case MPLS_LINK_REMOTE_IF:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %s", stlv_name, tvb_ip_to_str(tvb, stlv_offset + 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
/* The Local/Remote Interface IP Address sub-TLV is TLV type 3/4, and is 4N
octets in length, where N is the number of neighbor addresses. */
for (i=0; i < stlv_len; i+=4)
proto_tree_add_item(stlv_tree,
stlv_type==MPLS_LINK_LOCAL_IF ?
hf_ospf_filter[OSPFF_LS_MPLS_LOCAL_ADDR] :
hf_ospf_filter[OSPFF_LS_MPLS_REMOTE_ADDR],
tvb, stlv_offset+4+i, 4, ENC_BIG_ENDIAN);
break;
case MPLS_LINK_TE_METRIC:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %u", stlv_name,
tvb_get_ntohl(tvb, stlv_offset + 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 4, "%s: %u", stlv_name,
tvb_get_ntohl(tvb, stlv_offset + 4));
break;
case MPLS_LINK_COLOR:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: 0x%08x", stlv_name,
tvb_get_ntohl(tvb, stlv_offset + 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
stlv_admingrp = tvb_get_ntohl(tvb, stlv_offset + 4);
mask = 1;
ti = proto_tree_add_item(stlv_tree, hf_ospf_filter[OSPFF_LS_MPLS_LINKCOLOR],
tvb, stlv_offset+4, 4, ENC_BIG_ENDIAN);
stlv_admingrp_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv_admingrp);
if (stlv_admingrp_tree == NULL)
return;
for (i = 0 ; i < 32 ; i++) {
if ((stlv_admingrp & mask) != 0) {
proto_tree_add_text(stlv_admingrp_tree, tvb, stlv_offset+4,
4, "Group %d", i);
}
mask <<= 1;
}
break;
case MPLS_LINK_MAX_BW:
case MPLS_LINK_MAX_RES_BW:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %.10g bytes/s (%.0f bits/s)", stlv_name,
tvb_get_ntohieee_float(tvb, stlv_offset + 4),
tvb_get_ntohieee_float(tvb, stlv_offset + 4) * 8.0);
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 4, "%s: %.10g bytes/s (%.0f bits/s)", stlv_name,
tvb_get_ntohieee_float(tvb, stlv_offset + 4),
tvb_get_ntohieee_float(tvb, stlv_offset + 4) * 8.0);
break;
case MPLS_LINK_UNRES_BW:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s", stlv_name);
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
for (i = 0; i < 8; i++) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4+(i*4), 4,
"Pri (or TE-Class) %d: %.10g bytes/s (%.0f bits/s)", i,
tvb_get_ntohieee_float(tvb, stlv_offset + 4 + i*4),
tvb_get_ntohieee_float(tvb, stlv_offset + 4 + i*4) * 8.0);
}
break;
case MPLS_LINK_BANDWIDTH_CONSTRAINT:
/*
The "Bandwidth Constraints" sub-TLV format is illustrated below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BC Model Id | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BC0 value |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
// . . . //
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BCh value |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s", stlv_name);
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_item(stlv_tree, hf_ospf_filter[OSPFF_LS_MPLS_BC_MODEL_ID],
tvb, stlv_offset+4, 1, ENC_BIG_ENDIAN);
/* 3 octets reserved +5, +6 and +7 (all 0x00) */
if(tvb_memeql(tvb, stlv_offset+5, allzero, 3) == -1) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+5, 3,
"Warning: these bytes are reserved and must be 0x00");
}
if(((stlv_len % 4)!=0)) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, stlv_len,
"Malformed Packet: Length must be N x 4 octets");
break;
}
/* stlv_len shound range from 4 to 36 bytes */
num_bcs = (stlv_len - 4)/4;
if(num_bcs>8) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, stlv_len,
"Malformed Packet: too many BC (%u)", num_bcs);
break;
}
if(num_bcs==0) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, stlv_len,
"Malformed Packet: Bandwidth Constraints sub-TLV with no BC?");
break;
}
for(i = 0; i < (int) num_bcs; i++) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+8+(i*4), 4,
"BC %d: %.10g bytes/s (%.0f bits/s)", i,
tvb_get_ntohieee_float(tvb, stlv_offset + 8 + i*4),
tvb_get_ntohieee_float(tvb, stlv_offset + 8 + i*4) * 8.0);
}
break;
case MPLS_LINK_LOCAL_REMOTE_ID:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %d (0x%x) - %d (0x%x)", stlv_name,
tvb_get_ntohl(tvb, stlv_offset + 4),
tvb_get_ntohl(tvb, stlv_offset + 4),
tvb_get_ntohl(tvb, stlv_offset + 8),
tvb_get_ntohl(tvb, stlv_offset + 8));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_item(stlv_tree,
hf_ospf_filter[OSPFF_LS_MPLS_LOCAL_IFID],
tvb, stlv_offset+4, 4, ENC_BIG_ENDIAN);
proto_tree_add_item(stlv_tree,
hf_ospf_filter[OSPFF_LS_MPLS_REMOTE_IFID],
tvb, stlv_offset+8, 4, ENC_BIG_ENDIAN);
break;
case MPLS_LINK_IF_SWITCHING_DESC:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s", stlv_name);
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
switch_cap = tvb_get_guint8 (tvb, stlv_offset+4);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 1, "Switching Type: %s",
rval_to_str(tvb_get_guint8(tvb,stlv_offset+4),
gmpls_switching_type_rvals, "Unknown (%d)"));
proto_tree_add_text(stlv_tree, tvb, stlv_offset+5, 1, "Encoding: %s",
rval_to_str(tvb_get_guint8(tvb,stlv_offset+5),
gmpls_lsp_enc_rvals, "Unknown (%d)"));
for (i = 0; i < 8; i++) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+8+(i*4), 4,
"Pri %d: %.10g bytes/s (%.0f bits/s)", i,
tvb_get_ntohieee_float(tvb, stlv_offset + 8 + i*4),
tvb_get_ntohieee_float(tvb, stlv_offset + 8 + i*4) * 8.0);
}
if (switch_cap >=1 && switch_cap <=4) { /* PSC-1 .. PSC-4 */
proto_tree_add_text(stlv_tree, tvb, stlv_offset+40, 4,
"Minimum LSP bandwidth: %.10g bytes/s (%.0f bits/s)",
tvb_get_ntohieee_float(tvb, stlv_offset + 40),
tvb_get_ntohieee_float(tvb, stlv_offset + 40) * 8.0);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+44, 2,
"Interface MTU: %d", tvb_get_ntohs(tvb, stlv_offset+44));
}
if (switch_cap == 100) { /* TDM */
proto_tree_add_text(stlv_tree, tvb, stlv_offset+40, 4,
"Minimum LSP bandwidth: %.10g bytes/s (%.0f bits/s)",
tvb_get_ntohieee_float(tvb, stlv_offset + 40),
tvb_get_ntohieee_float(tvb, stlv_offset + 40) * 8.0);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+44, 2,
"SONET/SDH: %s",
tvb_get_guint8(tvb, stlv_offset+44) ?
"Arbitrary" : "Standard");
}
break;
case MPLS_LINK_PROTECTION:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s", stlv_name);
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 1, "Protection Capability: %s (0x%x)",
val_to_str(tvb_get_guint8(tvb,stlv_offset+4),
gmpls_protection_cap_str,
"Unknown (%d)"),
tvb_get_guint8(tvb,stlv_offset+4));
break;
case MPLS_LINK_SHARED_RISK_GROUP:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s", stlv_name);
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
for (i=0; i < stlv_len; i+=4)
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4+i, 4, "Shared Risk Link Group: %u",
tvb_get_ntohl(tvb,stlv_offset+4+i));
break;
case OIF_LOCAL_NODE_ID:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %s", stlv_name,
tvb_ip_to_str(tvb, stlv_offset + 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_item(stlv_tree,
hf_ospf_filter[OSPFF_LS_OIF_LOCAL_NODE_ID],
tvb, stlv_offset + 4, 4, ENC_BIG_ENDIAN);
break;
case OIF_REMOTE_NODE_ID:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %s", stlv_name,
tvb_ip_to_str(tvb, stlv_offset + 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_item(stlv_tree,
hf_ospf_filter[OSPFF_LS_OIF_REMOTE_NODE_ID],
tvb, stlv_offset + 4, 4, ENC_BIG_ENDIAN);
break;
case OIF_SONET_SDH_SWITCHING_CAPABILITY:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4, "%s", stlv_name);
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 1, "Switching Cap: %s",
rval_to_str(tvb_get_guint8 (tvb, stlv_offset+4),
gmpls_switching_type_rvals, "Unknown (%d)"));
proto_tree_add_text(stlv_tree, tvb, stlv_offset+5, 1, "Encoding: %s",
rval_to_str(tvb_get_guint8(tvb,stlv_offset+5),
gmpls_lsp_enc_rvals, "Unknown (%d)"));
for (i = 0; i < (stlv_len - 4) / 4; i++) {
proto_tree_add_text(stlv_tree, tvb, stlv_offset+8+(i*4), 4,
"%s: %d free timeslots",
val_to_str_ext(tvb_get_guint8(tvb, stlv_offset+8+(i*4)),
&gmpls_sonet_signal_type_str_ext,
"Unknown Signal Type (%d)"),
tvb_get_ntoh24(tvb, stlv_offset + 9 + i*4));
}
break;
default:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"Unknown Link sub-TLV: %u %s", stlv_type,
rval_to_str(stlv_type, mpls_te_sub_tlv_rvals, "Unknown"));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s %s", stlv_type, stlv_name,
rval_to_str(stlv_type, mpls_te_sub_tlv_rvals, "Unknown"));
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, stlv_len,
"TLV Value");
break;
}
stlv_offset += ((stlv_len+4+3)/4)*4;
}
break;
case OIF_TLV_TNA:
ti = proto_tree_add_text(mpls_tree, tvb, offset, tlv_length+4,
"TNA Information");
tlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_oif_tna);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "TLV Type: 32768 - TNA Information");
proto_tree_add_text(tlv_tree, tvb, offset+2, 2, "TLV Length: %u",
tlv_length);
stlv_offset = offset + 4;
/* Walk down the sub-TLVs for TNA information */
while (stlv_offset < tlv_end_offset) {
stlv_type = tvb_get_ntohs(tvb, stlv_offset);
stlv_len = tvb_get_ntohs(tvb, stlv_offset + 2);
stlv_name = val_to_str_const(stlv_type, oif_stlv_str, "Unknown sub-TLV");
switch (stlv_type) {
case OIF_NODE_ID:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s: %s", stlv_name,
tvb_ip_to_str(tvb, stlv_offset + 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_oif_tna_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u",
stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 4, "%s: %s", stlv_name,
tvb_ip_to_str(tvb, stlv_offset + 4));
break;
case OIF_TNA_IPv4_ADDRESS:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s (IPv4): %s", stlv_name,
tvb_ip_to_str(tvb, stlv_offset + 8));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_oif_tna_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s (IPv4)", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u", stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 1, "Addr Length: %u",
tvb_get_guint8 (tvb, stlv_offset+4));
proto_tree_add_text(stlv_tree, tvb, stlv_offset+8, stlv_len - 4, "TNA Addr: %s",
tvb_ip_to_str(tvb, stlv_offset + 8));
break;
case OIF_TNA_IPv6_ADDRESS:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s (IPv6): %s", stlv_name,
tvb_ip6_to_str(tvb, stlv_offset + 8));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_oif_tna_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s (IPv6)", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u", stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 1, "Addr Length: %u",
tvb_get_guint8 (tvb, stlv_offset+4));
proto_tree_add_text(stlv_tree, tvb, stlv_offset+8, stlv_len - 4, "TNA Addr: %s",
tvb_ip6_to_str(tvb, stlv_offset + 8));
break;
case OIF_TNA_NSAP_ADDRESS:
ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"%s (NSAP): %s", stlv_name,
tvb_bytes_to_str (tvb, stlv_offset + 8, stlv_len - 4));
stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_oif_tna_stlv);
proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
"TLV Type: %u: %s (NSAP)", stlv_type, stlv_name);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+2, 2, "TLV Length: %u", stlv_len);
proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 1, "Addr Length: %u",
tvb_get_guint8 (tvb, stlv_offset+4));
proto_tree_add_text(stlv_tree, tvb, stlv_offset+8, stlv_len - 4, "TNA Addr: %s",
tvb_bytes_to_str(tvb, stlv_offset+8, stlv_len - 4));
break;
default:
proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
"Unknown Link sub-TLV: %u", stlv_type);
break;
}
stlv_offset += ((stlv_len+4+3)/4)*4;
}
break;
default:
ti = proto_tree_add_text(mpls_tree, tvb, offset, tlv_length+4,
"Unknown LSA: %u %s", tlv_type,
rval_to_str(tlv_type, mpls_te_tlv_rvals, "Unknown"));
tlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_mpls_link);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "TLV Type: %u - Unknown %s",
tlv_type, rval_to_str(tlv_type, mpls_te_tlv_rvals, "Unknown"));
proto_tree_add_text(tlv_tree, tvb, offset+2, 2, "TLV Length: %u",
tlv_length);
proto_tree_add_text(tlv_tree, tvb, offset+4, tlv_length, "TLV Data");
break;
}
offset += tlv_length + 4;
length -= tlv_length + 4;
}
}
/*
* Dissect the TLVs within a Grace-LSA as defined by RFC 3623
*/
static void dissect_ospf_lsa_grace_tlv (tvbuff_t *tvb, int offset,
proto_tree *tree, guint32 length)
{
guint16 tlv_type;
guint16 tlv_length;
int tlv_length_with_pad; /* The total length of the TLV including the type
and length fields and any padding */
guint32 grace_period;
guint8 restart_reason;
guint32 restart_ip;
proto_tree *tlv_tree;
proto_item *tree_item;
proto_item *grace_tree_item;
if (!tree) { return; }
while (length > 0)
{
tlv_type = tvb_get_ntohs(tvb, offset);
tlv_length = tvb_get_ntohs(tvb, offset + 2);
/* The total length of the TLV including the type, length, value and
* pad bytes (TLVs are padded to 4 octet alignment).
*/
tlv_length_with_pad = tlv_length + 4 + ((4 - (tlv_length % 4)) % 4);
tree_item = proto_tree_add_item(tree, hf_ospf_filter[OSPFF_V2_GRACE_TLV], tvb, offset,
tlv_length_with_pad, ENC_NA);
tlv_tree = proto_item_add_subtree(tree_item, ett_ospf_lsa_grace_tlv);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "Type: %s (%u)",
val_to_str_const(tlv_type, grace_tlv_type_vals, "Unknown grace-LSA TLV"), tlv_type);
proto_tree_add_text(tlv_tree, tvb, offset + 2, 2, "Length: %u", tlv_length);
switch (tlv_type) {
case GRACE_TLV_PERIOD:
grace_period = tvb_get_ntohl(tvb, offset + 4);
grace_tree_item = proto_tree_add_item(tlv_tree, hf_ospf_filter[OSPFF_V2_GRACE_PERIOD], tvb,
offset + 4, tlv_length, ENC_BIG_ENDIAN);
proto_item_append_text(grace_tree_item, " seconds");
proto_item_set_text(tree_item, "Grace Period: %u seconds", grace_period);
break;
case GRACE_TLV_REASON:
restart_reason = tvb_get_guint8(tvb, offset + 4);
proto_tree_add_item(tlv_tree, hf_ospf_filter[OSPFF_V2_GRACE_REASON], tvb, offset + 4,
tlv_length, ENC_BIG_ENDIAN);
proto_item_set_text(tree_item, "Restart Reason: %s (%u)",
val_to_str_const(restart_reason, restart_reason_vals, "Unknown Restart Reason"),
restart_reason);
break;
case GRACE_TLV_IP:
restart_ip = tvb_get_ipv4(tvb, offset + 4);
proto_tree_add_item(tlv_tree, hf_ospf_filter[OSPFF_V2_GRACE_IP], tvb, offset + 4,
tlv_length, ENC_BIG_ENDIAN);
proto_item_set_text(tree_item, "Restart IP: %s (%s)",
get_hostname(restart_ip), ip_to_str((guint8 *)&restart_ip));
break;
default:
proto_item_set_text(tree_item, "Unknown grace-LSA TLV");
break;
}
if (4 + tlv_length < tlv_length_with_pad) {
proto_tree_add_text(tlv_tree, tvb, offset + 4 + tlv_length,
tlv_length_with_pad - (4 + tlv_length), "Pad Bytes (%u)",
tlv_length_with_pad - (4 + tlv_length) );
}
offset += tlv_length_with_pad;
length -= tlv_length_with_pad;
}
}
/*
* This function dissects the Optional Router capabilities LSA.
* In case of OSPFv2, the Router Capabilities would be advertized via the first TLV
* of an RI LSA and in the case of OSPFv3, the router capabilities would be advertized
* using a special purpose type field value. (RFC 4970)
* Also, the Dynamic Hostname or FQDN is advertized via a special purpose TLV type.
* The below function adds the support to handle this as well. (RFC5642).
*/
static void
dissect_ospf_lsa_opaque_ri(tvbuff_t *tvb, int offset, proto_tree *tree,
guint32 length)
{
proto_item *ti;
proto_tree *ri_tree;
proto_tree *tlv_tree;
int tlv_type;
int tlv_length;
ti = proto_tree_add_text(tree, tvb, offset, length,
"Opaque Router Information LSA");
ri_tree = proto_item_add_subtree(ti, ett_ospf_lsa_opaque_ri);
while (length > 0) {
tlv_type = tvb_get_ntohs(tvb, offset);
tlv_length = tvb_get_ntohs(tvb, offset + 2);
switch(tlv_type) {
case OPT_RI_TLV:
ti = proto_tree_add_text(ri_tree, tvb, offset, tlv_length+4,
"RI TLV");
tlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_ri_tlv);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "TLV Type: %s (%u)",
"Router Informational Capabilities TLV", tlv_type);
proto_tree_add_text(tlv_tree, tvb, offset + 2, 2, "TLV Length: %u", tlv_length);
dissect_ospf_bitfield(tlv_tree, tvb, offset + 4, &bfinfo_ri_options);
break;
case DYN_HOSTNAME_TLV:
ti = proto_tree_add_text(ri_tree, tvb, offset, tlv_length+4,
"Dynamic Hostname TLV");
tlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_dyn_hostname_tlv);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "TLV Type: %s (%u)",
"Dynamic Hostname TLV", tlv_type);
proto_tree_add_text(tlv_tree, tvb, offset + 2, 2, "TLV Length: %u", tlv_length);
proto_tree_add_item(tlv_tree, hf_ospf_filter[OSPFF_DYN_HOSTNAME], tvb, offset+4, tlv_length, ENC_ASCII|ENC_NA);
break;
default:
ti = proto_tree_add_text(ri_tree, tvb, offset, tlv_length+4,
"Unknown Opaque RI LSA TLV");
tlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_unknown_tlv);
proto_tree_add_text(tlv_tree, tvb, offset, 2, "TLV Type: %s (%u)",
"Unknown TLV", tlv_type);
proto_tree_add_text(tlv_tree, tvb, offset + 2, 2, "TLV Length: %u", tlv_length);
proto_tree_add_item(tlv_tree, hf_ospf_filter[OSPFF_UNKNOWN_TLV_TXT], tvb, offset+4, tlv_length, ENC_ASCII|ENC_NA);
break;
}
offset += tlv_length + 4;
length -= tlv_length + 4;
}
}
/*
* Dissect opaque LSAs
*/
static void
dissect_ospf_lsa_opaque(tvbuff_t *tvb, int offset, proto_tree *tree,
guint8 ls_id_type, guint32 length)
{
switch (ls_id_type) {
case OSPF_LSA_MPLS_TE:
dissect_ospf_lsa_mpls(tvb, offset, tree, length);
break;
case OSPF_LSA_OPAQUE_RI:
dissect_ospf_lsa_opaque_ri(tvb, offset, tree, length);
break;
case OSPF_LSA_GRACE:
dissect_ospf_lsa_grace_tlv(tvb, offset, tree, length);
break;
default:
proto_tree_add_text(tree, tvb, offset, length,
"Unknown LSA Type %u", ls_id_type);
break;
} /* switch on opaque LSA id */
}
static int
dissect_ospf_v2_lsa(tvbuff_t *tvb, int offset, proto_tree *tree,
gboolean disassemble_body)
{
proto_tree *ospf_lsa_tree;
proto_item *ti, *hidden_item;
guint8 ls_type;
guint16 ls_length;
int end_offset;
guint16 nr_links;
guint16 nr_metric;
/* router LSA */
guint8 link_type;
guint16 link_counter;
guint16 metric_counter;
const char *link_type_str;
const char *link_type_short_str;
const char *link_id;
const char *metric_type_str;
/* AS-external LSA */
guint8 options;
/* opaque LSA */
guint8 ls_id_type;
guint8 ls_ri_opaque_field;
ls_type = tvb_get_guint8(tvb, offset + 3);
ls_length = tvb_get_ntohs(tvb, offset + 18);
end_offset = offset + ls_length;
if (disassemble_body) {
ti = proto_tree_add_text(tree, tvb, offset, ls_length,
"LS Type: %s",
val_to_str(ls_type, ls_type_vals, "Unknown (%d)"));
} else {
ti = proto_tree_add_text(tree, tvb, offset, OSPF_LSA_HEADER_LENGTH,
"LSA Header");
}
ospf_lsa_tree = proto_item_add_subtree(ti, ett_ospf_lsa);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 2, "LS Age: %u seconds",
tvb_get_ntohs(tvb, offset) & ~OSPF_DNA_LSA);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 2, "Do Not Age: %s",
(tvb_get_ntohs(tvb, offset) & OSPF_DNA_LSA) ? "True" : "False");
options = tvb_get_guint8 (tvb, offset + 2);
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset + 2, &bfinfo_v2_options);
proto_tree_add_item(ospf_lsa_tree, hf_ospf_filter[OSPFF_LS_TYPE], tvb,
offset + 3, 1, ENC_BIG_ENDIAN);
if (ospf_ls_type_to_filter(ls_type) != -1) {
hidden_item = proto_tree_add_item(ospf_lsa_tree,
hf_ospf_filter[ospf_ls_type_to_filter(ls_type)], tvb,
offset + 3, 1, ENC_BIG_ENDIAN);
PROTO_ITEM_SET_HIDDEN(hidden_item);
}
if (options & OSPF_V2_OPTIONS_MT) {
metric_type_str = "MT-ID";
} else {
metric_type_str = "TOS";
}
if (is_opaque(ls_type)) {
ls_id_type = tvb_get_guint8(tvb, offset + 4);
proto_tree_add_uint(ospf_lsa_tree, hf_ospf_filter[OSPFF_LS_OPAQUE_TYPE],
tvb, offset + 4, 1, ls_id_type);
switch (ls_id_type) {
case OSPF_LSA_MPLS_TE:
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 5, 1, "Link State ID TE-LSA Reserved: %u",
tvb_get_guint8(tvb, offset + 5));
proto_tree_add_item(ospf_lsa_tree, hf_ospf_filter[OSPFF_LS_MPLS_TE_INSTANCE],
tvb, offset + 6, 2, ENC_BIG_ENDIAN);
break;
case OSPF_LSA_OPAQUE_RI:
ls_ri_opaque_field = tvb_get_guint8(tvb, offset + 5);
if ( ls_ri_opaque_field != 0 )
ls_id_type = OSPF_LSA_UNKNOWN;
else
proto_tree_add_item(ospf_lsa_tree, hf_ospf_filter[OSPFF_OPAQUE_LSA_MBZ],
tvb, offset + 5, 3, ENC_BIG_ENDIAN);
break;
default:
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 5, 3, "Link State ID Opaque ID: %u",
tvb_get_ntoh24(tvb, offset + 5));
break;
}
} else {
ls_id_type = 0;
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 4, 4, "Link State ID: %s",
tvb_ip_to_str(tvb, offset + 4));
}
proto_tree_add_item(ospf_lsa_tree, hf_ospf_filter[OSPFF_ADV_ROUTER],
tvb, offset + 8, 4, ENC_BIG_ENDIAN);
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 12, 4, "LS Sequence Number: 0x%08x",
tvb_get_ntohl(tvb, offset + 12));
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 16, 2, "LS Checksum: 0x%04x",
tvb_get_ntohs(tvb, offset + 16));
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 18, 2, "Length: %u",
ls_length);
/* skip past the LSA header to the body */
offset += OSPF_LSA_HEADER_LENGTH;
if (ls_length <= OSPF_LSA_HEADER_LENGTH)
return offset; /* no data, or bogus length */
ls_length -= OSPF_LSA_HEADER_LENGTH;
if (!disassemble_body)
return offset;
switch (ls_type){
case OSPF_LSTYPE_ROUTER:
/* flags field in an router-lsa */
if (options & OSPF_V2_OPTIONS_MT) {
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset, &bfinfo_v2_router_lsa_mt_flags);
} else {
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset, &bfinfo_v2_router_lsa_flags);
}
nr_links = tvb_get_ntohs(tvb, offset + 2);
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 2, 2, "Number of Links: %u",
nr_links);
offset += 4;
/* nr_links links follow
* maybe we should put each of the links into its own subtree ???
*/
for (link_counter = 0; link_counter < nr_links; link_counter++) {
proto_tree *ospf_lsa_router_link_tree;
proto_item *ti_local;
/* check the Link Type and ID */
link_type = tvb_get_guint8(tvb, offset + 8);
switch (link_type) {
case OSPF_LINK_PTP:
link_type_str="Point-to-point connection to another router";
link_type_short_str="PTP";
link_id="Neighboring router's Router ID";
break;
case OSPF_LINK_TRANSIT:
link_type_str="Connection to a transit network";
link_type_short_str="Transit";
link_id="IP address of Designated Router";
break;
case OSPF_LINK_STUB:
link_type_str="Connection to a stub network";
link_type_short_str="Stub";
link_id="IP network/subnet number";
break;
case OSPF_LINK_VIRTUAL:
link_type_str="Virtual link";
link_type_short_str="Virtual";
link_id="Neighboring router's Router ID";
break;
default:
link_type_str="Unknown link type";
link_type_short_str="Unknown";
link_id="Unknown link ID";
break;
}
nr_metric = tvb_get_guint8(tvb, offset + 9);
ti_local = proto_tree_add_text(ospf_lsa_tree, tvb, offset, 12 + 4 * nr_metric,
"Type: %-8s ID: %-15s Data: %-15s Metric: %d",
link_type_short_str,
tvb_ip_to_str(tvb, offset),
tvb_ip_to_str(tvb, offset + 4),
tvb_get_ntohs(tvb, offset + 10));
ospf_lsa_router_link_tree = proto_item_add_subtree(ti_local, ett_ospf_lsa_router_link);
proto_tree_add_text(ospf_lsa_router_link_tree, tvb, offset, 4, "%s: %s", link_id,
tvb_ip_to_str(tvb, offset));
/* link_data should be specified in detail (e.g. network mask) (depends on link type)*/
proto_tree_add_text(ospf_lsa_router_link_tree, tvb, offset + 4, 4, "Link Data: %s",
tvb_ip_to_str(tvb, offset + 4));
proto_tree_add_text(ospf_lsa_router_link_tree, tvb, offset + 8, 1, "Link Type: %u - %s",
link_type, link_type_str);
proto_tree_add_text(ospf_lsa_router_link_tree, tvb, offset + 9, 1, "Number of %s metrics: %u",
metric_type_str, nr_metric);
proto_tree_add_text(ospf_lsa_router_link_tree, tvb, offset + 10, 2, "%s 0 metric: %u",
metric_type_str, tvb_get_ntohs(tvb, offset + 10));
offset += 12;
/* nr_metric metrics may follow each link
* According to RFC4915 the TOS metrics was never deployed and was subsequently deprecated,
* but decoding still present because MT-ID use the same structure.
*/
for (metric_counter = 0; metric_counter < nr_metric; metric_counter++) {
proto_tree_add_text(ospf_lsa_router_link_tree, tvb, offset, 4, "%s: %u, Metric: %u",
metric_type_str,
tvb_get_guint8(tvb, offset),
tvb_get_ntohs(tvb, offset + 2));
offset += 4;
}
}
break;
case OSPF_LSTYPE_NETWORK:
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Netmask: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
while (offset < end_offset) {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Attached Router: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
}
break;
case OSPF_LSTYPE_SUMMERY:
/* Type 3 and 4 LSAs have the same format */
case OSPF_LSTYPE_ASBR:
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Netmask: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Metric: %u",
tvb_get_ntoh24(tvb, offset + 1));
offset += 4;
/* Metric specific information, if any */
while (offset < end_offset) {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "%s: %u, Metric: %u",
metric_type_str,
tvb_get_guint8(tvb, offset),
tvb_get_ntoh24(tvb, offset + 1));
offset += 4;
}
break;
case OSPF_LSTYPE_ASEXT:
case OSPF_LSTYPE_ASEXT7:
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Netmask: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
options = tvb_get_guint8(tvb, offset);
if (options & 0x80) { /* check whether or not E bit is set */
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1,
"External Type: Type 2 (metric is larger than any other link state path)");
} else {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1,
"External Type: Type 1 (metric is specified in the same units as interface cost)");
}
/* the metric field of a AS-external LAS is specified in 3 bytes */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 1, 3, "Metric: %u",
tvb_get_ntoh24(tvb, offset + 1));
offset += 4;
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Forwarding Address: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "External Route Tag: %u",
tvb_get_ntohl(tvb, offset));
offset += 4;
/* Metric specific information, if any */
while (offset < end_offset) {
options = tvb_get_guint8(tvb, offset);
if (options & 0x80) { /* check whether or not E bit is set */
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1,
"External Type: Type 2 (metric is larger than any other link state path)");
} else {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1,
"External Type: Type 1 (metric is specified in the same units as interface cost)");
}
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "%s: %u, Metric: %u",
metric_type_str, options & 0x7F,
tvb_get_ntoh24(tvb, offset + 1));
offset += 4;
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Forwarding Address: %s",
tvb_ip_to_str(tvb, offset));
offset += 4;
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "External Route Tag: %u",
tvb_get_ntohl(tvb, offset));
offset += 4;
}
break;
case OSPF_LSTYPE_OP_LINKLOCAL:
case OSPF_LSTYPE_OP_AREALOCAL:
case OSPF_LSTYPE_OP_ASWIDE:
/*
* RFC 2370 opaque LSAs.
*/
dissect_ospf_lsa_opaque(tvb, offset, ospf_lsa_tree, ls_id_type,
ls_length);
offset += ls_length;
break;
default:
/* unknown LSA type */
proto_tree_add_text(ospf_lsa_tree, tvb, offset, ls_length,
"Unknown LSA Type");
offset += ls_length;
break;
}
/* return the offset of the next LSA */
return offset;
}
static int
dissect_ospf_v3_lsa(tvbuff_t *tvb, int offset, proto_tree *tree,
gboolean disassemble_body, guint8 address_family)
{
proto_tree *ospf_lsa_tree;
proto_item *ti, *hidden_item;
guint16 ls_type;
guint16 ls_length;
int end_offset;
guint8 reserved;
/* router LSA */
guint8 link_type;
const char *link_type_str;
guint32 metric;
guint8 router_priority;
guint32 number_prefixes;
guint8 prefix_length;
guint16 reserved16;
guint16 referenced_ls_type;
guint8 flags;
guint32 external_route_tag;
ls_type = tvb_get_ntohs(tvb, offset + 2);
ls_length = tvb_get_ntohs(tvb, offset + 18);
end_offset = offset + ls_length;
if (disassemble_body) {
ti = proto_tree_add_text(tree, tvb, offset, ls_length,
"%s (Type: 0x%04x)", val_to_str_const(ls_type, v3_ls_type_vals,"Unknown"), ls_type);
} else {
ti = proto_tree_add_text(tree, tvb, offset, OSPF_LSA_HEADER_LENGTH,
"LSA Header");
}
ospf_lsa_tree = proto_item_add_subtree(ti, ett_ospf_lsa);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 2, "LS Age: %u seconds",
tvb_get_ntohs(tvb, offset) & ~OSPF_DNA_LSA);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 2, "Do Not Age: %s",
(tvb_get_ntohs(tvb, offset) & OSPF_DNA_LSA) ? "True" : "False");
proto_tree_add_item(ospf_lsa_tree, hf_ospf_filter[OSPFF_V3_LS_TYPE], tvb,
offset + 2, 2, ENC_BIG_ENDIAN);
if (ospf_v3_ls_type_to_filter(ls_type) != -1) {
hidden_item = proto_tree_add_item(ospf_lsa_tree,
hf_ospf_filter[ospf_v3_ls_type_to_filter(ls_type)], tvb,
offset + 2, 2, ENC_BIG_ENDIAN);
PROTO_ITEM_SET_HIDDEN(hidden_item);
}
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 4, 4, "Link State ID: %s",
tvb_ip_to_str(tvb, offset + 4));
proto_tree_add_item(ospf_lsa_tree, hf_ospf_filter[OSPFF_ADV_ROUTER],
tvb, offset + 8, 4, ENC_BIG_ENDIAN);
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 12, 4, "LS Sequence Number: 0x%08x",
tvb_get_ntohl(tvb, offset + 12));
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 16, 2, "LS Checksum: 0x%04x",
tvb_get_ntohs(tvb, offset + 16));
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 18, 2, "Length: %u",
ls_length);
/* skip past the LSA header to the body */
offset += OSPF_LSA_HEADER_LENGTH;
ls_length -= OSPF_LSA_HEADER_LENGTH;
if (!disassemble_body)
return offset;
switch (ls_type){
case OSPF_V3_LSTYPE_ROUTER:
/* flags field in an router-lsa */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset, &bfinfo_v3_router_lsa_flags);
/* options field in an router-lsa */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset + 1, &bfinfo_v3_options);
/* skip the router-lsa flags and options */
offset+=4;
ls_length-=4;
if (ls_length > 0)
proto_tree_add_text(ospf_lsa_tree, tvb, offset, ls_length,
"Router Interfaces:");
/* scan all router-lsa router interfaces */
/* maybe we should put each of the links into its own subtree ??? */
while (ls_length > 0 ) {
/* check the type */
link_type = tvb_get_guint8(tvb, offset);
switch (link_type) {
case OSPF_V3_LINK_PTP:
link_type_str="Point-to-point connection to another router";
break;
case OSPF_V3_LINK_TRANSIT:
link_type_str="Connection to a transit network";
break;
case OSPF_V3_LINK_RESERVED:
link_type_str="Connection to a stub network";
break;
case OSPF_V3_LINK_VIRTUAL:
link_type_str="Virtual link";
break;
default:
link_type_str="Unknown link type";
break;
}
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1, "Type: %u (%s)", link_type,link_type_str);
/* reserved field */
reserved = tvb_get_guint8(tvb, offset+1);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+1, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),reserved);
/* metric */
metric=tvb_get_ntohs(tvb, offset+2);
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 2, 2,"Metric: %u",metric);
/* Interface ID */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 4, 4, "Interface ID: %u",
tvb_get_ntohl(tvb, offset + 4));
/* Neighbor Interface ID */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 8, 4, "Neighbor Interface ID: %u",
tvb_get_ntohl(tvb, offset + 8));
/* Neighbor Router ID */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 12, 4, "Neighbor Router ID: %s",
tvb_ip_to_str(tvb, offset + 12));
/* skip to the (possible) next entry */
offset+=16;
ls_length-=16;
}
break;
case OSPF_V3_LSTYPE_NETWORK:
/* reserved field */
reserved = tvb_get_guint8(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),reserved);
/* options field in an network-lsa */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset + 1, &bfinfo_v3_options);
offset += 4;
ls_length-=4;
while (ls_length > 0 ) {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Attached Router: %s",
tvb_ip_to_str(tvb, offset));
ls_length-=4;
offset += 4;
}
break;
case OSPF_V3_LSTYPE_INTER_AREA_PREFIX:
/* reserved field */
reserved = tvb_get_guint8(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),reserved);
/* metric */
metric=tvb_get_ntoh24(tvb, offset+1);
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 1, 3,"Metric: %u",metric);
/* prefix length */
prefix_length=tvb_get_guint8(tvb, offset+4);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+4, 1, "PrefixLength: %u",prefix_length);
/* prefix options */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset+5, &bfinfo_v3_prefix_options);
/* 16 bits reserved */
reserved16=tvb_get_ntohs(tvb, offset+6);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+6, 2,
(reserved16 == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),reserved16);
offset+=8;
/* address_prefix */
dissect_ospf_v3_address_prefix(tvb, offset, prefix_length, ospf_lsa_tree, address_family);
offset+=(prefix_length+31)/32*4;
break;
case OSPF_V3_LSTYPE_INTER_AREA_ROUTER:
/* reserved field */
reserved = tvb_get_guint8(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),reserved);
/* options field in an inter-area-router-lsa */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset + 1, &bfinfo_v3_options);
/* reserved field */
reserved = tvb_get_guint8(tvb, offset+4);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+4, 1,
(reserved == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),reserved);
/* metric */
metric=tvb_get_ntoh24(tvb, offset+5);
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 5, 3,"Metric: %u",metric);
/* Destination Router ID */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 8, 4, "Destination Router ID: %s",
tvb_ip_to_str(tvb, offset + 8));
offset+=12;
break;
case OSPF_V3_LSTYPE_NSSA:
case OSPF_V3_LSTYPE_AS_EXTERNAL:
/* flags */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset, &bfinfo_v3_as_external_flags);
flags=tvb_get_guint8(tvb, offset);
/* 24 bits metric */
metric=tvb_get_ntoh24(tvb, offset+1);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+1, 3,
"Metric: %u", metric);
/* prefix length */
prefix_length=tvb_get_guint8(tvb, offset+4);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+4, 1, "PrefixLength: %u",prefix_length);
/* prefix options */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset+5, &bfinfo_v3_prefix_options);
/* referenced LS type */
referenced_ls_type=tvb_get_ntohs(tvb, offset+6);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+6, 2,"Referenced LS type 0x%04x (%s)",
referenced_ls_type, val_to_str_const(referenced_ls_type, v3_ls_type_vals, "Unknown"));
offset+=8;
/* address_prefix */
dissect_ospf_v3_address_prefix(tvb, offset, prefix_length, ospf_lsa_tree, address_family);
offset+=(prefix_length+31)/32*4;
/* Forwarding Address (optional - only if F-flag is on) */
if ( (offset < end_offset) && (flags & OSPF_V3_AS_EXTERNAL_FLAG_F) ) {
if (address_family == OSPF_AF_6) {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 16,"Forwarding Address: %s",
tvb_ip6_to_str(tvb, offset));
} else {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 16,"Forwarding Address: %s",
tvb_ip_to_str(tvb, offset));
}
offset+=16;
}
/* External Route Tag (optional - only if T-flag is on) */
if ( (offset < end_offset) && (flags & OSPF_V3_AS_EXTERNAL_FLAG_T) ) {
external_route_tag=tvb_get_ntohl(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4,"External Route Tag: %u",
external_route_tag);
offset+=4;
}
/* Referenced Link State ID (optional - only if Referenced LS type is non-zero */
if ( (offset < end_offset) && (referenced_ls_type != 0) ) {
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 4, "Referenced Link State ID: %s",
tvb_ip_to_str(tvb, offset));
offset+=4;
}
break;
case OSPF_V3_LSTYPE_LINK:
/* router priority */
router_priority=tvb_get_guint8(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1, "Router Priority: %u", router_priority);
/* options field in an link-lsa */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset + 1, &bfinfo_v3_options);
/* Link-local Interface Address */
if (address_family == OSPF_AF_6) {
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 4, 16, "Link-local Interface Address: %s",
tvb_ip6_to_str(tvb, offset + 4));
} else {
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 4, 16, "Link-local Interface Address: %s",
tvb_ip_to_str(tvb, offset + 4));
}
/* Number prefixes */
number_prefixes=tvb_get_ntohl(tvb, offset + 20);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+20, 4, "# prefixes: %d",number_prefixes);
offset+=24;
while (number_prefixes > 0) {
/* prefix length */
prefix_length=tvb_get_guint8(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1, "PrefixLength: %u",prefix_length);
/* prefix options */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset+1, &bfinfo_v3_prefix_options);
/* 16 bits reserved */
reserved16=tvb_get_ntohs(tvb, offset+2);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+2, 2,
(reserved16 == 0 ? "Reserved: %u" : "Reserved: %u [incorrect, should be 0]"),reserved16);
offset+=4;
/* address_prefix */
dissect_ospf_v3_address_prefix(tvb, offset, prefix_length, ospf_lsa_tree, address_family);
offset+=(prefix_length+31)/32*4;
number_prefixes--;
}
break;
case OSPF_V3_LSTYPE_INTRA_AREA_PREFIX:
/* # prefixes */
number_prefixes=tvb_get_ntohs(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 2,"# prefixes: %u",number_prefixes);
/* referenced LS type */
referenced_ls_type=tvb_get_ntohs(tvb, offset+2);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+2, 2,"Referenced LS type 0x%04x (%s)",
referenced_ls_type, val_to_str_const(referenced_ls_type, v3_ls_type_vals, "Unknown"));
/* Referenced Link State ID */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 4, 4, "Referenced Link State ID: %s",
tvb_ip_to_str(tvb, offset + 4));
/* Referenced Advertising Router */
proto_tree_add_text(ospf_lsa_tree, tvb, offset + 8, 4, "Referenced Advertising Router: %s",
tvb_ip_to_str(tvb, offset + 8));
offset+=12;
while (number_prefixes > 0) {
/* prefix length */
prefix_length=tvb_get_guint8(tvb, offset);
proto_tree_add_text(ospf_lsa_tree, tvb, offset, 1, "PrefixLength: %u",prefix_length);
/* prefix options */
dissect_ospf_bitfield(ospf_lsa_tree, tvb, offset+1, &bfinfo_v3_prefix_options);
/* 16 bits metric */
metric=tvb_get_ntohs(tvb, offset+2);
proto_tree_add_text(ospf_lsa_tree, tvb, offset+2, 2,
"Metric: %u", metric);
offset+=4;
/* address_prefix */
dissect_ospf_v3_address_prefix(tvb, offset, prefix_length, ospf_lsa_tree, address_family);
offset+=(prefix_length+31)/32*4;
number_prefixes--;
}
break;
case OSPF_V3_LSTYPE_OPAQUE_RI:
dissect_ospf_lsa_opaque_ri(tvb, offset, ospf_lsa_tree, ls_length);
break;
default:
/* unknown LSA type */
proto_tree_add_text(ospf_lsa_tree, tvb, offset, ls_length,
"Unknown LSA Type 0x%04x",ls_type);
offset += ls_length;
break;
}
/* return the offset of the next LSA */
return offset;
}
static void dissect_ospf_v3_address_prefix(tvbuff_t *tvb, int offset, int prefix_length, proto_tree *tree,
guint8 address_family)
{
int bytes_to_process;
struct e_in6_addr prefix;
bytes_to_process=((prefix_length+31)/32)*4;
if (prefix_length > 128) {
proto_tree_add_text(tree, tvb, offset, bytes_to_process,
"Address Prefix: length is invalid (%d, should be <= 128)",
prefix_length);
return;
}
memset(prefix.bytes, 0, sizeof prefix.bytes);
if (bytes_to_process != 0) {
tvb_memcpy(tvb, prefix.bytes, offset, bytes_to_process);
if (prefix_length % 8) {
prefix.bytes[bytes_to_process - 1] &=
((0xff00 >> (prefix_length % 8)) & 0xff);
}
}
if (address_family == OSPF_AF_6) {
proto_tree_add_text(tree, tvb, offset, bytes_to_process,
"Address Prefix: %s", ip6_to_str(&prefix));
} else {
proto_tree_add_text(tree, tvb, offset, bytes_to_process,
"Address Prefix: %s", tvb_ip_to_str(tvb, offset));
}
}
void
proto_register_ospf(void)
{
static hf_register_info ospff_info[] = {
/* Message type number */
{&hf_ospf_filter[OSPFF_MSG_TYPE],
{ "Message Type", "ospf.msg", FT_UINT8, BASE_DEC, VALS(pt_vals), 0x0,
NULL, HFILL }},
/* Message types */
{&hf_ospf_filter[OSPFF_MSG_HELLO],
{ "Hello", "ospf.msg.hello", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_MSG_DB_DESC],
{ "Database Description", "ospf.msg.dbdesc", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_MSG_LS_REQ],
{ "Link State Adv Request", "ospf.msg.lsreq", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_MSG_LS_UPD],
{ "Link State Adv Update", "ospf.msg.lsupdate", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_MSG_LS_ACK],
{ "Link State Adv Acknowledgement", "ospf.msg.lsack", FT_BOOLEAN,
BASE_NONE, NULL, 0x0, NULL, HFILL }},
/* LS Types */
{&hf_ospf_filter[OSPFF_LS_TYPE],
{ "LS Type", "ospf.lsa", FT_UINT8, BASE_DEC,
VALS(ls_type_vals), 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_OPAQUE_TYPE],
{ "Link State ID Opaque Type", "ospf.lsid_opaque_type", FT_UINT8, BASE_DEC,
VALS(ls_opaque_type_vals), 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_TE_INSTANCE],
{ "Link State ID TE-LSA Instance", "ospf.lsid_te_lsa.instance", FT_UINT16, BASE_DEC,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_ROUTER],
{ "Router LSA", "ospf.lsa.router", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_NETWORK],
{ "Network LSA", "ospf.lsa.network", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_SUMMARY],
{ "Summary LSA (IP Network)", "ospf.lsa.summary", FT_BOOLEAN, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_ASBR],
{ "Summary LSA (ASBR)", "ospf.lsa.asbr", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_ASEXT],
{ "AS-External LSA (ASBR)", "ospf.lsa.asext", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_GRPMEMBER],
{ "Group Membership LSA", "ospf.lsa.member", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_ASEXT7],
{ "NSSA AS-External LSA", "ospf.lsa.nssa", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_EXTATTR],
{ "External Attributes LSA", "ospf.lsa.attr", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_OPAQUE],
{ "Opaque LSA", "ospf.lsa.opaque", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
/* OSPFv3 LS Types */
{&hf_ospf_filter[OSPFF_V3_LS_TYPE],
{ "LS Type", "ospf.v3.lsa", FT_UINT16, BASE_HEX,
VALS(v3_ls_type_vals), 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_ROUTER],
{ "Router-LSA", "ospf.v3.lsa.router", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_NETWORK],
{ "Network-LSA", "ospf.v3.lsa.network", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_INTER_AREA_PREFIX],
{ "Inter-Area-Prefix-LSA", "ospf.v3.lsa.interprefix", FT_BOOLEAN, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_INTER_AREA_ROUTER],
{ "Inter-Area-Router-LSA", "ospf.v3.lsa.interrouter", FT_BOOLEAN, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_AS_EXTERNAL],
{ "AS-External-LSA", "ospf.v3.lsa.asext", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_GROUP_MEMBERSHIP],
{ "Group-Membership-LSA", "ospf.v3.lsa.member", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_NSSA],
{ "NSSA-LSA", "ospf.v3.lsa.nssa", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_LINK],
{ "Link-LSA", "ospf.v3.lsa.link", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_INTRA_AREA_PREFIX],
{ "Intra-Area-Prefix-LSA", "ospf.v3.lsa.intraprefix", FT_BOOLEAN, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LS_OPAQUE_RI],
{ "Router Information Opaque-LSA", "ospf.v3.lsa.opaque", FT_BOOLEAN, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
/* Other interesting OSPF values */
{&hf_ospf_filter[OSPFF_SRC_ROUTER],
{ "Source OSPF Router", "ospf.srcrouter", FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_ADV_ROUTER],
{ "Advertising Router", "ospf.advrouter", FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS],
{ "MPLS Traffic Engineering LSA", "ospf.lsa.mpls", FT_BOOLEAN,
BASE_NONE, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_ROUTERID],
{ "MPLS/TE Router ID", "ospf.mpls.routerid", FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_LINKTYPE],
{ "MPLS/TE Link Type", "ospf.mpls.linktype", FT_UINT8, BASE_DEC,
VALS(mpls_link_stlv_ltype_str), 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_LINKID],
{ "MPLS/TE Link ID", "ospf.mpls.linkid", FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_LOCAL_ADDR],
{ "MPLS/TE Local Interface Address", "ospf.mpls.local_addr", FT_IPv4,
BASE_NONE, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_REMOTE_ADDR],
{ "MPLS/TE Remote Interface Address", "ospf.mpls.remote_addr", FT_IPv4,
BASE_NONE, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_LOCAL_IFID],
{ "MPLS/TE Local Interface Index", "ospf.mpls.local_id", FT_UINT32,
BASE_DEC, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_REMOTE_IFID],
{ "MPLS/TE Remote Interface Index", "ospf.mpls.remote_id", FT_UINT32,
BASE_DEC, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_LINKCOLOR],
{ "MPLS/TE Link Resource Class/Color", "ospf.mpls.linkcolor", FT_UINT32,
BASE_HEX, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_MPLS_BC_MODEL_ID],
{ "MPLS/DSTE Bandwidth Constraints Model Id", "ospf.mpls.bc", FT_UINT8,
BASE_RANGE_STRING | BASE_DEC, RVALS(mpls_link_stlv_bcmodel_rvals), 0x0,
NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_OIF_LOCAL_NODE_ID],
{ "Local Node ID", "ospf.oif.local_node_id", FT_IPv4,
BASE_NONE, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LS_OIF_REMOTE_NODE_ID],
{ "Remote Node ID", "ospf.oif.remote_node_id", FT_IPv4,
BASE_NONE, NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS],
{ "Options", "ospf.v2.options", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_MT],
{ "MT", "ospf.v2.options.mt", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_mt), OSPF_V2_OPTIONS_MT, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_E],
{ "E", "ospf.v2.options.e", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_e), OSPF_V2_OPTIONS_E, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_MC],
{ "MC", "ospf.v2.options.mc", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_mc), OSPF_V2_OPTIONS_MC, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_NP],
{ "NP", "ospf.v2.options.np", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_np), OSPF_V2_OPTIONS_NP, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_L],
{ "L", "ospf.v2.options.l", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_l), OSPF_V2_OPTIONS_L, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_DC],
{ "DC", "ospf.v2.options.dc", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_dc), OSPF_V2_OPTIONS_DC, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_O],
{ "O", "ospf.v2.options.o", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_o), OSPF_V2_OPTIONS_O, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_OPTIONS_DN],
{ "DN", "ospf.v2.options.dn", FT_BOOLEAN, 8,
TFS(&tfs_v2_options_dn), OSPF_V2_OPTIONS_DN, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_RI_OPTIONS],
{ "RI Options", "ospf.ri.options", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_RI_OPTIONS_GRC],
{ "GRC", "ospf.ri.options.grc", FT_BOOLEAN, 8,
TFS(&tfs_ri_options_grc), OSPF_RI_OPTIONS_GRC, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_RI_OPTIONS_GRH],
{ "GRH", "ospf.ri.options.grh", FT_BOOLEAN, 8,
TFS(&tfs_ri_options_grh), OSPF_RI_OPTIONS_GRH, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_RI_OPTIONS_SRS],
{ "SRS", "ospf.ri.options.srs", FT_BOOLEAN, 8,
TFS(&tfs_ri_options_srs), OSPF_RI_OPTIONS_SRS, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_RI_OPTIONS_TES],
{ "TES", "ospf.ri.options.tes", FT_BOOLEAN, 8,
TFS(&tfs_ri_options_tes), OSPF_RI_OPTIONS_TES, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_RI_OPTIONS_P2PLAN],
{ "P2PLAN", "ospf.ri.options.p2plan", FT_BOOLEAN, 8,
TFS(&tfs_ri_options_p2plan), OSPF_RI_OPTIONS_P2PLAN, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_RI_OPTIONS_ETE],
{ "ETE", "ospf.ri.options.ete", FT_BOOLEAN, 8,
TFS(&tfs_ri_options_ete), OSPF_RI_OPTIONS_ETE, NULL, HFILL }},
/* An MBZ field for the 24-bits of type field of Opaque RI LSA */
{&hf_ospf_filter[OSPFF_OPAQUE_LSA_MBZ],
{ "MBZ", "ospf.ri.mbz", FT_UINT16, BASE_HEX,
NULL, 0x0, "OSPF Opaque RI LSA - 24 bits of Type Field Must be Zero", HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS],
{ "Options", "ospf.v3.options", FT_UINT24, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_V6],
{ "V6", "ospf.v3.options.v6", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_v6), OSPF_V3_OPTIONS_V6, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_E],
{ "E", "ospf.v3.options.e", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_e), OSPF_V3_OPTIONS_E, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_MC],
{ "MC", "ospf.v3.options.mc", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_mc), OSPF_V3_OPTIONS_MC, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_N],
{ "N", "ospf.v3.options.n", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_n), OSPF_V3_OPTIONS_N, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_R],
{ "R", "ospf.v3.options.r", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_r), OSPF_V3_OPTIONS_R, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_DC],
{ "DC", "ospf.v3.options.dc", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_dc), OSPF_V3_OPTIONS_DC, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_AF],
{ "AF", "ospf.v3.options.af", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_af), OSPF_V3_OPTIONS_AF, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_L],
{ "L", "ospf.v3.options.l", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_l), OSPF_V3_OPTIONS_L, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_I],
{ "I", "ospf.v3.options.i", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_i), OSPF_V3_OPTIONS_I, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_OPTIONS_F],
{ "F", "ospf.v3.options.f", FT_BOOLEAN, 24,
TFS(&tfs_v3_options_f), OSPF_V3_OPTIONS_F, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_DBD],
{ "DB Description", "ospf.dbd", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_DBD_R],
{ "R", "ospf.dbd.r", FT_BOOLEAN, 8,
TFS(&tfs_dbd_r), OSPF_DBD_FLAG_R, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_DBD_I],
{ "I", "ospf.dbd.i", FT_BOOLEAN, 8,
TFS(&tfs_dbd_i), OSPF_DBD_FLAG_I, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_DBD_M],
{ "M", "ospf.dbd.m", FT_BOOLEAN, 8,
TFS(&tfs_dbd_m), OSPF_DBD_FLAG_M, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_DBD_MS],
{ "MS", "ospf.dbd.ms", FT_BOOLEAN, 8,
TFS(&tfs_dbd_ms), OSPF_DBD_FLAG_MS, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LLS_EXT_OPTIONS],
{ "Options", "ospf.lls.ext.options", FT_UINT32, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LLS_EXT_OPTIONS_LR],
{ "LR", "ospf.lls.ext.options.lr", FT_BOOLEAN, 32,
TFS(&tfs_lls_ext_options_lr), OSPF_LLS_EXT_OPTIONS_LR, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_LLS_EXT_OPTIONS_RS],
{ "RS", "ospf.lls.ext.options.rs", FT_BOOLEAN, 32,
TFS(&tfs_lls_ext_options_rs), OSPF_LLS_EXT_OPTIONS_RS, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_ROUTER_LSA_FLAG],
{ "Flags", "ospf.v2.router.lsa.flags", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_ROUTER_LSA_FLAG_B],
{ "B", "ospf.v2.router.lsa.flags.b", FT_BOOLEAN, 8,
TFS(&tfs_v2_router_lsa_flags_b), OSPF_V2_ROUTER_LSA_FLAG_B, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_ROUTER_LSA_FLAG_E],
{ "E", "ospf.v2.router.lsa.flags.e", FT_BOOLEAN, 8,
TFS(&tfs_v2_router_lsa_flags_e), OSPF_V2_ROUTER_LSA_FLAG_E, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_ROUTER_LSA_FLAG_V],
{ "V", "ospf.v2.router.lsa.flags.v", FT_BOOLEAN, 8,
TFS(&tfs_v2_router_lsa_flags_v), OSPF_V2_ROUTER_LSA_FLAG_V, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_ROUTER_LSA_FLAG_W],
{ "W", "ospf.v2.router.lsa.flags.w", FT_BOOLEAN, 8,
TFS(&tfs_v2_router_lsa_flags_w), OSPF_V2_ROUTER_LSA_FLAG_W, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V2_ROUTER_LSA_FLAG_N],
{ "N", "ospf.v2.router.lsa.flags.n", FT_BOOLEAN, 8,
TFS(&tfs_v2_router_lsa_flags_n), OSPF_V2_ROUTER_LSA_FLAG_N, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_ROUTER_LSA_FLAG],
{ "Flags", "ospf.v3.router.lsa.flags", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_ROUTER_LSA_FLAG_B],
{ "B", "ospf.v3.router.lsa.flags.b", FT_BOOLEAN, 8,
TFS(&tfs_v3_router_lsa_flags_b), OSPF_V3_ROUTER_LSA_FLAG_B, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_ROUTER_LSA_FLAG_E],
{ "E", "ospf.v3.router.lsa.flags.e", FT_BOOLEAN, 8,
TFS(&tfs_v3_router_lsa_flags_e), OSPF_V3_ROUTER_LSA_FLAG_E, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_ROUTER_LSA_FLAG_V],
{ "V", "ospf.v3.router.lsa.flags.v", FT_BOOLEAN, 8,
TFS(&tfs_v3_router_lsa_flags_v), OSPF_V3_ROUTER_LSA_FLAG_V, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_ROUTER_LSA_FLAG_W],
{ "W", "ospf.v3.router.lsa.flags.w", FT_BOOLEAN, 8,
TFS(&tfs_v3_router_lsa_flags_w), OSPF_V3_ROUTER_LSA_FLAG_W, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_AS_EXTERNAL_FLAG],
{ "Flags", "ospf.v3.as.external.flags", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_AS_EXTERNAL_FLAG_T],
{ "T", "ospf.v3.as.external.flags.t", FT_BOOLEAN, 8,
TFS(&tfs_v3_as_external_flags_t), OSPF_V3_AS_EXTERNAL_FLAG_T, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_AS_EXTERNAL_FLAG_F],
{ "F", "ospf.v3.as.external.flags.f", FT_BOOLEAN, 8,
TFS(&tfs_v3_as_external_flags_f), OSPF_V3_AS_EXTERNAL_FLAG_F, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_AS_EXTERNAL_FLAG_E],
{ "E", "ospf.v3.as.external.flags.e", FT_BOOLEAN, 8,
TFS(&tfs_v3_as_external_flags_e), OSPF_V3_AS_EXTERNAL_FLAG_E, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_PREFIX_OPTION],
{ "PrefixOptions", "ospf.v3.prefix.options", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_PREFIX_OPTION_NU],
{ "NU", "ospf.v3.prefix.options.nu", FT_BOOLEAN, 8,
TFS(&tfs_v3_prefix_options_nu), OSPF_V3_PREFIX_OPTION_NU, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_PREFIX_OPTION_LA],
{ "LA", "ospf.v3.prefix.options.la", FT_BOOLEAN, 8,
TFS(&tfs_v3_prefix_options_la), OSPF_V3_PREFIX_OPTION_LA, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_PREFIX_OPTION_MC],
{ "MC", "ospf.v3.prefix.options.mc", FT_BOOLEAN, 8,
TFS(&tfs_v3_prefix_options_mc), OSPF_V3_PREFIX_OPTION_MC, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_PREFIX_OPTION_P],
{ "P", "ospf.v3.prefix.options.p", FT_BOOLEAN, 8,
TFS(&tfs_v3_prefix_options_p), OSPF_V3_PREFIX_OPTION_P, NULL, HFILL }},
/* Dynamic Hostname contained in the Opaque RI LSA - dynamic hostname TLV*/
{&hf_ospf_filter[OSPFF_DYN_HOSTNAME],
{ "Dynamic Hostname", "ospf.dynhostname", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }},
/* text contained in the Unknown TLV of the Opaque RI LSA */
{&hf_ospf_filter[OSPFF_UNKNOWN_TLV_TXT],
{ "Text in the Unknown TLV", "ospf.unknown_text", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }},
/* OSPF Restart TLVs */
{&hf_ospf_filter[OSPFF_V2_GRACE_TLV],
{ "Grace TLV", "ospf.v2.grace", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL}},
{&hf_ospf_filter[OSPFF_V2_GRACE_PERIOD],
{ "Grace Period", "ospf.v2.grace.period", FT_UINT32, BASE_DEC,
NULL, 0x0,
"The number of seconds neighbors should advertise the router as fully adjacent",
HFILL }},
{&hf_ospf_filter[OSPFF_V2_GRACE_REASON],
{ "Restart Reason", "ospf.v2.grace.reason", FT_UINT8, BASE_DEC,
VALS(restart_reason_vals), 0x0, "The reason the router is restarting", HFILL }},
{&hf_ospf_filter[OSPFF_V2_GRACE_IP],
{ "Restart IP", "ospf.v2.grace.ip", FT_IPv4, BASE_NONE,
NULL, 0x0, "The IP address of the interface originating this LSA", HFILL }},
/* OSPFv3 LLS TLVs */
{&hf_ospf_filter[OSPFF_V3_LLS_EXT_OPTIONS_TLV],
{ "Extended Options TLV", "ospf.v3.lls.ext.options.tlv", FT_NONE, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_EXT_OPTIONS],
{ "Options", "ospf.v3.lls.ext.options", FT_UINT32, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_EXT_OPTIONS_LR],
{ "LR", "ospf.v3.lls.ext.options.lr", FT_BOOLEAN, 32,
TFS(&tfs_v3_lls_ext_options_lr), OSPF_V3_LLS_EXT_OPTIONS_LR, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_EXT_OPTIONS_RS],
{ "RS", "ospf.v3.lls.ext.options.rs", FT_BOOLEAN, 32,
TFS(&tfs_v3_lls_ext_options_rs), OSPF_V3_LLS_EXT_OPTIONS_RS, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_STATE_TLV],
{ "State Check Sequence TLV", "ospf.v3.lls.state.tlv", FT_NONE, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_STATE_SCS],
{ "SCS Number", "ospf.v3.lls.state.scs", FT_UINT16, BASE_DEC,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_STATE_OPTIONS],
{ "Options", "ospf.v3.lls.state.options", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_STATE_OPTIONS_R],
{ "R", "ospf.v3.lls.state.options.r", FT_BOOLEAN, 8,
TFS(&tfs_v3_lls_state_options_r), OSPF_V3_LLS_STATE_OPTIONS_R, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_STATE_OPTIONS_A],
{ "A", "ospf.v3.lls.state.options.a", FT_BOOLEAN, 8,
TFS(&tfs_v3_lls_state_options_a), OSPF_V3_LLS_STATE_OPTIONS_A , NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_STATE_OPTIONS_N],
{ "N", "ospf.v3.lls.state.options.n", FT_BOOLEAN, 8,
TFS(&tfs_v3_lls_state_options_n), OSPF_V3_LLS_STATE_OPTIONS_N ,NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_DROP_TLV],
{ "Neighbor Drop TLV", "ospf.v3.lls.drop.tlv", FT_NONE, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_RELAY_TLV],
{ "Active Overlapping Relays TLV", "ospf.v3.lls.relay.tlv", FT_NONE, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_RELAY_ADDED],
{ "Relays Added", "ospf.v3.lls.relay.added", FT_UINT8, BASE_DEC,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_RELAY_OPTIONS],
{ "Options", "ospf.v3.lls.relay.options", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_RELAY_OPTIONS_A],
{ "A", "ospf.v3.lls.relay.options.a", FT_BOOLEAN, 8,
TFS(&tfs_v3_lls_relay_options_a), OSPF_V3_LLS_RELAY_OPTIONS_A , NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_RELAY_OPTIONS_N],
{ "N", "ospf.v3.lls.relay.options.n", FT_BOOLEAN, 8,
TFS(&tfs_v3_lls_relay_options_n), OSPF_V3_LLS_RELAY_OPTIONS_N ,NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_WILLINGNESS_TLV],
{ "Willingness TLV", "ospf.v3.lls.willingness.tlv", FT_NONE, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_WILLINGNESS],
{ "Willingness", "ospf.v3.lls.willingness", FT_UINT8, BASE_DEC,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_RF_TLV],
{ "Request From TLV", "ospf.v3.lls.rf.tlv", FT_NONE, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
{&hf_ospf_filter[OSPFF_V3_LLS_FSF_TLV],
{ "Full State For TLV", "ospf.v3.lls.fsf.tlv", FT_NONE, BASE_NONE,
NULL, 0x0, NULL, HFILL }}
};
static gint *ett[] = {
&ett_ospf,
&ett_ospf_hdr,
&ett_ospf_hello,
&ett_ospf_desc,
&ett_ospf_lsr,
&ett_ospf_lsa,
&ett_ospf_lsa_router_link,
&ett_ospf_lsa_upd,
&ett_ospf_lsa_mpls,
&ett_ospf_lsa_mpls_router,
&ett_ospf_lsa_mpls_link,
&ett_ospf_lsa_mpls_link_stlv,
&ett_ospf_lsa_mpls_link_stlv_admingrp,
&ett_ospf_lsa_opaque_ri,
&ett_ospf_lsa_ri_tlv,
&ett_ospf_lsa_dyn_hostname_tlv,
&ett_ospf_lsa_unknown_tlv,
&ett_ospf_lsa_oif_tna,
&ett_ospf_lsa_oif_tna_stlv,
&ett_ospf_lsa_grace_tlv,
&ett_ospf_v2_options,
&ett_ospf_ri_options,
&ett_ospf_v3_options,
&ett_ospf_dbd,
&ett_ospf_lls_data_block,
&ett_ospf_lls_tlv,
&ett_ospf_lls_ext_options,
&ett_ospf_v3_lls_ext_options_tlv,
&ett_ospf_v3_lls_ext_options,
&ett_ospf_v3_lls_state_tlv,
&ett_ospf_v3_lls_state_scs,
&ett_ospf_v3_lls_state_options,
&ett_ospf_v3_lls_drop_tlv,
&ett_ospf_v3_lls_relay_tlv,
&ett_ospf_v3_lls_relay_added,
&ett_ospf_v3_lls_relay_options,
&ett_ospf_v3_lls_willingness_tlv,
&ett_ospf_v3_lls_willingness,
&ett_ospf_v3_lls_rf_tlv,
&ett_ospf_v3_lls_fsf_tlv,
&ett_ospf_v2_router_lsa_flags,
&ett_ospf_v3_router_lsa_flags,
&ett_ospf_v3_as_external_flags,
&ett_ospf_v3_prefix_options
};
proto_ospf = proto_register_protocol("Open Shortest Path First",
"OSPF", "ospf");
proto_register_field_array(proto_ospf, ospff_info, array_length(ospff_info));
proto_register_subtree_array(ett, array_length(ett));
}
void
proto_reg_handoff_ospf(void)
{
dissector_handle_t ospf_handle;
ospf_handle = create_dissector_handle(dissect_ospf, proto_ospf);
dissector_add_uint("ip.proto", IP_PROTO_OSPF, ospf_handle);
data_handle = find_dissector("data");
}
| RayHightower/wireshark | epan/dissectors/packet-ospf.c | C | gpl-2.0 | 158,340 | [
30522,
1013,
1008,
14771,
1011,
9808,
14376,
1012,
1039,
1008,
23964,
2005,
9808,
14376,
14771,
4487,
20939,
3366,
14905,
2135,
1008,
1006,
1039,
1007,
9385,
7658,
5267,
1054,
1012,
8945,
11106,
2213,
1026,
7658,
5267,
1030,
8945,
11106,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package easy.data.xml;
import java.util.HashMap;
import easy.data.*;
import easy.data.field.*;
import easy.data.sig.*;
import easy.data.util.*;
public class XMLDataSourceIterator implements DataSourceIterator {
XMLDataSource xds;
IDataField df;
XML[] nodes;
int curIndex;
public XMLDataSourceIterator(XMLDataSource xds, final IDataField df, final XML xml) {
this.xds = xds;
this.curIndex = 0;
df.apply(new IDFVisitor<Void>() {
public Void defaultVisit(IDataField df) {
XMLDataSourceIterator.this.df = df;
XMLDataSourceIterator.this.nodes = new XML[] { xml };
return null;
}
public Void visitListField(ListField f, String b, String d, String ep, IDataField ef) {
XMLDataSourceIterator.this.df = ef;
XMLDataSourceIterator.this.nodes = xml.getChildren(ep);
return null;
}
public Void visitPrimField(PrimField f, String b, String d) { return defaultVisit(f); }
public Void visitCompField(CompField f, String b, String d, HashMap<String, IDataField> fm) { return defaultVisit(f); }
});
}
public boolean hasData() {
return curIndex < nodes.length;
}
public DataSourceIterator loadNext() {
if (hasData()) curIndex++;
//if (!hasData()) throw new DataSourceException("Attempted to move past end of iterator");
//curIndex++;
return this;
}
@SuppressWarnings("unchecked")
public <T> T fetch(String clsName, String... keys) {
return (T) fetch(SigBuilder.classFor(clsName), keys);
}
public <T> T fetch(Class<T> cls, String... keys) {
//if (curIndex < 0) throw new DataSourceException("Must call loadNext() before attempting to fetch from iterator");
if (!hasData()) throw new DataSourceException("No more data available through iterator: " + xds.getName());
ISig sig = SigBuilder.buildCompSig(cls, keys);
return df.apply(new XMLInstantiator<T>(nodes[curIndex], sig));
}
public boolean fetchBoolean(String key) { return fetch(Boolean.class, key); }
public byte fetchByte(String key) { return fetch(Byte.class, key); }
public char fetchChar(String key) { return fetch(Character.class, key); }
public double fetchDouble(String key) { return fetch(Double.class, key); }
public float fetchFloat(String key) { return fetch(Float.class, key); }
public int fetchInt(String key) { return fetch(Integer.class, key); }
public String fetchString(String key) { return fetch(String.class, key); }
public String usageString() {
String s = "\nThe following data is available through iterator for: " + xds.getName() + "\n";
s += df.apply(new FieldStringPrettyPrint(3, true, true)) + "\n";
return s;
}
}
| berry-cs/big-data-cse | big-data-java/src/easy/data/xml/XMLDataSourceIterator.java | Java | mit | 2,587 | [
30522,
7427,
3733,
1012,
2951,
1012,
20950,
1025,
12324,
9262,
1012,
21183,
4014,
1012,
23325,
2863,
2361,
1025,
12324,
3733,
1012,
2951,
1012,
1008,
1025,
12324,
3733,
1012,
2951,
1012,
2492,
1012,
1008,
1025,
12324,
3733,
1012,
2951,
1012... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 2014-2020 Real Logic Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.aeron.cluster;
import io.aeron.Counter;
import io.aeron.ExclusivePublication;
import io.aeron.Image;
import io.aeron.archive.Archive;
import io.aeron.archive.client.AeronArchive;
import io.aeron.archive.status.RecordingPos;
import io.aeron.cluster.codecs.CloseReason;
import io.aeron.cluster.service.ClientSession;
import io.aeron.cluster.service.Cluster;
import io.aeron.cluster.service.ClusteredServiceContainer;
import io.aeron.driver.MediaDriver;
import io.aeron.driver.status.SystemCounterDescriptor;
import io.aeron.logbuffer.FragmentHandler;
import io.aeron.logbuffer.Header;
import io.aeron.test.DataCollector;
import org.agrona.CloseHelper;
import org.agrona.DirectBuffer;
import org.agrona.LangUtil;
import org.agrona.concurrent.AgentTerminationException;
import org.agrona.concurrent.UnsafeBuffer;
import org.agrona.concurrent.status.CountersReader;
import java.io.File;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import static io.aeron.Aeron.NULL_VALUE;
import static io.aeron.archive.client.AeronArchive.NULL_POSITION;
import static org.agrona.BitUtil.SIZE_OF_INT;
import static org.junit.jupiter.api.Assertions.fail;
class TestNode implements AutoCloseable
{
private final ClusteredMediaDriver clusteredMediaDriver;
private final ClusteredServiceContainer container;
private final TestService service;
private final Context context;
private boolean isClosed = false;
TestNode(final Context context, final DataCollector dataCollector)
{
clusteredMediaDriver = ClusteredMediaDriver.launch(
context.mediaDriverContext,
context.archiveContext,
context.consensusModuleContext
.terminationHook(ClusterTests.dynamicTerminationHook(
context.terminationExpected, context.memberWasTerminated)));
container = ClusteredServiceContainer.launch(
context.serviceContainerContext
.terminationHook(ClusterTests.dynamicTerminationHook(
context.terminationExpected, context.serviceWasTerminated)));
service = context.service;
this.context = context;
dataCollector.add(container.context().clusterDir().toPath());
dataCollector.add(clusteredMediaDriver.consensusModule().context().clusterDir().toPath());
dataCollector.add(clusteredMediaDriver.archive().context().archiveDir().toPath());
dataCollector.add(clusteredMediaDriver.mediaDriver().context().aeronDirectory().toPath());
}
ConsensusModule consensusModule()
{
return clusteredMediaDriver.consensusModule();
}
ClusteredServiceContainer container()
{
return container;
}
TestService service()
{
return service;
}
public void close()
{
if (!isClosed)
{
isClosed = true;
CloseHelper.closeAll(clusteredMediaDriver.consensusModule(), container, clusteredMediaDriver);
}
}
void closeAndDelete()
{
Throwable error = null;
try
{
if (!isClosed)
{
close();
}
}
catch (final Throwable t)
{
error = t;
}
try
{
if (null != container)
{
container.context().deleteDirectory();
}
}
catch (final Throwable t)
{
if (error == null)
{
error = t;
}
else
{
error.addSuppressed(t);
}
}
try
{
if (null != clusteredMediaDriver)
{
clusteredMediaDriver.consensusModule().context().deleteDirectory();
clusteredMediaDriver.archive().context().deleteDirectory();
clusteredMediaDriver.mediaDriver().context().deleteDirectory();
}
}
catch (final Throwable t)
{
if (error == null)
{
error = t;
}
else
{
error.addSuppressed(t);
}
}
if (null != error)
{
LangUtil.rethrowUnchecked(error);
}
}
boolean isClosed()
{
return isClosed;
}
Cluster.Role role()
{
final Counter counter = clusteredMediaDriver.consensusModule().context().clusterNodeRoleCounter();
if (counter.isClosed())
{
return Cluster.Role.FOLLOWER;
}
return Cluster.Role.get(counter);
}
ElectionState electionState()
{
final Counter counter = clusteredMediaDriver.consensusModule().context().electionStateCounter();
if (counter.isClosed())
{
return ElectionState.CLOSED;
}
return ElectionState.get(counter);
}
ConsensusModule.State moduleState()
{
final Counter counter = clusteredMediaDriver.consensusModule().context().moduleStateCounter();
if (counter.isClosed())
{
return ConsensusModule.State.CLOSED;
}
return ConsensusModule.State.get(counter);
}
long commitPosition()
{
final Counter counter = clusteredMediaDriver.consensusModule().context().commitPositionCounter();
if (counter.isClosed())
{
return NULL_POSITION;
}
return counter.get();
}
long appendPosition()
{
final long recordingId = consensusModule().context().recordingLog().findLastTermRecordingId();
if (RecordingPos.NULL_RECORDING_ID == recordingId)
{
fail("no recording for last term");
}
final CountersReader countersReader = countersReader();
final int counterId = RecordingPos.findCounterIdByRecording(countersReader, recordingId);
if (NULL_VALUE == counterId)
{
fail("recording not active " + recordingId);
}
return countersReader.getCounterValue(counterId);
}
boolean isLeader()
{
return role() == Cluster.Role.LEADER && moduleState() != ConsensusModule.State.CLOSED;
}
boolean isFollower()
{
return role() == Cluster.Role.FOLLOWER;
}
void terminationExpected(final boolean terminationExpected)
{
context.terminationExpected.set(terminationExpected);
}
boolean hasServiceTerminated()
{
return context.serviceWasTerminated.get();
}
boolean hasMemberTerminated()
{
return context.memberWasTerminated.get();
}
int index()
{
return service.index();
}
CountersReader countersReader()
{
return clusteredMediaDriver.mediaDriver().context().countersManager();
}
long errors()
{
return countersReader().getCounterValue(SystemCounterDescriptor.ERRORS.id());
}
ClusterTool.ClusterMembership clusterMembership()
{
final ClusterTool.ClusterMembership clusterMembership = new ClusterTool.ClusterMembership();
final File clusterDir = clusteredMediaDriver.consensusModule().context().clusterDir();
if (!ClusterTool.listMembers(clusterMembership, clusterDir, TimeUnit.SECONDS.toMillis(3)))
{
throw new IllegalStateException("timeout waiting for cluster members info");
}
return clusterMembership;
}
void removeMember(final int followerMemberId, final boolean isPassive)
{
final File clusterDir = clusteredMediaDriver.consensusModule().context().clusterDir();
if (!ClusterTool.removeMember(clusterDir, followerMemberId, isPassive))
{
throw new IllegalStateException("could not remove member");
}
}
@SuppressWarnings("NonAtomicOperationOnVolatileField")
static class TestService extends StubClusteredService
{
static final int SNAPSHOT_FRAGMENT_COUNT = 500;
static final int SNAPSHOT_MSG_LENGTH = 1000;
private int index;
private volatile int activeSessionCount;
private volatile int messageCount;
private volatile boolean wasSnapshotTaken = false;
private volatile boolean wasSnapshotLoaded = false;
private volatile boolean hasReceivedUnexpectedMessage = false;
private volatile Cluster.Role roleChangedTo = null;
TestService index(final int index)
{
this.index = index;
return this;
}
int index()
{
return index;
}
int activeSessionCount()
{
return activeSessionCount;
}
int messageCount()
{
return messageCount;
}
boolean wasSnapshotTaken()
{
return wasSnapshotTaken;
}
void resetSnapshotTaken()
{
wasSnapshotTaken = false;
}
boolean wasSnapshotLoaded()
{
return wasSnapshotLoaded;
}
Cluster.Role roleChangedTo()
{
return roleChangedTo;
}
Cluster cluster()
{
return cluster;
}
boolean hasReceivedUnexpectedMessage()
{
return hasReceivedUnexpectedMessage;
}
public void onStart(final Cluster cluster, final Image snapshotImage)
{
super.onStart(cluster, snapshotImage);
if (null != snapshotImage)
{
activeSessionCount = cluster.clientSessions().size();
final FragmentHandler handler =
(buffer, offset, length, header) -> messageCount = buffer.getInt(offset);
int fragmentCount = 0;
while (true)
{
final int fragments = snapshotImage.poll(handler, 10);
fragmentCount += fragments;
if (snapshotImage.isClosed() || snapshotImage.isEndOfStream())
{
break;
}
idleStrategy.idle(fragments);
}
if (fragmentCount != SNAPSHOT_FRAGMENT_COUNT)
{
throw new AgentTerminationException(
"unexpected snapshot length: expected=" + SNAPSHOT_FRAGMENT_COUNT + " actual=" + fragmentCount);
}
wasSnapshotLoaded = true;
}
}
public void onSessionMessage(
final ClientSession session,
final long timestamp,
final DirectBuffer buffer,
final int offset,
final int length,
final Header header)
{
final String message = buffer.getStringWithoutLengthAscii(offset, length);
if (message.equals(ClusterTests.REGISTER_TIMER_MSG))
{
while (!cluster.scheduleTimer(1, cluster.time() + 1_000))
{
idleStrategy.idle();
}
}
if (message.equals(ClusterTests.UNEXPECTED_MSG))
{
hasReceivedUnexpectedMessage = true;
throw new IllegalStateException("unexpected message received");
}
if (message.equals(ClusterTests.ECHO_IPC_INGRESS_MSG))
{
if (null != session)
{
while (cluster.offer(buffer, offset, length) < 0)
{
idleStrategy.idle();
}
}
else
{
for (final ClientSession clientSession : cluster.clientSessions())
{
while (clientSession.offer(buffer, offset, length) < 0)
{
idleStrategy.idle();
}
}
}
}
else
{
if (null != session)
{
while (session.offer(buffer, offset, length) < 0)
{
idleStrategy.idle();
}
}
}
++messageCount;
}
public void onTakeSnapshot(final ExclusivePublication snapshotPublication)
{
final UnsafeBuffer buffer = new UnsafeBuffer(new byte[SNAPSHOT_MSG_LENGTH]);
buffer.putInt(0, messageCount);
buffer.putInt(SNAPSHOT_MSG_LENGTH - SIZE_OF_INT, messageCount);
for (int i = 0; i < SNAPSHOT_FRAGMENT_COUNT; i++)
{
idleStrategy.reset();
while (snapshotPublication.offer(buffer, 0, SNAPSHOT_MSG_LENGTH) <= 0)
{
idleStrategy.idle();
}
}
wasSnapshotTaken = true;
}
public void onSessionOpen(final ClientSession session, final long timestamp)
{
super.onSessionOpen(session, timestamp);
activeSessionCount += 1;
}
public void onSessionClose(final ClientSession session, final long timestamp, final CloseReason closeReason)
{
super.onSessionClose(session, timestamp, closeReason);
activeSessionCount -= 1;
}
public void onRoleChange(final Cluster.Role newRole)
{
roleChangedTo = newRole;
}
}
static class Context
{
final MediaDriver.Context mediaDriverContext = new MediaDriver.Context();
final Archive.Context archiveContext = new Archive.Context();
final AeronArchive.Context aeronArchiveContext = new AeronArchive.Context();
final ConsensusModule.Context consensusModuleContext = new ConsensusModule.Context();
final ClusteredServiceContainer.Context serviceContainerContext = new ClusteredServiceContainer.Context();
final AtomicBoolean terminationExpected = new AtomicBoolean(false);
final AtomicBoolean memberWasTerminated = new AtomicBoolean(false);
final AtomicBoolean serviceWasTerminated = new AtomicBoolean(false);
final TestService service;
Context(final TestService service)
{
this.service = service;
}
}
}
| EvilMcJerkface/Aeron | aeron-cluster/src/test/java/io/aeron/cluster/TestNode.java | Java | apache-2.0 | 15,055 | [
30522,
1013,
1008,
1008,
9385,
2297,
1011,
12609,
2613,
7961,
3132,
1012,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2025,
2224,
2023,
5371,
3272,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* computeOnsetFeatures.c
*
* Code generation for function 'computeOnsetFeatures'
*
* C source code generated on: Fri Apr 25 23:35:45 2014
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "computeOnsetFeatures_export.h"
/* Type Definitions */
#ifndef struct_emxArray__common
#define struct_emxArray__common
struct emxArray__common
{
void *data;
int32_T *size;
int32_T allocatedSize;
int32_T numDimensions;
boolean_T canFreeData;
};
#endif /*struct_emxArray__common*/
#ifndef typedef_emxArray__common
#define typedef_emxArray__common
typedef struct emxArray__common emxArray__common;
#endif /*typedef_emxArray__common*/
#ifndef struct_emxArray_int32_T
#define struct_emxArray_int32_T
struct emxArray_int32_T
{
int32_T *data;
int32_T *size;
int32_T allocatedSize;
int32_T numDimensions;
boolean_T canFreeData;
};
#endif /*struct_emxArray_int32_T*/
#ifndef typedef_emxArray_int32_T
#define typedef_emxArray_int32_T
typedef struct emxArray_int32_T emxArray_int32_T;
#endif /*typedef_emxArray_int32_T*/
/* Function Declarations */
static void ConstantPad(const emxArray_real_T *a, const real_T padSize[2],
emxArray_real_T *b);
static void b_eml_li_find(const boolean_T x[12], int32_T y_data[12], int32_T
y_size[1]);
static void b_eml_null_assignment(emxArray_boolean_T *x, const emxArray_real_T
*idx);
static void b_emxInit_boolean_T(emxArray_boolean_T **pEmxArray, int32_T
numDimensions);
static void b_emxInit_real_T(emxArray_real_T **pEmxArray, int32_T numDimensions);
static real_T b_std(const real_T varargin_1[17]);
static void bsxfun(const real_T a[17], real_T b, real_T c[17]);
static void c_eml_null_assignment(emxArray_real_T *x, const emxArray_real_T *idx);
static real_T c_std(const real_T varargin_1[17]);
static int32_T div_s32(int32_T numerator, int32_T denominator);
static void eml_li_find(const emxArray_boolean_T *x, emxArray_int32_T *y);
static void eml_null_assignment(emxArray_boolean_T *x);
static void eml_sort(const real_T x[17], real_T y[17], int32_T idx[17]);
static void emxEnsureCapacity(emxArray__common *emxArray, int32_T oldNumel,
int32_T elementSize);
static void emxFree_boolean_T(emxArray_boolean_T **pEmxArray);
static void emxFree_int32_T(emxArray_int32_T **pEmxArray);
static void emxFree_real_T(emxArray_real_T **pEmxArray);
static void emxInit_boolean_T(emxArray_boolean_T **pEmxArray, int32_T
numDimensions);
static void emxInit_int32_T(emxArray_int32_T **pEmxArray, int32_T numDimensions);
static void emxInit_real_T(emxArray_real_T **pEmxArray, int32_T numDimensions);
static real_T featureSpectralCentroid(real_T S[17]);
static real_T featureSpectralCrest(const real_T S[17]);
static void filter(const emxArray_real_T *x, real_T zi, emxArray_real_T *y);
static void filtfilt(const emxArray_real_T *x_in, emxArray_real_T *y_out);
static void histogramFeatures(const real_T ioiHist[17], real_T features[12]);
static void ioiHistogram(emxArray_boolean_T *onsets, const emxArray_real_T *T,
real_T ioiHist[17]);
static void onsetDetection(const emxArray_real_T *spec, emxArray_boolean_T
*onsets, emxArray_real_T *flux);
static void onsetFlux(const emxArray_real_T *S, emxArray_real_T *flux);
static void padarray(const emxArray_real_T *varargin_1, emxArray_real_T *b);
static void rdivide(const emxArray_real_T *x, real_T y, emxArray_real_T *z);
static real_T rt_powd_snf(real_T u0, real_T u1);
/* Function Definitions */
static void ConstantPad(const emxArray_real_T *a, const real_T padSize[2],
emxArray_real_T *b)
{
real_T sizeB[2];
int32_T cdiff;
uint32_T varargin_1[2];
int32_T ndbl;
emxArray_real_T *idxB;
emxArray_int32_T *r7;
emxArray_real_T *r8;
emxArray_real_T *r9;
int32_T k;
int32_T absb;
int32_T apnd;
int32_T i4;
emxArray_boolean_T *x;
real_T idxB1;
real_T idxB2;
int32_T b_sizeB[2];
int32_T outsize[2];
for (cdiff = 0; cdiff < 2; cdiff++) {
sizeB[cdiff] = 0.0;
}
for (cdiff = 0; cdiff < 2; cdiff++) {
varargin_1[cdiff] = (uint32_T)a->size[cdiff];
}
ndbl = (int32_T)varargin_1[0];
if ((int32_T)varargin_1[1] > (int32_T)varargin_1[0]) {
ndbl = (int32_T)varargin_1[1];
}
emxInit_real_T(&idxB, 2);
cdiff = idxB->size[0] * idxB->size[1];
idxB->size[0] = ndbl;
idxB->size[1] = 2;
emxEnsureCapacity((emxArray__common *)idxB, cdiff, (int32_T)sizeof(real_T));
ndbl <<= 1;
for (cdiff = 0; cdiff < ndbl; cdiff++) {
idxB->data[cdiff] = 0.0;
}
emxInit_int32_T(&r7, 1);
emxInit_real_T(&r8, 2);
emxInit_real_T(&r9, 2);
for (k = 0; k < 2; k++) {
sizeB[k] = (real_T)a->size[k] + 2.0 * padSize[k];
if (1 > a->size[k]) {
ndbl = 0;
} else {
ndbl = a->size[k];
}
cdiff = r7->size[0];
r7->size[0] = ndbl;
emxEnsureCapacity((emxArray__common *)r7, cdiff, (int32_T)sizeof(int32_T));
for (cdiff = 0; cdiff < ndbl; cdiff++) {
r7->data[cdiff] = cdiff;
}
if (a->size[k] < 1) {
absb = -1;
apnd = 0;
} else {
ndbl = (int32_T)floor(((real_T)a->size[k] - 1.0) + 0.5);
apnd = ndbl + 1;
cdiff = (ndbl - a->size[k]) + 1;
absb = a->size[k];
if (1 > absb) {
i4 = 1;
} else {
i4 = absb;
}
if (fabs(cdiff) < 4.4408920985006262E-16 * (real_T)i4) {
ndbl++;
apnd = a->size[k];
} else if (cdiff > 0) {
apnd = ndbl;
} else {
ndbl++;
}
absb = ndbl - 1;
}
cdiff = r8->size[0] * r8->size[1];
r8->size[0] = 1;
r8->size[1] = absb + 1;
emxEnsureCapacity((emxArray__common *)r8, cdiff, (int32_T)sizeof(real_T));
if (absb + 1 > 0) {
r8->data[0] = 1.0;
if (absb + 1 > 1) {
r8->data[absb] = apnd;
ndbl = absb / 2;
for (cdiff = 1; cdiff < ndbl; cdiff++) {
r8->data[cdiff] = 1.0 + (real_T)cdiff;
r8->data[absb - cdiff] = apnd - cdiff;
}
if (ndbl << 1 == absb) {
r8->data[ndbl] = (1.0 + (real_T)apnd) / 2.0;
} else {
r8->data[ndbl] = 1.0 + (real_T)ndbl;
r8->data[ndbl + 1] = apnd - ndbl;
}
}
}
cdiff = r9->size[0] * r9->size[1];
r9->size[0] = 1;
r9->size[1] = r8->size[1];
emxEnsureCapacity((emxArray__common *)r9, cdiff, (int32_T)sizeof(real_T));
ndbl = r8->size[1];
for (cdiff = 0; cdiff < ndbl; cdiff++) {
r9->data[r9->size[0] * cdiff] = r8->data[r8->size[0] * cdiff] + padSize[k];
}
ndbl = r7->size[0];
for (cdiff = 0; cdiff < ndbl; cdiff++) {
idxB->data[r7->data[cdiff] + idxB->size[0] * k] = r9->data[cdiff];
}
}
emxFree_real_T(&r9);
emxFree_real_T(&r8);
emxFree_int32_T(&r7);
b_emxInit_boolean_T(&x, 1);
ndbl = idxB->size[0];
cdiff = x->size[0];
x->size[0] = ndbl;
emxEnsureCapacity((emxArray__common *)x, cdiff, (int32_T)sizeof(boolean_T));
for (cdiff = 0; cdiff < ndbl; cdiff++) {
x->data[cdiff] = (idxB->data[cdiff] != 0.0);
}
if (x->size[0] == 0) {
idxB1 = 0.0;
} else {
idxB1 = x->data[0];
for (k = 2; k <= x->size[0]; k++) {
idxB1 += (real_T)x->data[k - 1];
}
}
ndbl = idxB->size[0];
cdiff = x->size[0];
x->size[0] = ndbl;
emxEnsureCapacity((emxArray__common *)x, cdiff, (int32_T)sizeof(boolean_T));
for (cdiff = 0; cdiff < ndbl; cdiff++) {
x->data[cdiff] = (idxB->data[cdiff + idxB->size[0]] != 0.0);
}
if (x->size[0] == 0) {
idxB2 = 0.0;
} else {
idxB2 = x->data[0];
for (k = 2; k <= x->size[0]; k++) {
idxB2 += (real_T)x->data[k - 1];
}
}
emxFree_boolean_T(&x);
b_sizeB[0] = (int32_T)sizeB[0];
b_sizeB[1] = (int32_T)sizeB[1];
for (cdiff = 0; cdiff < 2; cdiff++) {
outsize[cdiff] = b_sizeB[cdiff];
}
cdiff = b->size[0] * b->size[1];
b->size[0] = outsize[0];
emxEnsureCapacity((emxArray__common *)b, cdiff, (int32_T)sizeof(real_T));
cdiff = b->size[0] * b->size[1];
b->size[1] = outsize[1];
emxEnsureCapacity((emxArray__common *)b, cdiff, (int32_T)sizeof(real_T));
ndbl = outsize[0] * outsize[1];
for (cdiff = 0; cdiff < ndbl; cdiff++) {
b->data[cdiff] = 0.0;
}
for (ndbl = 0; ndbl < (int32_T)idxB1; ndbl++) {
for (cdiff = 0; cdiff < (int32_T)idxB2; cdiff++) {
b->data[((int32_T)idxB->data[(int32_T)(1.0 + (real_T)ndbl) - 1] + b->size
[0] * ((int32_T)idxB->data[((int32_T)(1.0 + (real_T)cdiff) +
idxB->size[0]) - 1] - 1)) - 1] = a->data[((int32_T)(1.0 +
(real_T)ndbl) + a->size[0] * ((int32_T)(1.0 + (real_T)cdiff) - 1)) - 1];
}
}
emxFree_real_T(&idxB);
}
static void b_eml_li_find(const boolean_T x[12], int32_T y_data[12], int32_T
y_size[1])
{
int32_T k;
int32_T i;
k = 0;
for (i = 0; i < 12; i++) {
if (x[i]) {
k++;
}
}
y_size[0] = k;
k = 0;
for (i = 0; i < 12; i++) {
if (x[i]) {
y_data[k] = i + 1;
k++;
}
}
}
static void b_eml_null_assignment(emxArray_boolean_T *x, const emxArray_real_T
*idx)
{
int32_T nxin;
int32_T k;
emxArray_int32_T *r13;
emxArray_boolean_T *b_x;
emxArray_boolean_T *c_x;
int32_T nxout;
int32_T i6;
int32_T k0;
emxArray_boolean_T *b;
nxin = x->size[0] * x->size[1];
if (idx->size[1] == 1) {
for (k = (int32_T)idx->data[0]; k < nxin; k++) {
x->data[k - 1] = x->data[k];
}
emxInit_int32_T(&r13, 1);
emxInit_boolean_T(&b_x, 2);
b_emxInit_boolean_T(&c_x, 1);
if ((x->size[0] != 1) && (x->size[1] == 1)) {
if (1 > nxin - 1) {
nxout = 0;
} else {
nxout = nxin - 1;
}
i6 = c_x->size[0];
c_x->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)c_x, i6, (int32_T)sizeof(boolean_T));
for (i6 = 0; i6 < nxout; i6++) {
c_x->data[i6] = x->data[i6];
}
i6 = x->size[0] * x->size[1];
x->size[0] = nxout;
x->size[1] = 1;
emxEnsureCapacity((emxArray__common *)x, i6, (int32_T)sizeof(boolean_T));
i6 = 0;
while (i6 <= 0) {
for (i6 = 0; i6 < nxout; i6++) {
x->data[i6] = c_x->data[i6];
}
i6 = 1;
}
} else {
if (1 > nxin - 1) {
nxout = 0;
} else {
nxout = nxin - 1;
}
i6 = r13->size[0];
r13->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)r13, i6, (int32_T)sizeof(int32_T));
for (i6 = 0; i6 < nxout; i6++) {
r13->data[i6] = 1 + i6;
}
nxout = r13->size[0];
i6 = b_x->size[0] * b_x->size[1];
b_x->size[0] = 1;
b_x->size[1] = nxout;
emxEnsureCapacity((emxArray__common *)b_x, i6, (int32_T)sizeof(boolean_T));
for (i6 = 0; i6 < nxout; i6++) {
k = 0;
while (k <= 0) {
b_x->data[b_x->size[0] * i6] = x->data[r13->data[i6] - 1];
k = 1;
}
}
i6 = x->size[0] * x->size[1];
x->size[0] = b_x->size[0];
x->size[1] = b_x->size[1];
emxEnsureCapacity((emxArray__common *)x, i6, (int32_T)sizeof(boolean_T));
nxout = b_x->size[1];
for (i6 = 0; i6 < nxout; i6++) {
k0 = b_x->size[0];
for (k = 0; k < k0; k++) {
x->data[k + x->size[0] * i6] = b_x->data[k + b_x->size[0] * i6];
}
}
}
emxFree_boolean_T(&c_x);
emxFree_boolean_T(&b_x);
emxFree_int32_T(&r13);
} else {
emxInit_boolean_T(&b, 2);
i6 = b->size[0] * b->size[1];
b->size[0] = 1;
b->size[1] = nxin;
emxEnsureCapacity((emxArray__common *)b, i6, (int32_T)sizeof(boolean_T));
for (i6 = 0; i6 < nxin; i6++) {
b->data[i6] = FALSE;
}
for (k = 1; k <= idx->size[1]; k++) {
b->data[(int32_T)idx->data[k - 1] - 1] = TRUE;
}
nxout = 0;
for (k = 1; k <= b->size[1]; k++) {
nxout += b->data[k - 1];
}
nxout = nxin - nxout;
k0 = -1;
for (k = 1; k <= nxin; k++) {
if ((k > b->size[1]) || (!b->data[k - 1])) {
k0++;
x->data[k0] = x->data[k - 1];
}
}
emxFree_boolean_T(&b);
emxInit_int32_T(&r13, 1);
emxInit_boolean_T(&b_x, 2);
b_emxInit_boolean_T(&c_x, 1);
if ((x->size[0] != 1) && (x->size[1] == 1)) {
if (1 > nxout) {
nxout = 0;
}
i6 = c_x->size[0];
c_x->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)c_x, i6, (int32_T)sizeof(boolean_T));
for (i6 = 0; i6 < nxout; i6++) {
c_x->data[i6] = x->data[i6];
}
i6 = x->size[0] * x->size[1];
x->size[0] = nxout;
x->size[1] = 1;
emxEnsureCapacity((emxArray__common *)x, i6, (int32_T)sizeof(boolean_T));
i6 = 0;
while (i6 <= 0) {
for (i6 = 0; i6 < nxout; i6++) {
x->data[i6] = c_x->data[i6];
}
i6 = 1;
}
} else {
if (1 > nxout) {
nxout = 0;
}
i6 = r13->size[0];
r13->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)r13, i6, (int32_T)sizeof(int32_T));
for (i6 = 0; i6 < nxout; i6++) {
r13->data[i6] = 1 + i6;
}
nxout = r13->size[0];
i6 = b_x->size[0] * b_x->size[1];
b_x->size[0] = 1;
b_x->size[1] = nxout;
emxEnsureCapacity((emxArray__common *)b_x, i6, (int32_T)sizeof(boolean_T));
for (i6 = 0; i6 < nxout; i6++) {
k = 0;
while (k <= 0) {
b_x->data[b_x->size[0] * i6] = x->data[r13->data[i6] - 1];
k = 1;
}
}
i6 = x->size[0] * x->size[1];
x->size[0] = b_x->size[0];
x->size[1] = b_x->size[1];
emxEnsureCapacity((emxArray__common *)x, i6, (int32_T)sizeof(boolean_T));
nxout = b_x->size[1];
for (i6 = 0; i6 < nxout; i6++) {
k0 = b_x->size[0];
for (k = 0; k < k0; k++) {
x->data[k + x->size[0] * i6] = b_x->data[k + b_x->size[0] * i6];
}
}
}
emxFree_boolean_T(&c_x);
emxFree_boolean_T(&b_x);
emxFree_int32_T(&r13);
}
}
static void b_emxInit_boolean_T(emxArray_boolean_T **pEmxArray, int32_T
numDimensions)
{
emxArray_boolean_T *emxArray;
int32_T i;
*pEmxArray = (emxArray_boolean_T *)malloc(sizeof(emxArray_boolean_T));
emxArray = *pEmxArray;
emxArray->data = (boolean_T *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int32_T *)malloc((uint32_T)(sizeof(int32_T) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = TRUE;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
}
static void b_emxInit_real_T(emxArray_real_T **pEmxArray, int32_T numDimensions)
{
emxArray_real_T *emxArray;
int32_T i;
*pEmxArray = (emxArray_real_T *)malloc(sizeof(emxArray_real_T));
emxArray = *pEmxArray;
emxArray->data = (real_T *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int32_T *)malloc((uint32_T)(sizeof(int32_T) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = TRUE;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
}
static real_T b_std(const real_T varargin_1[17])
{
real_T y;
int32_T ix;
real_T xbar;
int32_T k;
real_T r;
ix = 0;
xbar = varargin_1[0];
for (k = 0; k < 16; k++) {
ix++;
xbar += varargin_1[ix];
}
xbar /= 17.0;
ix = 0;
r = varargin_1[0] - xbar;
y = r * r;
for (k = 0; k < 16; k++) {
ix++;
r = varargin_1[ix] - xbar;
y += r * r;
}
y /= 16.0;
return sqrt(y);
}
static void bsxfun(const real_T a[17], real_T b, real_T c[17])
{
int32_T k;
for (k = 0; k < 17; k++) {
c[k] = a[k] - b;
}
}
static void c_eml_null_assignment(emxArray_real_T *x, const emxArray_real_T *idx)
{
int32_T nxin;
int32_T k;
emxArray_int32_T *r14;
emxArray_real_T *b_x;
emxArray_real_T *c_x;
int32_T nxout;
int32_T i7;
int32_T k0;
emxArray_boolean_T *b;
nxin = x->size[0] * x->size[1];
if (idx->size[1] == 1) {
for (k = (int32_T)idx->data[0]; k < nxin; k++) {
x->data[k - 1] = x->data[k];
}
emxInit_int32_T(&r14, 1);
emxInit_real_T(&b_x, 2);
b_emxInit_real_T(&c_x, 1);
if ((x->size[0] != 1) && (x->size[1] == 1)) {
if (1 > nxin - 1) {
nxout = 0;
} else {
nxout = nxin - 1;
}
i7 = c_x->size[0];
c_x->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)c_x, i7, (int32_T)sizeof(real_T));
for (i7 = 0; i7 < nxout; i7++) {
c_x->data[i7] = x->data[i7];
}
i7 = x->size[0] * x->size[1];
x->size[0] = nxout;
x->size[1] = 1;
emxEnsureCapacity((emxArray__common *)x, i7, (int32_T)sizeof(real_T));
i7 = 0;
while (i7 <= 0) {
for (i7 = 0; i7 < nxout; i7++) {
x->data[i7] = c_x->data[i7];
}
i7 = 1;
}
} else {
if (1 > nxin - 1) {
nxout = 0;
} else {
nxout = nxin - 1;
}
i7 = r14->size[0];
r14->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)r14, i7, (int32_T)sizeof(int32_T));
for (i7 = 0; i7 < nxout; i7++) {
r14->data[i7] = 1 + i7;
}
nxout = r14->size[0];
i7 = b_x->size[0] * b_x->size[1];
b_x->size[0] = 1;
b_x->size[1] = nxout;
emxEnsureCapacity((emxArray__common *)b_x, i7, (int32_T)sizeof(real_T));
for (i7 = 0; i7 < nxout; i7++) {
k = 0;
while (k <= 0) {
b_x->data[b_x->size[0] * i7] = x->data[r14->data[i7] - 1];
k = 1;
}
}
i7 = x->size[0] * x->size[1];
x->size[0] = b_x->size[0];
x->size[1] = b_x->size[1];
emxEnsureCapacity((emxArray__common *)x, i7, (int32_T)sizeof(real_T));
nxout = b_x->size[1];
for (i7 = 0; i7 < nxout; i7++) {
k0 = b_x->size[0];
for (k = 0; k < k0; k++) {
x->data[k + x->size[0] * i7] = b_x->data[k + b_x->size[0] * i7];
}
}
}
emxFree_real_T(&c_x);
emxFree_real_T(&b_x);
emxFree_int32_T(&r14);
} else {
emxInit_boolean_T(&b, 2);
i7 = b->size[0] * b->size[1];
b->size[0] = 1;
b->size[1] = nxin;
emxEnsureCapacity((emxArray__common *)b, i7, (int32_T)sizeof(boolean_T));
for (i7 = 0; i7 < nxin; i7++) {
b->data[i7] = FALSE;
}
for (k = 1; k <= idx->size[1]; k++) {
b->data[(int32_T)idx->data[k - 1] - 1] = TRUE;
}
nxout = 0;
for (k = 1; k <= b->size[1]; k++) {
nxout += b->data[k - 1];
}
nxout = nxin - nxout;
k0 = -1;
for (k = 1; k <= nxin; k++) {
if ((k > b->size[1]) || (!b->data[k - 1])) {
k0++;
x->data[k0] = x->data[k - 1];
}
}
emxFree_boolean_T(&b);
emxInit_int32_T(&r14, 1);
emxInit_real_T(&b_x, 2);
b_emxInit_real_T(&c_x, 1);
if ((x->size[0] != 1) && (x->size[1] == 1)) {
if (1 > nxout) {
nxout = 0;
}
i7 = c_x->size[0];
c_x->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)c_x, i7, (int32_T)sizeof(real_T));
for (i7 = 0; i7 < nxout; i7++) {
c_x->data[i7] = x->data[i7];
}
i7 = x->size[0] * x->size[1];
x->size[0] = nxout;
x->size[1] = 1;
emxEnsureCapacity((emxArray__common *)x, i7, (int32_T)sizeof(real_T));
i7 = 0;
while (i7 <= 0) {
for (i7 = 0; i7 < nxout; i7++) {
x->data[i7] = c_x->data[i7];
}
i7 = 1;
}
} else {
if (1 > nxout) {
nxout = 0;
}
i7 = r14->size[0];
r14->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)r14, i7, (int32_T)sizeof(int32_T));
for (i7 = 0; i7 < nxout; i7++) {
r14->data[i7] = 1 + i7;
}
nxout = r14->size[0];
i7 = b_x->size[0] * b_x->size[1];
b_x->size[0] = 1;
b_x->size[1] = nxout;
emxEnsureCapacity((emxArray__common *)b_x, i7, (int32_T)sizeof(real_T));
for (i7 = 0; i7 < nxout; i7++) {
k = 0;
while (k <= 0) {
b_x->data[b_x->size[0] * i7] = x->data[r14->data[i7] - 1];
k = 1;
}
}
i7 = x->size[0] * x->size[1];
x->size[0] = b_x->size[0];
x->size[1] = b_x->size[1];
emxEnsureCapacity((emxArray__common *)x, i7, (int32_T)sizeof(real_T));
nxout = b_x->size[1];
for (i7 = 0; i7 < nxout; i7++) {
k0 = b_x->size[0];
for (k = 0; k < k0; k++) {
x->data[k + x->size[0] * i7] = b_x->data[k + b_x->size[0] * i7];
}
}
}
emxFree_real_T(&c_x);
emxFree_real_T(&b_x);
emxFree_int32_T(&r14);
}
}
static real_T c_std(const real_T varargin_1[17])
{
real_T y;
int32_T ix;
real_T xbar;
int32_T k;
real_T r;
ix = 0;
xbar = varargin_1[0];
for (k = 0; k < 16; k++) {
ix++;
xbar += varargin_1[ix];
}
xbar /= 17.0;
ix = 0;
r = varargin_1[0] - xbar;
y = r * r;
for (k = 0; k < 16; k++) {
ix++;
r = varargin_1[ix] - xbar;
y += r * r;
}
y /= 17.0;
return sqrt(y);
}
static int32_T div_s32(int32_T numerator, int32_T denominator)
{
int32_T quotient;
uint32_T absNumerator;
uint32_T absDenominator;
int32_T quotientNeedsNegation;
if (denominator == 0) {
if (numerator >= 0) {
quotient = MAX_int32_T;
} else {
quotient = MIN_int32_T;
}
} else {
if (numerator >= 0) {
absNumerator = (uint32_T)numerator;
} else {
absNumerator = (uint32_T)-numerator;
}
if (denominator >= 0) {
absDenominator = (uint32_T)denominator;
} else {
absDenominator = (uint32_T)-denominator;
}
quotientNeedsNegation = ((numerator < 0) != (denominator < 0));
absNumerator /= absDenominator;
if ((uint32_T)quotientNeedsNegation) {
quotient = -(int32_T)absNumerator;
} else {
quotient = (int32_T)absNumerator;
}
}
return quotient;
}
static void eml_li_find(const emxArray_boolean_T *x, emxArray_int32_T *y)
{
int32_T n;
int32_T k;
int32_T i;
int32_T j;
n = x->size[0] * x->size[1];
k = 0;
for (i = 1; i <= n; i++) {
if (x->data[i - 1]) {
k++;
}
}
j = y->size[0];
y->size[0] = k;
emxEnsureCapacity((emxArray__common *)y, j, (int32_T)sizeof(int32_T));
j = 0;
for (i = 1; i <= n; i++) {
if (x->data[i - 1]) {
y->data[j] = i;
j++;
}
}
}
static void eml_null_assignment(emxArray_boolean_T *x)
{
emxArray_boolean_T *b;
int32_T nxin;
int32_T i5;
int32_T k;
int32_T nxout;
int32_T k0;
emxArray_int32_T *r12;
emxArray_boolean_T *b_x;
emxArray_boolean_T *c_x;
emxInit_boolean_T(&b, 2);
nxin = x->size[0] * x->size[1];
i5 = b->size[0] * b->size[1];
b->size[0] = 1;
b->size[1] = nxin;
emxEnsureCapacity((emxArray__common *)b, i5, (int32_T)sizeof(boolean_T));
for (i5 = 0; i5 < nxin; i5++) {
b->data[i5] = FALSE;
}
for (k = 0; k < 2; k++) {
b->data[k] = TRUE;
}
nxout = 0;
for (k = 1; k <= b->size[1]; k++) {
nxout += b->data[k - 1];
}
nxout = nxin - nxout;
k0 = -1;
for (k = 1; k <= nxin; k++) {
if ((k > b->size[1]) || (!b->data[k - 1])) {
k0++;
x->data[k0] = x->data[k - 1];
}
}
emxFree_boolean_T(&b);
emxInit_int32_T(&r12, 1);
emxInit_boolean_T(&b_x, 2);
b_emxInit_boolean_T(&c_x, 1);
if ((x->size[0] != 1) && (x->size[1] == 1)) {
if (1 > nxout) {
nxout = 0;
}
i5 = c_x->size[0];
c_x->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)c_x, i5, (int32_T)sizeof(boolean_T));
for (i5 = 0; i5 < nxout; i5++) {
c_x->data[i5] = x->data[i5];
}
i5 = x->size[0] * x->size[1];
x->size[0] = nxout;
x->size[1] = 1;
emxEnsureCapacity((emxArray__common *)x, i5, (int32_T)sizeof(boolean_T));
i5 = 0;
while (i5 <= 0) {
for (i5 = 0; i5 < nxout; i5++) {
x->data[i5] = c_x->data[i5];
}
i5 = 1;
}
} else {
if (1 > nxout) {
nxout = 0;
}
i5 = r12->size[0];
r12->size[0] = nxout;
emxEnsureCapacity((emxArray__common *)r12, i5, (int32_T)sizeof(int32_T));
for (i5 = 0; i5 < nxout; i5++) {
r12->data[i5] = 1 + i5;
}
nxout = r12->size[0];
i5 = b_x->size[0] * b_x->size[1];
b_x->size[0] = 1;
b_x->size[1] = nxout;
emxEnsureCapacity((emxArray__common *)b_x, i5, (int32_T)sizeof(boolean_T));
for (i5 = 0; i5 < nxout; i5++) {
k = 0;
while (k <= 0) {
b_x->data[b_x->size[0] * i5] = x->data[r12->data[i5] - 1];
k = 1;
}
}
i5 = x->size[0] * x->size[1];
x->size[0] = b_x->size[0];
x->size[1] = b_x->size[1];
emxEnsureCapacity((emxArray__common *)x, i5, (int32_T)sizeof(boolean_T));
nxout = b_x->size[1];
for (i5 = 0; i5 < nxout; i5++) {
k0 = b_x->size[0];
for (k = 0; k < k0; k++) {
x->data[k + x->size[0] * i5] = b_x->data[k + b_x->size[0] * i5];
}
}
}
emxFree_boolean_T(&c_x);
emxFree_boolean_T(&b_x);
emxFree_int32_T(&r12);
}
static void eml_sort(const real_T x[17], real_T y[17], int32_T idx[17])
{
int32_T k;
boolean_T p;
int8_T idx0[17];
int32_T i;
int32_T i2;
int32_T j;
int32_T pEnd;
int32_T b_p;
int32_T q;
int32_T qEnd;
int32_T kEnd;
for (k = 0; k < 17; k++) {
idx[k] = k + 1;
}
for (k = 0; k < 15; k += 2) {
if ((x[k] <= x[k + 1]) || rtIsNaN(x[k + 1])) {
p = TRUE;
} else {
p = FALSE;
}
if (p) {
} else {
idx[k] = k + 2;
idx[k + 1] = k + 1;
}
}
for (i = 0; i < 17; i++) {
idx0[i] = 1;
}
i = 2;
while (i < 17) {
i2 = i << 1;
j = 1;
for (pEnd = 1 + i; pEnd < 18; pEnd = qEnd + i) {
b_p = j;
q = pEnd - 1;
qEnd = j + i2;
if (qEnd > 18) {
qEnd = 18;
}
k = 0;
kEnd = qEnd - j;
while (k + 1 <= kEnd) {
if ((x[idx[b_p - 1] - 1] <= x[idx[q] - 1]) || rtIsNaN(x[idx[q] - 1])) {
p = TRUE;
} else {
p = FALSE;
}
if (p) {
idx0[k] = (int8_T)idx[b_p - 1];
b_p++;
if (b_p == pEnd) {
while (q + 1 < qEnd) {
k++;
idx0[k] = (int8_T)idx[q];
q++;
}
}
} else {
idx0[k] = (int8_T)idx[q];
q++;
if (q + 1 == qEnd) {
while (b_p < pEnd) {
k++;
idx0[k] = (int8_T)idx[b_p - 1];
b_p++;
}
}
}
k++;
}
for (k = 0; k + 1 <= kEnd; k++) {
idx[(j + k) - 1] = idx0[k];
}
j = qEnd;
}
i = i2;
}
for (k = 0; k < 17; k++) {
y[k] = x[idx[k] - 1];
}
}
static void emxEnsureCapacity(emxArray__common *emxArray, int32_T oldNumel,
int32_T elementSize)
{
int32_T newNumel;
int32_T i;
void *newData;
newNumel = 1;
for (i = 0; i < emxArray->numDimensions; i++) {
newNumel *= emxArray->size[i];
}
if (newNumel > emxArray->allocatedSize) {
i = emxArray->allocatedSize;
if (i < 16) {
i = 16;
}
while (i < newNumel) {
i <<= 1;
}
newData = calloc((uint32_T)i, (uint32_T)elementSize);
if (emxArray->data != NULL) {
memcpy(newData, emxArray->data, (uint32_T)(elementSize * oldNumel));
if (emxArray->canFreeData) {
free(emxArray->data);
}
}
emxArray->data = newData;
emxArray->allocatedSize = i;
emxArray->canFreeData = TRUE;
}
}
static void emxFree_boolean_T(emxArray_boolean_T **pEmxArray)
{
if (*pEmxArray != (emxArray_boolean_T *)NULL) {
if ((*pEmxArray)->canFreeData) {
free((void *)(*pEmxArray)->data);
}
free((void *)(*pEmxArray)->size);
free((void *)*pEmxArray);
*pEmxArray = (emxArray_boolean_T *)NULL;
}
}
static void emxFree_int32_T(emxArray_int32_T **pEmxArray)
{
if (*pEmxArray != (emxArray_int32_T *)NULL) {
if ((*pEmxArray)->canFreeData) {
free((void *)(*pEmxArray)->data);
}
free((void *)(*pEmxArray)->size);
free((void *)*pEmxArray);
*pEmxArray = (emxArray_int32_T *)NULL;
}
}
static void emxFree_real_T(emxArray_real_T **pEmxArray)
{
if (*pEmxArray != (emxArray_real_T *)NULL) {
if ((*pEmxArray)->canFreeData) {
free((void *)(*pEmxArray)->data);
}
free((void *)(*pEmxArray)->size);
free((void *)*pEmxArray);
*pEmxArray = (emxArray_real_T *)NULL;
}
}
static void emxInit_boolean_T(emxArray_boolean_T **pEmxArray, int32_T
numDimensions)
{
emxArray_boolean_T *emxArray;
int32_T i;
*pEmxArray = (emxArray_boolean_T *)malloc(sizeof(emxArray_boolean_T));
emxArray = *pEmxArray;
emxArray->data = (boolean_T *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int32_T *)malloc((uint32_T)(sizeof(int32_T) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = TRUE;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
}
static void emxInit_int32_T(emxArray_int32_T **pEmxArray, int32_T numDimensions)
{
emxArray_int32_T *emxArray;
int32_T i;
*pEmxArray = (emxArray_int32_T *)malloc(sizeof(emxArray_int32_T));
emxArray = *pEmxArray;
emxArray->data = (int32_T *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int32_T *)malloc((uint32_T)(sizeof(int32_T) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = TRUE;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
}
static void emxInit_real_T(emxArray_real_T **pEmxArray, int32_T numDimensions)
{
emxArray_real_T *emxArray;
int32_T i;
*pEmxArray = (emxArray_real_T *)malloc(sizeof(emxArray_real_T));
emxArray = *pEmxArray;
emxArray->data = (real_T *)NULL;
emxArray->numDimensions = numDimensions;
emxArray->size = (int32_T *)malloc((uint32_T)(sizeof(int32_T) * numDimensions));
emxArray->allocatedSize = 0;
emxArray->canFreeData = TRUE;
for (i = 0; i < numDimensions; i++) {
emxArray->size[i] = 0;
}
}
static real_T featureSpectralCentroid(real_T S[17])
{
real_T y;
int32_T i;
real_T b_y;
/* FEATURESPECTRALCENTROID Computes spectral centroid feature */
/* It is the mass center of the spectrum */
/* [r,c] = size(S); */
/* feature = sum(repmat((1:r)',1,c).* S)./sum(S); */
y = 0.0;
for (i = 0; i < 17; i++) {
b_y = S[i] * S[i];
y += (((real_T)i + 1.0) - 1.0) * b_y;
S[i] = b_y;
}
b_y = S[0];
for (i = 0; i < 16; i++) {
b_y += S[i + 1];
}
return y / b_y;
}
static real_T featureSpectralCrest(const real_T S[17])
{
int32_T ixstart;
real_T mtmp;
int32_T ix;
boolean_T exitg1;
real_T y;
/* FEATURESPECTRALCREST Computes spectral crest */
/* It is a rough measure of tonality */
ixstart = 1;
mtmp = S[0];
if (rtIsNaN(S[0])) {
ix = 2;
exitg1 = FALSE;
while ((exitg1 == FALSE) && (ix < 18)) {
ixstart = ix;
if (!rtIsNaN(S[ix - 1])) {
mtmp = S[ix - 1];
exitg1 = TRUE;
} else {
ix++;
}
}
}
if (ixstart < 17) {
while (ixstart + 1 < 18) {
if (S[ixstart] > mtmp) {
mtmp = S[ixstart];
}
ixstart++;
}
}
y = S[0];
for (ixstart = 0; ixstart < 16; ixstart++) {
y += S[ixstart + 1];
}
return mtmp / y;
}
static void filter(const emxArray_real_T *x, real_T zi, emxArray_real_T *y)
{
uint32_T unnamed_idx_0;
int32_T j;
real_T dbuffer[2];
int32_T k;
real_T b_dbuffer;
unnamed_idx_0 = (uint32_T)x->size[0];
j = y->size[0];
y->size[0] = (int32_T)unnamed_idx_0;
emxEnsureCapacity((emxArray__common *)y, j, (int32_T)sizeof(real_T));
dbuffer[1] = zi;
for (j = 0; j + 1 <= x->size[0]; j++) {
dbuffer[0] = dbuffer[1];
dbuffer[1] = 0.0;
for (k = 0; k < 2; k++) {
b_dbuffer = dbuffer[k] + x->data[j] * 0.33333333333333331;
dbuffer[k] = b_dbuffer;
}
y->data[j] = dbuffer[0];
}
}
static void filtfilt(const emxArray_real_T *x_in, emxArray_real_T *y_out)
{
emxArray_real_T *x;
int32_T i2;
int32_T loop_ub;
emxArray_real_T *y;
real_T xtmp;
real_T b_y;
int32_T md2;
emxArray_real_T *c_y;
int32_T m;
emxArray_real_T *d_y;
emxArray_int32_T *r6;
b_emxInit_real_T(&x, 1);
if (x_in->size[0] == 1) {
i2 = x->size[0];
x->size[0] = 1;
emxEnsureCapacity((emxArray__common *)x, i2, (int32_T)sizeof(real_T));
x->data[0] = x_in->data[0];
} else {
i2 = x->size[0];
x->size[0] = x_in->size[0];
emxEnsureCapacity((emxArray__common *)x, i2, (int32_T)sizeof(real_T));
loop_ub = x_in->size[0];
for (i2 = 0; i2 < loop_ub; i2++) {
x->data[i2] = x_in->data[i2];
}
}
if (x->size[0] == 0) {
i2 = y_out->size[0] * y_out->size[1];
y_out->size[0] = 0;
y_out->size[1] = 0;
emxEnsureCapacity((emxArray__common *)y_out, i2, (int32_T)sizeof(real_T));
} else {
b_emxInit_real_T(&y, 1);
xtmp = 2.0 * x->data[0];
b_y = 2.0 * x->data[x->size[0] - 1];
md2 = x->size[0] - 1;
i2 = y->size[0];
y->size[0] = 6 + x->size[0];
emxEnsureCapacity((emxArray__common *)y, i2, (int32_T)sizeof(real_T));
for (i2 = 0; i2 < 3; i2++) {
y->data[i2] = xtmp - x->data[3 - i2];
}
loop_ub = x->size[0];
for (i2 = 0; i2 < loop_ub; i2++) {
y->data[i2 + 3] = x->data[i2];
}
for (i2 = 0; i2 < 3; i2++) {
y->data[(i2 + x->size[0]) + 3] = b_y - x->data[(md2 - i2) - 1];
}
b_emxInit_real_T(&c_y, 1);
i2 = c_y->size[0];
c_y->size[0] = y->size[0];
emxEnsureCapacity((emxArray__common *)c_y, i2, (int32_T)sizeof(real_T));
loop_ub = y->size[0];
for (i2 = 0; i2 < loop_ub; i2++) {
c_y->data[i2] = y->data[i2];
}
xtmp = y->data[0];
filter(c_y, 0.33333333333333331 * xtmp, y);
m = y->size[0];
i2 = y->size[0];
md2 = i2 / 2;
loop_ub = 1;
emxFree_real_T(&c_y);
while (loop_ub <= md2) {
xtmp = y->data[loop_ub - 1];
y->data[loop_ub - 1] = y->data[m - loop_ub];
y->data[m - loop_ub] = xtmp;
loop_ub++;
}
b_emxInit_real_T(&d_y, 1);
i2 = d_y->size[0];
d_y->size[0] = y->size[0];
emxEnsureCapacity((emxArray__common *)d_y, i2, (int32_T)sizeof(real_T));
loop_ub = y->size[0];
for (i2 = 0; i2 < loop_ub; i2++) {
d_y->data[i2] = y->data[i2];
}
xtmp = y->data[0];
filter(d_y, 0.33333333333333331 * xtmp, y);
m = y->size[0];
i2 = y->size[0];
md2 = i2 / 2;
loop_ub = 1;
emxFree_real_T(&d_y);
while (loop_ub <= md2) {
xtmp = y->data[loop_ub - 1];
y->data[loop_ub - 1] = y->data[m - loop_ub];
y->data[m - loop_ub] = xtmp;
loop_ub++;
}
if (x_in->size[0] == 1) {
emxInit_int32_T(&r6, 1);
loop_ub = (int32_T)((real_T)x->size[0] + 3.0) - 4;
i2 = r6->size[0];
r6->size[0] = loop_ub + 1;
emxEnsureCapacity((emxArray__common *)r6, i2, (int32_T)sizeof(int32_T));
for (i2 = 0; i2 <= loop_ub; i2++) {
r6->data[i2] = 4 + i2;
}
i2 = y_out->size[0] * y_out->size[1];
y_out->size[0] = 1;
emxEnsureCapacity((emxArray__common *)y_out, i2, (int32_T)sizeof(real_T));
md2 = r6->size[0];
i2 = y_out->size[0] * y_out->size[1];
y_out->size[1] = md2;
emxEnsureCapacity((emxArray__common *)y_out, i2, (int32_T)sizeof(real_T));
loop_ub = r6->size[0];
for (i2 = 0; i2 < loop_ub; i2++) {
y_out->data[i2] = y->data[r6->data[i2] - 1];
}
emxFree_int32_T(&r6);
} else {
emxInit_int32_T(&r6, 1);
loop_ub = (int32_T)((real_T)x->size[0] + 3.0) - 3;
i2 = y_out->size[0] * y_out->size[1];
y_out->size[0] = loop_ub;
y_out->size[1] = 1;
emxEnsureCapacity((emxArray__common *)y_out, i2, (int32_T)sizeof(real_T));
md2 = (int32_T)((real_T)x->size[0] + 3.0) - 4;
i2 = r6->size[0];
r6->size[0] = md2 + 1;
emxEnsureCapacity((emxArray__common *)r6, i2, (int32_T)sizeof(int32_T));
for (i2 = 0; i2 <= md2; i2++) {
r6->data[i2] = 4 + i2;
}
for (i2 = 0; i2 < loop_ub; i2++) {
y_out->data[i2] = y->data[r6->data[i2] - 1];
}
emxFree_int32_T(&r6);
}
emxFree_real_T(&y);
}
emxFree_real_T(&x);
}
static void histogramFeatures(const real_T ioiHist[17], real_T features[12])
{
int32_T iidx[17];
real_T k[17];
int32_T ind[17];
boolean_T S[17];
int32_T cindx;
real_T xlast;
int32_T b_k;
real_T b_ioiHist[17];
real_T sigma;
real_T b_S[17];
real_T b[17];
int32_T ix;
boolean_T x;
int8_T S_size[2];
int8_T outsz[2];
int32_T loop_ub;
int32_T iindx_data[1];
int32_T b_ix;
int32_T indx_data[1];
/* UNTITLED Summary of this function goes here */
/* Detailed explanation goes here */
/* features(1) = mean(ioiHist); */
features[0] = b_std(ioiHist);
eml_sort(ioiHist, k, iidx);
features[1] = k[16] / k[15];
for (cindx = 0; cindx < 17; cindx++) {
ind[cindx] = iidx[cindx];
S[cindx] = (ioiHist[cindx] == 0.0);
}
features[2] = (real_T)ind[16] / (real_T)ind[15];
xlast = S[0];
for (b_k = 0; b_k < 16; b_k++) {
xlast += (real_T)S[b_k + 1];
}
features[3] = xlast / 17.0;
for (cindx = 0; cindx < 17; cindx++) {
b_ioiHist[cindx] = ioiHist[cindx];
/* FEATURESPECTRALDECREASE Computes the Spectral Decrease */
/* A measure of steepness of spectral envelope over frequency */
k[cindx] = cindx;
}
features[4] = featureSpectralCentroid(b_ioiHist);
features[5] = featureSpectralCrest(ioiHist);
k[0] = 1.0;
xlast = 0.0;
for (cindx = 0; cindx < 17; cindx++) {
/* compute slope */
xlast += 1.0 / k[cindx] * (ioiHist[cindx] - ioiHist[0]);
}
sigma = ioiHist[1];
for (b_k = 0; b_k < 15; b_k++) {
sigma += ioiHist[b_k + 2];
}
features[6] = xlast / sigma;
/* FEATURESPECTRALKURTOSIS Computes the Spectral Kurtosis */
/* It is a measure of gaussianity of a spectrum */
sigma = c_std(ioiHist);
/* Subtracting means */
xlast = ioiHist[0];
for (b_k = 0; b_k < 16; b_k++) {
xlast += ioiHist[b_k + 1];
}
bsxfun(ioiHist, xlast / 17.0, b_S);
for (b_k = 0; b_k < 17; b_k++) {
k[b_k] = rt_powd_snf(b_S[b_k], 4.0) / (rt_powd_snf(sigma, 4.0) * 17.0);
}
sigma = k[0];
for (b_k = 0; b_k < 16; b_k++) {
sigma += k[b_k + 1];
}
features[7] = sigma;
/* FEATURESPECTRALROLLOFF Computes Spectral Rolloff */
/* Finds frequency bin where cumsum reaches 0.85 of magnitude */
/* compute rolloff */
xlast = ioiHist[0];
for (b_k = 0; b_k < 16; b_k++) {
xlast += ioiHist[b_k + 1];
}
sigma = 0.85 * xlast;
/* Find indices where cumulative sum is greater */
memcpy(&b[0], &ioiHist[0], 17U * sizeof(real_T));
ix = 0;
xlast = ioiHist[0];
for (b_k = 0; b_k < 16; b_k++) {
ix++;
xlast += b[ix];
b[ix] = xlast;
}
for (b_k = 0; b_k < 17; b_k++) {
S[b_k] = (b[b_k] >= sigma);
}
/* Find the maximum value */
xlast = S[0];
for (b_k = 0; b_k < 16; b_k++) {
xlast += (real_T)S[b_k + 1];
}
x = (xlast > 0.0);
b_k = 0;
if (x) {
b_k = 1;
}
S_size[0] = 17;
S_size[1] = (int8_T)b_k;
for (cindx = 0; cindx < 2; cindx++) {
outsz[cindx] = S_size[cindx];
}
loop_ub = outsz[1];
for (cindx = 0; cindx < loop_ub; cindx++) {
iindx_data[cindx] = 1;
}
ix = -16;
cindx = 1;
while (cindx <= b_k) {
ix += 17;
x = S[(ix - 1) % 17];
loop_ub = 1;
cindx = 1;
if (ix < ix + 16) {
for (b_ix = ix; b_ix + 1 <= ix + 16; b_ix++) {
cindx++;
if (S[b_ix % 17] > x) {
x = S[b_ix % 17];
loop_ub = cindx;
}
}
}
iindx_data[0] = loop_ub;
cindx = 2;
}
loop_ub = outsz[1];
for (cindx = 0; cindx < loop_ub; cindx++) {
indx_data[cindx] = iindx_data[cindx];
}
features[8] = indx_data[0];
/* FEATURESPECTRALSKEWNESS Compute spectral skewness */
/* A measure of symmettricity of pdf */
sigma = c_std(ioiHist);
/* Subtracting means */
xlast = ioiHist[0];
for (b_k = 0; b_k < 16; b_k++) {
xlast += ioiHist[b_k + 1];
}
bsxfun(ioiHist, xlast / 17.0, b_S);
for (b_k = 0; b_k < 17; b_k++) {
k[b_k] = rt_powd_snf(b_S[b_k], 3.0) / (rt_powd_snf(sigma, 3.0) * 17.0);
}
sigma = k[0];
for (b_k = 0; b_k < 16; b_k++) {
sigma += k[b_k + 1];
}
features[9] = sigma;
/* FUNCTIONSPECTRALSLOPE Computes the spectral slope */
/* */
/* compute index vector */
/* compute slope */
xlast = ioiHist[0];
for (b_k = 0; b_k < 16; b_k++) {
xlast += ioiHist[b_k + 1];
}
bsxfun(ioiHist, xlast / 17.0, b_S);
xlast = 0.0;
sigma = 0.0;
for (b_k = 0; b_k < 17; b_k++) {
xlast += (-8.5 + (((real_T)b_k + 1.0) - 1.0)) * b_S[b_k];
sigma += (-8.5 + (((real_T)b_k + 1.0) - 1.0)) * (-8.5 + (((real_T)b_k + 1.0)
- 1.0));
b_ioiHist[b_k] = ioiHist[b_k];
k[b_k] = b_k;
b_S[b_k] = ioiHist[b_k] * ioiHist[b_k];
}
features[10] = xlast / sigma;
/* FEATURESPECTRALSPREAD Computes spectral spread */
/* Concentration of energy around spectral centroid */
bsxfun(k, featureSpectralCentroid(b_ioiHist), b);
for (b_k = 0; b_k < 17; b_k++) {
k[b_k] = b[b_k] * b[b_k] * b_S[b_k];
}
xlast = k[0];
sigma = b_S[0];
for (b_k = 0; b_k < 16; b_k++) {
xlast += k[b_k + 1];
sigma += b_S[b_k + 1];
}
features[11] = sqrt(xlast / sigma);
}
static void ioiHistogram(emxArray_boolean_T *onsets, const emxArray_real_T *T,
real_T ioiHist[17])
{
emxArray_real_T *tOnset;
emxArray_int32_T *r10;
int32_T high_i;
int32_T ixLead;
emxArray_real_T *ioi;
emxArray_real_T *b_y1;
int32_T iyLead;
real_T work_data_idx_0;
real_T tmp1;
real_T tmp2;
int32_T sz[2];
real_T meanIOI_data[1];
int32_T meanIOI_size[2];
int32_T k;
emxArray_real_T *r11;
emxArray_real_T b_meanIOI_data;
int32_T d;
real_T stdIOI_data[1];
boolean_T goodInd_data[1];
real_T histEdges[17];
int32_T exitg1;
b_emxInit_real_T(&tOnset, 1);
emxInit_int32_T(&r10, 1);
/* UNTITLED2 Summary of this function goes here */
/* Detailed explanation goes here */
/* Setting the first one as true */
onsets->data[0] = TRUE;
/* onsetInd = onsets; */
eml_li_find(onsets, r10);
high_i = tOnset->size[0];
tOnset->size[0] = r10->size[0];
emxEnsureCapacity((emxArray__common *)tOnset, high_i, (int32_T)sizeof(real_T));
ixLead = r10->size[0];
for (high_i = 0; high_i < ixLead; high_i++) {
tOnset->data[high_i] = T->data[r10->data[high_i] - 1];
}
emxFree_int32_T(&r10);
emxInit_real_T(&ioi, 2);
if (tOnset->size[0] == 0) {
high_i = ioi->size[0] * ioi->size[1];
ioi->size[0] = 0;
ioi->size[1] = 1;
emxEnsureCapacity((emxArray__common *)ioi, high_i, (int32_T)sizeof(real_T));
} else {
ixLead = tOnset->size[0] - 1;
if (ixLead <= 1) {
} else {
ixLead = 1;
}
if (ixLead < 1) {
high_i = ioi->size[0] * ioi->size[1];
ioi->size[0] = 0;
ioi->size[1] = 0;
emxEnsureCapacity((emxArray__common *)ioi, high_i, (int32_T)sizeof(real_T));
} else {
b_emxInit_real_T(&b_y1, 1);
high_i = b_y1->size[0];
b_y1->size[0] = tOnset->size[0] - 1;
emxEnsureCapacity((emxArray__common *)b_y1, high_i, (int32_T)sizeof(real_T));
ixLead = 1;
iyLead = 0;
work_data_idx_0 = tOnset->data[0];
for (high_i = 2; high_i <= tOnset->size[0]; high_i++) {
tmp1 = tOnset->data[ixLead];
tmp2 = work_data_idx_0;
work_data_idx_0 = tmp1;
tmp1 -= tmp2;
ixLead++;
b_y1->data[iyLead] = tmp1;
iyLead++;
}
ixLead = b_y1->size[0];
high_i = ioi->size[0] * ioi->size[1];
ioi->size[0] = ixLead;
emxEnsureCapacity((emxArray__common *)ioi, high_i, (int32_T)sizeof(real_T));
high_i = ioi->size[0] * ioi->size[1];
ioi->size[1] = 1;
emxEnsureCapacity((emxArray__common *)ioi, high_i, (int32_T)sizeof(real_T));
ixLead = b_y1->size[0];
for (high_i = 0; high_i < ixLead; high_i++) {
ioi->data[high_i] = b_y1->data[high_i];
}
emxFree_real_T(&b_y1);
}
}
emxFree_real_T(&tOnset);
for (high_i = 0; high_i < 2; high_i++) {
sz[high_i] = ioi->size[high_i];
}
meanIOI_size[0] = 1;
meanIOI_size[1] = sz[1];
if ((ioi->size[0] == 0) || (ioi->size[1] == 0)) {
meanIOI_size[0] = 1;
meanIOI_size[1] = sz[1];
ixLead = sz[1];
for (high_i = 0; high_i < ixLead; high_i++) {
meanIOI_data[high_i] = 0.0;
}
} else {
iyLead = -1;
work_data_idx_0 = ioi->data[0];
for (k = 2; k <= ioi->size[0]; k++) {
iyLead++;
work_data_idx_0 += ioi->data[iyLead + 1];
}
meanIOI_data[0] = work_data_idx_0;
}
emxInit_real_T(&r11, 2);
b_meanIOI_data.data = (real_T *)&meanIOI_data;
b_meanIOI_data.size = (int32_T *)&meanIOI_size;
b_meanIOI_data.allocatedSize = 1;
b_meanIOI_data.numDimensions = 2;
b_meanIOI_data.canFreeData = FALSE;
rdivide(&b_meanIOI_data, ioi->size[0], r11);
meanIOI_size[0] = 1;
meanIOI_size[1] = r11->size[1];
ixLead = r11->size[0] * r11->size[1];
for (high_i = 0; high_i < ixLead; high_i++) {
meanIOI_data[high_i] = r11->data[high_i];
}
emxFree_real_T(&r11);
if (ioi->size[0] > 1) {
d = ioi->size[0] - 1;
} else {
d = ioi->size[0];
}
for (high_i = 0; high_i < 2; high_i++) {
sz[high_i] = ioi->size[high_i];
}
iyLead = 0;
ixLead = 1;
while (ixLead <= ioi->size[1]) {
if ((ioi->size[0] == 0) || (ioi->size[1] == 0)) {
work_data_idx_0 = rtNaN;
} else {
ixLead = iyLead;
tmp1 = ioi->data[iyLead];
for (k = 0; k <= ioi->size[0] - 2; k++) {
ixLead++;
tmp1 += ioi->data[ixLead];
}
tmp1 /= (real_T)ioi->size[0];
ixLead = iyLead;
tmp2 = ioi->data[iyLead] - tmp1;
work_data_idx_0 = tmp2 * tmp2;
for (k = 0; k <= ioi->size[0] - 2; k++) {
ixLead++;
tmp2 = ioi->data[ixLead] - tmp1;
work_data_idx_0 += tmp2 * tmp2;
}
work_data_idx_0 /= (real_T)d;
}
stdIOI_data[0] = work_data_idx_0;
iyLead += ioi->size[0];
ixLead = 2;
}
k = 0;
while (k <= sz[1] - 1) {
stdIOI_data[0] = sqrt(stdIOI_data[0]);
k = 1;
}
iyLead = ioi->size[1];
ixLead = ioi->size[0] * ioi->size[1];
for (high_i = 0; high_i < ixLead; high_i++) {
goodInd_data[high_i] = ((ioi->data[high_i] > meanIOI_data[high_i] - 2.0 *
stdIOI_data[high_i]) && (ioi->data[high_i] < meanIOI_data[high_i] + 2.0 *
stdIOI_data[high_i]));
}
k = 0;
ixLead = 1;
while (ixLead <= iyLead) {
if (goodInd_data[0]) {
k++;
}
ixLead = 2;
}
/* Avoiding code export bug */
/* ioi(ioi>upperThresh) = []; */
/* ioi(ioi<lowerThresh) = []; */
/* nBins = 16; */
for (high_i = 0; high_i < 17; high_i++) {
histEdges[high_i] = 0.125 * (real_T)high_i;
ioiHist[high_i] = 0.0;
}
histEdges[16] = rtInf;
high_i = 0;
do {
exitg1 = 0;
if (high_i < 16) {
if (histEdges[1 + high_i] < histEdges[high_i]) {
for (high_i = 0; high_i < 17; high_i++) {
ioiHist[high_i] = rtNaN;
}
exitg1 = 1;
} else {
high_i++;
}
} else {
ixLead = 0;
while (ixLead <= k - 1) {
ixLead = 0;
if (!rtIsNaN(ioi->data[0])) {
if ((ioi->data[0] >= 0.0) && (ioi->data[0] < rtInf)) {
ixLead = 1;
iyLead = 2;
high_i = 17;
while (high_i > iyLead) {
d = (ixLead + high_i) >> 1;
if (ioi->data[0] >= histEdges[d - 1]) {
ixLead = d;
iyLead = d + 1;
} else {
high_i = d;
}
}
}
if (ioi->data[0] == rtInf) {
ixLead = 17;
}
}
if (ixLead > 0) {
ioiHist[ixLead - 1]++;
}
ixLead = 1;
}
exitg1 = 1;
}
} while (exitg1 == 0);
emxFree_real_T(&ioi);
work_data_idx_0 = ioiHist[0];
for (k = 0; k < 16; k++) {
work_data_idx_0 += ioiHist[k + 1];
}
for (high_i = 0; high_i < 17; high_i++) {
ioiHist[high_i] /= work_data_idx_0;
}
}
static void onsetDetection(const emxArray_real_T *spec, emxArray_boolean_T
*onsets, emxArray_real_T *flux)
{
emxArray_real_T *b_flux;
int32_T ixstart;
real_T mtmp;
int32_T k0;
boolean_T exitg1;
int32_T i0;
emxArray_real_T *flux1;
int32_T varargin_1[2];
int32_T i;
boolean_T x[7];
int32_T k;
emxArray_real_T *r0;
int32_T nxin;
emxArray_real_T *r1;
emxArray_real_T *mask2;
emxArray_boolean_T *b;
emxArray_int32_T *r2;
emxArray_real_T *b_mask2;
emxArray_real_T *c_mask2;
emxArray_real_T *r3;
int32_T vstride;
int32_T npages;
int32_T dim;
int32_T j;
int32_T ia;
b_emxInit_real_T(&b_flux, 1);
/* UNTITLED2 Summary of this function goes here */
/* Detailed explanation goes here */
onsetFlux(spec, b_flux);
/* Normalizing */
ixstart = 1;
mtmp = b_flux->data[0];
if (b_flux->size[0] > 1) {
if (rtIsNaN(b_flux->data[0])) {
k0 = 2;
exitg1 = FALSE;
while ((exitg1 == FALSE) && (k0 <= b_flux->size[0])) {
ixstart = k0;
if (!rtIsNaN(b_flux->data[k0 - 1])) {
mtmp = b_flux->data[k0 - 1];
exitg1 = TRUE;
} else {
k0++;
}
}
}
if (ixstart < b_flux->size[0]) {
while (ixstart + 1 <= b_flux->size[0]) {
if (b_flux->data[ixstart] > mtmp) {
mtmp = b_flux->data[ixstart];
}
ixstart++;
}
}
}
i0 = b_flux->size[0];
emxEnsureCapacity((emxArray__common *)b_flux, i0, (int32_T)sizeof(real_T));
ixstart = b_flux->size[0];
for (i0 = 0; i0 < ixstart; i0++) {
b_flux->data[i0] /= mtmp;
}
emxInit_real_T(&flux1, 2);
/* Smoothing */
/* h=fdesign.lowpass('N,F3dB',12,0.15); */
/* d1 = design(h,'elliptic'); */
/* flux = filtfilt(d1.sosMatrix,d1.ScaleValues,flux); */
filtfilt(b_flux, flux);
/* h = 1/4*ones(4,1); */
/* flux = filter(h,1,flux); */
/* Peak picking */
/* w = 2; % Size of window to find local maxima */
padarray(flux, flux1);
emxFree_real_T(&b_flux);
for (i0 = 0; i0 < 2; i0++) {
varargin_1[i0] = flux1->size[i0];
}
i0 = onsets->size[0] * onsets->size[1];
onsets->size[0] = varargin_1[0];
emxEnsureCapacity((emxArray__common *)onsets, i0, (int32_T)sizeof(boolean_T));
i0 = onsets->size[0] * onsets->size[1];
onsets->size[1] = varargin_1[1];
emxEnsureCapacity((emxArray__common *)onsets, i0, (int32_T)sizeof(boolean_T));
ixstart = varargin_1[0] * varargin_1[1];
for (i0 = 0; i0 < ixstart; i0++) {
onsets->data[i0] = FALSE;
}
if ((0 == flux1->size[0]) || (0 == flux1->size[1])) {
ixstart = 0;
} else if (flux1->size[0] > flux1->size[1]) {
ixstart = flux1->size[0];
} else {
ixstart = flux1->size[1];
}
for (i = 3; i - 3 <= ixstart - 7; i++) {
mtmp = flux1->data[i];
for (i0 = 0; i0 < 7; i0++) {
x[i0] = (mtmp >= flux1->data[(i0 + i) - 3]);
}
mtmp = x[0];
for (k = 0; k < 6; k++) {
mtmp += (real_T)x[k + 1];
}
if (mtmp == 7.0) {
onsets->data[i] = TRUE;
}
}
b_emxInit_real_T(&r0, 1);
/* Remove m elements at the start and end */
eml_null_assignment(onsets);
mtmp = (real_T)(onsets->size[0] * onsets->size[1]) - 3.0;
i0 = onsets->size[0] * onsets->size[1];
nxin = r0->size[0];
r0->size[0] = (int32_T)((real_T)i0 - mtmp) + 1;
emxEnsureCapacity((emxArray__common *)r0, nxin, (int32_T)sizeof(real_T));
ixstart = (int32_T)((real_T)i0 - mtmp);
for (i0 = 0; i0 <= ixstart; i0++) {
r0->data[i0] = mtmp + (real_T)i0;
}
emxInit_real_T(&r1, 2);
i0 = r1->size[0] * r1->size[1];
r1->size[0] = 1;
emxEnsureCapacity((emxArray__common *)r1, i0, (int32_T)sizeof(real_T));
ixstart = r0->size[0];
i0 = r1->size[0] * r1->size[1];
r1->size[1] = ixstart;
emxEnsureCapacity((emxArray__common *)r1, i0, (int32_T)sizeof(real_T));
ixstart = r0->size[0];
for (i0 = 0; i0 < ixstart; i0++) {
r1->data[i0] = r0->data[i0];
}
emxFree_real_T(&r0);
b_eml_null_assignment(onsets, r1);
/* Perform second thresholding operation */
/* m = 1; % Multiplier so mean is calculated over a larger range before peak */
/* delta = 0.01; % Threshold above local mean */
padarray(flux, flux1);
for (i0 = 0; i0 < 2; i0++) {
varargin_1[i0] = flux1->size[i0];
}
emxInit_real_T(&mask2, 2);
i0 = mask2->size[0] * mask2->size[1];
mask2->size[0] = varargin_1[0];
emxEnsureCapacity((emxArray__common *)mask2, i0, (int32_T)sizeof(real_T));
i0 = mask2->size[0] * mask2->size[1];
mask2->size[1] = varargin_1[1];
emxEnsureCapacity((emxArray__common *)mask2, i0, (int32_T)sizeof(real_T));
ixstart = varargin_1[0] * varargin_1[1];
for (i0 = 0; i0 < ixstart; i0++) {
mask2->data[i0] = 0.0;
}
if ((0 == flux1->size[0]) || (0 == flux1->size[1])) {
ixstart = 0;
} else if (flux1->size[0] > flux1->size[1]) {
ixstart = flux1->size[0];
} else {
ixstart = flux1->size[1];
}
for (i = 3; i - 3 <= ixstart - 7; i++) {
/* flux = onsetDetection(denoisedSpec); */
mtmp = flux1->data[-3 + i];
for (k = 0; k < 6; k++) {
mtmp += flux1->data[(k + i) - 2];
}
if (flux1->data[i] >= mtmp / 7.0 + 0.01) {
mask2->data[i] = 1.0;
}
}
emxFree_real_T(&flux1);
emxInit_boolean_T(&b, 2);
/* Remove mw elements at the start and end */
nxin = mask2->size[0] * mask2->size[1];
i0 = b->size[0] * b->size[1];
b->size[0] = 1;
b->size[1] = nxin;
emxEnsureCapacity((emxArray__common *)b, i0, (int32_T)sizeof(boolean_T));
for (i0 = 0; i0 < nxin; i0++) {
b->data[i0] = FALSE;
}
for (k = 0; k < 2; k++) {
b->data[k] = TRUE;
}
ixstart = 0;
for (k = 1; k <= b->size[1]; k++) {
ixstart += b->data[k - 1];
}
ixstart = nxin - ixstart;
k0 = -1;
for (k = 1; k <= nxin; k++) {
if ((k > b->size[1]) || (!b->data[k - 1])) {
k0++;
mask2->data[k0] = mask2->data[k - 1];
}
}
emxInit_int32_T(&r2, 1);
emxInit_real_T(&b_mask2, 2);
b_emxInit_real_T(&c_mask2, 1);
if ((mask2->size[0] != 1) && (mask2->size[1] == 1)) {
if (1 > ixstart) {
ixstart = 0;
}
i0 = c_mask2->size[0];
c_mask2->size[0] = ixstart;
emxEnsureCapacity((emxArray__common *)c_mask2, i0, (int32_T)sizeof(real_T));
for (i0 = 0; i0 < ixstart; i0++) {
c_mask2->data[i0] = mask2->data[i0];
}
i0 = mask2->size[0] * mask2->size[1];
mask2->size[0] = ixstart;
mask2->size[1] = 1;
emxEnsureCapacity((emxArray__common *)mask2, i0, (int32_T)sizeof(real_T));
i0 = 0;
while (i0 <= 0) {
for (i0 = 0; i0 < ixstart; i0++) {
mask2->data[i0] = c_mask2->data[i0];
}
i0 = 1;
}
} else {
if (1 > ixstart) {
ixstart = 0;
}
i0 = r2->size[0];
r2->size[0] = ixstart;
emxEnsureCapacity((emxArray__common *)r2, i0, (int32_T)sizeof(int32_T));
for (i0 = 0; i0 < ixstart; i0++) {
r2->data[i0] = 1 + i0;
}
ixstart = r2->size[0];
i0 = b_mask2->size[0] * b_mask2->size[1];
b_mask2->size[0] = 1;
b_mask2->size[1] = ixstart;
emxEnsureCapacity((emxArray__common *)b_mask2, i0, (int32_T)sizeof(real_T));
for (i0 = 0; i0 < ixstart; i0++) {
nxin = 0;
while (nxin <= 0) {
b_mask2->data[b_mask2->size[0] * i0] = mask2->data[r2->data[i0] - 1];
nxin = 1;
}
}
i0 = mask2->size[0] * mask2->size[1];
mask2->size[0] = b_mask2->size[0];
mask2->size[1] = b_mask2->size[1];
emxEnsureCapacity((emxArray__common *)mask2, i0, (int32_T)sizeof(real_T));
ixstart = b_mask2->size[1];
for (i0 = 0; i0 < ixstart; i0++) {
k0 = b_mask2->size[0];
for (nxin = 0; nxin < k0; nxin++) {
mask2->data[nxin + mask2->size[0] * i0] = b_mask2->data[nxin +
b_mask2->size[0] * i0];
}
}
}
emxFree_real_T(&c_mask2);
emxFree_real_T(&b_mask2);
emxFree_int32_T(&r2);
b_emxInit_real_T(&r3, 1);
mtmp = (real_T)(mask2->size[0] * mask2->size[1]) - 3.0;
i0 = mask2->size[0] * mask2->size[1];
nxin = r3->size[0];
r3->size[0] = (int32_T)((real_T)i0 - mtmp) + 1;
emxEnsureCapacity((emxArray__common *)r3, nxin, (int32_T)sizeof(real_T));
ixstart = (int32_T)((real_T)i0 - mtmp);
for (i0 = 0; i0 <= ixstart; i0++) {
r3->data[i0] = mtmp + (real_T)i0;
}
i0 = r1->size[0] * r1->size[1];
r1->size[0] = 1;
emxEnsureCapacity((emxArray__common *)r1, i0, (int32_T)sizeof(real_T));
ixstart = r3->size[0];
i0 = r1->size[0] * r1->size[1];
r1->size[1] = ixstart;
emxEnsureCapacity((emxArray__common *)r1, i0, (int32_T)sizeof(real_T));
ixstart = r3->size[0];
for (i0 = 0; i0 < ixstart; i0++) {
r1->data[i0] = r3->data[i0];
}
emxFree_real_T(&r3);
c_eml_null_assignment(mask2, r1);
i0 = onsets->size[0] * onsets->size[1];
emxEnsureCapacity((emxArray__common *)onsets, i0, (int32_T)sizeof(boolean_T));
ixstart = onsets->size[0];
k0 = onsets->size[1];
ixstart *= k0;
emxFree_real_T(&r1);
for (i0 = 0; i0 < ixstart; i0++) {
onsets->data[i0] = (onsets->data[i0] && (mask2->data[i0] != 0.0));
}
emxFree_real_T(&mask2);
onsets->data[0] = FALSE;
if ((onsets->size[0] == 0) || (onsets->size[1] == 0) || ((onsets->size[0] == 1)
&& (onsets->size[1] == 1))) {
} else {
for (i0 = 0; i0 < 2; i0++) {
varargin_1[i0] = onsets->size[i0];
}
ixstart = varargin_1[0];
if (varargin_1[1] > varargin_1[0]) {
ixstart = varargin_1[1];
}
i0 = b->size[0] * b->size[1];
b->size[0] = 1;
b->size[1] = ixstart;
emxEnsureCapacity((emxArray__common *)b, i0, (int32_T)sizeof(boolean_T));
vstride = 1;
npages = onsets->size[0] * onsets->size[1];
for (dim = 0; dim < 2; dim++) {
i0 = onsets->size[dim];
npages = div_s32(npages, onsets->size[dim]);
if (onsets->size[dim] > 1) {
ixstart = (int32_T)fabs(-1.0 + (((real_T)dim + 1.0) - 1.0));
if (ixstart - div_s32(ixstart, onsets->size[dim]) * onsets->size[dim] >
0) {
ixstart = (onsets->size[dim] - 1) * vstride;
k0 = 0;
for (i = 1; i <= npages; i++) {
nxin = k0;
k0 += ixstart;
for (j = 1; j <= vstride; j++) {
nxin++;
k0++;
ia = nxin;
for (k = 1; k <= i0; k++) {
b->data[k - 1] = onsets->data[ia - 1];
ia += vstride;
}
ia = nxin - 1;
for (k = 2; k <= i0; k++) {
onsets->data[ia] = b->data[k - 1];
ia += vstride;
}
onsets->data[ia] = b->data[0];
}
}
}
}
vstride *= i0;
}
}
emxFree_boolean_T(&b);
/* Some post processing to remove sequences of onsets */
/* Changing to non vectorized versions for export */
if ((0 == onsets->size[0]) || (0 == onsets->size[1])) {
ixstart = 0;
} else if (onsets->size[0] > onsets->size[1]) {
ixstart = onsets->size[0];
} else {
ixstart = onsets->size[1];
}
for (i = 0; i <= ixstart - 3; i++) {
if ((onsets->data[i] == 1) && (onsets->data[i + 1] == 1)) {
if (onsets->data[i + 2] == 1) {
onsets->data[i + 2] = FALSE;
}
onsets->data[i + 1] = FALSE;
}
}
/* tripleInd = strfind(onsets',[1,1,1]); */
/* onsets(tripleInd+1) = 0; */
/* onsets(tripleInd+2) = 0; */
/* */
/* doubleInd = strfind(onsets',[1,1]); */
/* onsets(doubleInd+1) = 0; */
/* onsets(1) = 0; */
/* flux(1) = 0; */
/* onsets(end+1) = 0; */
/* flux(end+1) = 0; */
/* xmin = 1; */
/* xmax = length(flux); */
/* */
/* figure */
/* subplot(4,1,1) */
/* stem(mask1); */
/* axis([xmin xmax 0 1]); */
/* subplot(4,1,2) */
/* stem(mask2); */
/* axis([xmin xmax 0 1]); */
/* subplot(4,1,3) */
/* stem(mask1&mask2); */
/* axis([xmin xmax 0 1]); */
/* subplot(4,1,4); */
/* imagesc(denoisedSpec); */
/* axis([xmin xmax 0 512]); */
/* axis('xy'); */
/* colormap(hot); */
}
static void onsetFlux(const emxArray_real_T *S, emxArray_real_T *flux)
{
emxArray_real_T *b_S;
int32_T iyLead;
int32_T loop_ub;
int32_T ixLead;
int32_T iy;
emxArray_real_T *x;
int32_T d;
emxArray_real_T *b_y1;
uint32_T ySize[2];
int32_T ix;
real_T work;
real_T tmp2;
emxArray_real_T *r4;
emxArray_real_T *b_flux;
real_T y;
real_T r;
emxArray_real_T *c_flux;
emxArray_boolean_T *b_x;
emxArray_int32_T *r5;
b_emxInit_real_T(&b_S, 1);
/* ONSETFLUX Computes new spectral flux */
/* Detailed explanation goes here */
/* Just to be sure */
/* S = abs(S); */
iyLead = S->size[0];
loop_ub = S->size[0];
ixLead = S->size[1];
iy = b_S->size[0];
b_S->size[0] = loop_ub;
emxEnsureCapacity((emxArray__common *)b_S, iy, (int32_T)sizeof(real_T));
for (iy = 0; iy < loop_ub; iy++) {
b_S->data[iy] = S->data[iy + S->size[0] * (ixLead - 1)];
}
emxInit_real_T(&x, 2);
iy = x->size[0] * x->size[1];
x->size[0] = S->size[0];
x->size[1] = S->size[1] + 1;
emxEnsureCapacity((emxArray__common *)x, iy, (int32_T)sizeof(real_T));
loop_ub = S->size[1];
for (iy = 0; iy < loop_ub; iy++) {
d = S->size[0];
for (ixLead = 0; ixLead < d; ixLead++) {
x->data[ixLead + x->size[0] * iy] = S->data[ixLead + S->size[0] * iy];
}
}
iy = 0;
while (iy <= 0) {
for (iy = 0; iy < iyLead; iy++) {
x->data[iy + x->size[0] * S->size[1]] = b_S->data[iy];
}
iy = 1;
}
emxFree_real_T(&b_S);
emxInit_real_T(&b_y1, 2);
if (1 >= x->size[1]) {
for (iy = 0; iy < 2; iy++) {
ySize[iy] = (uint32_T)x->size[iy];
}
iy = b_y1->size[0] * b_y1->size[1];
b_y1->size[0] = (int32_T)ySize[0];
emxEnsureCapacity((emxArray__common *)b_y1, iy, (int32_T)sizeof(real_T));
iy = b_y1->size[0] * b_y1->size[1];
b_y1->size[1] = 0;
emxEnsureCapacity((emxArray__common *)b_y1, iy, (int32_T)sizeof(real_T));
} else {
for (iy = 0; iy < 2; iy++) {
ySize[iy] = (uint32_T)x->size[iy];
}
iy = b_y1->size[0] * b_y1->size[1];
b_y1->size[0] = (int32_T)ySize[0];
b_y1->size[1] = x->size[1] - 1;
emxEnsureCapacity((emxArray__common *)b_y1, iy, (int32_T)sizeof(real_T));
ix = 0;
iy = 1;
for (d = 1; d <= x->size[0]; d++) {
ixLead = ix + x->size[0];
iyLead = iy;
work = x->data[ix];
for (loop_ub = 2; loop_ub <= x->size[1]; loop_ub++) {
tmp2 = work;
work = x->data[ixLead];
tmp2 = x->data[ixLead] - tmp2;
ixLead += x->size[0];
b_y1->data[iyLead - 1] = tmp2;
iyLead += x->size[0];
}
ix++;
iy++;
}
}
emxFree_real_T(&x);
/* Half wave rectification */
for (iy = 0; iy < 2; iy++) {
ySize[iy] = (uint32_T)b_y1->size[iy];
}
emxInit_real_T(&r4, 2);
iy = r4->size[0] * r4->size[1];
r4->size[0] = (int32_T)ySize[0];
r4->size[1] = (int32_T)ySize[1];
emxEnsureCapacity((emxArray__common *)r4, iy, (int32_T)sizeof(real_T));
iy = b_y1->size[0] * b_y1->size[1];
for (loop_ub = 0; loop_ub < iy; loop_ub++) {
r4->data[(int32_T)(1.0 + (real_T)loop_ub) - 1] = fabs(b_y1->data[(int32_T)
(1.0 + (real_T)loop_ub) - 1]);
}
iy = b_y1->size[0] * b_y1->size[1];
emxEnsureCapacity((emxArray__common *)b_y1, iy, (int32_T)sizeof(real_T));
ixLead = b_y1->size[0];
d = b_y1->size[1];
iyLead = ixLead * d;
for (iy = 0; iy < iyLead; iy++) {
b_y1->data[iy] = (b_y1->data[iy] + r4->data[iy]) / 2.0;
}
emxFree_real_T(&r4);
/* Summed across all bins */
for (iy = 0; iy < 2; iy++) {
ySize[iy] = (uint32_T)b_y1->size[iy];
}
emxInit_real_T(&b_flux, 2);
iy = b_flux->size[0] * b_flux->size[1];
b_flux->size[0] = 1;
b_flux->size[1] = (int32_T)ySize[1];
emxEnsureCapacity((emxArray__common *)b_flux, iy, (int32_T)sizeof(real_T));
if ((b_y1->size[0] == 0) || (b_y1->size[1] == 0)) {
iy = b_flux->size[0] * b_flux->size[1];
b_flux->size[0] = 1;
emxEnsureCapacity((emxArray__common *)b_flux, iy, (int32_T)sizeof(real_T));
iy = b_flux->size[0] * b_flux->size[1];
b_flux->size[1] = (int32_T)ySize[1];
emxEnsureCapacity((emxArray__common *)b_flux, iy, (int32_T)sizeof(real_T));
iyLead = (int32_T)ySize[1];
for (iy = 0; iy < iyLead; iy++) {
b_flux->data[iy] = 0.0;
}
} else {
ix = -1;
iy = -1;
for (d = 1; d <= b_y1->size[1]; d++) {
ixLead = ix + 1;
ix++;
tmp2 = b_y1->data[ixLead];
for (loop_ub = 2; loop_ub <= b_y1->size[0]; loop_ub++) {
ix++;
tmp2 += b_y1->data[ix];
}
iy++;
b_flux->data[iy] = tmp2;
}
}
emxFree_real_T(&b_y1);
if (b_flux->size[1] == 0) {
tmp2 = 0.0;
} else {
tmp2 = b_flux->data[0];
for (loop_ub = 2; loop_ub <= b_flux->size[1]; loop_ub++) {
tmp2 += b_flux->data[loop_ub - 1];
}
}
tmp2 /= (real_T)b_flux->size[1];
if (b_flux->size[1] > 1) {
d = b_flux->size[1] - 1;
} else {
d = b_flux->size[1];
}
if (b_flux->size[1] == 0) {
y = rtNaN;
} else {
ix = 0;
work = b_flux->data[0];
for (loop_ub = 0; loop_ub <= b_flux->size[1] - 2; loop_ub++) {
ix++;
work += b_flux->data[ix];
}
work /= (real_T)b_flux->size[1];
ix = 0;
r = b_flux->data[0] - work;
y = r * r;
for (loop_ub = 0; loop_ub <= b_flux->size[1] - 2; loop_ub++) {
ix++;
r = b_flux->data[ix] - work;
y += r * r;
}
y /= (real_T)d;
}
emxInit_real_T(&c_flux, 2);
iy = c_flux->size[0] * c_flux->size[1];
c_flux->size[0] = 1;
c_flux->size[1] = b_flux->size[1];
emxEnsureCapacity((emxArray__common *)c_flux, iy, (int32_T)sizeof(real_T));
iyLead = b_flux->size[0] * b_flux->size[1];
for (iy = 0; iy < iyLead; iy++) {
c_flux->data[iy] = b_flux->data[iy] - tmp2;
}
rdivide(c_flux, y, b_flux);
iy = flux->size[0];
flux->size[0] = b_flux->size[1];
emxEnsureCapacity((emxArray__common *)flux, iy, (int32_T)sizeof(real_T));
iyLead = b_flux->size[1];
emxFree_real_T(&c_flux);
for (iy = 0; iy < iyLead; iy++) {
flux->data[iy] = b_flux->data[iy];
}
emxFree_real_T(&b_flux);
b_emxInit_boolean_T(&b_x, 1);
iy = b_x->size[0];
b_x->size[0] = flux->size[0];
emxEnsureCapacity((emxArray__common *)b_x, iy, (int32_T)sizeof(boolean_T));
iyLead = flux->size[0];
for (iy = 0; iy < iyLead; iy++) {
b_x->data[iy] = (flux->data[iy] < 0.0);
}
loop_ub = 0;
for (d = 1; d <= b_x->size[0]; d++) {
if (b_x->data[d - 1]) {
loop_ub++;
}
}
emxInit_int32_T(&r5, 1);
iy = r5->size[0];
r5->size[0] = loop_ub;
emxEnsureCapacity((emxArray__common *)r5, iy, (int32_T)sizeof(int32_T));
ixLead = 0;
for (d = 1; d <= b_x->size[0]; d++) {
if (b_x->data[d - 1]) {
r5->data[ixLead] = d;
ixLead++;
}
}
emxFree_boolean_T(&b_x);
iyLead = r5->size[0];
for (iy = 0; iy < iyLead; iy++) {
flux->data[r5->data[iy] - 1] = 0.0;
}
emxFree_int32_T(&r5);
}
static void padarray(const emxArray_real_T *varargin_1, emxArray_real_T *b)
{
real_T sizeB[2];
int32_T i3;
real_T b_sizeB;
int32_T c_sizeB[2];
int32_T outsize[2];
int32_T loop_ub;
for (i3 = 0; i3 < 2; i3++) {
sizeB[i3] = 0.0;
}
sizeB[0] = 3.0;
if ((varargin_1->size[0] == 0) || (varargin_1->size[1] == 0)) {
for (i3 = 0; i3 < 2; i3++) {
b_sizeB = (real_T)varargin_1->size[i3] + 2.0 * sizeB[i3];
sizeB[i3] = b_sizeB;
}
c_sizeB[0] = (int32_T)sizeB[0];
c_sizeB[1] = (int32_T)sizeB[1];
for (i3 = 0; i3 < 2; i3++) {
outsize[i3] = c_sizeB[i3];
}
i3 = b->size[0] * b->size[1];
b->size[0] = outsize[0];
emxEnsureCapacity((emxArray__common *)b, i3, (int32_T)sizeof(real_T));
i3 = b->size[0] * b->size[1];
b->size[1] = outsize[1];
emxEnsureCapacity((emxArray__common *)b, i3, (int32_T)sizeof(real_T));
loop_ub = outsize[0] * outsize[1];
for (i3 = 0; i3 < loop_ub; i3++) {
b->data[i3] = 0.0;
}
} else {
ConstantPad(varargin_1, sizeB, b);
}
}
static void rdivide(const emxArray_real_T *x, real_T y, emxArray_real_T *z)
{
int32_T i1;
int32_T loop_ub;
i1 = z->size[0] * z->size[1];
z->size[0] = 1;
z->size[1] = x->size[1];
emxEnsureCapacity((emxArray__common *)z, i1, (int32_T)sizeof(real_T));
loop_ub = x->size[0] * x->size[1];
for (i1 = 0; i1 < loop_ub; i1++) {
z->data[i1] = x->data[i1] / y;
}
}
static real_T rt_powd_snf(real_T u0, real_T u1)
{
real_T y;
real_T d0;
real_T d1;
if (rtIsNaN(u0) || rtIsNaN(u1)) {
y = rtNaN;
} else {
d0 = fabs(u0);
d1 = fabs(u1);
if (rtIsInf(u1)) {
if (d0 == 1.0) {
y = rtNaN;
} else if (d0 > 1.0) {
if (u1 > 0.0) {
y = rtInf;
} else {
y = 0.0;
}
} else if (u1 > 0.0) {
y = 0.0;
} else {
y = rtInf;
}
} else if (d1 == 0.0) {
y = 1.0;
} else if (d1 == 1.0) {
if (u1 > 0.0) {
y = u0;
} else {
y = 1.0 / u0;
}
} else if (u1 == 2.0) {
y = u0 * u0;
} else if ((u1 == 0.5) && (u0 >= 0.0)) {
y = sqrt(u0);
} else if ((u0 < 0.0) && (u1 > floor(u1))) {
y = rtNaN;
} else {
y = pow(u0, u1);
}
}
return y;
}
void computeOnsetFeatures(const emxArray_real_T *denoisedSpectrum, const
emxArray_real_T *T, real_T ioiFeatures[12], emxArray_boolean_T *onsets)
{
emxArray_real_T *unusedU0;
emxArray_boolean_T *b_onsets;
int32_T i;
int32_T loop_ub;
real_T ioiHist[17];
boolean_T bv0[12];
int32_T tmp_size[1];
int32_T tmp_data[12];
emxInit_real_T(&unusedU0, 2);
emxInit_boolean_T(&b_onsets, 2);
/* COMPUTEONSETFEATURES Computes onset features */
onsetDetection(denoisedSpectrum, onsets, unusedU0);
/* Collecting number of onsets per 2 second window */
/* onsetFeatures1 = onsetFeatures(onsets,T); */
/* Collect IOI histogram */
i = b_onsets->size[0] * b_onsets->size[1];
b_onsets->size[0] = onsets->size[0];
b_onsets->size[1] = onsets->size[1];
emxEnsureCapacity((emxArray__common *)b_onsets, i, (int32_T)sizeof(boolean_T));
loop_ub = onsets->size[0] * onsets->size[1];
emxFree_real_T(&unusedU0);
for (i = 0; i < loop_ub; i++) {
b_onsets->data[i] = onsets->data[i];
}
ioiHistogram(b_onsets, T, ioiHist);
histogramFeatures(ioiHist, ioiFeatures);
/* ioiFeatures = vertcat(ioiFeatures,onsetFeatures1); */
emxFree_boolean_T(&b_onsets);
for (i = 0; i < 12; i++) {
bv0[i] = rtIsNaN(ioiFeatures[i]);
}
b_eml_li_find(bv0, tmp_data, tmp_size);
loop_ub = tmp_size[0];
for (i = 0; i < loop_ub; i++) {
ioiFeatures[tmp_data[i] - 1] = 0.0;
}
for (i = 0; i < 12; i++) {
bv0[i] = rtIsInf(ioiFeatures[i]);
}
b_eml_li_find(bv0, tmp_data, tmp_size);
loop_ub = tmp_size[0];
for (i = 0; i < loop_ub; i++) {
ioiFeatures[tmp_data[i] - 1] = 0.0;
}
}
void computeOnsetFeatures_initialize(void)
{
rt_InitInfAndNaN(8U);
}
void computeOnsetFeatures_terminate(void)
{
/* (no terminate code required) */
}
emxArray_boolean_T *emxCreateND_boolean_T(int32_T numDimensions, int32_T *size)
{
emxArray_boolean_T *emx;
int32_T numEl;
int32_T i;
emxInit_boolean_T(&emx, numDimensions);
numEl = 1;
for (i = 0; i < numDimensions; i++) {
numEl *= size[i];
emx->size[i] = size[i];
}
emx->data = (boolean_T *)calloc((uint32_T)numEl, sizeof(boolean_T));
emx->numDimensions = numDimensions;
emx->allocatedSize = numEl;
return emx;
}
//emxArray_real_T *emxCreateND_real_T(int32_T numDimensions, int32_T *size)
//{
// emxArray_real_T *emx;
// int32_T numEl;
// int32_T i;
// emxInit_real_T(&emx, numDimensions);
// numEl = 1;
// for (i = 0; i < numDimensions; i++) {
// numEl *= size[i];
// emx->size[i] = size[i];
// }
//
// emx->data = (real_T *)calloc((uint32_T)numEl, sizeof(real_T));
// emx->numDimensions = numDimensions;
// emx->allocatedSize = numEl;
// return emx;
//}
emxArray_boolean_T *emxCreateWrapperND_boolean_T(boolean_T *data, int32_T
numDimensions, int32_T *size)
{
emxArray_boolean_T *emx;
int32_T numEl;
int32_T i;
emxInit_boolean_T(&emx, numDimensions);
numEl = 1;
for (i = 0; i < numDimensions; i++) {
numEl *= size[i];
emx->size[i] = size[i];
}
emx->data = data;
emx->numDimensions = numDimensions;
emx->allocatedSize = numEl;
emx->canFreeData = FALSE;
return emx;
}
//emxArray_real_T *emxCreateWrapperND_real_T(real_T *data, int32_T numDimensions,
// int32_T *size)
//{
// emxArray_real_T *emx;
// int32_T numEl;
// int32_T i;
// emxInit_real_T(&emx, numDimensions);
// numEl = 1;
// for (i = 0; i < numDimensions; i++) {
// numEl *= size[i];
// emx->size[i] = size[i];
// }
//
// emx->data = data;
// emx->numDimensions = numDimensions;
// emx->allocatedSize = numEl;
// emx->canFreeData = FALSE;
// return emx;
//}
emxArray_boolean_T *emxCreateWrapper_boolean_T(boolean_T *data, int32_T rows,
int32_T cols)
{
emxArray_boolean_T *emx;
int32_T size[2];
int32_T numEl;
int32_T i;
size[0] = rows;
size[1] = cols;
emxInit_boolean_T(&emx, 2);
numEl = 1;
for (i = 0; i < 2; i++) {
numEl *= size[i];
emx->size[i] = size[i];
}
emx->data = data;
emx->numDimensions = 2;
emx->allocatedSize = numEl;
emx->canFreeData = FALSE;
return emx;
}
//emxArray_real_T *emxCreateWrapper_real_T(real_T *data, int32_T rows, int32_T
// cols)
//{
// emxArray_real_T *emx;
// int32_T size[2];
// int32_T numEl;
// int32_T i;
// size[0] = rows;
// size[1] = cols;
// emxInit_real_T(&emx, 2);
// numEl = 1;
// for (i = 0; i < 2; i++) {
// numEl *= size[i];
// emx->size[i] = size[i];
// }
//
// emx->data = data;
// emx->numDimensions = 2;
// emx->allocatedSize = numEl;
// emx->canFreeData = FALSE;
// return emx;
//}
emxArray_boolean_T *emxCreate_boolean_T(int32_T rows, int32_T cols)
{
emxArray_boolean_T *emx;
int32_T size[2];
int32_T numEl;
int32_T i;
size[0] = rows;
size[1] = cols;
emxInit_boolean_T(&emx, 2);
numEl = 1;
for (i = 0; i < 2; i++) {
numEl *= size[i];
emx->size[i] = size[i];
}
emx->data = (boolean_T *)calloc((uint32_T)numEl, sizeof(boolean_T));
emx->numDimensions = 2;
emx->allocatedSize = numEl;
return emx;
}
//emxArray_real_T *emxCreate_real_T(int32_T rows, int32_T cols)
//{
// emxArray_real_T *emx;
// int32_T size[2];
// int32_T numEl;
// int32_T i;
// size[0] = rows;
// size[1] = cols;
// emxInit_real_T(&emx, 2);
// numEl = 1;
// for (i = 0; i < 2; i++) {
// numEl *= size[i];
// emx->size[i] = size[i];
// }
//
// emx->data = (real_T *)calloc((uint32_T)numEl, sizeof(real_T));
// emx->numDimensions = 2;
// emx->allocatedSize = numEl;
// return emx;
//}
void emxDestroyArray_boolean_T(emxArray_boolean_T *emxArray)
{
emxFree_boolean_T(&emxArray);
}
//void emxDestroyArray_real_T(emxArray_real_T *emxArray)
//{
// emxFree_real_T(&emxArray);
//}
/* End of code generation (computeOnsetFeatures.c) */
| aneeshvartakavi/birdID | birdID/Source/Export/computeOnsetFeatures_export.c | C | gpl-2.0 | 74,844 | [
30522,
1013,
1008,
1008,
24134,
5644,
3388,
7959,
4017,
14900,
1012,
1039,
1008,
1008,
3642,
4245,
2005,
3853,
1005,
24134,
5644,
3388,
7959,
4017,
14900,
1005,
1008,
1008,
1039,
3120,
3642,
7013,
2006,
1024,
10424,
2072,
19804,
2423,
2603,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/**
* Module Name: Subscriptions
* Module Description: Allow users to subscribe to your posts and comments to receive a notification via email.
* Sort Order: 3
* First Introduced: 1.2
* Requires Connection: Yes
*/
add_action( 'jetpack_modules_loaded', 'jetpack_subscriptions_load' );
Jetpack_Sync::sync_options( __FILE__,
'home',
'blogname',
'siteurl',
'page_on_front',
'permalink_structure',
'category_base',
'rss_use_excerpt',
'subscription_options',
'stb_enabled',
'stc_enabled',
'tag_base'
);
Jetpack_Sync::sync_posts( __FILE__ );
Jetpack_Sync::sync_comments( __FILE__ );
function jetpack_subscriptions_load() {
Jetpack::enable_module_configurable( __FILE__ );
Jetpack::module_configuration_load( __FILE__, 'jetpack_subscriptions_configuration_load' );
}
function jetpack_subscriptions_configuration_load() {
wp_safe_redirect( admin_url( 'options-discussion.php#jetpack-subscriptions-settings' ) );
exit;
}
class Jetpack_Subscriptions {
var $jetpack = false;
/**
* Singleton
* @static
*/
static function init() {
static $instance = false;
if ( !$instance ) {
$instance = new Jetpack_Subscriptions;
}
return $instance;
}
function Jetpack_Subscriptions() {
$this->jetpack = Jetpack::init();
add_filter( 'jetpack_xmlrpc_methods', array( $this, 'xmlrpc_methods' ) );
// @todo remove sync from subscriptions and move elsewhere...
// Add Configuration Page
add_action( 'admin_init', array( $this, 'configure' ) );
// Set up the subscription widget.
add_action( 'widgets_init', array( $this, 'widget_init' ) );
// Catch subscription widget submits
if ( isset( $_REQUEST['jetpack_subscriptions_widget'] ) )
add_action( 'template_redirect', array( $this, 'widget_submit' ) );
// Set up the comment subscription checkboxes
add_action( 'comment_form', array( $this, 'comment_subscribe_init' ) );
// Catch comment posts and check for subscriptions.
add_action( 'comment_post', array( $this, 'comment_subscribe_submit' ), 50, 2 );
}
function post_is_public( $the_post ) {
if ( !$post = get_post( $the_post ) ) {
return false;
}
return 'publish' === $post->post_status && strlen( (string) $post->post_password ) < 1;
}
/**
* Jetpack_Subscriptions::xmlrpc_methods()
*
* Register subscriptions methods with the Jetpack XML-RPC server.
* @param array $methods
*/
function xmlrpc_methods( $methods ) {
return array_merge( $methods, array(
'jetpack.subscriptions.subscribe' => array( $this, 'subscribe' ),
) );
}
/**
* Jetpack_Subscriptions::configure()
*
* Jetpack Subscriptions configuration screen.
*/
function configure() {
// Create the section
add_settings_section(
'jetpack_subscriptions',
__( 'Jetpack Subscriptions Settings', 'jetpack' ),
array( $this, 'subscriptions_settings_section' ),
'discussion'
);
/** Subscribe to Posts ***************************************************/
add_settings_field(
'jetpack_subscriptions_post_subscribe',
__( 'Follow Blog', 'jetpack' ),
array( $this, 'subscription_post_subscribe_setting' ),
'discussion',
'jetpack_subscriptions'
);
register_setting(
'discussion',
'stb_enabled'
);
/** Subscribe to Comments ******************************************************/
add_settings_field(
'jetpack_subscriptions_comment_subscribe',
__( 'Follow Comments', 'jetpack' ),
array( $this, 'subscription_comment_subscribe_setting' ),
'discussion',
'jetpack_subscriptions'
);
register_setting(
'discussion',
'stc_enabled'
);
/** Subscription Messaging Options ******************************************************/
register_setting(
'reading',
'subscription_options',
array( $this, 'validate_settings' )
);
add_settings_section(
'email_settings',
__( 'Follower Settings', 'jetpack' ),
array( $this, 'reading_section' ),
'reading'
);
add_settings_field(
'invitation',
__( 'Blog follow email text' , 'jetpack' ),
array( $this, 'setting_invitation' ),
'reading',
'email_settings'
);
add_settings_field(
'comment-follow',
__( 'Comment follow email text', 'jetpack' ),
array( $this, 'setting_comment_follow' ),
'reading',
'email_settings'
);
}
/**
* Discussions setting section blurb
*
*/
function subscriptions_settings_section() {
?>
<p id="jetpack-subscriptions-settings"><?php _e( 'Change whether your visitors can subscribe to your posts or comments or both.', 'jetpack' ); ?></p>
<?php
}
/**
* Post Subscriptions Toggle
*
*/
function subscription_post_subscribe_setting() {
$stb_enabled = get_option( 'stb_enabled', 1 ); ?>
<p class="description">
<input type="checkbox" name="stb_enabled" id="jetpack-post-subscribe" value="1" <?php checked( $stb_enabled, 1 ); ?> />
<?php _e( "Show a <em>'follow blog'</em> option in the comment form", 'jetpack' ); ?>
</p>
<?php
}
/**
* Comments Subscriptions Toggle
*
*/
function subscription_comment_subscribe_setting() {
$stc_enabled = get_option( 'stc_enabled', 1 ); ?>
<p class="description">
<input type="checkbox" name="stc_enabled" id="jetpack-comment-subscribe" value="1" <?php checked( $stc_enabled, 1 ); ?> />
<?php _e( "Show a <em>'follow comments'</em> option in the comment form", 'jetpack' ); ?>
</p>
<?php
}
function validate_settings( $settings ) {
global $allowedposttags;
$default = $this->get_default_settings();
// Blog Follow
$settings['invitation'] = trim( wp_kses( $settings['invitation'], $allowedposttags ) );
if ( empty( $settings['invitation'] ) )
$settings['invitation'] = $default['invitation'];
// Comments Follow (single post)
$settings['comment_follow'] = trim( wp_kses( $settings['comment_follow'], $allowedposttags ) );
if ( empty( $settings['comment_follow'] ) )
$settings['comment_follow'] = $default['comment_follow'];
return $settings;
}
public function reading_section() {
_e( 'These settings change emails sent from your blog to followers.' , 'jetpack');
}
public function setting_invitation() {
$settings = $this->get_settings();
echo '<textarea name="subscription_options[invitation]" class="large-text" cols="50" rows="5">'.$settings['invitation'].'</textarea>';
echo '<p><span class="description">'.__( 'Introduction text sent when someone follows your blog. (Site and confirmation details will be automatically added for you.)' , 'jetpack').'</span></p>';
}
public function setting_comment_follow() {
$settings = $this->get_settings();
echo '<textarea name="subscription_options[comment_follow]" class="large-text" cols="50" rows="5">'.$settings['comment_follow'].'</textarea>';
echo '<p><span class="description">'.__( 'Introduction text sent when someone follows a post on your blog. (Site and confirmation details will be automatically added for you.)' , 'jetpack').'</span></p>';
}
function get_default_settings() {
return array(
'invitation' => __( "Howdy.\n\nYou recently followed this blog's posts. This means you will receive each new post by email.\n\nTo activate, click confirm below. If you believe this is an error, ignore this message and we'll never bother you again." , 'jetpack'),
'comment_follow' => __( "Howdy.\n\nYou recently followed one of my posts. This means you will receive an email when new comments are posted.\n\nTo activate, click confirm below. If you believe this is an error, ignore this message and we'll never bother you again." , 'jetpack')
);
}
function get_settings() {
return wp_parse_args( (array) get_option( 'subscription_options', array() ), $this->get_default_settings() );
}
/**
* Jetpack_Subscriptions::subscribe()
*
* Send a synchronous XML-RPC subscribe to blog posts or subscribe to post comments request.
*
* @param string $email
* @param array $post_ids (optional) defaults to 0 for blog posts only: array of post IDs to subscribe to blog's posts
* @param bool $async (optional) Should the subscription be performed asynchronously? Defaults to true.
*
* @return true|Jetpack_Error true on success
* invalid_email : not a valid email address
* invalid_post_id : not a valid post ID
* unknown_post_id : unknown post
* not_subscribed : strange error. Jetpack servers at WordPress.com could subscribe the email.
* disabled : Site owner has disabled subscriptions.
* active : Already subscribed.
* unknown : strange error. Jetpack servers at WordPress.com returned something malformed.
* unknown_status : strange error. Jetpack servers at WordPress.com returned something I didn't understand.
*/
function subscribe( $email, $post_ids = 0, $async = true ) {
if ( !is_email( $email ) ) {
return new Jetpack_Error( 'invalid_email' );
}
if ( !$async ) {
Jetpack::load_xml_rpc_client();
$xml = new Jetpack_IXR_ClientMulticall();
}
foreach( (array) $post_ids as $post_id ) {
$post_id = (int) $post_id;
if ( $post_id < 0 ) {
return new Jetpack_Error( 'invalid_post_id' );
} else if ( $post_id && !$post = get_post( $post_id ) ) {
return new Jetpack_Error( 'unknown_post_id' );
}
if ( $async ) {
Jetpack::xmlrpc_async_call( 'jetpack.subscribeToSite', $email, $post_id );
} else {
$xml->addCall( 'jetpack.subscribeToSite', $email, $post_id );
}
}
if ( $async ) {
return;
}
// Call
$xml->query();
if ( $xml->isError() ) {
return $xml->get_jetpack_error();
}
$responses = $xml->getResponse();
$r = array();
foreach( (array) $responses as $response ) {
if ( isset( $response['faultCode'] ) || isset( $response['faultString'] ) ) {
$r[] = $xml->get_jetpack_error( $response['faultCode'], $response['faultString'] );
continue;
}
if ( !is_array( $response[0] ) || empty( $response[0]['status'] ) ) {
$r[] = new Jetpack_Error( 'unknown' );
continue;
}
switch ( $response[0]['status'] ) {
case 'error' :
$r[] = new Jetpack_Error( 'not_subscribed' );
continue 2;
case 'disabled' :
$r[] = new Jetpack_Error( 'disabled' );
continue 2;
case 'active' :
$r[] = new Jetpack_Error( 'active' );
continue 2;
case 'pending' :
$r[] = true;
continue 2;
default :
$r[] = new Jetpack_Error( 'unknown_status', (string) $response[0]['status'] );
continue 2;
}
}
return $r;
}
/**
* Jetpack_Subscriptions::widget_init()
*
* Initialize and register the Jetpack Subscriptions widget.
*/
function widget_init() {
register_widget( 'Jetpack_Subscriptions_Widget' );
}
/**
* Jetpack_Subscriptions::widget_submit()
*
* When a user submits their email via the blog subscription widget, check the details and call the subsribe() method.
*/
function widget_submit() {
// Check the nonce.
if ( is_user_logged_in() ) {
check_admin_referer( 'blogsub_subscribe_' . get_current_blog_id() );
}
if ( empty( $_REQUEST['email'] ) )
return false;
$redirect_fragment = false;
if ( isset( $_REQUEST['redirect_fragment'] ) ) {
$redirect_fragment = preg_replace( '/[^a-z0-9_-]/i', '', $_REQUEST['redirect_fragment'] );
}
if ( !$redirect_fragment ) {
$redirect_fragment = 'subscribe-blog';
}
$subscribe = Jetpack_Subscriptions::subscribe( $_REQUEST['email'], 0, false );
if ( is_wp_error( $subscribe ) ) {
$error = $subscribe->get_error_code();
} else {
$error = false;
foreach ( $subscribe as $response ) {
if ( is_wp_error( $response ) ) {
$error = $response->get_error_code();
break;
}
}
}
if ( $error ) {
switch( $error ) {
case 'invalid_email':
$redirect = add_query_arg( 'subscribe', 'invalid_email' );
break;
case 'active': case 'pending':
$redirect = add_query_arg( 'subscribe', 'already' );
break;
default:
$redirect = add_query_arg( 'subscribe', 'error' );
break;
}
} else {
$redirect = add_query_arg( 'subscribe', 'success' );
}
wp_safe_redirect( "$redirect#$redirect_fragment" );
exit;
}
/**
* Jetpack_Subscriptions::comment_subscribe_init()
*
* Set up and add the comment subscription checkbox to the comment form.
*/
function comment_subscribe_init() {
global $post;
$comments_checked = '';
$blog_checked = '';
// Check for a comment / blog submission and set a cookie to retain the setting and check the boxes.
if ( isset( $_COOKIE[ 'jetpack_comments_subscribe_' . COOKIEHASH ] ) && $_COOKIE[ 'jetpack_comments_subscribe_' . COOKIEHASH ] == $post->ID )
$comments_checked = ' checked="checked"';
if ( isset( $_COOKIE[ 'jetpack_blog_subscribe_' . COOKIEHASH ] ) )
$blog_checked = ' checked="checked"';
// Some themes call this function, don't show the checkbox again
remove_action( 'comment_form', 'subscription_comment_form' );
// Check if Mark Jaquith's Subscribe to Comments plugin is active - if so, suppress Jetpack checkbox
$str = '';
if ( FALSE === has_filter( 'comment_form', 'show_subscription_checkbox' ) && 1 == get_option( 'stc_enabled', 1 ) ) {
// Subscribe to comments checkbox
$str .= '<p class="comment-subscription-form"><input type="checkbox" name="subscribe_comments" id="subscribe_comments" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;"' . $comments_checked . ' /> ';
$str .= '<label class="subscribe-label" id="subscribe-label" for="subscribe_comments" style="display: inline;">' . __( 'Notify me of follow-up comments by email.', 'jetpack' ) . '</label>';
$str .= '</p>';
}
if ( 1 == get_option( 'stb_enabled', 1 ) ) {
// Subscribe to blog checkbox
$str .= '<p class="comment-subscription-form"><input type="checkbox" name="subscribe_blog" id="subscribe_blog" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;"' . $blog_checked . ' /> ';
$str .= '<label class="subscribe-label" id="subscribe-blog-label" for="subscribe_blog" style="display: inline;">' . __( 'Notify me of new posts by email.', 'jetpack' ) . '</label>';
$str .= '</p>';
}
echo apply_filters( 'jetpack_comment_subscription_form', $str );
}
/**
* Jetpack_Subscriptions::comment_subscribe_init()
*
* When a user checks the comment subscribe box and submits a comment, subscribe them to the comment thread.
*/
function comment_subscribe_submit( $comment_id, $approved ) {
if ( 'spam' === $approved ) {
return;
}
// Set cookies for this post/comment
$this->set_cookies( isset( $_REQUEST['subscribe_comments'] ), isset( $_REQUEST['subscribe_blog'] ) );
if ( !isset( $_REQUEST['subscribe_comments'] ) && !isset( $_REQUEST['subscribe_blog'] ) )
return;
$comment = get_comment( $comment_id );
$post_ids = array();
if ( isset( $_REQUEST['subscribe_comments'] ) )
$post_ids[] = $comment->comment_post_ID;
if ( isset( $_REQUEST['subscribe_blog'] ) )
$post_ids[] = 0;
Jetpack_Subscriptions::subscribe( $comment->comment_author_email, $post_ids );
}
/**
* Jetpack_Subscriptions::set_cookies()
*
* Set a cookie to save state on the comment and post subscription checkboxes.
*/
function set_cookies( $comments = true, $posts = true ) {
global $post;
$cookie_lifetime = apply_filters( 'comment_cookie_lifetime', 30000000 );
if ( $comments )
setcookie( 'jetpack_comments_subscribe_' . COOKIEHASH, $post->ID, time() + $cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN );
else
setcookie( 'jetpack_comments_subscribe_' . COOKIEHASH, '', time() - 3600, COOKIEPATH, COOKIE_DOMAIN );
if ( $posts )
setcookie( 'jetpack_blog_subscribe_' . COOKIEHASH, 1, time() + $cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN );
else
setcookie( 'jetpack_blog_subscribe_' . COOKIEHASH, '', time() - 3600, COOKIEPATH, COOKIE_DOMAIN );
}
}
Jetpack_Subscriptions::init();
/***
* Blog Subscription Widget
*/
class Jetpack_Subscriptions_Widget extends WP_Widget {
function Jetpack_Subscriptions_Widget() {
$widget_ops = array( 'classname' => 'jetpack_subscription_widget', 'description' => __( 'Add an email signup form to allow people to subscribe to your blog.', 'jetpack' ) );
$control_ops = array( 'width' => 300 );
$this->WP_Widget( 'blog_subscription', __( 'Blog Subscriptions (Jetpack)', 'jetpack' ), $widget_ops, $control_ops );
}
function widget( $args, $instance ) {
global $current_user;
$source = 'widget';
extract( $args );
$instance = wp_parse_args( (array) $instance, $this->defaults() );
$title = isset( $instance['title'] ) ? stripslashes( $instance['title'] ) : '';
$subscribe_text = isset( $instance['subscribe_text'] ) ? stripslashes( $instance['subscribe_text'] ) : '';
$subscribe_button = isset( $instance['subscribe_button'] ) ? stripslashes( $instance['subscribe_button'] ) : '';
$subscribe_logged_in = isset( $instance['subscribe_logged_in'] ) ? stripslashes( $instance['subscribe_logged_in'] ) : '';
$show_subscribers_total = (bool) $instance['show_subscribers_total'];
$subscribers_total = $this->fetch_subscriber_count();
if ( ! is_array( $subscribers_total ) )
$show_subscribers_total = FALSE;
echo $args['before_widget'];
echo $args['before_title'] . '<label for="subscribe-field">' . esc_attr( $instance['title'] ) . '</label>' . $args['after_title'] . "\n";
$referer = ( is_ssl() ? 'https' : 'http' ) . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
// Check for subscription confirmation.
if ( isset( $_GET['subscribe'] ) && 'success' == $_GET['subscribe'] ) : ?>
<div class="success">
<p><?php esc_html_e( 'An email was just sent to confirm your subscription. Please find the email now and click activate to start subscribing.', 'jetpack' ); ?></p>
</div>
<?php endif;
// Display any errors
if ( isset( $_GET['subscribe'] ) ) :
switch ( $_GET['subscribe'] ) :
case 'invalid_email' : ?>
<p class="error"><?php esc_html_e( 'The email you entered was invalid, please check and try again.', 'jetpack' ); ?></p>
<?php break;
case 'already' : ?>
<p class="error"><?php esc_html_e( 'You have already subscribed to this site, please check your inbox.', 'jetpack' ); ?></p>
<?php break;
case 'success' :
echo wpautop( $subscribe_text );
break;
default : ?>
<p class="error"><?php esc_html_e( 'There was an error when subscribing, please try again.', 'jetpack' ) ?></p>
<?php break;
endswitch;
endif;
// Display a subscribe form ?>
<form action="" method="post" accept-charset="utf-8" id="subscribe-blog-<?php echo !empty( $args['widget_id'] ) ? esc_attr( $args['widget_id'] ) : mt_rand( 450, 550 ); ?>">
<?php
if ( ! isset ( $_GET['subscribe'] ) ) {
?><p><?php echo $subscribe_text ?></p><?php
}
if ( $show_subscribers_total && 0 < $subscribers_total['value'] ) {
echo wpautop( sprintf( _n( 'Join %s other subscriber', 'Join %s other subscribers', $subscribers_total['value'], 'jetpack' ), number_format_i18n( $subscribers_total['value'] ) ) );
}
?>
<p><input type="text" name="email" style="width: 95%; padding: 1px 2px" value="<?php echo !empty( $current_user->user_email ) ? esc_attr( $current_user->user_email ) : esc_html__( 'Email Address', 'jetpack' ); ?>" id="subscribe-field" onclick="if ( this.value == '<?php esc_html_e( 'Email Address', 'jetpack' ) ?>' ) { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = '<?php esc_html_e( 'Email Address', 'jetpack' ) ?>'; }" /></p>
<p>
<input type="hidden" name="action" value="subscribe" />
<input type="hidden" name="source" value="<?php echo esc_url( $referer ); ?>" />
<input type="hidden" name="sub-type" value="<?php echo esc_attr( $source ); ?>" />
<input type="hidden" name="redirect_fragment" value="<?php echo esc_attr( $widget_id ); ?>" />
<?php
if ( is_user_logged_in() ) {
wp_nonce_field( 'blogsub_subscribe_'. get_current_blog_id(), '_wpnonce', false );
}
?>
<input type="submit" value="<?php echo esc_attr( $subscribe_button ); ?>" name="jetpack_subscriptions_widget" />
</p>
</form>
<?php
echo "\n" . $args['after_widget'];
}
function increment_subscriber_count( $current_subs_array = array() ) {
$current_subs_array['value']++;
set_transient( 'wpcom_subscribers_total', $current_subs_array, 3600 ); // try to cache the result for at least 1 hour
return $current_subs_array;
}
function fetch_subscriber_count() {
$subs_count = get_transient( 'wpcom_subscribers_total' );
if ( FALSE === $subs_count || 'failed' == $subs_count['status'] ) {
Jetpack:: load_xml_rpc_client();
$xml = new Jetpack_IXR_Client( array(
'user_id' => JETPACK_MASTER_USER,
) );
$xml->query( 'jetpack.fetchSubscriberCount' );
if ( $xml->isError() ) { // if we get an error from .com, set the status to failed so that we will try again next time the data is requested
$subs_count = array(
'status' => 'failed',
'code' => $xml->getErrorCode(),
'message' => $xml->getErrorMessage(),
'value' => ( isset( $subs_count['value'] ) ) ? $subs_count['value'] : 0,
);
} else {
$subs_count = array(
'status' => 'success',
'value' => $xml->getResponse(),
);
}
set_transient( 'wpcom_subscribers_total', $subs_count, 3600 ); // try to cache the result for at least 1 hour
}
return $subs_count;
}
function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['title'] = wp_kses( stripslashes( $new_instance['title'] ), array() );
$instance['subscribe_text'] = wp_filter_post_kses( stripslashes( $new_instance['subscribe_text'] ) );
$instance['subscribe_logged_in'] = wp_filter_post_kses( stripslashes( $new_instance['subscribe_logged_in'] ) );
$instance['subscribe_button'] = wp_kses( stripslashes( $new_instance['subscribe_button'] ), array() );
$instance['show_subscribers_total'] = isset( $new_instance['show_subscribers_total'] ) && $new_instance['show_subscribers_total'];
return $instance;
}
public static function defaults() {
return array(
'title' => esc_html__( 'Subscribe to Blog via Email', 'jetpack' ),
'subscribe_text' => esc_html__( 'Enter your email address to subscribe to this blog and receive notifications of new posts by email.', 'jetpack' ),
'subscribe_button' => esc_html__( 'Subscribe', 'jetpack' ),
'subscribe_logged_in' => esc_html__( 'Click to subscribe to this blog and receive notifications of new posts by email.', 'jetpack' ),
'show_subscribers_total' => true,
);
}
function form( $instance ) {
$instance = wp_parse_args( (array) $instance, $this->defaults() );
$title = stripslashes( $instance['title'] );
$subscribe_text = stripslashes( $instance['subscribe_text'] );
$subscribe_button = stripslashes( $instance['subscribe_button'] );
$show_subscribers_total = checked( $instance['show_subscribers_total'], true, false );
$subs_fetch = $this->fetch_subscriber_count();
if ( 'failed' == $subs_fetch['status'] ) {
printf( '<div class="error inline"><p>' . __( '%s: %s', 'jetpack' ) . '</p></div>', esc_html( $subs_fetch['code'] ), esc_html( $subs_fetch['message'] ) );
}
$subscribers_total = number_format_i18n( $subs_fetch['value'] );
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>">
<?php _e( 'Widget title:', 'jetpack' ); ?>
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'subscribe_text' ); ?>">
<?php _e( 'Optional text to display to your readers:', 'jetpack' ); ?>
<textarea style="width: 95%" id="<?php echo $this->get_field_id( 'subscribe_text' ); ?>" name="<?php echo $this->get_field_name( 'subscribe_text' ); ?>" type="text"><?php echo esc_html( $subscribe_text ); ?></textarea>
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'subscribe_button' ); ?>">
<?php _e( 'Subscribe Button:', 'jetpack' ); ?>
<input class="widefat" id="<?php echo $this->get_field_id( 'subscribe_button' ); ?>" name="<?php echo $this->get_field_name( 'subscribe_button' ); ?>" type="text" value="<?php echo esc_attr( $subscribe_button ); ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'show_subscribers_total' ); ?>">
<input type="checkbox" id="<?php echo $this->get_field_id( 'show_subscribers_total' ); ?>" name="<?php echo $this->get_field_name( 'show_subscribers_total' ); ?>" value="1"<?php echo $show_subscribers_total; ?> />
<?php echo esc_html( sprintf( _n( 'Show total number of subscribers? (%s subscriber)', 'Show total number of subscribers? (%s subscribers)', $subscribers_total, 'jetpack' ), $subscribers_total ) ); ?>
</label>
</p>
<?php
}
}
add_shortcode( 'jetpack_subscription_form', 'jetpack_do_subscription_form' );
function jetpack_do_subscription_form( $args ) {
$args['show_subscribers_total'] = empty( $args['show_subscribers_total'] ) ? false : true;
$args = shortcode_atts( Jetpack_Subscriptions_Widget::defaults(), $args );
ob_start();
the_widget( 'Jetpack_Subscriptions_Widget', $args );
$output = ob_get_clean();
return $output;
}
| jonbolden/iaw | wp-content/plugins/jetpack/modules/subscriptions.php | PHP | gpl-2.0 | 25,429 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
1008,
11336,
2171,
1024,
15002,
2015,
1008,
11336,
6412,
1024,
3499,
5198,
2000,
4942,
29234,
2000,
2115,
8466,
1998,
7928,
2000,
4374,
1037,
26828,
3081,
10373,
1012,
1008,
4066,
2344,
1024,
1017... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
[Equals(DoNotAddEqualityOperators = true)]
public class DoNotReplaceEqualityOperators
{
public DoNotReplaceEqualityOperators()
{
Id = Guid.NewGuid();
}
public Guid Id { get; }
public static bool operator ==(DoNotReplaceEqualityOperators left, DoNotReplaceEqualityOperators right) => true;
public static bool operator !=(DoNotReplaceEqualityOperators left, DoNotReplaceEqualityOperators right) => true;
} | Fody/Equals | AssemblyToProcess/DoNotReplaceEqualityOperators.cs | C# | mit | 455 | [
30522,
2478,
2291,
1025,
1031,
19635,
1006,
2123,
17287,
14141,
2063,
26426,
3012,
25918,
18926,
1027,
2995,
1007,
1033,
2270,
2465,
2123,
4140,
2890,
24759,
10732,
2063,
26426,
3012,
25918,
18926,
1063,
2270,
2123,
4140,
2890,
24759,
10732,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
define(
({
"sourceSetting": "搜索源设置",
"instruction": "添加并配置地理编码服务或要素图层为搜索源。这些指定的源决定了搜索框中的可搜索内容。",
"add": "添加搜索源",
"addGeocoder": "添加地理编码器",
"geocoder": "地理编码器",
"setLayerSource": "设置图层源",
"setGeocoderURL": "设置地理编码器 URL",
"searchableLayer": "要素图层",
"name": "名称",
"countryCode": "国家代码或区域代码",
"countryCodeEg": "例如 ",
"countryCodeHint": "将此值留空可搜索所有国家和地区",
"generalSetting": "常规设置",
"allPlaceholder": "用于搜索全部内容的占位符文本: ",
"showInfoWindowOnSelect": "显示已找到要素或位置的弹出窗口",
"searchInCurrentMapExtent": "仅在当前地图范围内搜索",
"zoomScale": "缩放比例",
"locatorUrl": "地理编码器 URL",
"locatorName": "地理编码器名称",
"locatorExample": "示例",
"locatorWarning": "不支持此版本的地理编码服务。该微件支持 10.0 及更高版本的地理编码服务。",
"locatorTips": "由于地理编码服务不支持建议功能,因此建议不可用。",
"layerSource": "图层源",
"searchLayerTips": "由于要素服务不支持分页功能,因此建议不可用。",
"placeholder": "占位符文本",
"searchFields": "搜索字段",
"displayField": "显示字段",
"exactMatch": "完全匹配",
"maxSuggestions": "最大建议数",
"maxResults": "最大结果数",
"setSearchFields": "设置搜索字段",
"set": "设置",
"fieldSearchable": "可搜索",
"fieldName": "名称",
"fieldAlias": "别名",
"ok": "确定",
"cancel": "取消",
"invalidUrlTip": "URL ${URL} 无效或不可访问。"
})
); | fiskinator/WAB2.0_JBox_MutualAid | widgets/Search/setting/nls/zh-cn/strings.js | JavaScript | apache-2.0 | 1,903 | [
30522,
9375,
1006,
1006,
1063,
1000,
4216,
18319,
3070,
1000,
1024,
1000,
100,
100,
100,
100,
100,
1000,
1010,
1000,
7899,
1000,
1024,
1000,
100,
1779,
100,
100,
100,
1802,
100,
100,
30524,
100,
1822,
100,
100,
100,
100,
1746,
1916,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/***************************************************************************
* Title : Find all possible paths from Source to Destination
* URL :
* Date : 2018-02-23
* Author: Atiq Rahman
* Comp : O(V+E)
* Status: Demo
* Notes : comments inline, input sample at '01_BFS_SP.cs'
* meta : tag-graph-dfs, tag-recursion, tag-company-gatecoin, tag-coding-test, tag-algo-core
***************************************************************************/
using System;
using System.Collections.Generic;
public class GraphDemo {
bool[] IsVisited;
// We are using Adjacency List instead of adjacency matrix to save space,
// for sparse graphs which is average case
List<int>[] AdjList;
// Nodes in the path being visited so far
int[] Path;
// Number of nodes so far encountered during the visit
int PathHopCount;
int PathCount = 0;
// Number of Vertices in the graph
int nV;
// Number of Edges
int nE;
int Source;
int Destination;
/*
* Takes input
* Build adjacency list graph representation
* Does input validation
*/
public void TakeInput() {
Console.WriteLine("Please enter number of vertices in the graph:");
nV = int.Parse(Console.ReadLine());
if (nV < 1)
throw new ArgumentException();
// As number of vertices is know at this point,
// Initialize (another way to do is to move this block to constructor)
Path = new int[nV];
PathHopCount = 0;
PathCount = 0;
AdjList = new List<int>[nV];
// by default C# compiler sets values in array to false
IsVisited = new bool[nV];
for (int i = 0; i < nV; i++)
AdjList[i] = new List<int>();
// Build adjacency list from given points
Console.WriteLine("Please enter number of edges:");
nE = int.Parse(Console.ReadLine());
if (nE < 0)
throw new ArgumentException();
Console.WriteLine("Please enter {0} of edges, one edge per line \"u v\" " +
"where 1 <= u <= {1} and 1 <= v <= {1}", nE, nV);
string[] tokens = null;
for (int i=0; i<nE; i++) {
tokens = Console.ReadLine().Split();
int u = int.Parse(tokens[0]) - 1;
int v = int.Parse(tokens[1]) - 1;
if (u < 0 || u >= nV || v < 0 || v >= nV)
throw new ArgumentException();
AdjList[u].Add(v);
AdjList[v].Add(u);
}
Console.WriteLine("Please provide source and destination:");
// reuse tokens variable, if it were reducing readability we would a new
// variable
tokens = Console.ReadLine().Split();
Source = int.Parse(tokens[0]) - 1;
Destination = int.Parse(tokens[1]) - 1;
if (Source < 0 || Source >= nV || Destination < 0 || Destination >= nV)
throw new ArgumentException();
}
/*
* Depth first search algorithm to find path from source to destination
* for the node of the graph passed as argument
* 1. We check if it's destination node (we avoid cycle)
* 2. If not then if the node is not visited in the same path then we visit
* its adjacent nodes
* To allow visiting same node in a different path we set visited to false
* for the node when we backtrack to a different path
*
* We store the visited paths for the node in Path variable and keep count
* of nodes in the path using variable PathHopCount. Path variable is
* reused for finding other paths.
*
* If we want to return list of all paths we can use a list of list to store
* all of them from this variable
*/
private void DFSVisit(int u) {
IsVisited[u] = true;
Path[PathHopCount++] = u;
if (u == Destination)
PrintPath();
else
foreach (int v in AdjList[u])
if (IsVisited[v] == false)
DFSVisit(v);
PathHopCount--;
IsVisited[u] = false;
}
/*
* Simply print nodes from array Path
* PathCount increments every time a new path is found.
*/
private void PrintPath() {
Console.WriteLine("Path {0}:", ++PathCount);
for (int i = 0; i < PathHopCount; i++)
if (i==0)
Console.Write(" {0}", Path[i] + 1);
else
Console.Write(" -> {0}", Path[i]+1);
Console.WriteLine();
}
public void ShowResult() {
Console.WriteLine("Listing paths from {0} to {1}.", Source+1, Destination+1);
DFSVisit(Source);
}
}
class Program {
static void Main(string[] args) {
GraphDemo graph_demo = new GraphDemo();
graph_demo.TakeInput();
graph_demo.ShowResult();
}
}
| atiq-cs/Problem-Solving | algo/Graph/02_DFS_AllPossiblePaths.cs | C# | gpl-3.0 | 4,531 | [
30522,
1013,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# encoding: utf-8
require File.expand_path("../../spec_helper", __FILE__)
describe Babosa::Transliterator::Bulgarian do
let(:t) { described_class.instance }
it_behaves_like "a cyrillic transliterator"
it "should transliterate Cyrillic characters" do
examples = {
"Ютия" => "Iutiia",
"Чушка" => "Chushka",
"кьорав" => "kiorav",
"Щъркел" => "Shturkel",
"полицай" => "policai"
}
examples.each {|k, v| expect(t.transliterate(k)).to eql(v)}
end
end
| humancopy/babosa | spec/transliterators/bulgarian_spec.rb | Ruby | mit | 533 | [
30522,
1001,
17181,
1024,
21183,
2546,
1011,
1022,
5478,
5371,
1012,
7818,
1035,
4130,
1006,
1000,
1012,
1012,
1013,
1012,
1012,
1013,
28699,
1035,
2393,
2121,
1000,
1010,
1035,
1035,
5371,
1035,
1035,
1007,
6235,
8670,
15853,
2050,
1024,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package org.ovirt.engine.core.itests;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertNotNull;
import org.ovirt.engine.core.common.queries.*;
import org.ovirt.engine.core.common.action.LoginUserParameters;
import org.ovirt.engine.core.common.action.VdcReturnValueBase;
import org.ovirt.engine.core.common.action.VdcActionType;
import org.ovirt.engine.core.common.action.RunVmParams;
import org.ovirt.engine.core.compat.Guid;
/**
* Created by IntelliJ IDEA. User: gmostizk Date: Aug 31, 2009 Time: 11:28:01 AM To change this template use File |
* Settings | File Templates.
*/
@Ignore
public class ClientHandshakeSequenceTest extends AbstractBackendTest {
@Test
public void getDomainList() {
VdcQueryReturnValue value = backend.RunPublicQuery(VdcQueryType.GetDomainList, new VdcQueryParametersBase());
assertTrue(value.getSucceeded());
assertNotNull(value.getReturnValue());
System.out.println(value.getReturnValue());
}
@Test
public void getVersion() {
VdcQueryReturnValue value = backend.RunPublicQuery(VdcQueryType.GetConfigurationValue,
new GetConfigurationValueParameters(ConfigurationValues.VdcVersion));
assertNotNull(value);
assertNotNull(value.getReturnValue());
System.out.println("Version: " + value.getReturnValue());
}
@Test
public void loginAdmin() {
VdcReturnValueBase value = backend.Login(new LoginUserParameters("admin", "admin", "domain", "os", "browser",
"client_type"));
assertTrue(value.getSucceeded());
assertNotNull(value.getActionReturnValue());
}
@Test
public void testRunVm() {
RunVmParams params = new RunVmParams(Guid.NewGuid());
VdcReturnValueBase result = backend.runInternalAction(VdcActionType.RunVm, params);
}
}
| jbeecham/ovirt-engine | backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/itests/ClientHandshakeSequenceTest.java | Java | apache-2.0 | 1,920 | [
30522,
7427,
8917,
1012,
1051,
21663,
2102,
1012,
3194,
1012,
4563,
1012,
2009,
4355,
2015,
1025,
12324,
8917,
1012,
12022,
4183,
1012,
8568,
1025,
12324,
8917,
1012,
12022,
4183,
1012,
3231,
1025,
12324,
10763,
8917,
1012,
12022,
4183,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "DirectoryNode.h"
namespace XFILE
{
namespace MUSICDATABASEDIRECTORY
{
class CDirectoryNodeAlbumRecentlyPlayedSong : public CDirectoryNode
{
public:
CDirectoryNodeAlbumRecentlyPlayedSong(const std::string& strName, CDirectoryNode* pParent);
protected:
bool GetContent(CFileItemList& items) const override;
};
}
}
| anthonyryan1/xbmc | xbmc/filesystem/MusicDatabaseDirectory/DirectoryNodeAlbumRecentlyPlayedSong.h | C | gpl-2.0 | 569 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2384,
1011,
2760,
2136,
12849,
4305,
1008,
2023,
5371,
2003,
2112,
1997,
12849,
4305,
1011,
16770,
1024,
1013,
1013,
12849,
4305,
1012,
2694,
1008,
1008,
23772,
2595,
1011,
6105,
1011,
8909,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
CalEvents
=============
Android Application Sample.
It get all calendar events from content provider, output to log, and display part of event.
[Considerations when building]
There is a following in a library that is included with the distribution of ical4j-1.0.5 .
* backport-util-concurrent-3.1.jar
* commons-codec-1.8.jar
* commons-lang-2.6.jar
* commons-logging-1.1.3.jar
* groovy-all-2.1.1.jar <<--- !! Note here !!
* ical4j-1.0.5.jar
groovy-all-2.1.1.jar generates a warning in large quantities at build time in auther's development environment, Eclipse is terminated with an out of memory by it.
To avoid this problem, it is preferable to use groovy-2.2.2-indy.jar than groovy-all-2.1.1.jar.
However, instead of placing the library folder(PROJECT_DIR/libs/), by the use by setting the classpath as external library, would avoid the problems of another new.
From the above, I did not include in the git repository of this application groovy-all-2.1.1.jar of ical4j included.
If you want to build this application, it is necessary to get the groovy-2.2.2-indy.jar on your own, use it be incorporated into the project as an external JAR. (set .classpath)
-- get groovy --
http://groovy.codehaus.org/Download
----------------------------------------------------------------------
AndroidAvÌTvÅ·B
RegvoC_©çJ_[ÌCxgðSÄæ¾µÄAeCxgðê²µÄLogÖÌoÍÆæÊ\¦ðs¢Ü·B
yrhÌÓ_z
ical4j-1.0.5Ìzz¨É¯«³êÄ¢éCu(jart@C)ÉͺLª èÜ·B
Ebackport-util-concurrent-3.1.jar
Ecommons-codec-1.8.jar
Ecommons-lang-2.6.jar
Ecommons-logging-1.1.3.jar
Egroovy-all-2.1.1.jar <-- ±±ÉÓ
Eical4j-1.0.5.jar
±êç̤¿AìÒÌJ«(Eclipse with ADT)ÅÍical4j¯«Ìgroovy-allðg¤ÆAPKrhɯ½½ÜµwarningªoÄrh®¹OÉEclipseªs«Å¿½èÆ¢±ÆÉÈÁ½B
FX²×ÄAuindyðLøÉµÄégroovy¾Á½çǤ¾ë¤HvÆl¦½B
»±Ågroovy-2.2.2-indy.jarðgÁ½B
·éÆÜ¸Aproject¼ºÌlibsÉúèñ¾êÍgroovy-allÌÆ¯lÌwarningª¯½½ÜµoÄÅIIÉG[ÅrhūȩÁ½B
µ©µ±êðOjarƵÄprojectÉaddµ½êAâèªðÁµÄapkÌrhª®¹µ½B
Èã̱ƩçAgroovyÉÖµÄÍ ical4j¯«Ìjart@Cð{AvÌgit|Wgf[^ÉÍÜßÈ¢æ¤Éµ½B
{|Wg©çsourceðæ¾µÄrh·éêÍAÊrgroovy-2.2.2-indy.jarðüèµÄOjarƵÄprojectÉæèñÅ(.classpathÉkind="lib"ÅwèµÄ)gÁľ³¢B
-- groovyÌzz³ --
http://groovy.codehaus.org/Download
----------------------------------------------------------------------
ìÒÌJ/eXg« (auther's development and test environment)
OS : Windows7 / Mac OS X Mavericks
IDE: Eclipse with ADT (Eclipse 4.2 / ADT v22.3.0)
Android deviceis:
HTCJ ISW13HT [Android 4.0.2]
IS03 [Android 2.2.1]
| Kimita/CalEvents | README.md | Markdown | apache-2.0 | 2,965 | [
30522,
21854,
15338,
2015,
1027,
1027,
1027,
1027,
1027,
1027,
1027,
1027,
1027,
1027,
1027,
1027,
1027,
11924,
4646,
7099,
1012,
2009,
2131,
2035,
8094,
2824,
2013,
4180,
10802,
1010,
6434,
2000,
8833,
1010,
1998,
4653,
2112,
1997,
2724,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
namespace Sebastienheyd\Boilerplate\View\Composers;
use Illuminate\Support\Facades\App;
use Illuminate\View\View;
class DatatablesComposer
{
/**
* Called when view load/datatables.blade.php is called.
* This is defined in BoilerPlateServiceProvider.
*
* @param View $view
*/
public function compose(View $view)
{
$languages = collect(config('boilerplate.locale.languages'))->map(function ($element) {
return $element['datatable'];
})->toArray();
$view->with('locale', $languages[App::getLocale()] ?? 'English');
$plugins = [
'select',
'autoFill',
'buttons',
'colReorder',
'fixedHeader',
'keyTable',
'responsive',
'rowGroup',
'rowReorder',
'scroller',
'searchBuilder',
'searchPanes',
];
$view->with('plugins', $plugins);
}
}
| sebastienheyd/boilerplate | src/View/Composers/DatatablesComposer.php | PHP | mit | 983 | [
30522,
1026,
1029,
25718,
3415,
15327,
28328,
14844,
2094,
1032,
15635,
15725,
1032,
3193,
1032,
9929,
1025,
2224,
5665,
12717,
12556,
1032,
2490,
1032,
28708,
1032,
10439,
1025,
2224,
5665,
12717,
12556,
1032,
3193,
1032,
3193,
1025,
2465,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/paint/skottie_wrapper.h"
namespace cc {
void SkottieWrapper::Seek(float t) {
Seek(t, FrameDataCallback());
}
void SkottieWrapper::Draw(SkCanvas* canvas, float t, const SkRect& rect) {
Draw(canvas, t, rect, FrameDataCallback());
}
} // namespace cc
| ric2b/Vivaldi-browser | chromium/cc/paint/skottie_wrapper.cc | C++ | bsd-3-clause | 436 | [
30522,
1013,
1013,
9385,
25682,
1996,
10381,
21716,
5007,
6048,
1012,
2035,
2916,
9235,
1012,
1013,
1013,
2224,
1997,
2023,
3120,
3642,
2003,
9950,
2011,
1037,
18667,
2094,
1011,
2806,
6105,
2008,
2064,
2022,
1013,
1013,
2179,
1999,
1996,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Copyright (c) 2013 eBay Software Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import json
import os
import stat
import subprocess
import tempfile
from oslo_log import log as logging
from oslo_utils import netutils
import pexpect
import six
from trove.common import cfg
from trove.common.db import models
from trove.common import exception
from trove.common.i18n import _
from trove.common import instance as rd_instance
from trove.common import utils as utils
from trove.guestagent.common import operating_system
from trove.guestagent.datastore.experimental.couchbase import system
from trove.guestagent.datastore import service
from trove.guestagent import pkg
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
packager = pkg.Package()
class CouchbaseApp(object):
"""
Handles installation and configuration of couchbase
on a trove instance.
"""
def __init__(self, status, state_change_wait_time=None):
"""
Sets default status and state_change_wait_time
"""
if state_change_wait_time:
self.state_change_wait_time = state_change_wait_time
else:
self.state_change_wait_time = CONF.state_change_wait_time
self.status = status
def install_if_needed(self, packages):
"""
Install couchbase if needed, do nothing if it is already installed.
"""
LOG.info(_('Preparing Guest as Couchbase Server.'))
if not packager.pkg_is_installed(packages):
LOG.debug('Installing Couchbase.')
self._install_couchbase(packages)
def initial_setup(self):
self.ip_address = netutils.get_my_ipv4()
mount_point = CONF.couchbase.mount_point
try:
LOG.info(_('Couchbase Server change data dir path.'))
operating_system.chown(mount_point, 'couchbase', 'couchbase',
as_root=True)
pwd = CouchbaseRootAccess.get_password()
utils.execute_with_timeout(
(system.cmd_node_init
% {'data_path': mount_point,
'IP': self.ip_address,
'PWD': pwd}), shell=True)
operating_system.remove(system.INSTANCE_DATA_DIR, force=True,
as_root=True)
LOG.debug('Couchbase Server initialize cluster.')
utils.execute_with_timeout(
(system.cmd_cluster_init
% {'IP': self.ip_address, 'PWD': pwd}),
shell=True)
utils.execute_with_timeout(system.cmd_set_swappiness, shell=True)
utils.execute_with_timeout(system.cmd_update_sysctl_conf,
shell=True)
LOG.info(_('Couchbase Server initial setup finished.'))
except exception.ProcessExecutionError:
LOG.exception(_('Error performing initial Couchbase setup.'))
raise RuntimeError(_("Couchbase Server initial setup failed"))
def _install_couchbase(self, packages):
"""
Install the Couchbase Server.
"""
LOG.debug('Installing Couchbase Server. Creating %s' %
system.COUCHBASE_CONF_DIR)
operating_system.create_directory(system.COUCHBASE_CONF_DIR,
as_root=True)
pkg_opts = {}
packager.pkg_install(packages, pkg_opts, system.TIME_OUT)
self.start_db()
LOG.debug('Finished installing Couchbase Server.')
def stop_db(self, update_db=False, do_not_start_on_reboot=False):
self.status.stop_db_service(
system.SERVICE_CANDIDATES, self.state_change_wait_time,
disable_on_boot=do_not_start_on_reboot, update_db=update_db)
def restart(self):
self.status.restart_db_service(
system.SERVICE_CANDIDATES, self.state_change_wait_time)
def start_db(self, update_db=False):
self.status.start_db_service(
system.SERVICE_CANDIDATES, self.state_change_wait_time,
enable_on_boot=True, update_db=update_db)
def enable_root(self, root_password=None):
return CouchbaseRootAccess.enable_root(root_password)
def start_db_with_conf_changes(self, config_contents):
LOG.info(_("Starting Couchbase with configuration changes.\n"
"Configuration contents:\n %s.") % config_contents)
if self.status.is_running:
LOG.error(_("Cannot start Couchbase with configuration changes. "
"Couchbase state == %s.") % self.status)
raise RuntimeError(_("Couchbase is not stopped."))
self._write_config(config_contents)
self.start_db(True)
def reset_configuration(self, configuration):
config_contents = configuration['config_contents']
LOG.debug("Resetting configuration.")
self._write_config(config_contents)
def _write_config(self, config_contents):
"""
Update contents of Couchbase configuration file
"""
return
class CouchbaseAppStatus(service.BaseDbStatus):
"""
Handles all of the status updating for the couchbase guest agent.
"""
def _get_actual_db_status(self):
self.ip_address = netutils.get_my_ipv4()
pwd = None
try:
pwd = CouchbaseRootAccess.get_password()
return self._get_status_from_couchbase(pwd)
except exception.ProcessExecutionError:
# log the exception, but continue with native config approach
LOG.exception(_("Error getting the Couchbase status."))
try:
out, err = utils.execute_with_timeout(
system.cmd_get_password_from_config, shell=True)
except exception.ProcessExecutionError:
LOG.exception(_("Error getting the root password from the "
"native Couchbase config file."))
return rd_instance.ServiceStatuses.SHUTDOWN
config_pwd = out.strip() if out is not None else None
if not config_pwd or config_pwd == pwd:
LOG.debug("The root password from the native Couchbase config "
"file is either empty or already matches the "
"stored value.")
return rd_instance.ServiceStatuses.SHUTDOWN
try:
status = self._get_status_from_couchbase(config_pwd)
except exception.ProcessExecutionError:
LOG.exception(_("Error getting Couchbase status using the "
"password parsed from the native Couchbase "
"config file."))
return rd_instance.ServiceStatuses.SHUTDOWN
# if the parsed root password worked, update the stored value to
# avoid having to consult/parse the couchbase config file again.
LOG.debug("Updating the stored value for the Couchbase "
"root password.")
CouchbaseRootAccess().write_password_to_file(config_pwd)
return status
def _get_status_from_couchbase(self, pwd):
out, err = utils.execute_with_timeout(
(system.cmd_couchbase_status %
{'IP': self.ip_address, 'PWD': pwd}),
shell=True)
server_stats = json.loads(out)
if not err and server_stats["clusterMembership"] == "active":
return rd_instance.ServiceStatuses.RUNNING
else:
return rd_instance.ServiceStatuses.SHUTDOWN
def cleanup_stalled_db_services(self):
utils.execute_with_timeout(system.cmd_kill)
class CouchbaseRootAccess(object):
@classmethod
def enable_root(cls, root_password=None):
user = models.DatastoreUser.root(password=root_password)
if root_password:
CouchbaseRootAccess().write_password_to_file(root_password)
else:
CouchbaseRootAccess().set_password(user.password)
return user.serialize()
def set_password(self, root_password):
self.ip_address = netutils.get_my_ipv4()
child = pexpect.spawn(system.cmd_reset_pwd % {'IP': self.ip_address})
try:
child.expect('.*password.*')
child.sendline(root_password)
child.expect('.*(yes/no).*')
child.sendline('yes')
child.expect('.*successfully.*')
except pexpect.TIMEOUT:
child.delayafterclose = 1
child.delayafterterminate = 1
try:
child.close(force=True)
except pexpect.ExceptionPexpect:
# Close fails to terminate a sudo process on some OSes.
subprocess.call(['sudo', 'kill', str(child.pid)])
self.write_password_to_file(root_password)
def write_password_to_file(self, root_password):
operating_system.create_directory(system.COUCHBASE_CONF_DIR,
as_root=True)
try:
tempfd, tempname = tempfile.mkstemp()
os.fchmod(tempfd, stat.S_IRUSR | stat.S_IWUSR)
if isinstance(root_password, six.text_type):
root_password = root_password.encode('utf-8')
os.write(tempfd, root_password)
os.fchmod(tempfd, stat.S_IRUSR)
os.close(tempfd)
except OSError as err:
message = _("An error occurred in saving password "
"(%(errno)s). %(strerror)s.") % {
"errno": err.errno,
"strerror": err.strerror}
LOG.exception(message)
raise RuntimeError(message)
operating_system.move(tempname, system.pwd_file, as_root=True)
@staticmethod
def get_password():
pwd = "password"
if os.path.exists(system.pwd_file):
with open(system.pwd_file) as file:
pwd = file.readline().strip()
return pwd
| hplustree/trove | trove/guestagent/datastore/experimental/couchbase/service.py | Python | apache-2.0 | 10,461 | [
30522,
1001,
9385,
1006,
1039,
1007,
2286,
1041,
15907,
4007,
3192,
1001,
2035,
2916,
9235,
1012,
1001,
1001,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
2017,
2089,
1001,
2025,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Phlebiella albida (Hauerslev) Tellería, Melo & M. Dueñas, 1997 SPECIES
#### Status
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Mycotaxon 65: 367 (1997)
#### Original name
Xenasmatella albida Hauerslev, 1987
### Remarks
null | mdoering/backbone | life/Fungi/Basidiomycota/Agaricomycetes/Polyporales/Xenasmataceae/Phlebiella/Phlebiella albida/README.md | Markdown | apache-2.0 | 273 | [
30522,
1001,
6887,
2571,
11283,
4571,
2632,
17062,
2050,
1006,
5292,
13094,
25016,
2615,
1007,
21322,
2401,
1010,
11463,
2080,
1004,
1049,
1012,
2349,
11649,
1010,
2722,
2427,
1001,
1001,
1001,
1001,
3570,
3970,
1001,
1001,
1001,
1001,
2429... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
class AddAuthTokenToInvoices < ActiveRecord::Migration
def self.up
add_column :invoices, :authentication_token, :string, :null => false
add_index :invoices, :authentication_token, :unique => true
end
def self.down
remove_column :invoices, :authentication_token
end
end
| nurulshuvo/bitcoin-central | db/migrate/20110521122924_add_auth_token_to_invoices.rb | Ruby | agpl-3.0 | 290 | [
30522,
2465,
5587,
4887,
2705,
18715,
4765,
28765,
6767,
23522,
1026,
3161,
2890,
27108,
2094,
1024,
1024,
9230,
13366,
2969,
1012,
2039,
5587,
1035,
5930,
1024,
1999,
6767,
23522,
1010,
1024,
27280,
1035,
19204,
1010,
1024,
5164,
1010,
102... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
'use strict';
/**
* Confirm new player name
*/
module.exports = (srcPath) => {
const EventUtil = require(srcPath + 'EventUtil');
return {
event: state => (socket, args) => {
const say = EventUtil.genSay(socket);
const write = EventUtil.genWrite(socket);
write(`<bold>${args.name} doesn't exist, would you like to create it?</bold> <cyan>[y/n]</cyan> `);
socket.once('data', confirmation => {
say('');
confirmation = confirmation.toString().trim().toLowerCase();
if (!/[yn]/.test(confirmation)) {
return socket.emit('player-name-check', socket, args);
}
if (confirmation === 'n') {
say(`Let's try again...`);
return socket.emit('create-player', socket, args);
}
return socket.emit('finish-player', socket, args);
});
}
};
};
| seanohue/ranviermud | bundles/ranvier-input-events/input-events/player-name-check.js | JavaScript | mit | 862 | [
30522,
1005,
2224,
9384,
1005,
1025,
1013,
1008,
1008,
1008,
12210,
2047,
2447,
2171,
1008,
1013,
11336,
1012,
14338,
1027,
1006,
5034,
21906,
8988,
1007,
1027,
1028,
1063,
9530,
3367,
2724,
21823,
2140,
1027,
5478,
1006,
5034,
21906,
8988,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<div class="copy">
All Rights Reserved <span class='uc'>[uC]</span> 2017
</div> | ubikCode/ubikCode | _includes/copy.html | HTML | mit | 82 | [
30522,
1026,
4487,
2615,
2465,
1027,
1000,
6100,
1000,
1028,
2035,
2916,
9235,
1026,
8487,
2465,
1027,
1005,
15384,
1005,
1028,
1031,
15384,
1033,
1026,
1013,
8487,
1028,
2418,
1026,
1013,
4487,
2615,
1028,
102,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.drools.workbench.models.datamodel.rule;
public class ExpressionUnboundFact extends ExpressionPart {
private String factType;
public ExpressionUnboundFact() {
}
public ExpressionUnboundFact( String factType ) {
super( factType,
factType,
factType );
this.factType = factType;
}
public String getFactType() {
return factType;
}
@Override
public void accept( ExpressionVisitor visitor ) {
visitor.visit( this );
}
@Override
public boolean equals( Object o ) {
if ( this == o ) {
return true;
}
if ( o == null || getClass() != o.getClass() ) {
return false;
}
if ( !super.equals( o ) ) {
return false;
}
ExpressionUnboundFact that = (ExpressionUnboundFact) o;
if ( factType != null ? !factType.equals( that.factType ) : that.factType != null ) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = super.hashCode();
result = ~~result;
result = 31 * result + ( factType != null ? factType.hashCode() : 0 );
result = ~~result;
return result;
}
}
| rokn/Count_Words_2015 | testing/drools-master/drools-workbench-models/drools-workbench-models-datamodel-api/src/main/java/org/drools/workbench/models/datamodel/rule/ExpressionUnboundFact.java | Java | mit | 1,906 | [
30522,
1013,
1008,
1008,
9385,
2262,
2417,
6045,
1010,
4297,
1012,
1998,
1013,
2030,
2049,
18460,
1012,
1008,
1008,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1008,
2017,
2089,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#############
#Quest Name: Bard Mail Quest
#Author: RealityIncarnate
#NPCs Involved: Tralyn Marsinger, Eve Marsinger, Lislia Goldtune, Felisity Starbright, Jakum Webdancer, Ton Twostring, Idia, Sivina Lutewhisper, Ticar Lorestring, Marton Stringsinger, Drizda Tunesinger, Travis Two Tone, Silna Songsmith, Siltria Marwind, Tacar Tissleplay, Kilam Oresinger, Lyra Lyrestringer
#Items Involved: Bardic letters: 18150-18167
#################
sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("Hail, $name - Are you [interested] in helping the League of Antonican Bards by delivering some [mail]?");
}
if($text=~/what mail/i){
quest::say("The League of Antonican Bards has a courier system made up of travelers and adventurers. We pay good gold to anyone who will take messages from bards such as myself to one of our more central offices. Are you [interested]?");
}
if($text=~/i am interested/i){
quest::say("I have messages that need to go to - well, right now I have one that needs to go to Qeynos. Will you [deliver] mail to [Qeynos] for me?");
}
if($text=~/deliver to qeynos/i){
quest::say("Take this letter to Tralyn Marsinger in Qeynos. You can find him at the bard guild hall. I am sure he will compensate you for your troubles.");
quest::summonitem("18151");}
}
#END of FILE Zone:erudnext
| Surumon/AXC-Update | quests/erudnext/Ticar_Lorestring.pl | Perl | gpl-2.0 | 1,300 | [
30522,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
1001,
8795,
2171,
1024,
22759,
5653,
8795,
1001,
3166,
1024,
4507,
2378,
10010,
12556,
1001,
27937,
6169,
2920,
1024,
19817,
20766,
2078,
7733,
9912,
1010,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* This file is part of NucleusFramework for Bukkit, licensed under the MIT License (MIT).
*
* Copyright (c) JCThePants (www.jcwhatever.com)
*
* 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.
*/
package com.jcwhatever.nucleus.utils.observer.future;
import com.jcwhatever.nucleus.utils.PreCon;
import com.jcwhatever.nucleus.utils.observer.ISubscriber;
import com.jcwhatever.nucleus.utils.observer.SubscriberAgent;
import com.jcwhatever.nucleus.utils.observer.update.NamedUpdateAgents;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
/**
* Used for returning asynchronous results from a method.
*
* @see FutureResultSubscriber
* @see IFutureResult
*/
public class FutureResultAgent<R> extends SubscriberAgent {
private final FutureResult<R> _future;
private final NamedUpdateAgents _updateAgents = new NamedUpdateAgents();
private Result<R> _finalResult;
private boolean _hasFutureSubscribers;
/**
* Create a new agent and immediately create a success result.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> successResult() {
return new FutureResultAgent<T>().success();
}
/**
* Create a new agent and immediately create a success result.
*
* @param result The result.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> successResult(@Nullable T result) {
return new FutureResultAgent<T>().success(result);
}
/**
* Create a new agent and immediately create a success result.
*
* @param result The result.
* @param message The result message.
* @param args Optional message format arguments.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> successResult(@Nullable T result, CharSequence message, Object... args) {
return new FutureResultAgent<T>().success(result, message, args);
}
/**
* Create a new agent and immediately create a cancel result.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> cancelResult() {
return new FutureResultAgent<T>().cancel();
}
/**
* Create a new agent and immediately create a cancel result.
*
* @param result The result.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> cancelResult(@Nullable T result) {
return new FutureResultAgent<T>().cancel(result);
}
/**
* Create a new agent and immediately create a cancel result.
*
* @param result The result.
* @param message The result message.
* @param args Optional message format arguments.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> cancelResult(@Nullable T result, CharSequence message, Object... args) {
return new FutureResultAgent<T>().cancel(result, message, args);
}
/**
* Create a new agent and immediately create an error result.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> errorResult() {
return new FutureResultAgent<T>().error();
}
/**
* Create a new agent and immediately create an error result.
*
* @param result The result.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> errorResult(@Nullable T result) {
return new FutureResultAgent<T>().error(result);
}
/**
* Create a new agent and immediately create an error result.
*
* @param result The result.
* @param message The result message.
* @param args Optional message format arguments.
*
* @param <T> The result type.
*
* @return The future result.
*/
public static <T> IFutureResult<T> errorResult(@Nullable T result, CharSequence message, Object... args) {
return new FutureResultAgent<T>().error(result, message, args);
}
/**
* Constructor.
*/
public FutureResultAgent() {
_future = new FutureResult<>(this);
}
@Override
public boolean hasSubscribers() {
return _hasFutureSubscribers || super.hasSubscribers();
}
/**
* Send result to subscribers.
*
* @param result The result.
*/
public void sendResult(Result<R> result) {
PreCon.notNull(result);
_finalResult = result;
if (!hasSubscribers())
return;
if (result.isSuccess()) {
sendSuccess(result);
}
else if (result.isComplete()) {
if (result.isCancelled()) {
sendCancel(result);
}
else {
sendError(result);
}
}
else {
List<ISubscriber> list = new ArrayList<>(subscribers());
for (ISubscriber subscriber : list) {
if (subscriber instanceof FutureResultSubscriber) {
//noinspection unchecked
((FutureResultSubscriber<R>) subscriber).on(result);
}
}
_updateAgents.update("onResult", result);
}
}
/**
* Declare the result cancelled.
*
* <p>The same as invoking {@link #sendResult} with a generic
* cancel result.</p>
*
* <p>The result object and message are null.</p>
*
* @return The agents future.
*/
public FutureResult<R> cancel() {
return cancel(null, null);
}
/**
* Declare the result cancelled.
*
* <p>The same as invoking {@link #sendResult} with a generic
* cancel result.</p>
*
* <p>The result message is null.</p>
*
* @param result The result object.
*
* @return The agents future.
*/
public FutureResult<R> cancel(@Nullable R result) {
return cancel(result, null);
}
/**
* Declare the result cancelled.
*
* <p>The same as calling {@link #sendResult} with a generic
* cancel result.</p>
*
* @param result The result object.
* @param message The message to send with the result.
* @param args Optional message format arguments.
*
* @return The agents future.
*/
public FutureResult<R> cancel(@Nullable R result, @Nullable CharSequence message, Object... args) {
sendResult(new ResultBuilder<R>()
.cancel()
.result(result)
.message(message, args)
.build());
return getFuture();
}
/**
* Declare an error in the result.
*
* <p>The same as invoking {@link #sendResult} with a generic
* error result.</p>
*
* <p>The result object and message are null.</p>
*
* @return The agents future.
*/
public FutureResult<R> error() {
return error(null, null);
}
/**
* Declare an error in the result.
*
* <p>The same as invoking {@link #sendResult} with a generic
* error result.</p>
*
* <p>The result message is null.</p>
*
* @param result The result object.
*
* @return The agents future.
*/
public FutureResult<R> error(@Nullable R result) {
return error(result, null);
}
/**
* Declare an error in the result.
*
* <p>The same as invoking {@link #sendResult} with a generic
* error result.</p>
*
* @param result The result object.
* @param message The message to send with the result.
* @param args Optional message format arguments.
*
* @return The agents future.
*/
public FutureResult<R> error(@Nullable R result, @Nullable CharSequence message, Object... args) {
sendResult(new ResultBuilder<R>()
.error()
.result(result)
.message(message, args)
.build());
return getFuture();
}
/**
* Declare the result a success.
*
* <p>The same as invoking {@link #sendResult} with a generic
* success result.</p>
*
* <p>The result object and message are null.</p>
*
* @return The agents future.
*/
public FutureResult<R> success() {
return success(null, null);
}
/**
* Declare the result a success.
*
* <p>The same as invoking {@link #sendResult} with a generic
* success result.</p>
*
* <p>The result message is null.</p>
*
* @param result The result object.
*
* @return The agents future.
*/
public FutureResult<R> success(@Nullable R result) {
return success(result, null);
}
/**
* Declare the result a success.
*
* <p>The same as invoking {@link #sendResult} with a generic
* success result.</p>
*
* @param result The result object.
* @param message The message to send with the result.
* @param args Optional message format arguments.
*
* @return The agents future.
*/
public FutureResult<R> success(@Nullable R result, @Nullable CharSequence message, Object... args) {
sendResult(new ResultBuilder<R>()
.success()
.result(result)
.message(message, args)
.build());
return getFuture();
}
/**
* Get a future that can be returned so that a method caller can
* attach {@link com.jcwhatever.nucleus.utils.observer.update.IUpdateSubscriber}'s.
*/
public FutureResult<R> getFuture() {
return _future;
}
protected void sendSuccess(Result<R> result) {
_updateAgents.update("onSuccess", result);
List<ISubscriber> list = new ArrayList<>(subscribers());
for (ISubscriber subscriber : list) {
if (subscriber instanceof FutureResultSubscriber) {
//noinspection unchecked
((FutureResultSubscriber<R>) subscriber).onSuccess(result);
//noinspection unchecked
((FutureResultSubscriber<R>) subscriber).on(result);
}
}
}
protected void sendError(Result<R> result) {
_updateAgents.update("onError", result);
List<ISubscriber> list = new ArrayList<>(subscribers());
for (ISubscriber subscriber : list) {
if (subscriber instanceof FutureResultSubscriber) {
//noinspection unchecked
((FutureResultSubscriber<R>) subscriber).onError(result);
//noinspection unchecked
((FutureResultSubscriber<R>) subscriber).on(result);
}
}
}
protected void sendCancel(Result<R> result) {
_updateAgents.update("onCancel", result);
List<ISubscriber> list = new ArrayList<>(subscribers());
for (ISubscriber subscriber : list) {
if (subscriber instanceof FutureResultSubscriber) {
//noinspection unchecked
((FutureResultSubscriber<R>) subscriber).onCancel(result);
//noinspection unchecked
((FutureResultSubscriber<R>) subscriber).on(result);
}
}
}
private static class FutureResult<R> implements IFutureResult<R> {
FutureResultAgent<R> parent;
private FutureResult(FutureResultAgent<R> parent) {
this.parent = parent;
}
@Override
public FutureResult<R> onResult(FutureResultSubscriber<R> subscriber) {
PreCon.notNull(subscriber);
if (parent._finalResult != null)
subscriber.on(parent._finalResult);
parent.addSubscriber(subscriber);
parent._hasFutureSubscribers = true;
return this;
}
@Override
public FutureResult<R> onSuccess(FutureResultSubscriber<R> subscriber) {
PreCon.notNull(subscriber);
addSubscriber("onSuccess", subscriber);
if (parent._finalResult != null &&
parent._finalResult.isSuccess()) {
subscriber.onSuccess(parent._finalResult);
subscriber.on(parent._finalResult);
}
return this;
}
@Override
public FutureResult<R> onCancel(FutureResultSubscriber<R> subscriber) {
PreCon.notNull(subscriber);
addSubscriber("onCancel", subscriber);
if (parent._finalResult != null &&
parent._finalResult.isCancelled()) {
subscriber.onCancel(parent._finalResult);
subscriber.on(parent._finalResult);
}
return this;
}
@Override
public FutureResult<R> onError(FutureResultSubscriber<R> subscriber) {
PreCon.notNull(subscriber);
addSubscriber("onError", subscriber);
if (parent._finalResult != null &&
!parent._finalResult.isSuccess() && !parent._finalResult.isCancelled()) {
subscriber.onError(parent._finalResult);
subscriber.on(parent._finalResult);
}
return this;
}
private void addSubscriber(String agentName,
FutureResultSubscriber<R> subscriber) {
parent._updateAgents.getAgent(agentName).addSubscriber(subscriber);
parent._hasFutureSubscribers = true;
}
}
}
| JCThePants/NucleusFramework | src/com/jcwhatever/nucleus/utils/observer/future/FutureResultAgent.java | Java | mit | 14,890 | [
30522,
1013,
1008,
1008,
2023,
5371,
2003,
2112,
1997,
13502,
15643,
6198,
2005,
20934,
24103,
2102,
1010,
7000,
2104,
1996,
10210,
6105,
1006,
10210,
1007,
1012,
1008,
1008,
9385,
1006,
1039,
1007,
29175,
10760,
27578,
1006,
7479,
1012,
29... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
html, body {
height: 100%;
width: 100%;
}
.header, .about {
height: 100%;
padding-top: 50px;
}
.headerBckgrnd {
background: url(https://0.s3.envato.com/files/147788254/Gold%20Glitter2_01_preview1.JPG) no-repeat center center fixed;
background-size: cover;
color: white;
height: 100vh;
}
.heading {
font-family: 'lobster', cursive;
font-size: 25vh;
}
h3 {
font-family: 'Lobster', cursive;
}
.aboutBckgrnd {
background: url('http://pre04.deviantart.net/5a58/th/pre/i/2013/044/2/2/abstract_indigo_stock_texture_by_aegiandyad-d5u1b5f.jpg') no-repeat center center fixed;
background-size: cover;
color: white;
height: 100%;
}
.body {
font-family: 'Playfair Display', serif;
font-size: 18px;
font-weight: 700;
}
.signature {
font-family: 'lobster', cursive;
font-size: 4em;
font-weight: 400;
}
.profileImg {
border: 10px outset rgba(150, 150, 150, 0.3);
border-radius: 25%;
} | Rainelishes/rainelishes.github.io | css/style.css | CSS | mit | 923 | [
30522,
16129,
1010,
2303,
1063,
4578,
1024,
2531,
1003,
1025,
9381,
1024,
2531,
1003,
1025,
1065,
1012,
20346,
1010,
1012,
2055,
1063,
4578,
1024,
2531,
1003,
1025,
11687,
4667,
1011,
2327,
1024,
2753,
2361,
2595,
1025,
1065,
1012,
20346,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.interestrate.bond.provider;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import org.testng.annotations.Test;
import org.threeten.bp.Period;
import org.threeten.bp.ZonedDateTime;
import com.opengamma.analytics.financial.instrument.bond.BondFixedSecurityDefinition;
import com.opengamma.analytics.financial.instrument.bond.BondFixedTransactionDefinition;
import com.opengamma.analytics.financial.instrument.bond.BondIborSecurityDefinition;
import com.opengamma.analytics.financial.instrument.bond.BondIborTransactionDefinition;
import com.opengamma.analytics.financial.instrument.index.IborIndex;
import com.opengamma.analytics.financial.interestrate.annuity.derivative.Annuity;
import com.opengamma.analytics.financial.interestrate.annuity.derivative.AnnuityCouponFixed;
import com.opengamma.analytics.financial.interestrate.annuity.derivative.AnnuityPaymentFixed;
import com.opengamma.analytics.financial.interestrate.bond.definition.BondFixedTransaction;
import com.opengamma.analytics.financial.interestrate.bond.definition.BondIborTransaction;
import com.opengamma.analytics.financial.interestrate.payments.derivative.Payment;
import com.opengamma.analytics.financial.interestrate.payments.derivative.PaymentFixed;
import com.opengamma.analytics.financial.provider.calculator.discounting.PresentValueCurveSensitivityDiscountingCalculator;
import com.opengamma.analytics.financial.provider.calculator.discounting.PresentValueDiscountingCalculator;
import com.opengamma.analytics.financial.provider.calculator.issuer.ParSpreadRateCurveSensitivityIssuerDiscountingCalculator;
import com.opengamma.analytics.financial.provider.calculator.issuer.ParSpreadRateIssuerDiscountingCalculator;
import com.opengamma.analytics.financial.provider.calculator.issuer.PresentValueCurveSensitivityIssuerCalculator;
import com.opengamma.analytics.financial.provider.calculator.issuer.PresentValueIssuerCalculator;
import com.opengamma.analytics.financial.provider.description.IssuerProviderDiscountDataSets;
import com.opengamma.analytics.financial.provider.description.interestrate.IssuerProviderDiscount;
import com.opengamma.analytics.financial.provider.description.interestrate.MulticurveProviderDiscountingDecoratedIssuer;
import com.opengamma.analytics.financial.provider.description.interestrate.MulticurveProviderInterface;
import com.opengamma.analytics.financial.provider.description.interestrate.ParameterIssuerProviderInterface;
import com.opengamma.analytics.financial.provider.sensitivity.issuer.SimpleParameterSensitivityIssuerCalculator;
import com.opengamma.analytics.financial.provider.sensitivity.issuer.SimpleParameterSensitivityIssuerDiscountInterpolatedFDCalculator;
import com.opengamma.analytics.financial.provider.sensitivity.multicurve.MulticurveSensitivity;
import com.opengamma.analytics.financial.provider.sensitivity.multicurve.MultipleCurrencyMulticurveSensitivity;
import com.opengamma.analytics.financial.provider.sensitivity.multicurve.SimpleParameterSensitivity;
import com.opengamma.analytics.financial.schedule.ScheduleCalculator;
import com.opengamma.analytics.financial.util.AssertSensitivityObjects;
import com.opengamma.analytics.util.time.TimeCalculator;
import com.opengamma.financial.convention.businessday.BusinessDayConvention;
import com.opengamma.financial.convention.businessday.BusinessDayConventions;
import com.opengamma.financial.convention.calendar.Calendar;
import com.opengamma.financial.convention.calendar.MondayToFridayCalendar;
import com.opengamma.financial.convention.daycount.DayCount;
import com.opengamma.financial.convention.daycount.DayCounts;
import com.opengamma.financial.convention.yield.YieldConvention;
import com.opengamma.financial.convention.yield.YieldConventionFactory;
import com.opengamma.timeseries.DoubleTimeSeries;
import com.opengamma.timeseries.precise.zdt.ImmutableZonedDateTimeDoubleTimeSeries;
import com.opengamma.util.money.Currency;
import com.opengamma.util.money.MultipleCurrencyAmount;
import com.opengamma.util.test.TestGroup;
import com.opengamma.util.time.DateUtils;
/**
* Test.
*/
@Test(groups = TestGroup.UNIT)
public class BondTransactionDiscountingMethodTest {
private final static IssuerProviderDiscount ISSUER_MULTICURVES = IssuerProviderDiscountDataSets.getIssuerSpecificProvider();
private final static String[] ISSUER_NAMES = IssuerProviderDiscountDataSets.getIssuerNames();
private static final Currency CUR = Currency.EUR;
private static final Calendar CALENDAR = new MondayToFridayCalendar("A");
// to derivatives: first coupon
private static final ZonedDateTime REFERENCE_DATE = DateUtils.getUTCDate(2011, 8, 18);
private static final ZonedDateTime REFERENCE_DATE_2 = DateUtils.getUTCDate(2012, 7, 12);
//Fixed Coupon Semi-annual 5Y
private static final Period PAYMENT_TENOR_FIXED = Period.ofMonths(6);
private static final DayCount DAY_COUNT_FIXED = DayCounts.ACT_ACT_ICMA;
private static final BusinessDayConvention BUSINESS_DAY_FIXED = BusinessDayConventions.FOLLOWING;
private static final boolean IS_EOM_FIXED = false;
private static final Period BOND_TENOR_FIXED = Period.ofYears(5);
private static final int SETTLEMENT_DAYS_FIXED = 3;
private static final ZonedDateTime START_ACCRUAL_DATE_FIXED = DateUtils.getUTCDate(2011, 7, 13);
private static final ZonedDateTime MATURITY_DATE_FIXED = START_ACCRUAL_DATE_FIXED.plus(BOND_TENOR_FIXED);
private static final double RATE_FIXED = 0.0325;
private static final YieldConvention YIELD_CONVENTION_FIXED = YieldConventionFactory.INSTANCE.getYieldConvention("STREET CONVENTION");
private static final BondFixedSecurityDefinition BOND_DESCRIPTION_DEFINITION_FIXED = BondFixedSecurityDefinition.from(CUR, MATURITY_DATE_FIXED, START_ACCRUAL_DATE_FIXED, PAYMENT_TENOR_FIXED,
RATE_FIXED, SETTLEMENT_DAYS_FIXED, CALENDAR, DAY_COUNT_FIXED, BUSINESS_DAY_FIXED, YIELD_CONVENTION_FIXED, IS_EOM_FIXED, ISSUER_NAMES[1]);
// Transaction fixed
private static final double PRICE_CLEAN_FIXED = 0.90; //clean price
private static final double QUANTITY_FIXED = 100000000; //100m
// Transaction past
private static final ZonedDateTime BOND_SETTLEMENT_DATE_FIXED_1 = DateUtils.getUTCDate(2011, 8, 16);
private static final AnnuityCouponFixed COUPON_TR_FIXED_1 = BOND_DESCRIPTION_DEFINITION_FIXED.getCoupons().toDerivative(REFERENCE_DATE);
private static final AnnuityPaymentFixed NOMINAL_TR_FIXED_1 = (AnnuityPaymentFixed) BOND_DESCRIPTION_DEFINITION_FIXED.getNominal().toDerivative(REFERENCE_DATE);
private static final BondFixedTransactionDefinition BOND_TRANSACTION_DEFINITION_FIXED_1 = new BondFixedTransactionDefinition(BOND_DESCRIPTION_DEFINITION_FIXED, QUANTITY_FIXED,
BOND_SETTLEMENT_DATE_FIXED_1, PRICE_CLEAN_FIXED);
private static final BondFixedTransaction BOND_TRANSACTION_FIXED_1 = BOND_TRANSACTION_DEFINITION_FIXED_1.toDerivative(REFERENCE_DATE);
// Transaction today
private static final ZonedDateTime BOND_SETTLEMENT_DATE_FIXED_2 = DateUtils.getUTCDate(2011, 8, 18);
private static final double BOND_SETTLEMENT_TIME_FIXED_2 = TimeCalculator.getTimeBetween(REFERENCE_DATE, BOND_SETTLEMENT_DATE_FIXED_2);
private static final AnnuityCouponFixed COUPON_TR_FIXED_2 = BOND_DESCRIPTION_DEFINITION_FIXED.getCoupons().toDerivative(REFERENCE_DATE).trimBefore(BOND_SETTLEMENT_TIME_FIXED_2);
private static final AnnuityPaymentFixed NOMINAL_TR_FIXED_2 = (AnnuityPaymentFixed) BOND_DESCRIPTION_DEFINITION_FIXED.getNominal().toDerivative(REFERENCE_DATE)
.trimBefore(BOND_SETTLEMENT_TIME_FIXED_2);
private static final BondFixedTransactionDefinition BOND_TRANSACTION_DEFINITION_FIXED_2 = new BondFixedTransactionDefinition(BOND_DESCRIPTION_DEFINITION_FIXED, QUANTITY_FIXED,
BOND_SETTLEMENT_DATE_FIXED_2, PRICE_CLEAN_FIXED);
private static final PaymentFixed BOND_SETTLEMENT_FIXED_2 = new PaymentFixed(CUR, BOND_SETTLEMENT_TIME_FIXED_2,
-(PRICE_CLEAN_FIXED + BOND_TRANSACTION_DEFINITION_FIXED_2.getAccruedInterestAtSettlement())
* QUANTITY_FIXED);
private static final BondFixedTransaction BOND_TRANSACTION_FIXED_2 = BOND_TRANSACTION_DEFINITION_FIXED_2.toDerivative(REFERENCE_DATE);
// Transaction future
private static final ZonedDateTime BOND_SETTLEMENT_DATE_FIXED_3 = DateUtils.getUTCDate(2011, 8, 24);
private static final double BOND_SETTLEMENT_TIME_FIXED_3 = TimeCalculator.getTimeBetween(REFERENCE_DATE, BOND_SETTLEMENT_DATE_FIXED_3);
private static final AnnuityCouponFixed COUPON_TR_FIXED_3 = BOND_DESCRIPTION_DEFINITION_FIXED.getCoupons().toDerivative(REFERENCE_DATE).trimBefore(BOND_SETTLEMENT_TIME_FIXED_3);
private static final AnnuityPaymentFixed NOMINAL_TR_FIXED_3 = (AnnuityPaymentFixed) BOND_DESCRIPTION_DEFINITION_FIXED.getNominal().toDerivative(REFERENCE_DATE)
.trimBefore(BOND_SETTLEMENT_TIME_FIXED_3);
private static final BondFixedTransactionDefinition BOND_TRANSACTION_DEFINITION_FIXED_3 = new BondFixedTransactionDefinition(BOND_DESCRIPTION_DEFINITION_FIXED, QUANTITY_FIXED,
BOND_SETTLEMENT_DATE_FIXED_3, PRICE_CLEAN_FIXED);
private static final PaymentFixed BOND_SETTLEMENT_FIXED_3 = new PaymentFixed(CUR, BOND_SETTLEMENT_TIME_FIXED_3,
-(PRICE_CLEAN_FIXED + BOND_TRANSACTION_DEFINITION_FIXED_3.getAccruedInterestAtSettlement())
* QUANTITY_FIXED);
private static final BondFixedTransaction BOND_TRANSACTION_FIXED_3 = BOND_TRANSACTION_DEFINITION_FIXED_3.toDerivative(REFERENCE_DATE);
private static final BondFixedTransaction BOND_TRANSACTION_FIXED_4 = BOND_TRANSACTION_DEFINITION_FIXED_3.toDerivative(REFERENCE_DATE_2);
private static final ZonedDateTime SETTLE_DATE_STD = ScheduleCalculator.getAdjustedDate(REFERENCE_DATE, BOND_DESCRIPTION_DEFINITION_FIXED.getSettlementDays(), CALENDAR);
private static final BondFixedTransactionDefinition BOND_FIXED_STD_DEFINITION = new BondFixedTransactionDefinition(BOND_DESCRIPTION_DEFINITION_FIXED, QUANTITY_FIXED, SETTLE_DATE_STD,
PRICE_CLEAN_FIXED);
private static final BondFixedTransaction BOND_FIXED_STD = BOND_FIXED_STD_DEFINITION.toDerivative(REFERENCE_DATE);
// Ibor coupon Quarterly 2Y
private static final DayCount DAY_COUNT_FRN = DayCounts.ACT_ACT_ISDA;
private static final BusinessDayConvention BUSINESS_DAY_FRN = BusinessDayConventions.FOLLOWING;
private static final boolean IS_EOM_FRN = false;
private static final Period IBOR_TENOR = Period.ofMonths(3);
private static final DayCount IBOR_DAY_COUNT = DayCounts.ACT_360;
private static final int IBOR_SPOT_LAG = 2;
private static final BusinessDayConvention IBOR_BUSINESS_DAY = BusinessDayConventions.MODIFIED_FOLLOWING;
private static final boolean IBOR_IS_EOM = false;
private static final IborIndex IBOR_INDEX = new IborIndex(CUR, IBOR_TENOR, IBOR_SPOT_LAG, IBOR_DAY_COUNT, IBOR_BUSINESS_DAY, IBOR_IS_EOM, "Ibor");
private static final Period BOND_TENOR_FRN = Period.ofYears(2);
private static final int SETTLEMENT_DAYS_FRN = 3; // Standard for euro-bonds.
private static final ZonedDateTime START_ACCRUAL_DATE_FRN = DateUtils.getUTCDate(2011, 7, 13);
private static final ZonedDateTime MATURITY_DATE_FRN = START_ACCRUAL_DATE_FRN.plus(BOND_TENOR_FRN);
private static final BondIborSecurityDefinition BOND_DESCRIPTION_DEFINITION_FRN = BondIborSecurityDefinition.from(MATURITY_DATE_FRN, START_ACCRUAL_DATE_FRN, IBOR_INDEX, SETTLEMENT_DAYS_FRN,
DAY_COUNT_FRN, BUSINESS_DAY_FRN, IS_EOM_FRN, ISSUER_NAMES[1], CALENDAR);
// Transaction FRN
private static final double FIRST_FIXING = 0.02;
private static final double PRICE_FRN = 0.99;
private static final ZonedDateTime BOND_SETTLEMENT_DATE_FRN = DateUtils.getUTCDate(2011, 8, 24);
private static final double BOND_SETTLEMENT_TIME_FRN = TimeCalculator.getTimeBetween(REFERENCE_DATE, BOND_SETTLEMENT_DATE_FRN);
private static final double QUANTITY_FRN = 100000000; //100m
private static final DoubleTimeSeries<ZonedDateTime> FIXING_TS = ImmutableZonedDateTimeDoubleTimeSeries.ofUTC(new ZonedDateTime[] {BOND_DESCRIPTION_DEFINITION_FRN.getCoupons().getNthPayment(0)
.getFixingDate() }, new double[] {FIRST_FIXING });
private static final AnnuityPaymentFixed NOMINAL_TR_1_FRN = (AnnuityPaymentFixed) BOND_DESCRIPTION_DEFINITION_FRN.getNominal().toDerivative(REFERENCE_DATE)
.trimBefore(BOND_SETTLEMENT_TIME_FRN);
private static final Annuity<? extends Payment> COUPON_TR_1_FRN = BOND_DESCRIPTION_DEFINITION_FRN.getCoupons().toDerivative(REFERENCE_DATE, FIXING_TS)
.trimBefore(BOND_SETTLEMENT_TIME_FRN);
private static final BondIborTransactionDefinition BOND_TRANSACTION_DEFINITION_FRN = new BondIborTransactionDefinition(BOND_DESCRIPTION_DEFINITION_FRN, QUANTITY_FRN, BOND_SETTLEMENT_DATE_FRN,
PRICE_FRN);
private static final PaymentFixed BOND_SETTLEMENT_FRN = new PaymentFixed(CUR, BOND_SETTLEMENT_TIME_FRN, -PRICE_FRN * QUANTITY_FRN);
private static final BondIborTransaction BOND_TRANSACTION_FRN = BOND_TRANSACTION_DEFINITION_FRN.toDerivative(REFERENCE_DATE, FIXING_TS);
// Calculators
private static final PresentValueDiscountingCalculator PVDC = PresentValueDiscountingCalculator.getInstance();
private static final PresentValueIssuerCalculator PVIC = PresentValueIssuerCalculator.getInstance();
private static final PresentValueCurveSensitivityIssuerCalculator PVCSIC = PresentValueCurveSensitivityIssuerCalculator.getInstance();
private static final PresentValueCurveSensitivityDiscountingCalculator PVCSDC = PresentValueCurveSensitivityDiscountingCalculator.getInstance();
private static final ParSpreadRateIssuerDiscountingCalculator PSRIDC = ParSpreadRateIssuerDiscountingCalculator.getInstance();
private static final ParSpreadRateCurveSensitivityIssuerDiscountingCalculator PSRCSIDC = ParSpreadRateCurveSensitivityIssuerDiscountingCalculator.getInstance();
private static final double SHIFT_FD = 1.0E-6;
private static final SimpleParameterSensitivityIssuerCalculator<ParameterIssuerProviderInterface> PS_I_AD =
new SimpleParameterSensitivityIssuerCalculator<>(PSRCSIDC);
private static final SimpleParameterSensitivityIssuerDiscountInterpolatedFDCalculator PS_I_FD = new SimpleParameterSensitivityIssuerDiscountInterpolatedFDCalculator(PSRIDC, SHIFT_FD);
private static final BondTransactionDiscountingMethod METHOD_BOND_TR = BondTransactionDiscountingMethod.getInstance();
private static final BondSecurityDiscountingMethod METHOD_BOND_SEC = BondSecurityDiscountingMethod.getInstance();
private static final double TOLERANCE_PV_DELTA = 1.0E-2;
private static final double TOLERANCE_PV = 1.0E-2;
private static final double TOLERANCE_PRICE = 1.0E-8;
private static final double TOLERANCE_PRICE_DELTA = 1.0E-8;
@Test
public void testPVFixedBondSettlePast() {
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValue(BOND_TRANSACTION_FIXED_1, ISSUER_MULTICURVES);
final MulticurveProviderInterface multicurvesDecorated = new MulticurveProviderDiscountingDecoratedIssuer(ISSUER_MULTICURVES, CUR, BOND_TRANSACTION_FIXED_1.getBondTransaction().getIssuerEntity());
final MultipleCurrencyAmount pvNominal = NOMINAL_TR_FIXED_1.accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCoupon = COUPON_TR_FIXED_1.accept(PVDC, multicurvesDecorated);
assertEquals("Fixed bond present value", (pvNominal.getAmount(CUR) + pvCoupon.getAmount(CUR)) * QUANTITY_FIXED, pv.getAmount(CUR));
}
@Test
public void testPVCleanPriceFixedBondSettlePast() {
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValueFromCleanPrice(BOND_TRANSACTION_FIXED_1, ISSUER_MULTICURVES, PRICE_CLEAN_FIXED);
final MultipleCurrencyAmount pvSec = METHOD_BOND_SEC.presentValueFromCleanPrice(BOND_TRANSACTION_FIXED_1.getBondStandard(),
ISSUER_MULTICURVES.getMulticurveProvider(), PRICE_CLEAN_FIXED);
final double df = ISSUER_MULTICURVES.getMulticurveProvider().getDiscountFactor(CUR, BOND_TRANSACTION_FIXED_1.getBondStandard().getSettlementTime());
final double pvExpected = (PRICE_CLEAN_FIXED * BOND_TRANSACTION_FIXED_1.getNotionalStandard() + BOND_TRANSACTION_FIXED_1.getBondStandard().getAccruedInterest())
* df * QUANTITY_FIXED;
assertEquals("Fixed bond present value", pvSec.getAmount(CUR) * QUANTITY_FIXED, pv.getAmount(CUR), TOLERANCE_PV_DELTA);
assertEquals("Fixed bond present value", pvExpected, pv.getAmount(CUR), TOLERANCE_PV_DELTA);
}
@Test
public void testPVYieldFixedBondSettlePast() {
final double yield = 0.05;
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValueFromYield(BOND_TRANSACTION_FIXED_1, ISSUER_MULTICURVES, yield);
final double dirtyPrice = METHOD_BOND_SEC.dirtyPriceFromYield(BOND_TRANSACTION_FIXED_1.getBondStandard(), yield);
final double df = ISSUER_MULTICURVES.getMulticurveProvider().getDiscountFactor(CUR, BOND_TRANSACTION_FIXED_1.getBondStandard().getSettlementTime());
final double pvExpected = (dirtyPrice) * df * QUANTITY_FIXED;
assertEquals("Fixed bond present value", pvExpected, pv.getAmount(CUR), TOLERANCE_PV_DELTA);
}
@Test
public void testPVFixedBondSettleToday() {
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValue(BOND_TRANSACTION_FIXED_2, ISSUER_MULTICURVES);
final MulticurveProviderInterface multicurvesDecorated = new MulticurveProviderDiscountingDecoratedIssuer(ISSUER_MULTICURVES, CUR, BOND_TRANSACTION_FIXED_1.getBondTransaction().getIssuerEntity());
final MultipleCurrencyAmount pvNominal = NOMINAL_TR_FIXED_2.accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCoupon = COUPON_TR_FIXED_2.accept(PVDC, multicurvesDecorated);
final double pvSettlement = BOND_SETTLEMENT_FIXED_2.getAmount();
assertEquals("Fixed bond present value", (pvNominal.getAmount(CUR) + pvCoupon.getAmount(CUR)) * QUANTITY_FIXED + pvSettlement, pv.getAmount(CUR));
}
@Test
public void testPVFixedBondSettleFuture() {
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValue(BOND_TRANSACTION_FIXED_3, ISSUER_MULTICURVES);
final MulticurveProviderInterface multicurvesDecorated = new MulticurveProviderDiscountingDecoratedIssuer(ISSUER_MULTICURVES, CUR, BOND_TRANSACTION_FIXED_1.getBondTransaction().getIssuerEntity());
final MultipleCurrencyAmount pvNominal = NOMINAL_TR_FIXED_3.accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCoupon = COUPON_TR_FIXED_3.accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvSettlement = BOND_SETTLEMENT_FIXED_3.accept(PVDC, ISSUER_MULTICURVES.getMulticurveProvider());
assertEquals("Fixed bond present value", (pvNominal.getAmount(CUR) + pvCoupon.getAmount(CUR)) * QUANTITY_FIXED + pvSettlement.getAmount(CUR), pv.getAmount(CUR));
}
@Test
/**
* Test the PV when a coupon payment is between today and standard settlement date and pv is computed from conventional clean price.
*/
public void testPVCleanPriceFixedBondCouponBeforeSettle() {
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValueFromCleanPrice(BOND_TRANSACTION_FIXED_4, ISSUER_MULTICURVES, PRICE_CLEAN_FIXED);
final MultipleCurrencyAmount pvSec = METHOD_BOND_SEC.presentValueFromCleanPrice(BOND_TRANSACTION_FIXED_4.getBondStandard(),
ISSUER_MULTICURVES.getMulticurveProvider(), PRICE_CLEAN_FIXED);
final MulticurveProviderInterface multicurvesDecorated = new MulticurveProviderDiscountingDecoratedIssuer(ISSUER_MULTICURVES, CUR,
BOND_TRANSACTION_FIXED_4.getBondTransaction().getIssuerEntity());
final MultipleCurrencyAmount pvNominalStandard = BOND_TRANSACTION_FIXED_4.getBondStandard().getNominal().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCouponStandard = BOND_TRANSACTION_FIXED_4.getBondStandard().getCoupon().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvDiscountingStandard = pvNominalStandard.plus(pvCouponStandard);
final MultipleCurrencyAmount pvNominalTransaction = BOND_TRANSACTION_FIXED_4.getBondTransaction().getNominal().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCouponTransaction = BOND_TRANSACTION_FIXED_4.getBondTransaction().getCoupon().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvDiscountingTransaction = pvNominalTransaction.plus(pvCouponTransaction);
final double pvExpected = (pvDiscountingTransaction.getAmount(CUR) - pvDiscountingStandard.getAmount(CUR) + pvSec.getAmount(CUR)) * QUANTITY_FIXED;
assertEquals("Fixed coupon bond present value", pvExpected, pv.getAmount(CUR), TOLERANCE_PV_DELTA);
assertFalse("Fixed coupon bond present value", Math.abs(pvSec.getAmount(CUR) * QUANTITY_FIXED - pv.getAmount(CUR)) < TOLERANCE_PV_DELTA);
}
@Test
/**
* Test the PV when a coupon payment is between today and standard settlement date and pv is computed from conventional yield.
*/
public void testPVYieldFixedBondCouponBeforeSettle() {
final double yield = 0.05;
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValueFromYield(BOND_TRANSACTION_FIXED_4, ISSUER_MULTICURVES, yield);
final double dirtyPrice = METHOD_BOND_SEC.dirtyPriceFromYield(BOND_TRANSACTION_FIXED_4.getBondStandard(), yield);
final double df = ISSUER_MULTICURVES.getMulticurveProvider().getDiscountFactor(CUR, BOND_TRANSACTION_FIXED_4.getBondStandard().getSettlementTime());
final MultipleCurrencyAmount pvSec = MultipleCurrencyAmount.of(CUR, dirtyPrice * df);
final MulticurveProviderInterface multicurvesDecorated = new MulticurveProviderDiscountingDecoratedIssuer(ISSUER_MULTICURVES, CUR,
BOND_TRANSACTION_FIXED_4.getBondTransaction().getIssuerEntity());
final MultipleCurrencyAmount pvNominalStandard = BOND_TRANSACTION_FIXED_4.getBondStandard().getNominal().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCouponStandard = BOND_TRANSACTION_FIXED_4.getBondStandard().getCoupon().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvDiscountingStandard = pvNominalStandard.plus(pvCouponStandard);
final MultipleCurrencyAmount pvNominalTransaction = BOND_TRANSACTION_FIXED_4.getBondTransaction().getNominal().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCouponTransaction = BOND_TRANSACTION_FIXED_4.getBondTransaction().getCoupon().accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvDiscountingTransaction = pvNominalTransaction.plus(pvCouponTransaction);
final double pvExpected = (pvDiscountingTransaction.getAmount(CUR) - pvDiscountingStandard.getAmount(CUR) + pvSec.getAmount(CUR)) * QUANTITY_FIXED;
assertEquals("Fixed coupon bond present value", pvExpected, pv.getAmount(CUR), TOLERANCE_PV_DELTA);
assertFalse("Fixed coupon bond present value", Math.abs(pvSec.getAmount(CUR) * QUANTITY_FIXED - pv.getAmount(CUR)) < TOLERANCE_PV_DELTA);
}
@Test
public void testPVCSFixedBond() {
final MultipleCurrencyMulticurveSensitivity pvs = METHOD_BOND_TR.presentValueCurveSensitivity(BOND_TRANSACTION_FIXED_3, ISSUER_MULTICURVES);
final MulticurveProviderInterface multicurvesDecorated = new MulticurveProviderDiscountingDecoratedIssuer(ISSUER_MULTICURVES, CUR, BOND_TRANSACTION_FIXED_1.getBondTransaction().getIssuerEntity());
final MultipleCurrencyMulticurveSensitivity pvsNominal = NOMINAL_TR_FIXED_3.accept(PVCSDC, multicurvesDecorated);
final MultipleCurrencyMulticurveSensitivity pvsCoupon = COUPON_TR_FIXED_3.accept(PVCSDC, multicurvesDecorated);
final MultipleCurrencyMulticurveSensitivity pvsSettlement = BOND_SETTLEMENT_FIXED_3.accept(PVCSDC, ISSUER_MULTICURVES.getMulticurveProvider());
final MultipleCurrencyMulticurveSensitivity expectedPvs = pvsNominal.plus(pvsCoupon).multipliedBy(QUANTITY_FRN).plus(pvsSettlement).cleaned();
assertEquals("Fixed bond present value sensitivity", expectedPvs, pvs.cleaned());
}
@Test
public void testPVCSFixedBondMethodCalculator() {
final MultipleCurrencyAmount pvMethod = METHOD_BOND_TR.presentValue(BOND_TRANSACTION_FIXED_3, ISSUER_MULTICURVES);
final MultipleCurrencyAmount pvCalculator = BOND_TRANSACTION_FIXED_3.accept(PVIC, ISSUER_MULTICURVES);
assertEquals("Fixed bond present value: Method vs Calculator", pvMethod, pvCalculator);
final MultipleCurrencyMulticurveSensitivity pvsMethod = METHOD_BOND_TR.presentValueCurveSensitivity(BOND_TRANSACTION_FIXED_3, ISSUER_MULTICURVES);
final MultipleCurrencyMulticurveSensitivity pvsCalculator = BOND_TRANSACTION_FIXED_3.accept(PVCSIC, ISSUER_MULTICURVES);
AssertSensitivityObjects.assertEquals("Fixed bond present value sensitivity: Method vs Calculator", pvsMethod, pvsCalculator, TOLERANCE_PV_DELTA);
}
@Test
public void parSpreadMarketQuote() {
final double parSpreadMarketQuote = METHOD_BOND_TR.parSpread(BOND_FIXED_STD, ISSUER_MULTICURVES);
final BondFixedTransaction bond0 = new BondFixedTransaction(BOND_FIXED_STD.getBondTransaction(), QUANTITY_FIXED, PRICE_CLEAN_FIXED + parSpreadMarketQuote,
BOND_FIXED_STD.getBondStandard(), BOND_FIXED_STD.getNotionalStandard());
final MultipleCurrencyAmount pv0 = METHOD_BOND_TR.presentValue(bond0, ISSUER_MULTICURVES);
assertEquals("Fixed bond: par spread market quote", pv0.getAmount(CUR), 0, TOLERANCE_PV);
}
@Test
public void parSpreadYield() {
final ZonedDateTime settleDate = ScheduleCalculator.getAdjustedDate(REFERENCE_DATE, BOND_DESCRIPTION_DEFINITION_FIXED.getSettlementDays(), CALENDAR);
final BondFixedTransactionDefinition bondTrDefinition = new BondFixedTransactionDefinition(BOND_DESCRIPTION_DEFINITION_FIXED, QUANTITY_FIXED, settleDate, PRICE_CLEAN_FIXED);
final BondFixedTransaction bondTr = bondTrDefinition.toDerivative(REFERENCE_DATE);
final double parSpreadYield = METHOD_BOND_TR.parSpreadYield(bondTr, ISSUER_MULTICURVES);
final double yield = METHOD_BOND_SEC.yieldFromCleanPrice(bondTr.getBondStandard(), PRICE_CLEAN_FIXED);
final BondFixedTransactionDefinition bond0Definition = BondFixedTransactionDefinition.fromYield(BOND_DESCRIPTION_DEFINITION_FIXED,
QUANTITY_FIXED, settleDate, yield + parSpreadYield);
final BondFixedTransaction bond0 = bond0Definition.toDerivative(REFERENCE_DATE);
final MultipleCurrencyAmount pv0 = METHOD_BOND_TR.presentValue(bond0, ISSUER_MULTICURVES);
assertEquals("Fixed bond: par spread yield", pv0.getAmount(CUR), 0, TOLERANCE_PV);
final Double parSpreadYieldCalculator = bondTr.accept(PSRIDC, ISSUER_MULTICURVES);
assertEquals("Fixed bond: par spread yield", parSpreadYieldCalculator, parSpreadYield, TOLERANCE_PRICE);
}
@Test
/**
* Tests parSpreadYield curve sensitivity: explicit formula versus finite difference.
*/
public void parSpreadYieldCurveSensitivityMethodVsCalculator() {
final SimpleParameterSensitivity pspsDepositExact = PS_I_AD.calculateSensitivity(BOND_FIXED_STD, ISSUER_MULTICURVES, ISSUER_MULTICURVES.getAllNames());
final SimpleParameterSensitivity pspsDepositFD = PS_I_FD.calculateSensitivity(BOND_FIXED_STD, ISSUER_MULTICURVES);
AssertSensitivityObjects.assertEquals("BondTransactionDiscountingMethod: parSpreadYield curve sensitivity", pspsDepositExact, pspsDepositFD, TOLERANCE_PV_DELTA);
}
@Test
public void parSpreadYieldCurveSensitivity() {
final MulticurveSensitivity pscsyCalculator = BOND_FIXED_STD.accept(PSRCSIDC, ISSUER_MULTICURVES);
final MulticurveSensitivity psycsMethod = METHOD_BOND_TR.parSpreadYieldCurveSensitivity(BOND_FIXED_STD, ISSUER_MULTICURVES);
AssertSensitivityObjects.assertEquals("BondTransactionDiscountingMethod: parSpreadYield curve sensitivity", psycsMethod, pscsyCalculator, TOLERANCE_PRICE_DELTA);
}
@Test(enabled = false)
//FIXME change the test and the pv method with correct accrual interests mechanism.
public void testPVIborBond() {
final MultipleCurrencyAmount pv = METHOD_BOND_TR.presentValue(BOND_TRANSACTION_FRN, ISSUER_MULTICURVES);
final MulticurveProviderInterface multicurvesDecorated = new MulticurveProviderDiscountingDecoratedIssuer(ISSUER_MULTICURVES, CUR, BOND_TRANSACTION_FIXED_1.getBondTransaction().getIssuerEntity());
final MultipleCurrencyAmount pvNominal = NOMINAL_TR_1_FRN.accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvCoupon = COUPON_TR_1_FRN.accept(PVDC, multicurvesDecorated);
final MultipleCurrencyAmount pvSettlement = BOND_SETTLEMENT_FRN.accept(PVDC, multicurvesDecorated);
assertEquals("FRN present value", (pvNominal.getAmount(CUR) + pvCoupon.getAmount(CUR)) * QUANTITY_FRN + pvSettlement.getAmount(CUR), pv.getAmount(CUR));
}
@Test(enabled = false)
//FIXME change the test and the pv method with correct accrual interests mechanism.
public void testPVSIborBond() {
final MultipleCurrencyMulticurveSensitivity pvs = METHOD_BOND_TR.presentValueCurveSensitivity(BOND_TRANSACTION_FRN, ISSUER_MULTICURVES);
final MultipleCurrencyMulticurveSensitivity pvsNominal = NOMINAL_TR_1_FRN.accept(PVCSIC, ISSUER_MULTICURVES);
final MultipleCurrencyMulticurveSensitivity pvsCoupon = COUPON_TR_1_FRN.accept(PVCSIC, ISSUER_MULTICURVES);
final MultipleCurrencyMulticurveSensitivity pvsSettlement = BOND_SETTLEMENT_FRN.accept(PVCSIC, ISSUER_MULTICURVES);
final MultipleCurrencyMulticurveSensitivity expectedPvs = pvsNominal.plus(pvsCoupon).multipliedBy(QUANTITY_FRN).plus(pvsSettlement).cleaned();
assertEquals("FRN present value sensitivity", expectedPvs, pvs.cleaned());
}
}
| jeorme/OG-Platform | projects/OG-Analytics/src/test/java/com/opengamma/analytics/financial/interestrate/bond/provider/BondTransactionDiscountingMethodTest.java | Java | apache-2.0 | 29,558 | [
30522,
1013,
1008,
1008,
1008,
9385,
1006,
1039,
1007,
2249,
1011,
2556,
2011,
2330,
22864,
2863,
4297,
1012,
1998,
1996,
2330,
22864,
2863,
2177,
1997,
3316,
1008,
1008,
3531,
2156,
4353,
2005,
6105,
1012,
1008,
1013,
30524,
1012,
25095,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using COM = System.Runtime.InteropServices.ComTypes;
// Disable obsolete warnings about VarEnum and COM-marshaling APIs in CoreCLR
#pragma warning disable 618
namespace System.Management.Automation
{
internal static class ComInvoker
{
// DISP HRESULTS - may be returned by IDispatch.Invoke
private const int DISP_E_EXCEPTION = unchecked((int)0x80020009);
// LCID for en-US culture
private const int LCID_DEFAULT = 0x0409;
// The dispatch identifier for a parameter that receives the value of an assignment in a PROPERTYPUT.
// See https://msdn.microsoft.com/library/windows/desktop/ms221242(v=vs.85).aspx for details.
private const int DISPID_PROPERTYPUT = -3;
// Alias of GUID_NULL. It's a GUID set to all zero
private static readonly Guid s_IID_NULL = new Guid();
// Size of the Variant struct
private static readonly int s_variantSize = Marshal.SizeOf<Variant>();
/// <summary>
/// Make a by-Ref VARIANT value based on the passed-in VARIANT argument.
/// </summary>
/// <param name="srcVariantPtr">The source Variant pointer.</param>
/// <param name="destVariantPtr">The destination Variant pointer.</param>
private static unsafe void MakeByRefVariant(IntPtr srcVariantPtr, IntPtr destVariantPtr)
{
var srcVariant = (Variant*)srcVariantPtr;
var destVariant = (Variant*)destVariantPtr;
switch ((VarEnum)srcVariant->_typeUnion._vt)
{
case VarEnum.VT_EMPTY:
case VarEnum.VT_NULL:
// These cannot combine with VT_BYREF. Should try passing as a variant reference
// We follow the code in ComBinder to handle 'VT_EMPTY' and 'VT_NULL'
destVariant->_typeUnion._unionTypes._byref = new IntPtr(srcVariant);
destVariant->_typeUnion._vt = (ushort)VarEnum.VT_VARIANT | (ushort)VarEnum.VT_BYREF;
return;
case VarEnum.VT_RECORD:
// Representation of record is the same with or without byref
destVariant->_typeUnion._unionTypes._record._record = srcVariant->_typeUnion._unionTypes._record._record;
destVariant->_typeUnion._unionTypes._record._recordInfo = srcVariant->_typeUnion._unionTypes._record._recordInfo;
break;
case VarEnum.VT_VARIANT:
destVariant->_typeUnion._unionTypes._byref = new IntPtr(srcVariant);
break;
case VarEnum.VT_DECIMAL:
destVariant->_typeUnion._unionTypes._byref = new IntPtr(&(srcVariant->_decimal));
break;
default:
// All the other cases start at the same offset (it's a Union) so using &_i4 should work.
// This is the same code as in CLR implementation. It could be &_i1, &_i2 and etc. CLR implementation just prefer using &_i4.
destVariant->_typeUnion._unionTypes._byref = new IntPtr(&(srcVariant->_typeUnion._unionTypes._i4));
break;
}
destVariant->_typeUnion._vt = (ushort)(srcVariant->_typeUnion._vt | (ushort)VarEnum.VT_BYREF);
}
/// <summary>
/// Alloc memory for a VARIANT array with the specified length.
/// Also initialize the VARIANT elements to be the type 'VT_EMPTY'.
/// </summary>
/// <param name="length">Array length.</param>
/// <returns>Pointer to the array.</returns>
private static unsafe IntPtr NewVariantArray(int length)
{
IntPtr variantArray = Marshal.AllocCoTaskMem(s_variantSize * length);
for (int i = 0; i < length; i++)
{
IntPtr currentVarPtr = variantArray + s_variantSize * i;
var currentVar = (Variant*)currentVarPtr;
currentVar->_typeUnion._vt = (ushort)VarEnum.VT_EMPTY;
}
return variantArray;
}
/// <summary>
/// Generate the ByRef array indicating whether the corresponding argument is by-reference.
/// </summary>
/// <param name="parameters">Parameters retrieved from metadata.</param>
/// <param name="argumentCount">Count of arguments to pass in IDispatch.Invoke.</param>
/// <param name="isPropertySet">Indicate if we are handling arguments for PropertyPut/PropertyPutRef.</param>
/// <returns></returns>
internal static bool[] GetByRefArray(ParameterInformation[] parameters, int argumentCount, bool isPropertySet)
{
if (parameters.Length == 0)
{
return null;
}
var byRef = new bool[argumentCount];
int argsToProcess = argumentCount;
if (isPropertySet)
{
// If it's PropertySet, then the last value in arguments is the right-hand side value.
// There is no corresponding parameter for that value, so it's for sure not by-ref.
// Hence, set the last item of byRef array to be false.
argsToProcess = argumentCount - 1;
byRef[argsToProcess] = false;
}
Diagnostics.Assert(parameters.Length >= argsToProcess,
"There might be more parameters than argsToProcess due unspecified optional arguments");
for (int i = 0; i < argsToProcess; i++)
{
byRef[i] = parameters[i].isByRef;
}
return byRef;
}
/// <summary>
/// Invoke the COM member.
/// </summary>
/// <param name="target">IDispatch object.</param>
/// <param name="dispId">Dispatch identifier that identifies the member.</param>
/// <param name="args">Arguments passed in.</param>
/// <param name="byRef">Boolean array that indicates by-Ref parameters.</param>
/// <param name="invokeKind">Invocation kind.</param>
/// <returns></returns>
internal static object Invoke(IDispatch target, int dispId, object[] args, bool[] byRef, COM.INVOKEKIND invokeKind)
{
Diagnostics.Assert(target != null, "Caller makes sure an IDispatch object passed in.");
Diagnostics.Assert(args == null || byRef == null || args.Length == byRef.Length,
"If 'args' and 'byRef' are not null, then they should be one-on-one mapping.");
int argCount = args != null ? args.Length : 0;
int refCount = byRef != null ? byRef.Count(c => c) : 0;
IntPtr variantArgArray = IntPtr.Zero, dispIdArray = IntPtr.Zero, tmpVariants = IntPtr.Zero;
try
{
// Package arguments
if (argCount > 0)
{
variantArgArray = NewVariantArray(argCount);
int refIndex = 0;
for (int i = 0; i < argCount; i++)
{
// !! The arguments should be in REVERSED order!!
int actualIndex = argCount - i - 1;
IntPtr varArgPtr = variantArgArray + s_variantSize * actualIndex;
// If need to pass by ref, create a by-ref variant
if (byRef != null && byRef[i])
{
// Allocate memory for temporary VARIANTs used in by-ref marshalling
if (tmpVariants == IntPtr.Zero)
{
tmpVariants = NewVariantArray(refCount);
}
// Create a VARIANT that the by-ref VARIANT points to
IntPtr tmpVarPtr = tmpVariants + s_variantSize * refIndex;
Marshal.GetNativeVariantForObject(args[i], tmpVarPtr);
// Create the by-ref VARIANT
MakeByRefVariant(tmpVarPtr, varArgPtr);
refIndex++;
}
else
{
Marshal.GetNativeVariantForObject(args[i], varArgPtr);
}
}
}
var paramArray = new COM.DISPPARAMS[1];
paramArray[0].rgvarg = variantArgArray;
paramArray[0].cArgs = argCount;
if (invokeKind == COM.INVOKEKIND.INVOKE_PROPERTYPUT || invokeKind == COM.INVOKEKIND.INVOKE_PROPERTYPUTREF)
{
// For property putters, the first DISPID argument needs to be DISPID_PROPERTYPUT
dispIdArray = Marshal.AllocCoTaskMem(4); // Allocate 4 bytes to hold a 32-bit signed integer
Marshal.WriteInt32(dispIdArray, DISPID_PROPERTYPUT);
paramArray[0].cNamedArgs = 1;
paramArray[0].rgdispidNamedArgs = dispIdArray;
}
else
{
// Otherwise, no named parameters are necessary since powershell parser doesn't support named parameter
paramArray[0].cNamedArgs = 0;
paramArray[0].rgdispidNamedArgs = IntPtr.Zero;
}
// Make the call
EXCEPINFO info = default(EXCEPINFO);
object result = null;
try
{
// 'puArgErr' is set when IDispatch.Invoke fails with error code 'DISP_E_PARAMNOTFOUND' and 'DISP_E_TYPEMISMATCH'.
// Appropriate exceptions will be thrown in such cases, but FullCLR doesn't use 'puArgErr' in the exception handling, so we also ignore it.
uint puArgErrNotUsed = 0;
target.Invoke(dispId, s_IID_NULL, LCID_DEFAULT, invokeKind, paramArray, out result, out info, out puArgErrNotUsed);
}
catch (Exception innerException)
{
// When 'IDispatch.Invoke' returns error code, CLR will raise exception based on internal HR-to-Exception mapping.
// Description of the return code can be found at https://msdn.microsoft.com/library/windows/desktop/ms221479(v=vs.85).aspx
// According to CoreCLR team (yzha), the exception needs to be wrapped as an inner exception of TargetInvocationException.
string exceptionMsg = null;
if (innerException.HResult == DISP_E_EXCEPTION)
{
// Invoke was successful but the actual underlying method failed.
// In this case, we use EXCEPINFO to get additional error info.
// Use EXCEPINFO.scode or EXCEPINFO.wCode as HR to construct the correct exception.
int code = info.scode != 0 ? info.scode : info.wCode;
innerException = Marshal.GetExceptionForHR(code, IntPtr.Zero) ?? innerException;
// Get the richer error description if it's available.
if (info.bstrDescription != IntPtr.Zero)
{
exceptionMsg = Marshal.PtrToStringBSTR(info.bstrDescription);
Marshal.FreeBSTR(info.bstrDescription);
}
// Free the BSTRs
if (info.bstrSource != IntPtr.Zero)
{
Marshal.FreeBSTR(info.bstrSource);
}
if (info.bstrHelpFile != IntPtr.Zero)
{
Marshal.FreeBSTR(info.bstrHelpFile);
}
}
var outerException = exceptionMsg == null
? new TargetInvocationException(innerException)
: new TargetInvocationException(exceptionMsg, innerException);
throw outerException;
}
// Now back propagate the by-ref arguments
if (refCount > 0)
{
for (int i = 0; i < argCount; i++)
{
// !! The arguments should be in REVERSED order!!
int actualIndex = argCount - i - 1;
// If need to pass by ref, back propagate
if (byRef != null && byRef[i])
{
args[i] = Marshal.GetObjectForNativeVariant(variantArgArray + s_variantSize * actualIndex);
}
}
}
return result;
}
finally
{
// Free the variant argument array
if (variantArgArray != IntPtr.Zero)
{
for (int i = 0; i < argCount; i++)
{
VariantClear(variantArgArray + s_variantSize * i);
}
Marshal.FreeCoTaskMem(variantArgArray);
}
// Free the dispId array
if (dispIdArray != IntPtr.Zero)
{
Marshal.FreeCoTaskMem(dispIdArray);
}
// Free the temporary variants created when handling by-Ref arguments
if (tmpVariants != IntPtr.Zero)
{
for (int i = 0; i < refCount; i++)
{
VariantClear(tmpVariants + s_variantSize * i);
}
Marshal.FreeCoTaskMem(tmpVariants);
}
}
}
/// <summary>
/// Clear variables of type VARIANTARG (or VARIANT) before the memory containing the VARIANTARG is freed.
/// </summary>
/// <param name="pVariant"></param>
[DllImport("oleaut32.dll")]
internal static extern void VariantClear(IntPtr pVariant);
/// <summary>
/// We have to declare 'bstrSource', 'bstrDescription' and 'bstrHelpFile' as pointers because
/// CLR marshalling layer would try to free those BSTRs by default and that is not correct.
/// Therefore, manually marshalling might be needed to extract 'bstrDescription'.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
internal struct EXCEPINFO
{
public short wCode;
public short wReserved;
public IntPtr bstrSource;
public IntPtr bstrDescription;
public IntPtr bstrHelpFile;
public int dwHelpContext;
public IntPtr pvReserved;
public IntPtr pfnDeferredFillIn;
public int scode;
}
/// <summary>
/// VARIANT type used for passing arguments in COM interop.
/// </summary>
[StructLayout(LayoutKind.Explicit)]
internal struct Variant
{
// Most of the data types in the Variant are carried in _typeUnion
[FieldOffset(0)]
internal TypeUnion _typeUnion;
// Decimal is the largest data type and it needs to use the space that is normally unused in TypeUnion._wReserved1, etc.
// Hence, it is declared to completely overlap with TypeUnion. A Decimal does not use the first two bytes, and so
// TypeUnion._vt can still be used to encode the type.
[FieldOffset(0)]
internal Decimal _decimal;
[StructLayout(LayoutKind.Explicit)]
internal struct TypeUnion
{
[FieldOffset(0)]
internal ushort _vt;
[FieldOffset(2)]
internal ushort _wReserved1;
[FieldOffset(4)]
internal ushort _wReserved2;
[FieldOffset(6)]
internal ushort _wReserved3;
[FieldOffset(8)]
internal UnionTypes _unionTypes;
}
[StructLayout(LayoutKind.Sequential)]
internal struct Record
{
internal IntPtr _record;
internal IntPtr _recordInfo;
}
[StructLayout(LayoutKind.Explicit)]
internal struct UnionTypes
{
[FieldOffset(0)]
internal sbyte _i1;
[FieldOffset(0)]
internal Int16 _i2;
[FieldOffset(0)]
internal Int32 _i4;
[FieldOffset(0)]
internal Int64 _i8;
[FieldOffset(0)]
internal byte _ui1;
[FieldOffset(0)]
internal UInt16 _ui2;
[FieldOffset(0)]
internal UInt32 _ui4;
[FieldOffset(0)]
internal UInt64 _ui8;
[FieldOffset(0)]
internal Int32 _int;
[FieldOffset(0)]
internal UInt32 _uint;
[FieldOffset(0)]
internal Int16 _bool;
[FieldOffset(0)]
internal Int32 _error;
[FieldOffset(0)]
internal Single _r4;
[FieldOffset(0)]
internal double _r8;
[FieldOffset(0)]
internal Int64 _cy;
[FieldOffset(0)]
internal double _date;
[FieldOffset(0)]
internal IntPtr _bstr;
[FieldOffset(0)]
internal IntPtr _unknown;
[FieldOffset(0)]
internal IntPtr _dispatch;
[FieldOffset(0)]
internal IntPtr _pvarVal;
[FieldOffset(0)]
internal IntPtr _byref;
[FieldOffset(0)]
internal Record _record;
}
}
}
}
| JamesWTruher/PowerShell-1 | src/System.Management.Automation/engine/COM/ComInvoker.cs | C# | mit | 18,455 | [
30522,
1013,
1013,
9385,
1006,
1039,
1007,
7513,
3840,
1012,
1013,
1013,
7000,
2104,
1996,
10210,
6105,
1012,
2478,
2291,
1012,
11409,
4160,
1025,
2478,
2291,
1012,
9185,
1025,
2478,
2291,
1012,
2448,
7292,
1012,
6970,
11923,
2121,
7903,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
## Sample :+1:
| eqot/atom-broadcast | spec/fixtures/sample.md | Markdown | mit | 15 | [
30522,
1001,
1001,
7099,
1024,
1009,
1015,
1024,
102,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#!/bin/sh
test_description='signals work as we expect'
. ./test-lib.sh
cat >expect <<EOF
three
two
one
EOF
test_expect_success 'sigchain works' '
test-sigchain >actual
case "$?" in
143) true ;; # POSIX w/ SIGTERM=15
271) true ;; # ksh w/ SIGTERM=15
3) true ;; # Windows
*) false ;;
esac &&
test_cmp expect actual
'
test_expect_success !MINGW 'signals are propagated using shell convention' '
# we use exec here to avoid any sub-shell interpretation
# of the exit code
git config alias.sigterm "!exec test-sigchain" &&
test_expect_code 143 git sigterm
'
large_git () {
for i in $(test_seq 1 100)
do
git diff --cached --binary || return
done
}
test_expect_success 'create blob' '
test-genrandom foo 16384 >file &&
git add file
'
test_expect_success !MINGW 'a constipated git dies with SIGPIPE' '
OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 )
test "$OUT" -eq 141
'
test_expect_success !MINGW 'a constipated git dies with SIGPIPE even if parent ignores it' '
OUT=$( ((trap "" PIPE; large_git; echo $? 1>&3) | :) 3>&1 )
test "$OUT" -eq 141
'
test_done
| hdent/test | t/t0005-signals.sh | Shell | gpl-2.0 | 1,083 | [
30522,
1001,
999,
1013,
8026,
1013,
14021,
3231,
1035,
6412,
1027,
1005,
7755,
2147,
2004,
2057,
5987,
1005,
1012,
1012,
1013,
3231,
1011,
5622,
2497,
1012,
14021,
30524,
2573,
1005,
1005,
3231,
1011,
9033,
18195,
10932,
2078,
1028,
5025,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/****************************************************
Statistics Online Computational Resource (SOCR)
http://www.StatisticsResource.org
All SOCR programs, materials, tools and resources are developed by and freely disseminated to the entire community.
Users may revise, extend, redistribute, modify under the terms of the Lesser GNU General Public License
as published by the Open Source Initiative http://opensource.org/licenses/. All efforts should be made to develop and distribute
factually correct, useful, portable and extensible resource all available in all digital formats for free over the Internet.
SOCR resources are distributed in the hope that they will be useful, but without
any warranty; without any explicit, implicit or implied warranty for merchantability or
fitness for a particular purpose. See the GNU Lesser General Public License for
more details see http://opensource.org/licenses/lgpl-license.php.
http://www.SOCR.ucla.edu
http://wiki.stat.ucla.edu/socr
It s Online, Therefore, It Exists!
****************************************************/
package edu.ucla.stat.SOCR.experiments;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import edu.ucla.stat.SOCR.core.*;
import edu.ucla.stat.SOCR.distributions.*;
import edu.ucla.stat.SOCR.util.*;
/** The basic casino craps game */
public class CrapsExperiment extends Experiment {
//Constants
public final static int PASS = 0, DONTPASS = 1, FIELD = 2, CRAPS = 3,
CRAPS2 = 4, CRAPS3 = 5, CRAPS12 = 6, SEVEN = 7, ELEVEN = 8, BIG6 = 9,
BIG8 = 10, HARDWAY4 = 11, HARDWAY6 = 12, HARDWAY8 = 13, HARDWAY10 = 14;
//Variables
private int x, y, u, v, point1, point2, win, rolls, betType = PASS;
private double[] prob = new double[] { 251.0 / 495, 0, 244.0 / 495 };
//Objects
private JPanel toolbar = new JPanel();
private DiceBoard diceBoard = new DiceBoard(4);
private JComboBox<String> betJComboBox = new JComboBox<>();
private FiniteDistribution dist = new FiniteDistribution(-1, 1, 1, prob);
private RandomVariable profitRV = new RandomVariable(dist, "W");
private RandomVariableGraph profitGraph = new RandomVariableGraph(profitRV);
private RandomVariableTable profitTable = new RandomVariableTable(profitRV);
/** Initialize the experiment */
public CrapsExperiment() {
setName("Craps Experiment");
//Event listeners
betJComboBox.addItemListener(this);
//Bet choice
betJComboBox.addItem("Pass");
betJComboBox.addItem("Don't Pass");
betJComboBox.addItem("Field");
betJComboBox.addItem("Craps");
betJComboBox.addItem("Craps 2");
betJComboBox.addItem("Craps 3");
betJComboBox.addItem("Craps 12");
betJComboBox.addItem("Seven");
betJComboBox.addItem("Eleven");
betJComboBox.addItem("Big 6");
betJComboBox.addItem("Big 8");
betJComboBox.addItem("Hardway 4");
betJComboBox.addItem("Hardway 6");
betJComboBox.addItem("Hardway 8");
betJComboBox.addItem("Hardway 10");
//toolbars
toolbar.setLayout(new FlowLayout(FlowLayout.CENTER));
toolbar.add(betJComboBox);
addToolbar(toolbar);
//Graphs
addGraph(diceBoard);
addGraph(profitGraph);
//Table
addTable(profitTable);
reset();
}
/**
* Perform the experiment: roll the dice, and depending on the bet,
* determine whether to roll the dice a second time. Finally, deterimine the
* outcome of the bet
*/
public void doExperiment() {
super.doExperiment();
rolls = 1;
x = (int) Math.ceil(6 * Math.random());
y = (int) Math.ceil(6 * Math.random());
point1 = x + y;
point2 = 0;
switch (betType) {
case PASS:
if (point1 == 7 | point1 == 11) win = 1;
else if (point1 == 2 | point1 == 3 | point1 == 12) win = -1;
else {
while (point2 != point1 & point2 != 7) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (point2 == point1) win = 1;
else win = -1;
}
break;
case DONTPASS:
if (point1 == 7 | point1 == 11) win = -1;
else if (point1 == 2 | point1 == 3) win = 1;
else if (point1 == 12) win = 0;
else {
while (point2 != point1 & point2 != 7) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (point2 == point1) win = -1;
else win = 1;
}
break;
case FIELD:
if (point1 == 3 | point1 == 4 | point1 == 9 | point1 == 10
| point1 == 11) win = 1;
else if (point1 == 2 | point1 == 12) win = 2;
else win = -1;
break;
case CRAPS:
if (point1 == 2 | point1 == 3 | point1 == 12) win = 7;
else win = -1;
break;
case CRAPS2:
if (point1 == 2) win = 30;
else win = -1;
break;
case CRAPS3:
if (point1 == 3) win = 15;
else win = -1;
break;
case CRAPS12:
if (point1 == 12) win = 30;
else win = -1;
break;
case SEVEN:
if (point1 == 7) win = 4;
else win = -1;
break;
case ELEVEN:
if (point1 == 11) win = 15;
else win = -1;
break;
case BIG6:
if (point1 == 6) win = 1;
else if (point1 == 7) win = -1;
else {
while (point2 != 6 & point2 != 7) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (point2 == 6) win = 1;
else win = -1;
}
break;
case BIG8:
if (point1 == 8) win = 1;
else if (point1 == 7) win = -1;
else {
while (point2 != 8 & point2 != 7) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (point2 == 8) win = 1;
else win = -1;
}
break;
case HARDWAY4:
if (x == 2 & y == 2) win = 7;
else if (point1 == 7 | point1 == 4) win = -1;
else {
while (point2 != 7 & point2 != 4) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (u == 2 & v == 2) win = 7;
else win = -1;
}
break;
case HARDWAY6:
if (x == 3 & y == 3) win = 9;
else if (point1 == 7 | point1 == 6) win = -1;
else {
while (point2 != 7 & point2 != 6) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (u == 3 & v == 3) win = 9;
else win = -1;
}
break;
case HARDWAY8:
if (x == 4 & y == 4) win = 9;
else if (point1 == 7 | point1 == 8) win = -1;
else {
while (point2 != 7 & point2 != 8) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (u == 4 & v == 4) win = 9;
else win = -1;
}
break;
case HARDWAY10:
if (x == 5 & y == 5) win = 7;
else if (point1 == 7 | point1 == 10) win = -1;
else {
while (point2 != 7 & point2 != 10) {
u = (int) Math.ceil(6 * Math.random());
v = (int) Math.ceil(6 * Math.random());
point2 = u + v;
rolls++;
}
if (u == 5 & v == 5) win = 7;
else win = -1;
}
break;
}
profitRV.setValue(win);
}
/**
* This method runs the the experiment one time, and add sounds depending on
* the outcome of the experiment.
*/
public void step() {
doExperiment();
update();
try {
if (win == -1) play("sounds/0.au");
else play("sounds/1.au");
} catch (Exception e) {
;
}
}
//Reset
public void reset() {
super.reset();
diceBoard.showDice(0);
profitRV.reset();
getRecordTable().append("\t(X,Y)\t(U,V)\tN\tW");
profitGraph.reset();
profitTable.reset();
}
//Update
public void update() {
super.update();
String updateText;
diceBoard.getDie(0).setValue(x);
diceBoard.getDie(1).setValue(y);
if (rolls > 1) {
diceBoard.getDie(2).setValue(u);
diceBoard.getDie(3).setValue(v);
diceBoard.showDice(4);
} else diceBoard.showDice(2);
updateText = "\t(" + x + "," + y + ")";
if (rolls > 1) updateText = updateText + "\t(" + u + "," + v + ")";
else updateText = updateText + "\t(*,*)";
updateText = updateText + "\t" + rolls + "\t" + win;
getRecordTable().append(updateText);
profitGraph.repaint();
profitTable.update();
}
public void itemStateChanged(ItemEvent event) {
if (event.getSource() == betJComboBox) {
betType = betJComboBox.getSelectedIndex();
switch (betType) {
case PASS:
prob = new double[3];
prob[0] = 251.0 / 495;
prob[2] = 244.0 / 495;
dist.setParameters(-1, 1, 1, prob);
break;
case DONTPASS:
prob = new double[3];
prob[0] = 244.0 / 495;
prob[1] = 1.0 / 36;
prob[2] = 949.0 / 1980;
dist.setParameters(-1, 1, 1, prob);
break;
case FIELD:
prob = new double[4];
prob[0] = 5.0 / 9;
prob[2] = 7.0 / 18;
prob[3] = 1.0 / 18;
dist.setParameters(-1, 2, 1, prob);
break;
case CRAPS:
prob = new double[9];
prob[0] = 8.0 / 9;
prob[8] = 1.0 / 9;
dist.setParameters(-1, 7, 1, prob);
break;
case CRAPS2:
prob = new double[32];
prob[0] = 35.0 / 36;
prob[31] = 1.0 / 36;
dist.setParameters(-1, 30, 1, prob);
break;
case CRAPS3:
prob = new double[17];
prob[0] = 17.0 / 18;
prob[16] = 1.0 / 18;
dist.setParameters(-1, 15, 1, prob);
break;
case CRAPS12:
prob = new double[32];
prob[0] = 35.0 / 36;
prob[31] = 1.0 / 36;
dist.setParameters(-1, 30, 1, prob);
break;
case SEVEN:
prob = new double[6];
prob[0] = 5.0 / 6;
prob[5] = 1.0 / 6;
dist.setParameters(-1, 4, 1, prob);
break;
case ELEVEN:
prob = new double[17];
prob[0] = 17.0 / 18;
prob[16] = 1.0 / 18;
dist.setParameters(-1, 15, 1, prob);
break;
case BIG6:
prob = new double[3];
prob[0] = 6.0 / 11;
prob[2] = 5.0 / 11;
dist.setParameters(-1, 1, 1, prob);
break;
case BIG8:
prob = new double[3];
prob[0] = 6.0 / 11;
prob[2] = 5.0 / 11;
dist.setParameters(-1, 1, 1, prob);
break;
case HARDWAY4:
prob = new double[9];
prob[0] = 8.0 / 9;
prob[8] = 1.0 / 9;
dist.setParameters(-1, 7, 1, prob);
break;
case HARDWAY6:
prob = new double[11];
prob[0] = 10. / 11;
prob[10] = 1.0 / 11;
dist.setParameters(-1, 9, 1, prob);
break;
case HARDWAY8:
prob = new double[11];
prob[0] = 10. / 11;
prob[10] = 1.0 / 11;
dist.setParameters(-1, 9, 1, prob);
break;
case HARDWAY10:
prob = new double[9];
prob[0] = 8.0 / 9;
prob[8] = 1.0 / 9;
dist.setParameters(-1, 7, 1, prob);
break;
}
reset();
} else super.itemStateChanged(event);
}
}
| SOCR/HTML5_WebSite | SOCR2.8/src/edu/ucla/stat/SOCR/experiments/CrapsExperiment.java | Java | lgpl-3.0 | 14,111 | [
30522,
1013,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package TableModel;
/**
*
* @author megalexandre
*/
public class ContaHidrometroTableModel {
}
| AlexandrebQueiroz/acal | src/TableModel/ContaHidrometroTableModel.java | Java | apache-2.0 | 305 | [
30522,
1013,
1008,
1008,
2000,
2689,
2023,
6105,
20346,
1010,
5454,
6105,
20346,
2015,
1999,
2622,
5144,
1012,
1008,
2000,
2689,
2023,
23561,
5371,
1010,
5454,
5906,
1064,
23561,
2015,
1008,
1998,
2330,
1996,
23561,
1999,
1996,
3559,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#-*- encoding: utf-8 -*-
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response, RequestContext, render
from membro_profile.forms import MembroForm, MembroProfileForm, EditProfileForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from membro_profile.models import MembroProfile
from submissao.models import Submissao
def some_view(request):
if not request.user.is_authenticated():
return HttpResponse("You are logged in.")
else:
return HttpResponse("You are not logged in.")
# Create your views here.
def register(request):
context = RequestContext(request)
registered = False
if request.method == 'POST':
membro_form = MembroForm(data=request.POST)
membro_profile_form = MembroProfileForm(data=request.POST)
if membro_form.is_valid() and membro_profile_form.is_valid():
membro = membro_form.save()
membro.set_password(membro.password)
membro.save()
membro_profile = membro_profile_form.save(commit=False)
membro_profile.user = membro
if 'avatar' in request.FILES:
membro_profile.picture = request.FILES['avatar']
membro_profile.save()
registered = True
else:
print (membro_form.errors, membro_profile_form.errors)
else:
membro_form = MembroForm()
membro_profile_form = MembroProfileForm()
return render_to_response(
'profile/register.html',
# {'membro_form': membro_form, 'registered': registered},
{'membro_form': membro_form, 'membro_profile_form': membro_profile_form, 'registered': registered},
context)
def membro_login(request):
context = RequestContext(request)
if request.method == 'POST':
username = request.POST['username']
password = request.POST['password']
membro = authenticate(username=username,password=password)
if membro:
if membro.is_active:
login(request, membro)
return HttpResponseRedirect('/')
else:
return HttpResponse('Sua conta ainda não foi liberada.')
else:
print ("Login e senha invalidos: {0}, {1}".format(username, password))
return HttpResponse("Login ou Senha, Invalidos")
else:
# return render_to_response('profile/404.html', {}, context)
return render_to_response('profile/login.html', {}, context)
@login_required
def user_logout(request):
# Since we know the user is logged in, we can now just log them out.
logout(request)
# Take the user back to the homepage.
return HttpResponseRedirect('/')
@login_required
def profile(request):
context = RequestContext(request)
print (context)
usuario = User.objects.get(username=request.user)
membro = MembroProfile.objects.get(user=usuario)
if membro:
return render_to_response('profile/profile.html', {'m':membro}, context)
else:
return HttpResponse('Inscrição não encontrado')
@login_required
def edit_profile(request):
membro = request.user
form = EditProfileForm(
request.POST or None,
initial={
'first_name': membro.first_name,
'last_name': membro.last_name,
'cpf': membro.membroprofile.cpf,
}
)
if form.is_valid():
membro.first_name = request.POST['first_name']
membro.last_name = request.POST['last_name']
membro.cpf = request.POST['cpf']
membro.save()
return HttpResponseRedirect('%s'%(reverse('profile')))
context = {
"form": form
}
return render(request, 'profile/editar.html', context)
#from submissao.models import Submissao
def index(request):
context = RequestContext(request)
print (str(request.user) == 'AnonymousUser')
if str(request.user) == 'AnonymousUser':
return render_to_response('profile/login.html', context)
else:
queryset = Submissao.objects.filter(autor_id=request.user.membroprofile.id or None)
if request.user.is_authenticated():
membro = MembroProfile.objects.filter(user__username=request.user).latest('user').user
context["membro"] = membro
context['lista_resumos'] = queryset
return render_to_response('profile/index.html', context)
else:
return render_to_response('profile/login.html', context) | pixies/academic | membro_profile/views.py | Python | gpl-3.0 | 4,644 | [
30522,
1001,
1011,
1008,
1011,
17181,
1024,
21183,
2546,
1011,
1022,
1011,
1008,
1011,
2013,
6520,
23422,
1012,
9530,
18886,
2497,
1012,
8740,
2705,
12324,
14469,
3686,
1010,
8833,
2378,
1010,
8154,
4904,
2013,
6520,
23422,
1012,
8299,
1232... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
jsonp({"cep":"44022182","logradouro":"Rua Marqu\u00eas de Pombal","bairro":"Cruzeiro","cidade":"Feira de Santana","uf":"BA","estado":"Bahia"});
| lfreneda/cepdb | api/v1/44022182.jsonp.js | JavaScript | cc0-1.0 | 144 | [
30522,
1046,
3385,
2361,
1006,
1063,
1000,
8292,
2361,
1000,
1024,
1000,
17422,
19317,
15136,
2475,
1000,
1010,
1000,
8833,
12173,
8162,
2080,
1000,
1024,
1000,
21766,
2050,
9388,
28940,
1032,
1057,
8889,
5243,
2015,
2139,
13433,
11201,
214... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//>>built
define({"dgrid/extensions/nls/columnHider":{popupTriggerLabel:"Show or hide columns",popupLabel:"Vis eller skjul kolonner",_localized:{}},"widgets/AttributeTable/nls/strings":{_widgetLabel:"Attributtabel",ok:"OK",cancel:"Annuller",unsupportQueryWarning:"Laget skal underst\u00f8tte, at foresp\u00f8rgsler bliver vist i attributtabel-widget. Kontroll\u00e9r, at foresp\u00f8rgselsfunktionen er aktiveret i tjenesten.",exportMessage:"Skal dataene eksporteres til en CSV-fil?",exportFiles:"Eksport\u00e9r til CSV",
options:"Indstillinger",zoomto:"Zoom til",highlight:"Fremh\u00e6v grafik",selectAll:"Mark\u00e9r poster p\u00e5 alle sider",selectPage:"Mark\u00e9r poster p\u00e5 den aktuelle side",clearSelection:"Ryd markering",filter:"Filtr\u00e9r",setFilterTip:"Angiv filteret korrekt.",noFilterTip:"Defineres der ikke et filterudtryk, viser denne foresp\u00f8rgsel alle objekter i den angivne datakilde.",filterByExtent:"Filtr\u00e9r efter kortudstr\u00e6kning",showSelectedRecords:"Vis udvalgte poster",showRelatedRecords:"Vis relaterede poster",
noRelatedRecords:"Ingen relaterede poster",refresh:"Opdat\u00e9r",features:"objekter",selected:"valgt",transparent:"Transparent tilstand",indicate:"Valg af landeindstillinger",columns:"Vis/Skjul kolonner",selectionSymbol:"Markeringssymbol",closeMessage:"Skjul tabel [Vis den igen nedefra]",dataNotAvailable:"Dataene er ikke tilg\u00e6ngelige!\x3cbr\x3eKlik p\u00e5 knappen [Opdater] for at pr\u00f8ve igen",openTableTip:"\u00c5bn attributtabel",closeTableTip:"Skjul attributtabel",_localized:{}}}); | pjdohertygis/MapSAROnline | Web Mapping Application/widgets/AttributeTable/nls/Widget_da.js | JavaScript | cc0-1.0 | 1,556 | [
30522,
1013,
1013,
1028,
1028,
2328,
9375,
1006,
1063,
1000,
1040,
16523,
3593,
1013,
14305,
1013,
17953,
2015,
1013,
5930,
26100,
2099,
1000,
1024,
1063,
3769,
29441,
3089,
13327,
20470,
2884,
1024,
1000,
2265,
2030,
5342,
7753,
1000,
1010... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package modelo;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
* @author Deivis
*/
public class Cotacao {
private int id;
private Date data;
private Double valor;
private TipoMoeda tipoMoeda;
public TipoMoeda getTipoMoeda() {
return tipoMoeda;
}
public void setTipoMoeda(TipoMoeda tipoMoeda) {
this.tipoMoeda = tipoMoeda;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Date getData() {
return data;
}
public String getDataString() {
if (this.data != null) {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
return df.format(this.data);
} else {
return null;
}
}
public String getDataStringBr() {
if (this.data != null) {
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
return df.format(this.data);
} else {
return null;
}
}
public void setData(String data) throws ParseException {
if (!"".equals(data)) {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
this.data = df.parse(data);
} else {
this.data = null;
}
}
public void setDataBr(String data) throws ParseException {
if (!"".equals(data)) {
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
this.data = df.parse(data);
} else {
this.data = null;
}
}
public void setDataString(String data) throws ParseException {
if (!"".equals(data)) {
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
this.data = df.parse(data);
} else {
this.data = null;
}
}
public Double getValor() {
return valor;
}
public String getValorString() {
return valor.toString();
}
public void setValor(String valor) {
if (!"".equals(valor)) {
this.valor = Double.parseDouble(valor.replace(",", "."));
} else {
this.valor = null;
}
}
}
| deivisvieira/PosJava | src/java/modelo/Cotacao.java | Java | mit | 2,527 | [
30522,
1013,
1008,
1008,
2000,
2689,
2023,
6105,
20346,
1010,
5454,
6105,
20346,
2015,
1999,
2622,
5144,
1012,
1008,
2000,
2689,
2023,
23561,
5371,
1010,
5454,
5906,
1064,
23561,
2015,
1008,
1998,
2330,
1996,
23561,
1999,
1996,
3559,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.dft.cordova.plugin.onyx;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaInterface;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;
import android.util.Log;
import org.apache.cordova.PluginResult;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.opencv.android.Utils;
import org.opencv.core.Mat;
import org.opencv.imgproc.Imgproc;
import com.dft.onyx.FingerprintTemplate;
public class OnyxPlugin extends CordovaPlugin implements OnyxMatch.MatchResultCallback {
public static final String TAG = "OnyxPlugin";
public static final String IMAGE_URI_PREFIX = "data:image/jpeg;base64,";
public static String mPackageName;
public static CallbackContext mCallbackContext;
public static PluginResult mPluginResult;
private Activity mActivity;
private Context mContext;
public static JSONObject mArgs;
private static String mExecuteAction;
public static PluginAction mPluginAction;
public enum PluginAction {
CAPTURE("capture"),
MATCH("match");
private final String key;
PluginAction(String key) {
this.key = key;
}
public String getKey() {
return this.key;
}
}
public enum OnyxConfig {
ONYX_LICENSE("onyxLicense"),
RETURN_RAW_IMAGE("returnRawImage"),
RETURN_PROCESSED_IMAGE("returnProcessedImage"),
RETURN_ENHANCED_IMAGE("returnEnhancedImage"),
RETURN_WSQ("returnWSQ"),
RETURN_FINGERPRINT_TEMPLATE("returnFingerprintTemplate"),
SHOULD_CONVERT_TO_ISO_TEMPLATE("shouldConvertToISOTemplate"),
COMPUTE_NFIQ_METRICS("computeNfiqMetrics"),
CROP_SIZE("cropSize"),
CROP_SIZE_WIDTH("width"),
CROP_SIZE_HEIGHT("height"),
CROP_FACTOR("cropFactor"),
SHOW_LOADING_SPINNER("showLoadingSpinner"),
USE_MANUAL_CAPTURE("useManualCapture"),
USE_ONYX_LIVE("useOnyxLive"),
USE_FLASH("useFlash"),
RETICLE_ORIENTATION("reticleOrientation"),
RETICLE_ORIENTATION_LEFT("LEFT"),
RETICLE_ORIENTATION_RIGHT("RIGHT"),
RETICLE_ORIENTATION_THUMB_PORTRAIT("THUMB_PORTRAIT"),
BACKGROUND_COLOR_HEX_STRING("backgroundColorHexString"),
SHOW_BACK_BUTTON("showBackButton"),
SHOW_MANUAL_CAPTURE_TEXT("showManualCaptureText"),
MANUAL_CAPTURE_TEXT("manualCaptureText"),
BACK_BUTTON_TEXT("backButtonText"),
REFERENCE("reference"),
PROBE("probe"),
PYRAMID_SCALES("pyramidScales");
private final String key;
OnyxConfig(String key) {
this.key = key;
}
public String getKey() {
return this.key;
}
}
/**
* Constructor
*/
public OnyxPlugin() {
}
/**
* Sets the context of the Command. This can then be used to do things like
* get file paths associated with the Activity.
*
* @param cordova The context of the main Activity.
* @param webView The CordovaWebView Cordova is running in.
*/
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
super.initialize(cordova, webView);
Log.v(TAG, "Init Onyx");
mPackageName = cordova.getActivity().getApplicationContext().getPackageName();
mPluginResult = new PluginResult(PluginResult.Status.NO_RESULT);
mActivity = cordova.getActivity();
mContext = cordova.getActivity().getApplicationContext();
}
/**
* Executes the request and returns PluginResult.
*
* @param action The action to execute.
* @param args JSONArry of arguments for the plugin.
* @param callbackContext The callback id used when calling back into JavaScript.
* @return A PluginResult object with a status and message.
*/
public boolean execute(final String action,
JSONArray args,
CallbackContext callbackContext) throws JSONException {
mCallbackContext = callbackContext;
Log.v(TAG, "OnyxPlugin action: " + action);
mExecuteAction = action;
mArgs = args.getJSONObject(0);
if (!mArgs.has("onyxLicense") || !mArgs.has("action")) {
mPluginResult = new PluginResult(PluginResult.Status.ERROR);
mCallbackContext.error("Missing required parameters");
mCallbackContext.sendPluginResult(mPluginResult);
return true;
}
if (action.equalsIgnoreCase(PluginAction.MATCH.getKey())) {
mPluginAction = PluginAction.MATCH;
} else if (action.equalsIgnoreCase(PluginAction.CAPTURE.getKey())) {
mPluginAction = PluginAction.CAPTURE;
}
if (null != mPluginAction) {
switch (mPluginAction) {
case MATCH:
doMatch();
break;
case CAPTURE:
launchOnyx();
break;
}
} else {
onError("Invalid plugin action.");
}
return true;
}
public static void onFinished(int resultCode, JSONObject result) {
if (resultCode == Activity.RESULT_OK) {
mPluginResult = new PluginResult(PluginResult.Status.OK);
try {
result.put("action", mExecuteAction);
} catch (JSONException e) {
String errorMessage = "Failed to set JSON key value pair: " + e.getMessage();
mCallbackContext.error(errorMessage);
mPluginResult = new PluginResult(PluginResult.Status.ERROR);
}
mCallbackContext.success(result);
} else if (resultCode == Activity.RESULT_CANCELED) {
mPluginResult = new PluginResult(PluginResult.Status.ERROR);
mCallbackContext.error("Cancelled");
}
mCallbackContext.sendPluginResult(mPluginResult);
}
private void keepCordovaCallback() {
mPluginResult = new PluginResult(PluginResult.Status.NO_RESULT);
mPluginResult.setKeepCallback(true);
mCallbackContext.sendPluginResult(mPluginResult);
}
public static void onError(String errorMessage) {
Log.e(TAG, errorMessage);
mCallbackContext.error(errorMessage);
mPluginResult = new PluginResult(PluginResult.Status.ERROR);
mCallbackContext.sendPluginResult(mPluginResult);
}
private void launchOnyx() {
mActivity.runOnUiThread(new Runnable() {
public void run() {
Intent onyxIntent = new Intent(mContext, OnyxActivity.class);
onyxIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(onyxIntent);
}
});
keepCordovaCallback();
}
private void doMatch() throws JSONException {
// Get values for JSON keys
String encodedReference = mArgs.getString(OnyxConfig.REFERENCE.getKey());
String encodedProbe = mArgs.getString(OnyxConfig.PROBE.getKey());
JSONArray scalesJSONArray = null;
if (mArgs.has(OnyxConfig.PYRAMID_SCALES.getKey())) {
scalesJSONArray = mArgs.getJSONArray(OnyxConfig.PYRAMID_SCALES.getKey());
}
// Decode reference fingerprint template data
byte[] referenceBytes = Base64.decode(encodedReference, 0);
// Get encoded probe processed fingerprint image data from image URI
String encodedProbeDataString = encodedProbe.substring(IMAGE_URI_PREFIX.length(), encodedProbe.length());
// Decode probe probe image data
byte[] probeBytes = Base64.decode(encodedProbeDataString, 0);
// Create a bitmap from the probe bytes
Bitmap probeBitmap = BitmapFactory.decodeByteArray(probeBytes, 0, probeBytes.length);
// Create a mat from the bitmap
Mat matProbe = new Mat();
Utils.bitmapToMat(probeBitmap, matProbe);
Imgproc.cvtColor(matProbe, matProbe, Imgproc.COLOR_RGB2GRAY);
// Create reference fingerprint template from bytes
FingerprintTemplate ftRef = new FingerprintTemplate(referenceBytes, 0);
// Convert pyramid scales from JSON array to double array
double[] argsScales = null;
if (null != scalesJSONArray && scalesJSONArray.length() > 0) {
argsScales = new double[scalesJSONArray.length()];
for (int i = 0; i < argsScales.length; i++) {
argsScales[i] = Double.parseDouble(scalesJSONArray.optString(i));
}
}
final double[] pyramidScales = argsScales;
OnyxMatch matchTask = new OnyxMatch(mContext, OnyxPlugin.this);
matchTask.execute(ftRef, matProbe, pyramidScales);
}
@Override
public void onMatchFinished(boolean match, float score) {
JSONObject result = new JSONObject();
String errorMessage = null;
try {
result.put("isVerified", match);
result.put("matchScore", score);
} catch (JSONException e) {
errorMessage = "Failed to set JSON key value pair: " + e.toString();
}
if (null != errorMessage) {
Log.e(TAG, errorMessage);
onError(errorMessage);
} else {
onFinished(Activity.RESULT_OK, result);
}
}
}
| DFTinc/cordova-plugin-onyx | src/android/OnyxPlugin.java | Java | apache-2.0 | 9,623 | [
30522,
7427,
4012,
1012,
1040,
6199,
1012,
11601,
7103,
1012,
13354,
2378,
1012,
2006,
17275,
1025,
12324,
8917,
1012,
15895,
1012,
11601,
7103,
1012,
11601,
7103,
8545,
2497,
8584,
1025,
12324,
8917,
1012,
15895,
1012,
11601,
7103,
1012,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
#ifndef NT2_LINALG_INCLUDE_FUNCTIONS_SCALAR_GELS_HPP_INCLUDED
#define NT2_LINALG_INCLUDE_FUNCTIONS_SCALAR_GELS_HPP_INCLUDED
#include <nt2/linalg/functions/gels.hpp>
#endif
| hainm/pythran | third_party/nt2/linalg/include/functions/scalar/gels.hpp | C++ | bsd-3-clause | 174 | [
30522,
1001,
2065,
13629,
2546,
23961,
2475,
1035,
27022,
2140,
2290,
1035,
2421,
1035,
4972,
1035,
26743,
2099,
1035,
21500,
2015,
1035,
6522,
2361,
1035,
2443,
1001,
9375,
23961,
2475,
1035,
27022,
2140,
2290,
1035,
2421,
1035,
4972,
1035... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '',''))
import numpy as np
#from skgraph import datasets
from sklearn import svm
#from skgraph.ioskgraph import *
from math import sqrt
import sys
from sklearn.metrics import roc_auc_score
#"sys.path.append('..\\..\\Multiple Kernel Learning\\Framework')"
if len(sys.argv)<4:
sys.exit("python cross_validation_from_matrix_norm.py inputMatrix.libsvm C outfile")
c=float(sys.argv[2])
##TODO read from libsvm format
from sklearn.datasets import load_svmlight_file
km, target_array = load_svmlight_file(sys.argv[1])
#print km
#tolgo indice
kmgood=km[:,1:].todense()
gram=km[:,1:].todense()
for i in xrange(len(target_array)):
for j in xrange(0,len(target_array)):
#AUC cross validationprint i,j,kmgood[i,j],kmgood[i,i],kmgood[j,j]
gram[i,j]=kmgood[i,j]/sqrt(kmgood[i,i]*kmgood[j,j])
#print gram
from sklearn import cross_validation
for rs in range(42,53):
f=open(str(sys.argv[3]+".seed"+str(rs)+".c"+str(c)),'w')
kf = cross_validation.StratifiedKFold(target_array, n_folds=10, shuffle=True,random_state=rs)
#print kf
#remove column zero because
#first entry of each line is the index
#gram=km[:,1:].todense()
f.write("Total examples "+str(len(gram))+"\n")
f.write("CV\t test_AUROC\n")
#print gram
# normalization
#for i in range(len(gram)):
# for j in range(len(gram)):
# gram[i,j]=gram[i,j]/sqrt(gram[i,i]+gram[j,j])
sc=[]
for train_index, test_index in kf:
#print("TRAIN:", train_index, "TEST:", test_index)
#generated train and test lists, incuding indices of the examples in training/test
#for the specific fold. Indices starts from 0 now
clf = svm.SVC(C=c, kernel='precomputed',probability=True)
train_gram = [] #[[] for x in xrange(0,len(train))]
test_gram = []# [[] for x in xrange(0,len(test))]
#generate train matrix and test matrix
index=-1
for row in gram:
index+=1
if index in train_index:
train_gram.append([gram[index,i] for i in train_index])
else:
test_gram.append([gram[index,i] for i in train_index])
#print gram
X_train, X_test, y_train, y_test = np.array(train_gram), np.array(test_gram), target_array[train_index], target_array[test_index]
#COMPUTE INNERKFOLD
kf = cross_validation.StratifiedKFold(y_train, n_folds=10, shuffle=True,random_state=rs)
inner_scores= cross_validation.cross_val_score(
clf, X_train, y_train, cv=kf, scoring='roc_auc')
#print "inner scores", inner_scores
print "Inner AUROC: %0.4f (+/- %0.4f)" % (inner_scores.mean(), inner_scores.std() / 2)
f.write(str(inner_scores.mean())+"\t")
clf.fit(X_train, y_train)
# predict on test examples
y_test_predicted=clf.predict_proba(X_test)
#print y_test_predicted
sc.append(roc_auc_score(y_test, y_test_predicted[:,1]))
f.write(str(roc_auc_score(y_test, y_test_predicted[:,1]))+"\n")
f.close()
scores=np.array(sc)
print "AUROC: %0.4f (+/- %0.4f)" % (scores.mean(), scores.std() / 2)
| nickgentoo/scikit-learn-graph | scripts/cross_validation_from_matrix_AUC_norm.py | Python | gpl-3.0 | 3,283 | [
30522,
12324,
25353,
2015,
1010,
9808,
25353,
2015,
1012,
4130,
1012,
10439,
10497,
1006,
9808,
1012,
4130,
1012,
3693,
1006,
9808,
1012,
4130,
1012,
16101,
18442,
1006,
1035,
1035,
5371,
1035,
1035,
1007,
1010,
1005,
1012,
1012,
1005,
1010... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace RepertoryGridGUI.ufos
{
public partial class ufoConstructAlternative : Form
{
public ufoConstructAlternative()
{
InitializeComponent();
}
}
}
| felixlindemann/RepertoryGrid | RepertoryGrid/RepertoryGridGUI/ufos/ufoConstructAlternative.cs | C# | mit | 407 | [
30522,
2478,
2291,
1025,
2478,
2291,
1012,
6407,
1012,
12391,
1025,
2478,
2291,
1012,
6922,
5302,
9247,
1025,
2478,
2291,
1012,
2951,
1025,
2478,
2291,
1012,
5059,
1025,
2478,
2291,
1012,
11409,
4160,
1025,
2478,
2291,
1012,
3793,
1025,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
jsonp({"cep":"56509130","logradouro":"Rua Jos\u00e9 Fernando Rouse","bairro":"S\u00e3o Miguel","cidade":"Arcoverde","uf":"PE","estado":"Pernambuco"});
| lfreneda/cepdb | api/v1/56509130.jsonp.js | JavaScript | cc0-1.0 | 151 | [
30522,
1046,
3385,
2361,
1006,
1063,
1000,
8292,
2361,
1000,
1024,
1000,
5179,
12376,
2683,
17134,
2692,
1000,
1010,
1000,
8833,
12173,
8162,
2080,
1000,
1024,
1000,
21766,
2050,
8183,
2015,
1032,
1057,
8889,
2063,
2683,
9158,
27384,
1000,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
var debugProtocol = require('debug')('node-inspector:protocol:devtools');
var RuntimeAgent = require('./RuntimeAgent').RuntimeAgent,
PageAgent = require('./PageAgent').PageAgent,
NetworkAgent = require('./NetworkAgent').NetworkAgent,
DebuggerAgent = require('./DebuggerAgent').DebuggerAgent,
ProfilerAgent = require('./ProfilerAgent').ProfilerAgent;
/**
* @param {Object} config
* @param {FrontendClient} frontendClient
* @param {DebuggerClient} debuggerClient
* @param {BreakEventHandler} breakEventHandler
* @param {ScriptManager} scriptManager
* @param {InjectorClient} injectorClient
*/
function FrontendCommandHandler(config,
frontendClient,
debuggerClient,
breakEventHandler,
scriptManager,
injectorClient) {
this._config = config;
this._agents = {};
this._specialCommands = {};
this._frontendClient = frontendClient;
this._debuggerClient = debuggerClient;
this._breakEventHandler = breakEventHandler;
this._scriptManager = scriptManager;
this._injectorClient = injectorClient;
this._initializeRegistry();
this._registerEventHandlers();
this._pauseInitialEvents();
}
FrontendCommandHandler.prototype = {
_initializeRegistry: function() {
this._registerAgent(
'Debugger',
new DebuggerAgent(
this._config,
this._frontendClient,
this._debuggerClient,
this._breakEventHandler,
this._scriptManager,
this._injectorClient)
);
this._registerAgent('Runtime', new RuntimeAgent(this._config, this._debuggerClient));
this._registerAgent(
'Page',
new PageAgent(
this._config,
this._debuggerClient,
this._scriptManager)
);
this._registerAgent('Network', new NetworkAgent());
this._registerAgent(
'Profiler',
new ProfilerAgent(
this._config,
this._debuggerClient,
this._injectorClient,
this._frontendClient)
);
//TODO(3y3):
// Remove next from noop before closing #341:
// - DOMDebugger.setXHRBreakpoint
// - DOMDebugger.removeXHRBreakpoint
this._registerNoopCommands(
'Network.enable',
'Network.setCacheDisabled',
'Console.enable',
'Console.clearMessages',
'Console.setMonitoringXHREnabled',
'Database.enable',
'DOMDebugger.setXHRBreakpoint',
'DOMDebugger.removeXHRBreakpoint',
'DOMDebugger.setInstrumentationBreakpoint',
'DOMDebugger.removeInstrumentationBreakpoint',
'DOMStorage.enable',
'DOM.hideHighlight',
'Inspector.enable',
'Page.addScriptToEvaluateOnLoad',
'Page.removeScriptToEvaluateOnLoad',
'Page.setDeviceOrientationOverride',
'Page.clearDeviceOrientationOverride',
'Page.setGeolocationOverride',
'Page.clearGeolocationOverride',
'Page.setContinuousPaintingEnabled',
'Page.setEmulatedMedia',
'Page.setDeviceMetricsOverride',
'Page.setScriptExecutionDisabled',
'Page.setShowDebugBorders',
'Page.setShowFPSCounter',
'Page.setShowScrollBottleneckRects',
'Page.setShowViewportSizeOnResize',
'Page.setShowPaintRects',
'Page.setForceCompositingMode',
'Profiler.enable',
'CSS.enable',
'HeapProfiler.getProfileHeaders'
);
this._registerQuery('CSS.getSupportedCSSProperties', { cssProperties: []});
this._registerQuery('Worker.canInspectWorkers', { result: false });
this._registerQuery('Page.getScriptExecutionStatus', { result: 'enabled' });
},
_registerAgent: function(name, agent) {
this._agents[name] = agent;
},
_registerNoopCommands: function() {
var i, fullMethodName;
for (i = 0; i < arguments.length; i++) {
fullMethodName = arguments[i];
this._specialCommands[fullMethodName] = {};
}
},
_registerQuery: function(fullMethodName, result) {
this._specialCommands[fullMethodName] = { result: result };
},
_registerEventHandlers: function() {
this._frontendClient.on(
'message',
this._handleFrontendMessage.bind(this));
},
_handleFrontendMessage: function(message) {
debugProtocol('frontend: ' + message);
var command = JSON.parse(message);
this.handleCommand(command);
},
_pauseInitialEvents: function() {
this._frontendClient.pauseEvents();
this._agents.Page.on('resource-tree', function() {
this._frontendClient.resumeEvents();
}.bind(this));
},
handleCommand: function(messageObject) {
var fullMethodName = messageObject.method,
domainAndMethod = fullMethodName.split('.'),
domainName = domainAndMethod[0],
methodName = domainAndMethod[1],
requestId = messageObject.id,
agent,
method;
if (this._specialCommands[fullMethodName]) {
this._handleMethodResult(
requestId,
fullMethodName,
null,
this._specialCommands[fullMethodName].result);
return;
}
agent = this._agents[domainName];
if (!agent) {
this._sendNotImplementedResponse(requestId, fullMethodName);
return;
}
method = agent[methodName];
if (!method || typeof method !== 'function') {
this._sendNotImplementedResponse(requestId, fullMethodName);
return;
}
method.call(agent, messageObject.params, function(error, result) {
this._handleMethodResult(messageObject.id, fullMethodName, error, result);
}.bind(this));
},
_sendNotImplementedResponse: function(requestId, fullMethodName) {
console.log(
'Received request for a method not implemented:',
fullMethodName
);
this._handleMethodResult(
requestId,
fullMethodName,
new Error('Not implemented.')
);
},
_handleMethodResult: function(requestId, fullMethodName, error, result) {
var response;
if (!requestId) {
if (response !== undefined)
console.log('Warning: discarded result of ' + fullMethodName);
return;
}
this._frontendClient.sendResponse(requestId, fullMethodName, error, result);
}
};
exports.FrontendCommandHandler = FrontendCommandHandler;
| charany1/node-inspector | lib/FrontendCommandHandler.js | JavaScript | bsd-2-clause | 6,245 | [
30522,
13075,
2139,
8569,
21600,
21709,
24163,
2140,
1027,
5478,
1006,
1005,
2139,
8569,
2290,
1005,
1007,
1006,
1005,
13045,
1011,
7742,
1024,
8778,
1024,
16475,
3406,
27896,
1005,
1007,
1025,
13075,
2448,
7292,
4270,
3372,
1027,
5478,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html>
<html lang="en" ng-app="AngStarter">
<head>
<meta charset="UTF-8">
<title>Ejemplo aplicacion pequeña ddr.</title>
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<h1>Ejemplo peticiones al servidor</h1>
<div class="container" ng-controller="UsersCtrl">
<div ng-repeat="usuario in usuarios">
<h3>Usuario</h3>
<p>Nombre: {{ usuario.nombre }}</p>
<p>apellidos: {{ usuario.apellidos }}</p>
<p>email: {{ usuario.email }}</p>
<h4>Lenguajes</h4>
<div ng-repeat="lenguaje in usuario.lenguajes">
<ul><li>{{ lenguaje }} </li></ul>
</div>
<hr>
</div>
</div>
<!-- Bower components includes -->
<script src="bower_components/angular/angular.js"></script>
<!-- Application definition -->
<script src="js/app.js"></script>
<!-- Application Services -->
<!-- Application Decorators -->
<!-- Application Configurations -->
<script src="js/Config/ResponseInterceptor.js"></script>
<script src="js/Config/HTTP.js"></script>
<!-- Application Controllers -->
<script src="js/Controllers/UsersCtrl.js"></script>
</body>
</html> | diegoldiazr/angular-aprendiendo-1 | app/pag59.html | HTML | mit | 1,275 | [
30522,
1026,
999,
9986,
13874,
16129,
1028,
1026,
16129,
11374,
1027,
1000,
4372,
1000,
12835,
1011,
10439,
1027,
1000,
17076,
14117,
3334,
1000,
1028,
1026,
2132,
1028,
1026,
18804,
25869,
13462,
1027,
1000,
21183,
2546,
1011,
1022,
1000,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.common.time;
import org.apache.logging.log4j.LogManager;
import org.elasticsearch.common.logging.DeprecationLogger;
import org.joda.time.DateTimeZone;
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import static java.util.Map.entry;
import static org.elasticsearch.common.time.DateUtilsRounding.getMonthOfYear;
import static org.elasticsearch.common.time.DateUtilsRounding.getTotalMillisByYearMonth;
import static org.elasticsearch.common.time.DateUtilsRounding.getYear;
import static org.elasticsearch.common.time.DateUtilsRounding.utcMillisAtStartOfYear;
public class DateUtils {
public static DateTimeZone zoneIdToDateTimeZone(ZoneId zoneId) {
if (zoneId == null) {
return null;
}
if (zoneId instanceof ZoneOffset) {
// the id for zoneoffset is not ISO compatible, so cannot be read by ZoneId.of
return DateTimeZone.forOffsetMillis(((ZoneOffset)zoneId).getTotalSeconds() * 1000);
}
return DateTimeZone.forID(zoneId.getId());
}
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(LogManager.getLogger(DateFormatters.class));
// pkg private for tests
static final Map<String, String> DEPRECATED_SHORT_TIMEZONES;
public static final Set<String> DEPRECATED_SHORT_TZ_IDS;
static {
Map<String, String> tzs = new HashMap<>();
tzs.put("EST", "-05:00"); // eastern time without daylight savings
tzs.put("HST", "-10:00");
tzs.put("MST", "-07:00");
tzs.put("ROC", "Asia/Taipei");
tzs.put("Eire", "Europe/London");
DEPRECATED_SHORT_TIMEZONES = Collections.unmodifiableMap(tzs);
DEPRECATED_SHORT_TZ_IDS = tzs.keySet();
}
// Map of deprecated timezones and their recommended new counterpart
public static final Map<String, String> DEPRECATED_LONG_TIMEZONES = Map.ofEntries(
entry("Africa/Asmera", "Africa/Nairobi"),
entry("Africa/Timbuktu", "Africa/Abidjan"),
entry("America/Argentina/ComodRivadavia", "America/Argentina/Catamarca"),
entry("America/Atka", "America/Adak"),
entry("America/Buenos_Aires", "America/Argentina/Buenos_Aires"),
entry("America/Catamarca", "America/Argentina/Catamarca"),
entry("America/Coral_Harbour", "America/Atikokan"),
entry("America/Cordoba", "America/Argentina/Cordoba"),
entry("America/Ensenada", "America/Tijuana"),
entry("America/Fort_Wayne", "America/Indiana/Indianapolis"),
entry("America/Indianapolis", "America/Indiana/Indianapolis"),
entry("America/Jujuy", "America/Argentina/Jujuy"),
entry("America/Knox_IN", "America/Indiana/Knox"),
entry("America/Louisville", "America/Kentucky/Louisville"),
entry("America/Mendoza", "America/Argentina/Mendoza"),
entry("America/Montreal", "America/Toronto"),
entry("America/Porto_Acre", "America/Rio_Branco"),
entry("America/Rosario", "America/Argentina/Cordoba"),
entry("America/Santa_Isabel", "America/Tijuana"),
entry("America/Shiprock", "America/Denver"),
entry("America/Virgin", "America/Port_of_Spain"),
entry("Antarctica/South_Pole", "Pacific/Auckland"),
entry("Asia/Ashkhabad", "Asia/Ashgabat"),
entry("Asia/Calcutta", "Asia/Kolkata"),
entry("Asia/Chongqing", "Asia/Shanghai"),
entry("Asia/Chungking", "Asia/Shanghai"),
entry("Asia/Dacca", "Asia/Dhaka"),
entry("Asia/Harbin", "Asia/Shanghai"),
entry("Asia/Kashgar", "Asia/Urumqi"),
entry("Asia/Katmandu", "Asia/Kathmandu"),
entry("Asia/Macao", "Asia/Macau"),
entry("Asia/Rangoon", "Asia/Yangon"),
entry("Asia/Saigon", "Asia/Ho_Chi_Minh"),
entry("Asia/Tel_Aviv", "Asia/Jerusalem"),
entry("Asia/Thimbu", "Asia/Thimphu"),
entry("Asia/Ujung_Pandang", "Asia/Makassar"),
entry("Asia/Ulan_Bator", "Asia/Ulaanbaatar"),
entry("Atlantic/Faeroe", "Atlantic/Faroe"),
entry("Atlantic/Jan_Mayen", "Europe/Oslo"),
entry("Australia/ACT", "Australia/Sydney"),
entry("Australia/Canberra", "Australia/Sydney"),
entry("Australia/LHI", "Australia/Lord_Howe"),
entry("Australia/NSW", "Australia/Sydney"),
entry("Australia/North", "Australia/Darwin"),
entry("Australia/Queensland", "Australia/Brisbane"),
entry("Australia/South", "Australia/Adelaide"),
entry("Australia/Tasmania", "Australia/Hobart"),
entry("Australia/Victoria", "Australia/Melbourne"),
entry("Australia/West", "Australia/Perth"),
entry("Australia/Yancowinna", "Australia/Broken_Hill"),
entry("Brazil/Acre", "America/Rio_Branco"),
entry("Brazil/DeNoronha", "America/Noronha"),
entry("Brazil/East", "America/Sao_Paulo"),
entry("Brazil/West", "America/Manaus"),
entry("Canada/Atlantic", "America/Halifax"),
entry("Canada/Central", "America/Winnipeg"),
entry("Canada/East-Saskatchewan", "America/Regina"),
entry("Canada/Eastern", "America/Toronto"),
entry("Canada/Mountain", "America/Edmonton"),
entry("Canada/Newfoundland", "America/St_Johns"),
entry("Canada/Pacific", "America/Vancouver"),
entry("Canada/Yukon", "America/Whitehorse"),
entry("Chile/Continental", "America/Santiago"),
entry("Chile/EasterIsland", "Pacific/Easter"),
entry("Cuba", "America/Havana"),
entry("Egypt", "Africa/Cairo"),
entry("Eire", "Europe/Dublin"),
entry("Europe/Belfast", "Europe/London"),
entry("Europe/Tiraspol", "Europe/Chisinau"),
entry("GB", "Europe/London"),
entry("GB-Eire", "Europe/London"),
entry("Greenwich", "Etc/GMT"),
entry("Hongkong", "Asia/Hong_Kong"),
entry("Iceland", "Atlantic/Reykjavik"),
entry("Iran", "Asia/Tehran"),
entry("Israel", "Asia/Jerusalem"),
entry("Jamaica", "America/Jamaica"),
entry("Japan", "Asia/Tokyo"),
entry("Kwajalein", "Pacific/Kwajalein"),
entry("Libya", "Africa/Tripoli"),
entry("Mexico/BajaNorte", "America/Tijuana"),
entry("Mexico/BajaSur", "America/Mazatlan"),
entry("Mexico/General", "America/Mexico_City"),
entry("NZ", "Pacific/Auckland"),
entry("NZ-CHAT", "Pacific/Chatham"),
entry("Navajo", "America/Denver"),
entry("PRC", "Asia/Shanghai"),
entry("Pacific/Johnston", "Pacific/Honolulu"),
entry("Pacific/Ponape", "Pacific/Pohnpei"),
entry("Pacific/Samoa", "Pacific/Pago_Pago"),
entry("Pacific/Truk", "Pacific/Chuuk"),
entry("Pacific/Yap", "Pacific/Chuuk"),
entry("Poland", "Europe/Warsaw"),
entry("Portugal", "Europe/Lisbon"),
entry("ROC", "Asia/Taipei"),
entry("ROK", "Asia/Seoul"),
entry("Singapore", "Asia/Singapore"),
entry("Turkey", "Europe/Istanbul"),
entry("UCT", "Etc/UCT"),
entry("US/Alaska", "America/Anchorage"),
entry("US/Aleutian", "America/Adak"),
entry("US/Arizona", "America/Phoenix"),
entry("US/Central", "America/Chicago"),
entry("US/East-Indiana", "America/Indiana/Indianapolis"),
entry("US/Eastern", "America/New_York"),
entry("US/Hawaii", "Pacific/Honolulu"),
entry("US/Indiana-Starke", "America/Indiana/Knox"),
entry("US/Michigan", "America/Detroit"),
entry("US/Mountain", "America/Denver"),
entry("US/Pacific", "America/Los_Angeles"),
entry("US/Samoa", "Pacific/Pago_Pago"),
entry("Universal", "Etc/UTC"),
entry("W-SU", "Europe/Moscow"),
entry("Zulu", "Etc/UTC"));
public static ZoneId dateTimeZoneToZoneId(DateTimeZone timeZone) {
if (timeZone == null) {
return null;
}
if (DateTimeZone.UTC.equals(timeZone)) {
return ZoneOffset.UTC;
}
return of(timeZone.getID());
}
public static ZoneId of(String zoneId) {
String deprecatedId = DEPRECATED_SHORT_TIMEZONES.get(zoneId);
if (deprecatedId != null) {
deprecationLogger.deprecatedAndMaybeLog("timezone",
"Use of short timezone id " + zoneId + " is deprecated. Use " + deprecatedId + " instead");
return ZoneId.of(deprecatedId);
}
return ZoneId.of(zoneId).normalized();
}
static final Instant MAX_NANOSECOND_INSTANT = Instant.parse("2262-04-11T23:47:16.854775807Z");
static final long MAX_NANOSECOND_IN_MILLIS = MAX_NANOSECOND_INSTANT.toEpochMilli();
/**
* convert a java time instant to a long value which is stored in lucene
* the long value resembles the nanoseconds since the epoch
*
* @param instant the instant to convert
* @return the nano seconds and seconds as a single long
*/
public static long toLong(Instant instant) {
if (instant.isBefore(Instant.EPOCH)) {
throw new IllegalArgumentException("date[" + instant + "] is before the epoch in 1970 and cannot be " +
"stored in nanosecond resolution");
}
if (instant.isAfter(MAX_NANOSECOND_INSTANT)) {
throw new IllegalArgumentException("date[" + instant + "] is after 2262-04-11T23:47:16.854775807 and cannot be " +
"stored in nanosecond resolution");
}
return instant.getEpochSecond() * 1_000_000_000 + instant.getNano();
}
/**
* Returns an instant that is with valid nanosecond resolution. If
* the parameter is before the valid nanosecond range then this returns
* the minimum {@linkplain Instant} valid for nanosecond resultion. If
* the parameter is after the valid nanosecond range then this returns
* the maximum {@linkplain Instant} valid for nanosecond resolution.
* <p>
* Useful for checking if all values for the field are within some range,
* even if the range's endpoints are not valid nanosecond resolution.
*/
public static Instant clampToNanosRange(Instant instant) {
if (instant.isBefore(Instant.EPOCH)) {
return Instant.EPOCH;
}
if (instant.isAfter(MAX_NANOSECOND_INSTANT)) {
return MAX_NANOSECOND_INSTANT;
}
return instant;
}
/**
* convert a long value to a java time instant
* the long value resembles the nanoseconds since the epoch
*
* @param nanoSecondsSinceEpoch the nanoseconds since the epoch
* @return the instant resembling the specified date
*/
public static Instant toInstant(long nanoSecondsSinceEpoch) {
if (nanoSecondsSinceEpoch < 0) {
throw new IllegalArgumentException("nanoseconds [" + nanoSecondsSinceEpoch + "] are before the epoch in 1970 and cannot " +
"be processed in nanosecond resolution");
}
if (nanoSecondsSinceEpoch == 0) {
return Instant.EPOCH;
}
long seconds = nanoSecondsSinceEpoch / 1_000_000_000;
long nanos = nanoSecondsSinceEpoch % 1_000_000_000;
return Instant.ofEpochSecond(seconds, nanos);
}
/**
* Convert a nanosecond timestamp in milliseconds
*
* @param milliSecondsSinceEpoch the millisecond since the epoch
* @return the nanoseconds since the epoch
*/
public static long toNanoSeconds(long milliSecondsSinceEpoch) {
if (milliSecondsSinceEpoch < 0) {
throw new IllegalArgumentException("milliSeconds [" + milliSecondsSinceEpoch + "] are before the epoch in 1970 and cannot " +
"be converted to nanoseconds");
} else if (milliSecondsSinceEpoch > MAX_NANOSECOND_IN_MILLIS) {
throw new IllegalArgumentException("milliSeconds [" + milliSecondsSinceEpoch + "] are after 2262-04-11T23:47:16.854775807 " +
"and cannot be converted to nanoseconds");
}
return milliSecondsSinceEpoch * 1_000_000;
}
/**
* Convert a nanosecond timestamp in milliseconds
*
* @param nanoSecondsSinceEpoch the nanoseconds since the epoch
* @return the milliseconds since the epoch
*/
public static long toMilliSeconds(long nanoSecondsSinceEpoch) {
if (nanoSecondsSinceEpoch < 0) {
throw new IllegalArgumentException("nanoseconds are [" + nanoSecondsSinceEpoch + "] are before the epoch in 1970 and cannot " +
"be converted to milliseconds");
}
if (nanoSecondsSinceEpoch == 0) {
return 0;
}
return nanoSecondsSinceEpoch / 1_000_000;
}
/**
* Rounds the given utc milliseconds sicne the epoch down to the next unit millis
*
* Note: This does not check for correctness of the result, as this only works with units smaller or equal than a day
* In order to ensure the performane of this methods, there are no guards or checks in it
*
* @param utcMillis the milliseconds since the epoch
* @param unitMillis the unit to round to
* @return the rounded milliseconds since the epoch
*/
public static long roundFloor(long utcMillis, final long unitMillis) {
if (utcMillis >= 0) {
return utcMillis - utcMillis % unitMillis;
} else {
utcMillis += 1;
return utcMillis - utcMillis % unitMillis - unitMillis;
}
}
/**
* Round down to the beginning of the quarter of the year of the specified time
* @param utcMillis the milliseconds since the epoch
* @return The milliseconds since the epoch rounded down to the quarter of the year
*/
public static long roundQuarterOfYear(final long utcMillis) {
int year = getYear(utcMillis);
int month = getMonthOfYear(utcMillis, year);
int firstMonthOfQuarter = (((month-1) / 3) * 3) + 1;
return DateUtils.of(year, firstMonthOfQuarter);
}
/**
* Round down to the beginning of the month of the year of the specified time
* @param utcMillis the milliseconds since the epoch
* @return The milliseconds since the epoch rounded down to the month of the year
*/
public static long roundMonthOfYear(final long utcMillis) {
int year = getYear(utcMillis);
int month = getMonthOfYear(utcMillis, year);
return DateUtils.of(year, month);
}
/**
* Round down to the beginning of the year of the specified time
* @param utcMillis the milliseconds since the epoch
* @return The milliseconds since the epoch rounded down to the beginning of the year
*/
public static long roundYear(final long utcMillis) {
int year = getYear(utcMillis);
return utcMillisAtStartOfYear(year);
}
/**
* Round down to the beginning of the week based on week year of the specified time
* @param utcMillis the milliseconds since the epoch
* @return The milliseconds since the epoch rounded down to the beginning of the week based on week year
*/
public static long roundWeekOfWeekYear(final long utcMillis) {
return roundFloor(utcMillis + 3 * 86400 * 1000L, 604800000) - 3 * 86400 * 1000L;
}
/**
* Return the first day of the month
* @param year the year to return
* @param month the month to return, ranging from 1-12
* @return the milliseconds since the epoch of the first day of the month in the year
*/
private static long of(final int year, final int month) {
long millis = utcMillisAtStartOfYear(year);
millis += getTotalMillisByYearMonth(year, month);
return millis;
}
/**
* Returns the current UTC date-time with milliseconds precision.
* In Java 9+ (as opposed to Java 8) the {@code Clock} implementation uses system's best clock implementation (which could mean
* that the precision of the clock can be milliseconds, microseconds or nanoseconds), whereas in Java 8
* {@code System.currentTimeMillis()} is always used. To account for these differences, this method defines a new {@code Clock}
* which will offer a value for {@code ZonedDateTime.now()} set to always have milliseconds precision.
*
* @return {@link ZonedDateTime} instance for the current date-time with milliseconds precision in UTC
*/
public static ZonedDateTime nowWithMillisResolution() {
return nowWithMillisResolution(Clock.systemUTC());
}
public static ZonedDateTime nowWithMillisResolution(Clock clock) {
Clock millisResolutionClock = Clock.tick(clock, Duration.ofMillis(1));
return ZonedDateTime.now(millisResolutionClock);
}
}
| HonzaKral/elasticsearch | server/src/main/java/org/elasticsearch/common/time/DateUtils.java | Java | apache-2.0 | 18,238 | [
30522,
1013,
1008,
1008,
7000,
2000,
21274,
17310,
11140,
2104,
2028,
2030,
2062,
12130,
1008,
6105,
10540,
1012,
2156,
1996,
5060,
5371,
5500,
2007,
1008,
2023,
2147,
2005,
3176,
2592,
4953,
9385,
1008,
6095,
1012,
21274,
17310,
11140,
159... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* NSA Security-Enhanced Linux (SELinux) security module
*
* This file contains the SELinux hook function implementations.
*
* Authors: Stephen Smalley, <sds@epoch.ncsc.mil>
* Chris Vance, <cvance@nai.com>
* Wayne Salamon, <wsalamon@nai.com>
* James Morris <jmorris@redhat.com>
*
* Copyright (C) 2001,2002 Networks Associates Technology, Inc.
* Copyright (C) 2003-2008 Red Hat, Inc., James Morris <jmorris@redhat.com>
* Eric Paris <eparis@redhat.com>
* Copyright (C) 2004-2005 Trusted Computer Solutions, Inc.
* <dgoeddel@trustedcs.com>
* Copyright (C) 2006, 2007, 2009 Hewlett-Packard Development Company, L.P.
* Paul Moore <paul.moore@hp.com>
* Copyright (C) 2007 Hitachi Software Engineering Co., Ltd.
* Yuichi Nakamura <ynakam@hitachisoft.jp>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*/
#include <linux/init.h>
#include <linux/kd.h>
#include <linux/kernel.h>
#include <linux/tracehook.h>
#include <linux/errno.h>
#include <linux/ext2_fs.h>
#include <linux/sched.h>
#include <linux/security.h>
#include <linux/xattr.h>
#include <linux/capability.h>
#include <linux/unistd.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/proc_fs.h>
#include <linux/swap.h>
#include <linux/spinlock.h>
#include <linux/syscalls.h>
#include <linux/dcache.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/netfilter_ipv4.h>
#include <linux/netfilter_ipv6.h>
#include <linux/tty.h>
#include <net/icmp.h>
#include <net/ip.h> /* for local_port_range[] */
#include <net/tcp.h> /* struct or_callable used in sock_rcv_skb */
#include <net/net_namespace.h>
#include <net/netlabel.h>
#include <linux/uaccess.h>
#include <asm/ioctls.h>
#include <asm/atomic.h>
#include <linux/bitops.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h> /* for network interface checks */
#include <linux/netlink.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/dccp.h>
#include <linux/quota.h>
#include <linux/un.h> /* for Unix socket types */
#include <net/af_unix.h> /* for Unix socket types */
#include <linux/parser.h>
#include <linux/nfs_mount.h>
#include <net/ipv6.h>
#include <linux/hugetlb.h>
#include <linux/personality.h>
#include <linux/audit.h>
#include <linux/string.h>
#include <linux/selinux.h>
#include <linux/mutex.h>
#include <linux/posix-timers.h>
#include <linux/syslog.h>
#include <linux/user_namespace.h>
#include "avc.h"
#include "objsec.h"
#include "netif.h"
#include "netnode.h"
#include "netport.h"
#include "xfrm.h"
#include "netlabel.h"
#include "audit.h"
#define NUM_SEL_MNT_OPTS 5
extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
extern struct security_operations *security_ops;
/* SECMARK reference count */
atomic_t selinux_secmark_refcount = ATOMIC_INIT(0);
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
int selinux_enforcing;
static int __init enforcing_setup(char *str)
{
unsigned long enforcing;
if (!strict_strtoul(str, 0, &enforcing))
selinux_enforcing = enforcing ? 1 : 0;
return 1;
}
__setup("enforcing=", enforcing_setup);
#endif
#ifdef CONFIG_SECURITY_SELINUX_BOOTPARAM
int selinux_enabled = CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE;
static int __init selinux_enabled_setup(char *str)
{
unsigned long enabled;
if (!strict_strtoul(str, 0, &enabled))
selinux_enabled = enabled ? 1 : 0;
return 1;
}
__setup("selinux=", selinux_enabled_setup);
#else
int selinux_enabled = 1;
#endif
static struct kmem_cache *sel_inode_cache;
/**
* selinux_secmark_enabled - Check to see if SECMARK is currently enabled
*
* Description:
* This function checks the SECMARK reference counter to see if any SECMARK
* targets are currently configured, if the reference counter is greater than
* zero SECMARK is considered to be enabled. Returns true (1) if SECMARK is
* enabled, false (0) if SECMARK is disabled.
*
*/
static int selinux_secmark_enabled(void)
{
return (atomic_read(&selinux_secmark_refcount) > 0);
}
/*
* initialise the security for the init task
*/
static void cred_init_security(void)
{
struct cred *cred = (struct cred *) current->real_cred;
struct task_security_struct *tsec;
tsec = kzalloc(sizeof(struct task_security_struct), GFP_KERNEL);
if (!tsec)
panic("SELinux: Failed to initialize initial task.\n");
tsec->osid = tsec->sid = SECINITSID_KERNEL;
cred->security = tsec;
}
/*
* get the security ID of a set of credentials
*/
static inline u32 cred_sid(const struct cred *cred)
{
const struct task_security_struct *tsec;
tsec = cred->security;
return tsec->sid;
}
/*
* get the objective security ID of a task
*/
static inline u32 task_sid(const struct task_struct *task)
{
u32 sid;
rcu_read_lock();
sid = cred_sid(__task_cred(task));
rcu_read_unlock();
return sid;
}
/*
* get the subjective security ID of the current task
*/
static inline u32 current_sid(void)
{
const struct task_security_struct *tsec = current_security();
return tsec->sid;
}
/* Allocate and free functions for each kind of security blob. */
static int inode_alloc_security(struct inode *inode)
{
struct inode_security_struct *isec;
u32 sid = current_sid();
isec = kmem_cache_zalloc(sel_inode_cache, GFP_NOFS);
if (!isec)
return -ENOMEM;
mutex_init(&isec->lock);
INIT_LIST_HEAD(&isec->list);
isec->inode = inode;
isec->sid = SECINITSID_UNLABELED;
isec->sclass = SECCLASS_FILE;
isec->task_sid = sid;
inode->i_security = isec;
return 0;
}
static void inode_free_rcu(struct rcu_head *head)
{
struct inode_security_struct *isec;
isec = container_of(head, struct inode_security_struct, rcu);
kmem_cache_free(sel_inode_cache, isec);
}
static void inode_free_security(struct inode *inode)
{
struct inode_security_struct *isec = inode->i_security;
struct superblock_security_struct *sbsec = inode->i_sb->s_security;
spin_lock(&sbsec->isec_lock);
if (!list_empty(&isec->list))
list_del_init(&isec->list);
spin_unlock(&sbsec->isec_lock);
/*
* The inode may still be referenced in a path walk and
* a call to selinux_inode_permission() can be made
* after inode_free_security() is called. Ideally, the VFS
* wouldn't do this, but fixing that is a much harder
* job. For now, simply free the i_security via RCU, and
* leave the current inode->i_security pointer intact.
* The inode will be freed after the RCU grace period too.
*/
call_rcu(&isec->rcu, inode_free_rcu);
}
static int file_alloc_security(struct file *file)
{
struct file_security_struct *fsec;
u32 sid = current_sid();
fsec = kzalloc(sizeof(struct file_security_struct), GFP_KERNEL);
if (!fsec)
return -ENOMEM;
fsec->sid = sid;
fsec->fown_sid = sid;
file->f_security = fsec;
return 0;
}
static void file_free_security(struct file *file)
{
struct file_security_struct *fsec = file->f_security;
file->f_security = NULL;
kfree(fsec);
}
static int superblock_alloc_security(struct super_block *sb)
{
struct superblock_security_struct *sbsec;
sbsec = kzalloc(sizeof(struct superblock_security_struct), GFP_KERNEL);
if (!sbsec)
return -ENOMEM;
mutex_init(&sbsec->lock);
INIT_LIST_HEAD(&sbsec->isec_head);
spin_lock_init(&sbsec->isec_lock);
sbsec->sb = sb;
sbsec->sid = SECINITSID_UNLABELED;
sbsec->def_sid = SECINITSID_FILE;
sbsec->mntpoint_sid = SECINITSID_UNLABELED;
sb->s_security = sbsec;
return 0;
}
static void superblock_free_security(struct super_block *sb)
{
struct superblock_security_struct *sbsec = sb->s_security;
sb->s_security = NULL;
kfree(sbsec);
}
/* The security server must be initialized before
any labeling or access decisions can be provided. */
extern int ss_initialized;
/* The file system's label must be initialized prior to use. */
static const char *labeling_behaviors[6] = {
"uses xattr",
"uses transition SIDs",
"uses task SIDs",
"uses genfs_contexts",
"not configured for labeling",
"uses mountpoint labeling",
};
static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dentry);
static inline int inode_doinit(struct inode *inode)
{
return inode_doinit_with_dentry(inode, NULL);
}
enum {
Opt_error = -1,
Opt_context = 1,
Opt_fscontext = 2,
Opt_defcontext = 3,
Opt_rootcontext = 4,
Opt_labelsupport = 5,
};
static const match_table_t tokens = {
{Opt_context, CONTEXT_STR "%s"},
{Opt_fscontext, FSCONTEXT_STR "%s"},
{Opt_defcontext, DEFCONTEXT_STR "%s"},
{Opt_rootcontext, ROOTCONTEXT_STR "%s"},
{Opt_labelsupport, LABELSUPP_STR},
{Opt_error, NULL},
};
#define SEL_MOUNT_FAIL_MSG "SELinux: duplicate or incompatible mount options\n"
static int may_context_mount_sb_relabel(u32 sid,
struct superblock_security_struct *sbsec,
const struct cred *cred)
{
const struct task_security_struct *tsec = cred->security;
int rc;
rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM,
FILESYSTEM__RELABELFROM, NULL);
if (rc)
return rc;
rc = avc_has_perm(tsec->sid, sid, SECCLASS_FILESYSTEM,
FILESYSTEM__RELABELTO, NULL);
return rc;
}
static int may_context_mount_inode_relabel(u32 sid,
struct superblock_security_struct *sbsec,
const struct cred *cred)
{
const struct task_security_struct *tsec = cred->security;
int rc;
rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM,
FILESYSTEM__RELABELFROM, NULL);
if (rc)
return rc;
rc = avc_has_perm(sid, sbsec->sid, SECCLASS_FILESYSTEM,
FILESYSTEM__ASSOCIATE, NULL);
return rc;
}
static int sb_finish_set_opts(struct super_block *sb)
{
struct superblock_security_struct *sbsec = sb->s_security;
struct dentry *root = sb->s_root;
struct inode *root_inode = root->d_inode;
int rc = 0;
if (sbsec->behavior == SECURITY_FS_USE_XATTR) {
/* Make sure that the xattr handler exists and that no
error other than -ENODATA is returned by getxattr on
the root directory. -ENODATA is ok, as this may be
the first boot of the SELinux kernel before we have
assigned xattr values to the filesystem. */
if (!root_inode->i_op->getxattr) {
printk(KERN_WARNING "SELinux: (dev %s, type %s) has no "
"xattr support\n", sb->s_id, sb->s_type->name);
rc = -EOPNOTSUPP;
goto out;
}
rc = root_inode->i_op->getxattr(root, XATTR_NAME_SELINUX, NULL, 0);
if (rc < 0 && rc != -ENODATA) {
if (rc == -EOPNOTSUPP)
printk(KERN_WARNING "SELinux: (dev %s, type "
"%s) has no security xattr handler\n",
sb->s_id, sb->s_type->name);
else
printk(KERN_WARNING "SELinux: (dev %s, type "
"%s) getxattr errno %d\n", sb->s_id,
sb->s_type->name, -rc);
goto out;
}
}
sbsec->flags |= (SE_SBINITIALIZED | SE_SBLABELSUPP);
if (sbsec->behavior > ARRAY_SIZE(labeling_behaviors))
printk(KERN_ERR "SELinux: initialized (dev %s, type %s), unknown behavior\n",
sb->s_id, sb->s_type->name);
else
printk(KERN_DEBUG "SELinux: initialized (dev %s, type %s), %s\n",
sb->s_id, sb->s_type->name,
labeling_behaviors[sbsec->behavior-1]);
if (sbsec->behavior == SECURITY_FS_USE_GENFS ||
sbsec->behavior == SECURITY_FS_USE_MNTPOINT ||
sbsec->behavior == SECURITY_FS_USE_NONE ||
sbsec->behavior > ARRAY_SIZE(labeling_behaviors))
sbsec->flags &= ~SE_SBLABELSUPP;
/* Special handling. Is genfs but also has in-core setxattr handler*/
if (!strcmp(sb->s_type->name, "sysfs") ||
!strcmp(sb->s_type->name, "pstore") ||
!strcmp(sb->s_type->name, "debugfs") ||
!strcmp(sb->s_type->name, "rootfs"))
sbsec->flags |= SE_SBLABELSUPP;
/* Initialize the root inode. */
rc = inode_doinit_with_dentry(root_inode, root);
/* Initialize any other inodes associated with the superblock, e.g.
inodes created prior to initial policy load or inodes created
during get_sb by a pseudo filesystem that directly
populates itself. */
spin_lock(&sbsec->isec_lock);
next_inode:
if (!list_empty(&sbsec->isec_head)) {
struct inode_security_struct *isec =
list_entry(sbsec->isec_head.next,
struct inode_security_struct, list);
struct inode *inode = isec->inode;
list_del_init(&isec->list);
spin_unlock(&sbsec->isec_lock);
inode = igrab(inode);
if (inode) {
if (!IS_PRIVATE(inode))
inode_doinit(inode);
iput(inode);
}
spin_lock(&sbsec->isec_lock);
goto next_inode;
}
spin_unlock(&sbsec->isec_lock);
out:
return rc;
}
/*
* This function should allow an FS to ask what it's mount security
* options were so it can use those later for submounts, displaying
* mount options, or whatever.
*/
static int selinux_get_mnt_opts(const struct super_block *sb,
struct security_mnt_opts *opts)
{
int rc = 0, i;
struct superblock_security_struct *sbsec = sb->s_security;
char *context = NULL;
u32 len;
char tmp;
security_init_mnt_opts(opts);
if (!(sbsec->flags & SE_SBINITIALIZED))
return -EINVAL;
if (!ss_initialized)
return -EINVAL;
tmp = sbsec->flags & SE_MNTMASK;
/* count the number of mount options for this sb */
for (i = 0; i < 8; i++) {
if (tmp & 0x01)
opts->num_mnt_opts++;
tmp >>= 1;
}
/* Check if the Label support flag is set */
if (sbsec->flags & SE_SBLABELSUPP)
opts->num_mnt_opts++;
opts->mnt_opts = kcalloc(opts->num_mnt_opts, sizeof(char *), GFP_ATOMIC);
if (!opts->mnt_opts) {
rc = -ENOMEM;
goto out_free;
}
opts->mnt_opts_flags = kcalloc(opts->num_mnt_opts, sizeof(int), GFP_ATOMIC);
if (!opts->mnt_opts_flags) {
rc = -ENOMEM;
goto out_free;
}
i = 0;
if (sbsec->flags & FSCONTEXT_MNT) {
rc = security_sid_to_context(sbsec->sid, &context, &len);
if (rc)
goto out_free;
opts->mnt_opts[i] = context;
opts->mnt_opts_flags[i++] = FSCONTEXT_MNT;
}
if (sbsec->flags & CONTEXT_MNT) {
rc = security_sid_to_context(sbsec->mntpoint_sid, &context, &len);
if (rc)
goto out_free;
opts->mnt_opts[i] = context;
opts->mnt_opts_flags[i++] = CONTEXT_MNT;
}
if (sbsec->flags & DEFCONTEXT_MNT) {
rc = security_sid_to_context(sbsec->def_sid, &context, &len);
if (rc)
goto out_free;
opts->mnt_opts[i] = context;
opts->mnt_opts_flags[i++] = DEFCONTEXT_MNT;
}
if (sbsec->flags & ROOTCONTEXT_MNT) {
struct inode *root = sbsec->sb->s_root->d_inode;
struct inode_security_struct *isec = root->i_security;
rc = security_sid_to_context(isec->sid, &context, &len);
if (rc)
goto out_free;
opts->mnt_opts[i] = context;
opts->mnt_opts_flags[i++] = ROOTCONTEXT_MNT;
}
if (sbsec->flags & SE_SBLABELSUPP) {
opts->mnt_opts[i] = NULL;
opts->mnt_opts_flags[i++] = SE_SBLABELSUPP;
}
BUG_ON(i != opts->num_mnt_opts);
return 0;
out_free:
security_free_mnt_opts(opts);
return rc;
}
static int bad_option(struct superblock_security_struct *sbsec, char flag,
u32 old_sid, u32 new_sid)
{
char mnt_flags = sbsec->flags & SE_MNTMASK;
/* check if the old mount command had the same options */
if (sbsec->flags & SE_SBINITIALIZED)
if (!(sbsec->flags & flag) ||
(old_sid != new_sid))
return 1;
/* check if we were passed the same options twice,
* aka someone passed context=a,context=b
*/
if (!(sbsec->flags & SE_SBINITIALIZED))
if (mnt_flags & flag)
return 1;
return 0;
}
/*
* Allow filesystems with binary mount data to explicitly set mount point
* labeling information.
*/
static int selinux_set_mnt_opts(struct super_block *sb,
struct security_mnt_opts *opts)
{
const struct cred *cred = current_cred();
int rc = 0, i;
struct superblock_security_struct *sbsec = sb->s_security;
const char *name = sb->s_type->name;
struct inode *inode = sbsec->sb->s_root->d_inode;
struct inode_security_struct *root_isec = inode->i_security;
u32 fscontext_sid = 0, context_sid = 0, rootcontext_sid = 0;
u32 defcontext_sid = 0;
char **mount_options = opts->mnt_opts;
int *flags = opts->mnt_opts_flags;
int num_opts = opts->num_mnt_opts;
mutex_lock(&sbsec->lock);
if (!ss_initialized) {
if (!num_opts) {
/* Defer initialization until selinux_complete_init,
after the initial policy is loaded and the security
server is ready to handle calls. */
goto out;
}
rc = -EINVAL;
printk(KERN_WARNING "SELinux: Unable to set superblock options "
"before the security server is initialized\n");
goto out;
}
/*
* Binary mount data FS will come through this function twice. Once
* from an explicit call and once from the generic calls from the vfs.
* Since the generic VFS calls will not contain any security mount data
* we need to skip the double mount verification.
*
* This does open a hole in which we will not notice if the first
* mount using this sb set explict options and a second mount using
* this sb does not set any security options. (The first options
* will be used for both mounts)
*/
if ((sbsec->flags & SE_SBINITIALIZED) && (sb->s_type->fs_flags & FS_BINARY_MOUNTDATA)
&& (num_opts == 0))
goto out;
/*
* parse the mount options, check if they are valid sids.
* also check if someone is trying to mount the same sb more
* than once with different security options.
*/
for (i = 0; i < num_opts; i++) {
u32 sid;
if (flags[i] == SE_SBLABELSUPP)
continue;
rc = security_context_to_sid(mount_options[i],
strlen(mount_options[i]), &sid);
if (rc) {
printk(KERN_WARNING "SELinux: security_context_to_sid"
"(%s) failed for (dev %s, type %s) errno=%d\n",
mount_options[i], sb->s_id, name, rc);
goto out;
}
switch (flags[i]) {
case FSCONTEXT_MNT:
fscontext_sid = sid;
if (bad_option(sbsec, FSCONTEXT_MNT, sbsec->sid,
fscontext_sid))
goto out_double_mount;
sbsec->flags |= FSCONTEXT_MNT;
break;
case CONTEXT_MNT:
context_sid = sid;
if (bad_option(sbsec, CONTEXT_MNT, sbsec->mntpoint_sid,
context_sid))
goto out_double_mount;
sbsec->flags |= CONTEXT_MNT;
break;
case ROOTCONTEXT_MNT:
rootcontext_sid = sid;
if (bad_option(sbsec, ROOTCONTEXT_MNT, root_isec->sid,
rootcontext_sid))
goto out_double_mount;
sbsec->flags |= ROOTCONTEXT_MNT;
break;
case DEFCONTEXT_MNT:
defcontext_sid = sid;
if (bad_option(sbsec, DEFCONTEXT_MNT, sbsec->def_sid,
defcontext_sid))
goto out_double_mount;
sbsec->flags |= DEFCONTEXT_MNT;
break;
default:
rc = -EINVAL;
goto out;
}
}
if (sbsec->flags & SE_SBINITIALIZED) {
/* previously mounted with options, but not on this attempt? */
if ((sbsec->flags & SE_MNTMASK) && !num_opts)
goto out_double_mount;
rc = 0;
goto out;
}
if (strcmp(sb->s_type->name, "proc") == 0)
sbsec->flags |= SE_SBPROC;
/* Determine the labeling behavior to use for this filesystem type. */
rc = security_fs_use((sbsec->flags & SE_SBPROC) ? "proc" : sb->s_type->name, &sbsec->behavior, &sbsec->sid);
if (rc) {
printk(KERN_WARNING "%s: security_fs_use(%s) returned %d\n",
__func__, sb->s_type->name, rc);
goto out;
}
/* sets the context of the superblock for the fs being mounted. */
if (fscontext_sid) {
rc = may_context_mount_sb_relabel(fscontext_sid, sbsec, cred);
if (rc)
goto out;
sbsec->sid = fscontext_sid;
}
/*
* Switch to using mount point labeling behavior.
* sets the label used on all file below the mountpoint, and will set
* the superblock context if not already set.
*/
if (context_sid) {
if (!fscontext_sid) {
rc = may_context_mount_sb_relabel(context_sid, sbsec,
cred);
if (rc)
goto out;
sbsec->sid = context_sid;
} else {
rc = may_context_mount_inode_relabel(context_sid, sbsec,
cred);
if (rc)
goto out;
}
if (!rootcontext_sid)
rootcontext_sid = context_sid;
sbsec->mntpoint_sid = context_sid;
sbsec->behavior = SECURITY_FS_USE_MNTPOINT;
}
if (rootcontext_sid) {
rc = may_context_mount_inode_relabel(rootcontext_sid, sbsec,
cred);
if (rc)
goto out;
root_isec->sid = rootcontext_sid;
root_isec->initialized = 1;
}
if (defcontext_sid) {
if (sbsec->behavior != SECURITY_FS_USE_XATTR) {
rc = -EINVAL;
printk(KERN_WARNING "SELinux: defcontext option is "
"invalid for this filesystem type\n");
goto out;
}
if (defcontext_sid != sbsec->def_sid) {
rc = may_context_mount_inode_relabel(defcontext_sid,
sbsec, cred);
if (rc)
goto out;
}
sbsec->def_sid = defcontext_sid;
}
rc = sb_finish_set_opts(sb);
out:
mutex_unlock(&sbsec->lock);
return rc;
out_double_mount:
rc = -EINVAL;
printk(KERN_WARNING "SELinux: mount invalid. Same superblock, different "
"security settings for (dev %s, type %s)\n", sb->s_id, name);
goto out;
}
static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb,
struct super_block *newsb)
{
const struct superblock_security_struct *oldsbsec = oldsb->s_security;
struct superblock_security_struct *newsbsec = newsb->s_security;
int set_fscontext = (oldsbsec->flags & FSCONTEXT_MNT);
int set_context = (oldsbsec->flags & CONTEXT_MNT);
int set_rootcontext = (oldsbsec->flags & ROOTCONTEXT_MNT);
/*
* if the parent was able to be mounted it clearly had no special lsm
* mount options. thus we can safely deal with this superblock later
*/
if (!ss_initialized)
return;
/* how can we clone if the old one wasn't set up?? */
BUG_ON(!(oldsbsec->flags & SE_SBINITIALIZED));
/* if fs is reusing a sb, just let its options stand... */
if (newsbsec->flags & SE_SBINITIALIZED)
return;
mutex_lock(&newsbsec->lock);
newsbsec->flags = oldsbsec->flags;
newsbsec->sid = oldsbsec->sid;
newsbsec->def_sid = oldsbsec->def_sid;
newsbsec->behavior = oldsbsec->behavior;
if (set_context) {
u32 sid = oldsbsec->mntpoint_sid;
if (!set_fscontext)
newsbsec->sid = sid;
if (!set_rootcontext) {
struct inode *newinode = newsb->s_root->d_inode;
struct inode_security_struct *newisec = newinode->i_security;
newisec->sid = sid;
}
newsbsec->mntpoint_sid = sid;
}
if (set_rootcontext) {
const struct inode *oldinode = oldsb->s_root->d_inode;
const struct inode_security_struct *oldisec = oldinode->i_security;
struct inode *newinode = newsb->s_root->d_inode;
struct inode_security_struct *newisec = newinode->i_security;
newisec->sid = oldisec->sid;
}
sb_finish_set_opts(newsb);
mutex_unlock(&newsbsec->lock);
}
static int selinux_parse_opts_str(char *options,
struct security_mnt_opts *opts)
{
char *p;
char *context = NULL, *defcontext = NULL;
char *fscontext = NULL, *rootcontext = NULL;
int rc, num_mnt_opts = 0;
opts->num_mnt_opts = 0;
/* Standard string-based options. */
while ((p = strsep(&options, "|")) != NULL) {
int token;
substring_t args[MAX_OPT_ARGS];
if (!*p)
continue;
token = match_token(p, tokens, args);
switch (token) {
case Opt_context:
if (context || defcontext) {
rc = -EINVAL;
printk(KERN_WARNING SEL_MOUNT_FAIL_MSG);
goto out_err;
}
context = match_strdup(&args[0]);
if (!context) {
rc = -ENOMEM;
goto out_err;
}
break;
case Opt_fscontext:
if (fscontext) {
rc = -EINVAL;
printk(KERN_WARNING SEL_MOUNT_FAIL_MSG);
goto out_err;
}
fscontext = match_strdup(&args[0]);
if (!fscontext) {
rc = -ENOMEM;
goto out_err;
}
break;
case Opt_rootcontext:
if (rootcontext) {
rc = -EINVAL;
printk(KERN_WARNING SEL_MOUNT_FAIL_MSG);
goto out_err;
}
rootcontext = match_strdup(&args[0]);
if (!rootcontext) {
rc = -ENOMEM;
goto out_err;
}
break;
case Opt_defcontext:
if (context || defcontext) {
rc = -EINVAL;
printk(KERN_WARNING SEL_MOUNT_FAIL_MSG);
goto out_err;
}
defcontext = match_strdup(&args[0]);
if (!defcontext) {
rc = -ENOMEM;
goto out_err;
}
break;
case Opt_labelsupport:
break;
default:
rc = -EINVAL;
printk(KERN_WARNING "SELinux: unknown mount option\n");
goto out_err;
}
}
rc = -ENOMEM;
opts->mnt_opts = kcalloc(NUM_SEL_MNT_OPTS, sizeof(char *), GFP_ATOMIC);
if (!opts->mnt_opts)
goto out_err;
opts->mnt_opts_flags = kcalloc(NUM_SEL_MNT_OPTS, sizeof(int), GFP_ATOMIC);
if (!opts->mnt_opts_flags) {
kfree(opts->mnt_opts);
goto out_err;
}
if (fscontext) {
opts->mnt_opts[num_mnt_opts] = fscontext;
opts->mnt_opts_flags[num_mnt_opts++] = FSCONTEXT_MNT;
}
if (context) {
opts->mnt_opts[num_mnt_opts] = context;
opts->mnt_opts_flags[num_mnt_opts++] = CONTEXT_MNT;
}
if (rootcontext) {
opts->mnt_opts[num_mnt_opts] = rootcontext;
opts->mnt_opts_flags[num_mnt_opts++] = ROOTCONTEXT_MNT;
}
if (defcontext) {
opts->mnt_opts[num_mnt_opts] = defcontext;
opts->mnt_opts_flags[num_mnt_opts++] = DEFCONTEXT_MNT;
}
opts->num_mnt_opts = num_mnt_opts;
return 0;
out_err:
kfree(context);
kfree(defcontext);
kfree(fscontext);
kfree(rootcontext);
return rc;
}
/*
* string mount options parsing and call set the sbsec
*/
static int superblock_doinit(struct super_block *sb, void *data)
{
int rc = 0;
char *options = data;
struct security_mnt_opts opts;
security_init_mnt_opts(&opts);
if (!data)
goto out;
BUG_ON(sb->s_type->fs_flags & FS_BINARY_MOUNTDATA);
rc = selinux_parse_opts_str(options, &opts);
if (rc)
goto out_err;
out:
rc = selinux_set_mnt_opts(sb, &opts);
out_err:
security_free_mnt_opts(&opts);
return rc;
}
static void selinux_write_opts(struct seq_file *m,
struct security_mnt_opts *opts)
{
int i;
char *prefix;
for (i = 0; i < opts->num_mnt_opts; i++) {
char *has_comma;
if (opts->mnt_opts[i])
has_comma = strchr(opts->mnt_opts[i], ',');
else
has_comma = NULL;
switch (opts->mnt_opts_flags[i]) {
case CONTEXT_MNT:
prefix = CONTEXT_STR;
break;
case FSCONTEXT_MNT:
prefix = FSCONTEXT_STR;
break;
case ROOTCONTEXT_MNT:
prefix = ROOTCONTEXT_STR;
break;
case DEFCONTEXT_MNT:
prefix = DEFCONTEXT_STR;
break;
case SE_SBLABELSUPP:
seq_putc(m, ',');
seq_puts(m, LABELSUPP_STR);
continue;
default:
BUG();
return;
};
/* we need a comma before each option */
seq_putc(m, ',');
seq_puts(m, prefix);
if (has_comma)
seq_putc(m, '\"');
seq_puts(m, opts->mnt_opts[i]);
if (has_comma)
seq_putc(m, '\"');
}
}
static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb)
{
struct security_mnt_opts opts;
int rc;
rc = selinux_get_mnt_opts(sb, &opts);
if (rc) {
/* before policy load we may get EINVAL, don't show anything */
if (rc == -EINVAL)
rc = 0;
return rc;
}
selinux_write_opts(m, &opts);
security_free_mnt_opts(&opts);
return rc;
}
static inline u16 inode_mode_to_security_class(umode_t mode)
{
switch (mode & S_IFMT) {
case S_IFSOCK:
return SECCLASS_SOCK_FILE;
case S_IFLNK:
return SECCLASS_LNK_FILE;
case S_IFREG:
return SECCLASS_FILE;
case S_IFBLK:
return SECCLASS_BLK_FILE;
case S_IFDIR:
return SECCLASS_DIR;
case S_IFCHR:
return SECCLASS_CHR_FILE;
case S_IFIFO:
return SECCLASS_FIFO_FILE;
}
return SECCLASS_FILE;
}
static inline int default_protocol_stream(int protocol)
{
return (protocol == IPPROTO_IP || protocol == IPPROTO_TCP);
}
static inline int default_protocol_dgram(int protocol)
{
return (protocol == IPPROTO_IP || protocol == IPPROTO_UDP);
}
static inline u16 socket_type_to_security_class(int family, int type, int protocol)
{
switch (family) {
case PF_UNIX:
switch (type) {
case SOCK_STREAM:
case SOCK_SEQPACKET:
return SECCLASS_UNIX_STREAM_SOCKET;
case SOCK_DGRAM:
return SECCLASS_UNIX_DGRAM_SOCKET;
}
break;
case PF_INET:
case PF_INET6:
switch (type) {
case SOCK_STREAM:
if (default_protocol_stream(protocol))
return SECCLASS_TCP_SOCKET;
else
return SECCLASS_RAWIP_SOCKET;
case SOCK_DGRAM:
if (default_protocol_dgram(protocol))
return SECCLASS_UDP_SOCKET;
else
return SECCLASS_RAWIP_SOCKET;
case SOCK_DCCP:
return SECCLASS_DCCP_SOCKET;
default:
return SECCLASS_RAWIP_SOCKET;
}
break;
case PF_NETLINK:
switch (protocol) {
case NETLINK_ROUTE:
return SECCLASS_NETLINK_ROUTE_SOCKET;
case NETLINK_FIREWALL:
return SECCLASS_NETLINK_FIREWALL_SOCKET;
case NETLINK_INET_DIAG:
return SECCLASS_NETLINK_TCPDIAG_SOCKET;
case NETLINK_NFLOG:
return SECCLASS_NETLINK_NFLOG_SOCKET;
case NETLINK_XFRM:
return SECCLASS_NETLINK_XFRM_SOCKET;
case NETLINK_SELINUX:
return SECCLASS_NETLINK_SELINUX_SOCKET;
case NETLINK_AUDIT:
return SECCLASS_NETLINK_AUDIT_SOCKET;
case NETLINK_IP6_FW:
return SECCLASS_NETLINK_IP6FW_SOCKET;
case NETLINK_DNRTMSG:
return SECCLASS_NETLINK_DNRT_SOCKET;
case NETLINK_KOBJECT_UEVENT:
return SECCLASS_NETLINK_KOBJECT_UEVENT_SOCKET;
default:
return SECCLASS_NETLINK_SOCKET;
}
case PF_PACKET:
return SECCLASS_PACKET_SOCKET;
case PF_KEY:
return SECCLASS_KEY_SOCKET;
case PF_APPLETALK:
return SECCLASS_APPLETALK_SOCKET;
}
return SECCLASS_SOCKET;
}
#ifdef CONFIG_PROC_FS
static int selinux_proc_get_sid(struct dentry *dentry,
u16 tclass,
u32 *sid)
{
int rc;
char *buffer, *path;
buffer = (char *)__get_free_page(GFP_KERNEL);
if (!buffer)
return -ENOMEM;
path = dentry_path_raw(dentry, buffer, PAGE_SIZE);
if (IS_ERR(path))
rc = PTR_ERR(path);
else {
/* each process gets a /proc/PID/ entry. Strip off the
* PID part to get a valid selinux labeling.
* e.g. /proc/1/net/rpc/nfs -> /net/rpc/nfs */
while (path[1] >= '0' && path[1] <= '9') {
path[1] = '/';
path++;
}
rc = security_genfs_sid("proc", path, tclass, sid);
}
free_page((unsigned long)buffer);
return rc;
}
#else
static int selinux_proc_get_sid(struct dentry *dentry,
u16 tclass,
u32 *sid)
{
return -EINVAL;
}
#endif
/* The inode's security attributes must be initialized before first use. */
static int inode_doinit_with_dentry(struct inode *inode, struct dentry *opt_dentry)
{
struct superblock_security_struct *sbsec = NULL;
struct inode_security_struct *isec = inode->i_security;
u32 sid;
struct dentry *dentry;
#define INITCONTEXTLEN 255
char *context = NULL;
unsigned len = 0;
int rc = 0;
if (isec->initialized)
goto out;
mutex_lock(&isec->lock);
if (isec->initialized)
goto out_unlock;
sbsec = inode->i_sb->s_security;
if (!(sbsec->flags & SE_SBINITIALIZED)) {
/* Defer initialization until selinux_complete_init,
after the initial policy is loaded and the security
server is ready to handle calls. */
spin_lock(&sbsec->isec_lock);
if (list_empty(&isec->list))
list_add(&isec->list, &sbsec->isec_head);
spin_unlock(&sbsec->isec_lock);
goto out_unlock;
}
switch (sbsec->behavior) {
case SECURITY_FS_USE_XATTR:
if (!inode->i_op->getxattr) {
isec->sid = sbsec->def_sid;
break;
}
/* Need a dentry, since the xattr API requires one.
Life would be simpler if we could just pass the inode. */
if (opt_dentry) {
/* Called from d_instantiate or d_splice_alias. */
dentry = dget(opt_dentry);
} else {
/* Called from selinux_complete_init, try to find a dentry. */
dentry = d_find_alias(inode);
}
if (!dentry) {
/*
* this is can be hit on boot when a file is accessed
* before the policy is loaded. When we load policy we
* may find inodes that have no dentry on the
* sbsec->isec_head list. No reason to complain as these
* will get fixed up the next time we go through
* inode_doinit with a dentry, before these inodes could
* be used again by userspace.
*/
goto out_unlock;
}
len = INITCONTEXTLEN;
context = kmalloc(len+1, GFP_NOFS);
if (!context) {
rc = -ENOMEM;
dput(dentry);
goto out_unlock;
}
context[len] = '\0';
rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX,
context, len);
if (rc == -ERANGE) {
kfree(context);
/* Need a larger buffer. Query for the right size. */
rc = inode->i_op->getxattr(dentry, XATTR_NAME_SELINUX,
NULL, 0);
if (rc < 0) {
dput(dentry);
goto out_unlock;
}
len = rc;
context = kmalloc(len+1, GFP_NOFS);
if (!context) {
rc = -ENOMEM;
dput(dentry);
goto out_unlock;
}
context[len] = '\0';
rc = inode->i_op->getxattr(dentry,
XATTR_NAME_SELINUX,
context, len);
}
dput(dentry);
if (rc < 0) {
if (rc != -ENODATA) {
printk(KERN_WARNING "SELinux: %s: getxattr returned "
"%d for dev=%s ino=%ld\n", __func__,
-rc, inode->i_sb->s_id, inode->i_ino);
kfree(context);
goto out_unlock;
}
/* Map ENODATA to the default file SID */
sid = sbsec->def_sid;
rc = 0;
} else {
rc = security_context_to_sid_default(context, rc, &sid,
sbsec->def_sid,
GFP_NOFS);
if (rc) {
char *dev = inode->i_sb->s_id;
unsigned long ino = inode->i_ino;
if (rc == -EINVAL) {
if (printk_ratelimit())
printk(KERN_NOTICE "SELinux: inode=%lu on dev=%s was found to have an invalid "
"context=%s. This indicates you may need to relabel the inode or the "
"filesystem in question.\n", ino, dev, context);
} else {
printk(KERN_WARNING "SELinux: %s: context_to_sid(%s) "
"returned %d for dev=%s ino=%ld\n",
__func__, context, -rc, dev, ino);
}
kfree(context);
/* Leave with the unlabeled SID */
rc = 0;
break;
}
}
kfree(context);
isec->sid = sid;
break;
case SECURITY_FS_USE_TASK:
isec->sid = isec->task_sid;
break;
case SECURITY_FS_USE_TRANS:
/* Default to the fs SID. */
isec->sid = sbsec->sid;
/* Try to obtain a transition SID. */
isec->sclass = inode_mode_to_security_class(inode->i_mode);
rc = security_transition_sid(isec->task_sid, sbsec->sid,
isec->sclass, NULL, &sid);
if (rc)
goto out_unlock;
isec->sid = sid;
break;
case SECURITY_FS_USE_MNTPOINT:
isec->sid = sbsec->mntpoint_sid;
break;
default:
/* Default to the fs superblock SID. */
isec->sid = sbsec->sid;
if ((sbsec->flags & SE_SBPROC) && !S_ISLNK(inode->i_mode)) {
if (opt_dentry) {
isec->sclass = inode_mode_to_security_class(inode->i_mode);
rc = selinux_proc_get_sid(opt_dentry,
isec->sclass,
&sid);
if (rc)
goto out_unlock;
isec->sid = sid;
}
}
break;
}
isec->initialized = 1;
out_unlock:
mutex_unlock(&isec->lock);
out:
if (isec->sclass == SECCLASS_FILE)
isec->sclass = inode_mode_to_security_class(inode->i_mode);
return rc;
}
/* Convert a Linux signal to an access vector. */
static inline u32 signal_to_av(int sig)
{
u32 perm = 0;
switch (sig) {
case SIGCHLD:
/* Commonly granted from child to parent. */
perm = PROCESS__SIGCHLD;
break;
case SIGKILL:
/* Cannot be caught or ignored */
perm = PROCESS__SIGKILL;
break;
case SIGSTOP:
/* Cannot be caught or ignored */
perm = PROCESS__SIGSTOP;
break;
default:
/* All other signals. */
perm = PROCESS__SIGNAL;
break;
}
return perm;
}
/*
* Check permission between a pair of credentials
* fork check, ptrace check, etc.
*/
static int cred_has_perm(const struct cred *actor,
const struct cred *target,
u32 perms)
{
u32 asid = cred_sid(actor), tsid = cred_sid(target);
return avc_has_perm(asid, tsid, SECCLASS_PROCESS, perms, NULL);
}
/*
* Check permission between a pair of tasks, e.g. signal checks,
* fork check, ptrace check, etc.
* tsk1 is the actor and tsk2 is the target
* - this uses the default subjective creds of tsk1
*/
static int task_has_perm(const struct task_struct *tsk1,
const struct task_struct *tsk2,
u32 perms)
{
const struct task_security_struct *__tsec1, *__tsec2;
u32 sid1, sid2;
rcu_read_lock();
__tsec1 = __task_cred(tsk1)->security; sid1 = __tsec1->sid;
__tsec2 = __task_cred(tsk2)->security; sid2 = __tsec2->sid;
rcu_read_unlock();
return avc_has_perm(sid1, sid2, SECCLASS_PROCESS, perms, NULL);
}
/*
* Check permission between current and another task, e.g. signal checks,
* fork check, ptrace check, etc.
* current is the actor and tsk2 is the target
* - this uses current's subjective creds
*/
static int current_has_perm(const struct task_struct *tsk,
u32 perms)
{
u32 sid, tsid;
sid = current_sid();
tsid = task_sid(tsk);
return avc_has_perm(sid, tsid, SECCLASS_PROCESS, perms, NULL);
}
#if CAP_LAST_CAP > 63
#error Fix SELinux to handle capabilities > 63.
#endif
/* Check whether a task is allowed to use a capability. */
static int task_has_capability(struct task_struct *tsk,
const struct cred *cred,
int cap, int audit)
{
struct common_audit_data ad;
struct av_decision avd;
u16 sclass;
u32 sid = cred_sid(cred);
u32 av = CAP_TO_MASK(cap);
int rc;
COMMON_AUDIT_DATA_INIT(&ad, CAP);
ad.tsk = tsk;
ad.u.cap = cap;
switch (CAP_TO_INDEX(cap)) {
case 0:
sclass = SECCLASS_CAPABILITY;
break;
case 1:
sclass = SECCLASS_CAPABILITY2;
break;
default:
printk(KERN_ERR
"SELinux: out of range capability %d\n", cap);
BUG();
return -EINVAL;
}
rc = avc_has_perm_noaudit(sid, sid, sclass, av, 0, &avd);
if (audit == SECURITY_CAP_AUDIT) {
int rc2 = avc_audit(sid, sid, sclass, av, &avd, rc, &ad, 0);
if (rc2)
return rc2;
}
return rc;
}
/* Check whether a task is allowed to use a system operation. */
static int task_has_system(struct task_struct *tsk,
u32 perms)
{
u32 sid = task_sid(tsk);
return avc_has_perm(sid, SECINITSID_KERNEL,
SECCLASS_SYSTEM, perms, NULL);
}
/* Check whether a task has a particular permission to an inode.
The 'adp' parameter is optional and allows other audit
data to be passed (e.g. the dentry). */
static int inode_has_perm(const struct cred *cred,
struct inode *inode,
u32 perms,
struct common_audit_data *adp,
unsigned flags)
{
struct inode_security_struct *isec;
u32 sid;
validate_creds(cred);
if (unlikely(IS_PRIVATE(inode)))
return 0;
sid = cred_sid(cred);
isec = inode->i_security;
return avc_has_perm_flags(sid, isec->sid, isec->sclass, perms, adp, flags);
}
static int inode_has_perm_noadp(const struct cred *cred,
struct inode *inode,
u32 perms,
unsigned flags)
{
struct common_audit_data ad;
COMMON_AUDIT_DATA_INIT(&ad, INODE);
ad.u.inode = inode;
return inode_has_perm(cred, inode, perms, &ad, flags);
}
/* Same as inode_has_perm, but pass explicit audit data containing
the dentry to help the auditing code to more easily generate the
pathname if needed. */
static inline int dentry_has_perm(const struct cred *cred,
struct dentry *dentry,
u32 av)
{
struct inode *inode = dentry->d_inode;
struct common_audit_data ad;
COMMON_AUDIT_DATA_INIT(&ad, DENTRY);
ad.u.dentry = dentry;
return inode_has_perm(cred, inode, av, &ad, 0);
}
/* Same as inode_has_perm, but pass explicit audit data containing
the path to help the auditing code to more easily generate the
pathname if needed. */
static inline int path_has_perm(const struct cred *cred,
struct path *path,
u32 av)
{
struct inode *inode = path->dentry->d_inode;
struct common_audit_data ad;
COMMON_AUDIT_DATA_INIT(&ad, PATH);
ad.u.path = *path;
return inode_has_perm(cred, inode, av, &ad, 0);
}
/* Check whether a task can use an open file descriptor to
access an inode in a given way. Check access to the
descriptor itself, and then use dentry_has_perm to
check a particular permission to the file.
Access to the descriptor is implicitly granted if it
has the same SID as the process. If av is zero, then
access to the file is not checked, e.g. for cases
where only the descriptor is affected like seek. */
static int file_has_perm(const struct cred *cred,
struct file *file,
u32 av)
{
struct file_security_struct *fsec = file->f_security;
struct inode *inode = file->f_path.dentry->d_inode;
struct common_audit_data ad;
u32 sid = cred_sid(cred);
int rc;
COMMON_AUDIT_DATA_INIT(&ad, PATH);
ad.u.path = file->f_path;
if (sid != fsec->sid) {
rc = avc_has_perm(sid, fsec->sid,
SECCLASS_FD,
FD__USE,
&ad);
if (rc)
goto out;
}
/* av is zero if only checking access to the descriptor. */
rc = 0;
if (av)
rc = inode_has_perm(cred, inode, av, &ad, 0);
out:
return rc;
}
/* Check whether a task can create a file. */
static int may_create(struct inode *dir,
struct dentry *dentry,
u16 tclass)
{
const struct task_security_struct *tsec = current_security();
struct inode_security_struct *dsec;
struct superblock_security_struct *sbsec;
u32 sid, newsid;
struct common_audit_data ad;
int rc;
dsec = dir->i_security;
sbsec = dir->i_sb->s_security;
sid = tsec->sid;
newsid = tsec->create_sid;
COMMON_AUDIT_DATA_INIT(&ad, DENTRY);
ad.u.dentry = dentry;
rc = avc_has_perm(sid, dsec->sid, SECCLASS_DIR,
DIR__ADD_NAME | DIR__SEARCH,
&ad);
if (rc)
return rc;
if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) {
rc = security_transition_sid(sid, dsec->sid, tclass,
&dentry->d_name, &newsid);
if (rc)
return rc;
}
rc = avc_has_perm(sid, newsid, tclass, FILE__CREATE, &ad);
if (rc)
return rc;
return avc_has_perm(newsid, sbsec->sid,
SECCLASS_FILESYSTEM,
FILESYSTEM__ASSOCIATE, &ad);
}
/* Check whether a task can create a key. */
static int may_create_key(u32 ksid,
struct task_struct *ctx)
{
u32 sid = task_sid(ctx);
return avc_has_perm(sid, ksid, SECCLASS_KEY, KEY__CREATE, NULL);
}
#define MAY_LINK 0
#define MAY_UNLINK 1
#define MAY_RMDIR 2
/* Check whether a task can link, unlink, or rmdir a file/directory. */
static int may_link(struct inode *dir,
struct dentry *dentry,
int kind)
{
struct inode_security_struct *dsec, *isec;
struct common_audit_data ad;
u32 sid = current_sid();
u32 av;
int rc;
dsec = dir->i_security;
isec = dentry->d_inode->i_security;
COMMON_AUDIT_DATA_INIT(&ad, DENTRY);
ad.u.dentry = dentry;
av = DIR__SEARCH;
av |= (kind ? DIR__REMOVE_NAME : DIR__ADD_NAME);
rc = avc_has_perm(sid, dsec->sid, SECCLASS_DIR, av, &ad);
if (rc)
return rc;
switch (kind) {
case MAY_LINK:
av = FILE__LINK;
break;
case MAY_UNLINK:
av = FILE__UNLINK;
break;
case MAY_RMDIR:
av = DIR__RMDIR;
break;
default:
printk(KERN_WARNING "SELinux: %s: unrecognized kind %d\n",
__func__, kind);
return 0;
}
rc = avc_has_perm(sid, isec->sid, isec->sclass, av, &ad);
return rc;
}
static inline int may_rename(struct inode *old_dir,
struct dentry *old_dentry,
struct inode *new_dir,
struct dentry *new_dentry)
{
struct inode_security_struct *old_dsec, *new_dsec, *old_isec, *new_isec;
struct common_audit_data ad;
u32 sid = current_sid();
u32 av;
int old_is_dir, new_is_dir;
int rc;
old_dsec = old_dir->i_security;
old_isec = old_dentry->d_inode->i_security;
old_is_dir = S_ISDIR(old_dentry->d_inode->i_mode);
new_dsec = new_dir->i_security;
COMMON_AUDIT_DATA_INIT(&ad, DENTRY);
ad.u.dentry = old_dentry;
rc = avc_has_perm(sid, old_dsec->sid, SECCLASS_DIR,
DIR__REMOVE_NAME | DIR__SEARCH, &ad);
if (rc)
return rc;
rc = avc_has_perm(sid, old_isec->sid,
old_isec->sclass, FILE__RENAME, &ad);
if (rc)
return rc;
if (old_is_dir && new_dir != old_dir) {
rc = avc_has_perm(sid, old_isec->sid,
old_isec->sclass, DIR__REPARENT, &ad);
if (rc)
return rc;
}
ad.u.dentry = new_dentry;
av = DIR__ADD_NAME | DIR__SEARCH;
if (new_dentry->d_inode)
av |= DIR__REMOVE_NAME;
rc = avc_has_perm(sid, new_dsec->sid, SECCLASS_DIR, av, &ad);
if (rc)
return rc;
if (new_dentry->d_inode) {
new_isec = new_dentry->d_inode->i_security;
new_is_dir = S_ISDIR(new_dentry->d_inode->i_mode);
rc = avc_has_perm(sid, new_isec->sid,
new_isec->sclass,
(new_is_dir ? DIR__RMDIR : FILE__UNLINK), &ad);
if (rc)
return rc;
}
return 0;
}
/* Check whether a task can perform a filesystem operation. */
static int superblock_has_perm(const struct cred *cred,
struct super_block *sb,
u32 perms,
struct common_audit_data *ad)
{
struct superblock_security_struct *sbsec;
u32 sid = cred_sid(cred);
sbsec = sb->s_security;
return avc_has_perm(sid, sbsec->sid, SECCLASS_FILESYSTEM, perms, ad);
}
/* Convert a Linux mode and permission mask to an access vector. */
static inline u32 file_mask_to_av(int mode, int mask)
{
u32 av = 0;
if ((mode & S_IFMT) != S_IFDIR) {
if (mask & MAY_EXEC)
av |= FILE__EXECUTE;
if (mask & MAY_READ)
av |= FILE__READ;
if (mask & MAY_APPEND)
av |= FILE__APPEND;
else if (mask & MAY_WRITE)
av |= FILE__WRITE;
} else {
if (mask & MAY_EXEC)
av |= DIR__SEARCH;
if (mask & MAY_WRITE)
av |= DIR__WRITE;
if (mask & MAY_READ)
av |= DIR__READ;
}
return av;
}
/* Convert a Linux file to an access vector. */
static inline u32 file_to_av(struct file *file)
{
u32 av = 0;
if (file->f_mode & FMODE_READ)
av |= FILE__READ;
if (file->f_mode & FMODE_WRITE) {
if (file->f_flags & O_APPEND)
av |= FILE__APPEND;
else
av |= FILE__WRITE;
}
if (!av) {
/*
* Special file opened with flags 3 for ioctl-only use.
*/
av = FILE__IOCTL;
}
return av;
}
/*
* Convert a file to an access vector and include the correct open
* open permission.
*/
static inline u32 open_file_to_av(struct file *file)
{
u32 av = file_to_av(file);
if (selinux_policycap_openperm)
av |= FILE__OPEN;
return av;
}
/* Hook functions begin here. */
static int selinux_binder_set_context_mgr(struct task_struct *mgr)
{
u32 mysid = current_sid();
u32 mgrsid = task_sid(mgr);
return avc_has_perm(mysid, mgrsid, SECCLASS_BINDER, BINDER__SET_CONTEXT_MGR, NULL);
}
static int selinux_binder_transaction(struct task_struct *from, struct task_struct *to)
{
u32 mysid = current_sid();
u32 fromsid = task_sid(from);
u32 tosid = task_sid(to);
int rc;
if (mysid != fromsid) {
rc = avc_has_perm(mysid, fromsid, SECCLASS_BINDER, BINDER__IMPERSONATE, NULL);
if (rc)
return rc;
}
return avc_has_perm(fromsid, tosid, SECCLASS_BINDER, BINDER__CALL, NULL);
}
static int selinux_binder_transfer_binder(struct task_struct *from, struct task_struct *to)
{
u32 fromsid = task_sid(from);
u32 tosid = task_sid(to);
return avc_has_perm(fromsid, tosid, SECCLASS_BINDER, BINDER__TRANSFER, NULL);
}
static int selinux_binder_transfer_file(struct task_struct *from, struct task_struct *to, struct file *file)
{
u32 sid = task_sid(to);
struct file_security_struct *fsec = file->f_security;
struct inode *inode = file->f_path.dentry->d_inode;
struct inode_security_struct *isec = inode->i_security;
struct common_audit_data ad;
int rc;
COMMON_AUDIT_DATA_INIT(&ad, PATH);
ad.u.path = file->f_path;
if (sid != fsec->sid) {
rc = avc_has_perm(sid, fsec->sid,
SECCLASS_FD,
FD__USE,
&ad);
if (rc)
return rc;
}
if (unlikely(IS_PRIVATE(inode)))
return 0;
return avc_has_perm(sid, isec->sid, isec->sclass, file_to_av(file),
&ad);
}
static int selinux_ptrace_access_check(struct task_struct *child,
unsigned int mode)
{
int rc;
rc = cap_ptrace_access_check(child, mode);
if (rc)
return rc;
if (mode == PTRACE_MODE_READ) {
u32 sid = current_sid();
u32 csid = task_sid(child);
return avc_has_perm(sid, csid, SECCLASS_FILE, FILE__READ, NULL);
}
return current_has_perm(child, PROCESS__PTRACE);
}
static int selinux_ptrace_traceme(struct task_struct *parent)
{
int rc;
rc = cap_ptrace_traceme(parent);
if (rc)
return rc;
return task_has_perm(parent, current, PROCESS__PTRACE);
}
static int selinux_capget(struct task_struct *target, kernel_cap_t *effective,
kernel_cap_t *inheritable, kernel_cap_t *permitted)
{
int error;
error = current_has_perm(target, PROCESS__GETCAP);
if (error)
return error;
return cap_capget(target, effective, inheritable, permitted);
}
static int selinux_capset(struct cred *new, const struct cred *old,
const kernel_cap_t *effective,
const kernel_cap_t *inheritable,
const kernel_cap_t *permitted)
{
int error;
error = cap_capset(new, old,
effective, inheritable, permitted);
if (error)
return error;
return cred_has_perm(old, new, PROCESS__SETCAP);
}
/*
* (This comment used to live with the selinux_task_setuid hook,
* which was removed).
*
* Since setuid only affects the current process, and since the SELinux
* controls are not based on the Linux identity attributes, SELinux does not
* need to control this operation. However, SELinux does control the use of
* the CAP_SETUID and CAP_SETGID capabilities using the capable hook.
*/
static int selinux_capable(struct task_struct *tsk, const struct cred *cred,
struct user_namespace *ns, int cap, int audit)
{
int rc;
rc = cap_capable(tsk, cred, ns, cap, audit);
if (rc)
return rc;
return task_has_capability(tsk, cred, cap, audit);
}
static int selinux_quotactl(int cmds, int type, int id, struct super_block *sb)
{
const struct cred *cred = current_cred();
int rc = 0;
if (!sb)
return 0;
switch (cmds) {
case Q_SYNC:
case Q_QUOTAON:
case Q_QUOTAOFF:
case Q_SETINFO:
case Q_SETQUOTA:
rc = superblock_has_perm(cred, sb, FILESYSTEM__QUOTAMOD, NULL);
break;
case Q_GETFMT:
case Q_GETINFO:
case Q_GETQUOTA:
rc = superblock_has_perm(cred, sb, FILESYSTEM__QUOTAGET, NULL);
break;
default:
rc = 0; /* let the kernel handle invalid cmds */
break;
}
return rc;
}
static int selinux_quota_on(struct dentry *dentry)
{
const struct cred *cred = current_cred();
return dentry_has_perm(cred, dentry, FILE__QUOTAON);
}
static int selinux_syslog(int type)
{
int rc;
switch (type) {
case SYSLOG_ACTION_READ_ALL: /* Read last kernel messages */
case SYSLOG_ACTION_SIZE_BUFFER: /* Return size of the log buffer */
rc = task_has_system(current, SYSTEM__SYSLOG_READ);
break;
case SYSLOG_ACTION_CONSOLE_OFF: /* Disable logging to console */
case SYSLOG_ACTION_CONSOLE_ON: /* Enable logging to console */
/* Set level of messages printed to console */
case SYSLOG_ACTION_CONSOLE_LEVEL:
rc = task_has_system(current, SYSTEM__SYSLOG_CONSOLE);
break;
case SYSLOG_ACTION_CLOSE: /* Close log */
case SYSLOG_ACTION_OPEN: /* Open log */
case SYSLOG_ACTION_READ: /* Read from log */
case SYSLOG_ACTION_READ_CLEAR: /* Read/clear last kernel messages */
case SYSLOG_ACTION_CLEAR: /* Clear ring buffer */
default:
rc = task_has_system(current, SYSTEM__SYSLOG_MOD);
break;
}
return rc;
}
/*
* Check that a process has enough memory to allocate a new virtual
* mapping. 0 means there is enough memory for the allocation to
* succeed and -ENOMEM implies there is not.
*
* Do not audit the selinux permission check, as this is applied to all
* processes that allocate mappings.
*/
static int selinux_vm_enough_memory(struct mm_struct *mm, long pages)
{
int rc, cap_sys_admin = 0;
rc = selinux_capable(current, current_cred(),
&init_user_ns, CAP_SYS_ADMIN,
SECURITY_CAP_NOAUDIT);
if (rc == 0)
cap_sys_admin = 1;
return __vm_enough_memory(mm, pages, cap_sys_admin);
}
/* binprm security operations */
static int selinux_bprm_set_creds(struct linux_binprm *bprm)
{
const struct task_security_struct *old_tsec;
struct task_security_struct *new_tsec;
struct inode_security_struct *isec;
struct common_audit_data ad;
struct inode *inode = bprm->file->f_path.dentry->d_inode;
int rc;
rc = cap_bprm_set_creds(bprm);
if (rc)
return rc;
/* SELinux context only depends on initial program or script and not
* the script interpreter */
if (bprm->cred_prepared)
return 0;
old_tsec = current_security();
new_tsec = bprm->cred->security;
isec = inode->i_security;
/* Default to the current task SID. */
new_tsec->sid = old_tsec->sid;
new_tsec->osid = old_tsec->sid;
/* Reset fs, key, and sock SIDs on execve. */
new_tsec->create_sid = 0;
new_tsec->keycreate_sid = 0;
new_tsec->sockcreate_sid = 0;
if (old_tsec->exec_sid) {
new_tsec->sid = old_tsec->exec_sid;
/* Reset exec SID on execve. */
new_tsec->exec_sid = 0;
} else {
/* Check for a default transition on this program. */
rc = security_transition_sid(old_tsec->sid, isec->sid,
SECCLASS_PROCESS, NULL,
&new_tsec->sid);
if (rc)
return rc;
}
COMMON_AUDIT_DATA_INIT(&ad, PATH);
ad.u.path = bprm->file->f_path;
if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID)
new_tsec->sid = old_tsec->sid;
if (new_tsec->sid == old_tsec->sid) {
rc = avc_has_perm(old_tsec->sid, isec->sid,
SECCLASS_FILE, FILE__EXECUTE_NO_TRANS, &ad);
if (rc)
return rc;
} else {
/* Check permissions for the transition. */
rc = avc_has_perm(old_tsec->sid, new_tsec->sid,
SECCLASS_PROCESS, PROCESS__TRANSITION, &ad);
if (rc)
return rc;
rc = avc_has_perm(new_tsec->sid, isec->sid,
SECCLASS_FILE, FILE__ENTRYPOINT, &ad);
if (rc)
return rc;
/* Check for shared state */
if (bprm->unsafe & LSM_UNSAFE_SHARE) {
rc = avc_has_perm(old_tsec->sid, new_tsec->sid,
SECCLASS_PROCESS, PROCESS__SHARE,
NULL);
if (rc)
return -EPERM;
}
/* Make sure that anyone attempting to ptrace over a task that
* changes its SID has the appropriate permit */
if (bprm->unsafe &
(LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP)) {
struct task_struct *tracer;
struct task_security_struct *sec;
u32 ptsid = 0;
rcu_read_lock();
tracer = tracehook_tracer_task(current);
if (likely(tracer != NULL)) {
sec = __task_cred(tracer)->security;
ptsid = sec->sid;
}
rcu_read_unlock();
if (ptsid != 0) {
rc = avc_has_perm(ptsid, new_tsec->sid,
SECCLASS_PROCESS,
PROCESS__PTRACE, NULL);
if (rc)
return -EPERM;
}
}
/* Clear any possibly unsafe personality bits on exec: */
bprm->per_clear |= PER_CLEAR_ON_SETID;
}
return 0;
}
static int selinux_bprm_secureexec(struct linux_binprm *bprm)
{
const struct task_security_struct *tsec = current_security();
u32 sid, osid;
int atsecure = 0;
sid = tsec->sid;
osid = tsec->osid;
if (osid != sid) {
/* Enable secure mode for SIDs transitions unless
the noatsecure permission is granted between
the two SIDs, i.e. ahp returns 0. */
atsecure = avc_has_perm(osid, sid,
SECCLASS_PROCESS,
PROCESS__NOATSECURE, NULL);
}
return (atsecure || cap_bprm_secureexec(bprm));
}
extern struct vfsmount *selinuxfs_mount;
extern struct dentry *selinux_null;
/* Derived from fs/exec.c:flush_old_files. */
static inline void flush_unauthorized_files(const struct cred *cred,
struct files_struct *files)
{
struct common_audit_data ad;
struct file *file, *devnull = NULL;
struct tty_struct *tty;
struct fdtable *fdt;
long j = -1;
int drop_tty = 0;
tty = get_current_tty();
if (tty) {
spin_lock(&tty_files_lock);
if (!list_empty(&tty->tty_files)) {
struct tty_file_private *file_priv;
struct inode *inode;
/* Revalidate access to controlling tty.
Use inode_has_perm on the tty inode directly rather
than using file_has_perm, as this particular open
file may belong to another process and we are only
interested in the inode-based check here. */
file_priv = list_first_entry(&tty->tty_files,
struct tty_file_private, list);
file = file_priv->file;
inode = file->f_path.dentry->d_inode;
if (inode_has_perm_noadp(cred, inode,
FILE__READ | FILE__WRITE, 0)) {
drop_tty = 1;
}
}
spin_unlock(&tty_files_lock);
tty_kref_put(tty);
}
/* Reset controlling tty. */
if (drop_tty)
no_tty();
/* Revalidate access to inherited open files. */
COMMON_AUDIT_DATA_INIT(&ad, INODE);
spin_lock(&files->file_lock);
for (;;) {
unsigned long set, i;
int fd;
j++;
i = j * __NFDBITS;
fdt = files_fdtable(files);
if (i >= fdt->max_fds)
break;
set = fdt->open_fds->fds_bits[j];
if (!set)
continue;
spin_unlock(&files->file_lock);
for ( ; set ; i++, set >>= 1) {
if (set & 1) {
file = fget(i);
if (!file)
continue;
if (file_has_perm(cred,
file,
file_to_av(file))) {
sys_close(i);
fd = get_unused_fd();
if (fd != i) {
if (fd >= 0)
put_unused_fd(fd);
fput(file);
continue;
}
if (devnull) {
get_file(devnull);
} else {
devnull = dentry_open(
dget(selinux_null),
mntget(selinuxfs_mount),
O_RDWR, cred);
if (IS_ERR(devnull)) {
devnull = NULL;
put_unused_fd(fd);
fput(file);
continue;
}
}
fd_install(fd, devnull);
}
fput(file);
}
}
spin_lock(&files->file_lock);
}
spin_unlock(&files->file_lock);
}
/*
* Prepare a process for imminent new credential changes due to exec
*/
static void selinux_bprm_committing_creds(struct linux_binprm *bprm)
{
struct task_security_struct *new_tsec;
struct rlimit *rlim, *initrlim;
int rc, i;
new_tsec = bprm->cred->security;
if (new_tsec->sid == new_tsec->osid)
return;
/* Close files for which the new task SID is not authorized. */
flush_unauthorized_files(bprm->cred, current->files);
/* Always clear parent death signal on SID transitions. */
current->pdeath_signal = 0;
/* Check whether the new SID can inherit resource limits from the old
* SID. If not, reset all soft limits to the lower of the current
* task's hard limit and the init task's soft limit.
*
* Note that the setting of hard limits (even to lower them) can be
* controlled by the setrlimit check. The inclusion of the init task's
* soft limit into the computation is to avoid resetting soft limits
* higher than the default soft limit for cases where the default is
* lower than the hard limit, e.g. RLIMIT_CORE or RLIMIT_STACK.
*/
rc = avc_has_perm(new_tsec->osid, new_tsec->sid, SECCLASS_PROCESS,
PROCESS__RLIMITINH, NULL);
if (rc) {
/* protect against do_prlimit() */
task_lock(current);
for (i = 0; i < RLIM_NLIMITS; i++) {
rlim = current->signal->rlim + i;
initrlim = init_task.signal->rlim + i;
rlim->rlim_cur = min(rlim->rlim_max, initrlim->rlim_cur);
}
task_unlock(current);
update_rlimit_cpu(current, rlimit(RLIMIT_CPU));
}
}
/*
* Clean up the process immediately after the installation of new credentials
* due to exec
*/
static void selinux_bprm_committed_creds(struct linux_binprm *bprm)
{
const struct task_security_struct *tsec = current_security();
struct itimerval itimer;
u32 osid, sid;
int rc, i;
osid = tsec->osid;
sid = tsec->sid;
if (sid == osid)
return;
/* Check whether the new SID can inherit signal state from the old SID.
* If not, clear itimers to avoid subsequent signal generation and
* flush and unblock signals.
*
* This must occur _after_ the task SID has been updated so that any
* kill done after the flush will be checked against the new SID.
*/
rc = avc_has_perm(osid, sid, SECCLASS_PROCESS, PROCESS__SIGINH, NULL);
if (rc) {
memset(&itimer, 0, sizeof itimer);
for (i = 0; i < 3; i++)
do_setitimer(i, &itimer, NULL);
spin_lock_irq(¤t->sighand->siglock);
if (!(current->signal->flags & SIGNAL_GROUP_EXIT)) {
__flush_signals(current);
flush_signal_handlers(current, 1);
sigemptyset(¤t->blocked);
}
spin_unlock_irq(¤t->sighand->siglock);
}
/* Wake up the parent if it is waiting so that it can recheck
* wait permission to the new task SID. */
read_lock(&tasklist_lock);
__wake_up_parent(current, current->real_parent);
read_unlock(&tasklist_lock);
}
/* superblock security operations */
static int selinux_sb_alloc_security(struct super_block *sb)
{
return superblock_alloc_security(sb);
}
static void selinux_sb_free_security(struct super_block *sb)
{
superblock_free_security(sb);
}
static inline int match_prefix(char *prefix, int plen, char *option, int olen)
{
if (plen > olen)
return 0;
return !memcmp(prefix, option, plen);
}
static inline int selinux_option(char *option, int len)
{
return (match_prefix(CONTEXT_STR, sizeof(CONTEXT_STR)-1, option, len) ||
match_prefix(FSCONTEXT_STR, sizeof(FSCONTEXT_STR)-1, option, len) ||
match_prefix(DEFCONTEXT_STR, sizeof(DEFCONTEXT_STR)-1, option, len) ||
match_prefix(ROOTCONTEXT_STR, sizeof(ROOTCONTEXT_STR)-1, option, len) ||
match_prefix(LABELSUPP_STR, sizeof(LABELSUPP_STR)-1, option, len));
}
static inline void take_option(char **to, char *from, int *first, int len)
{
if (!*first) {
**to = ',';
*to += 1;
} else
*first = 0;
memcpy(*to, from, len);
*to += len;
}
static inline void take_selinux_option(char **to, char *from, int *first,
int len)
{
int current_size = 0;
if (!*first) {
**to = '|';
*to += 1;
} else
*first = 0;
while (current_size < len) {
if (*from != '"') {
**to = *from;
*to += 1;
}
from += 1;
current_size += 1;
}
}
static int selinux_sb_copy_data(char *orig, char *copy)
{
int fnosec, fsec, rc = 0;
char *in_save, *in_curr, *in_end;
char *sec_curr, *nosec_save, *nosec;
int open_quote = 0;
in_curr = orig;
sec_curr = copy;
nosec = (char *)get_zeroed_page(GFP_KERNEL);
if (!nosec) {
rc = -ENOMEM;
goto out;
}
nosec_save = nosec;
fnosec = fsec = 1;
in_save = in_end = orig;
do {
if (*in_end == '"')
open_quote = !open_quote;
if ((*in_end == ',' && open_quote == 0) ||
*in_end == '\0') {
int len = in_end - in_curr;
if (selinux_option(in_curr, len))
take_selinux_option(&sec_curr, in_curr, &fsec, len);
else
take_option(&nosec, in_curr, &fnosec, len);
in_curr = in_end + 1;
}
} while (*in_end++);
strcpy(in_save, nosec_save);
free_page((unsigned long)nosec_save);
out:
return rc;
}
static int selinux_sb_remount(struct super_block *sb, void *data)
{
int rc, i, *flags;
struct security_mnt_opts opts;
char *secdata, **mount_options;
struct superblock_security_struct *sbsec = sb->s_security;
if (!(sbsec->flags & SE_SBINITIALIZED))
return 0;
if (!data)
return 0;
if (sb->s_type->fs_flags & FS_BINARY_MOUNTDATA)
return 0;
security_init_mnt_opts(&opts);
secdata = alloc_secdata();
if (!secdata)
return -ENOMEM;
rc = selinux_sb_copy_data(data, secdata);
if (rc)
goto out_free_secdata;
rc = selinux_parse_opts_str(secdata, &opts);
if (rc)
goto out_free_secdata;
mount_options = opts.mnt_opts;
flags = opts.mnt_opts_flags;
for (i = 0; i < opts.num_mnt_opts; i++) {
u32 sid;
size_t len;
if (flags[i] == SE_SBLABELSUPP)
continue;
len = strlen(mount_options[i]);
rc = security_context_to_sid(mount_options[i], len, &sid);
if (rc) {
printk(KERN_WARNING "SELinux: security_context_to_sid"
"(%s) failed for (dev %s, type %s) errno=%d\n",
mount_options[i], sb->s_id, sb->s_type->name, rc);
goto out_free_opts;
}
rc = -EINVAL;
switch (flags[i]) {
case FSCONTEXT_MNT:
if (bad_option(sbsec, FSCONTEXT_MNT, sbsec->sid, sid))
goto out_bad_option;
break;
case CONTEXT_MNT:
if (bad_option(sbsec, CONTEXT_MNT, sbsec->mntpoint_sid, sid))
goto out_bad_option;
break;
case ROOTCONTEXT_MNT: {
struct inode_security_struct *root_isec;
root_isec = sb->s_root->d_inode->i_security;
if (bad_option(sbsec, ROOTCONTEXT_MNT, root_isec->sid, sid))
goto out_bad_option;
break;
}
case DEFCONTEXT_MNT:
if (bad_option(sbsec, DEFCONTEXT_MNT, sbsec->def_sid, sid))
goto out_bad_option;
break;
default:
goto out_free_opts;
}
}
rc = 0;
out_free_opts:
security_free_mnt_opts(&opts);
out_free_secdata:
free_secdata(secdata);
return rc;
out_bad_option:
printk(KERN_WARNING "SELinux: unable to change security options "
"during remount (dev %s, type=%s)\n", sb->s_id,
sb->s_type->name);
goto out_free_opts;
}
static int selinux_sb_kern_mount(struct super_block *sb, int flags, void *data)
{
const struct cred *cred = current_cred();
struct common_audit_data ad;
int rc;
rc = superblock_doinit(sb, data);
if (rc)
return rc;
/* Allow all mounts performed by the kernel */
if (flags & MS_KERNMOUNT)
return 0;
COMMON_AUDIT_DATA_INIT(&ad, DENTRY);
ad.u.dentry = sb->s_root;
return superblock_has_perm(cred, sb, FILESYSTEM__MOUNT, &ad);
}
static int selinux_sb_statfs(struct dentry *dentry)
{
const struct cred *cred = current_cred();
struct common_audit_data ad;
COMMON_AUDIT_DATA_INIT(&ad, DENTRY);
ad.u.dentry = dentry->d_sb->s_root;
return superblock_has_perm(cred, dentry->d_sb, FILESYSTEM__GETATTR, &ad);
}
static int selinux_mount(char *dev_name,
struct path *path,
char *type,
unsigned long flags,
void *data)
{
const struct cred *cred = current_cred();
if (flags & MS_REMOUNT)
return superblock_has_perm(cred, path->mnt->mnt_sb,
FILESYSTEM__REMOUNT, NULL);
else
return path_has_perm(cred, path, FILE__MOUNTON);
}
static int selinux_umount(struct vfsmount *mnt, int flags)
{
const struct cred *cred = current_cred();
return superblock_has_perm(cred, mnt->mnt_sb,
FILESYSTEM__UNMOUNT, NULL);
}
/* inode security operations */
static int selinux_inode_alloc_security(struct inode *inode)
{
return inode_alloc_security(inode);
}
static void selinux_inode_free_security(struct inode *inode)
{
inode_free_security(inode);
}
static int selinux_inode_init_security(struct inode *inode, struct inode *dir,
const struct qstr *qstr, char **name,
void **value, size_t *len)
{
const struct task_security_struct *tsec = current_security();
struct inode_security_struct *dsec;
struct superblock_security_struct *sbsec;
u32 sid, newsid, clen;
int rc;
char *namep = NULL, *context;
dsec = dir->i_security;
sbsec = dir->i_sb->s_security;
sid = tsec->sid;
newsid = tsec->create_sid;
if ((sbsec->flags & SE_SBINITIALIZED) &&
(sbsec->behavior == SECURITY_FS_USE_MNTPOINT))
newsid = sbsec->mntpoint_sid;
else if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) {
rc = security_transition_sid(sid, dsec->sid,
inode_mode_to_security_class(inode->i_mode),
qstr, &newsid);
if (rc) {
printk(KERN_WARNING "%s: "
"security_transition_sid failed, rc=%d (dev=%s "
"ino=%ld)\n",
__func__,
-rc, inode->i_sb->s_id, inode->i_ino);
return rc;
}
}
/* Possibly defer initialization to selinux_complete_init. */
if (sbsec->flags & SE_SBINITIALIZED) {
struct inode_security_struct *isec = inode->i_security;
isec->sclass = inode_mode_to_security_class(inode->i_mode);
isec->sid = newsid;
isec->initialized = 1;
}
if (!ss_initialized || !(sbsec->flags & SE_SBLABELSUPP))
return -EOPNOTSUPP;
if (name) {
namep = kstrdup(XATTR_SELINUX_SUFFIX, GFP_NOFS);
if (!namep)
return -ENOMEM;
*name = namep;
}
if (value && len) {
rc = security_sid_to_context_force(newsid, &context, &clen);
if (rc) {
kfree(namep);
return rc;
}
*value = context;
*len = clen;
}
return 0;
}
static int selinux_inode_create(struct inode *dir, struct dentry *dentry, int mask)
{
return may_create(dir, dentry, SECCLASS_FILE);
}
static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry)
{
return may_link(dir, old_dentry, MAY_LINK);
}
static int selinux_inode_unlink(struct inode *dir, struct dentry *dentry)
{
return may_link(dir, dentry, MAY_UNLINK);
}
static int selinux_inode_symlink(struct inode *dir, struct dentry *dentry, const char *name)
{
return may_create(dir, dentry, SECCLASS_LNK_FILE);
}
static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, int mask)
{
return may_create(dir, dentry, SECCLASS_DIR);
}
static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry)
{
return may_link(dir, dentry, MAY_RMDIR);
}
static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
{
return may_create(dir, dentry, inode_mode_to_security_class(mode));
}
static int selinux_inode_rename(struct inode *old_inode, struct dentry *old_dentry,
struct inode *new_inode, struct dentry *new_dentry)
{
return may_rename(old_inode, old_dentry, new_inode, new_dentry);
}
static int selinux_inode_readlink(struct dentry *dentry)
{
const struct cred *cred = current_cred();
return dentry_has_perm(cred, dentry, FILE__READ);
}
static int selinux_inode_follow_link(struct dentry *dentry, struct nameidata *nameidata)
{
const struct cred *cred = current_cred();
return dentry_has_perm(cred, dentry, FILE__READ);
}
static int selinux_inode_permission(struct inode *inode, int mask, unsigned flags)
{
const struct cred *cred = current_cred();
struct common_audit_data ad;
u32 perms;
bool from_access;
from_access = mask & MAY_ACCESS;
mask &= (MAY_READ|MAY_WRITE|MAY_EXEC|MAY_APPEND);
/* No permission to check. Existence test. */
if (!mask)
return 0;
COMMON_AUDIT_DATA_INIT(&ad, INODE);
ad.u.inode = inode;
if (from_access)
ad.selinux_audit_data.auditdeny |= FILE__AUDIT_ACCESS;
perms = file_mask_to_av(inode->i_mode, mask);
return inode_has_perm(cred, inode, perms, &ad, flags);
}
static int selinux_inode_setattr(struct dentry *dentry, struct iattr *iattr)
{
const struct cred *cred = current_cred();
unsigned int ia_valid = iattr->ia_valid;
/* ATTR_FORCE is just used for ATTR_KILL_S[UG]ID. */
if (ia_valid & ATTR_FORCE) {
ia_valid &= ~(ATTR_KILL_SUID | ATTR_KILL_SGID | ATTR_MODE |
ATTR_FORCE);
if (!ia_valid)
return 0;
}
if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID |
ATTR_ATIME_SET | ATTR_MTIME_SET | ATTR_TIMES_SET))
return dentry_has_perm(cred, dentry, FILE__SETATTR);
return dentry_has_perm(cred, dentry, FILE__WRITE);
}
static int selinux_inode_getattr(struct vfsmount *mnt, struct dentry *dentry)
{
const struct cred *cred = current_cred();
struct path path;
path.dentry = dentry;
path.mnt = mnt;
return path_has_perm(cred, &path, FILE__GETATTR);
}
static int selinux_inode_setotherxattr(struct dentry *dentry, const char *name)
{
const struct cred *cred = current_cred();
if (!strncmp(name, XATTR_SECURITY_PREFIX,
sizeof XATTR_SECURITY_PREFIX - 1)) {
if (!strcmp(name, XATTR_NAME_CAPS)) {
if (!capable(CAP_SETFCAP))
return -EPERM;
} else if (!capable(CAP_SYS_ADMIN)) {
/* A different attribute in the security namespace.
Restrict to administrator. */
return -EPERM;
}
}
/* Not an attribute we recognize, so just check the
ordinary setattr permission. */
return dentry_has_perm(cred, dentry, FILE__SETATTR);
}
static int selinux_inode_setxattr(struct dentry *dentry, const char *name,
const void *value, size_t size, int flags)
{
struct inode *inode = dentry->d_inode;
struct inode_security_struct *isec = inode->i_security;
struct superblock_security_struct *sbsec;
struct common_audit_data ad;
u32 newsid, sid = current_sid();
int rc = 0;
if (strcmp(name, XATTR_NAME_SELINUX))
return selinux_inode_setotherxattr(dentry, name);
sbsec = inode->i_sb->s_security;
if (!(sbsec->flags & SE_SBLABELSUPP))
return -EOPNOTSUPP;
if (!inode_owner_or_capable(inode))
return -EPERM;
COMMON_AUDIT_DATA_INIT(&ad, DENTRY);
ad.u.dentry = dentry;
rc = avc_has_perm(sid, isec->sid, isec->sclass,
FILE__RELABELFROM, &ad);
if (rc)
return rc;
rc = security_context_to_sid(value, size, &newsid);
if (rc == -EINVAL) {
if (!capable(CAP_MAC_ADMIN))
return rc;
rc = security_context_to_sid_force(value, size, &newsid);
}
if (rc)
return rc;
rc = avc_has_perm(sid, newsid, isec->sclass,
FILE__RELABELTO, &ad);
if (rc)
return rc;
rc = security_validate_transition(isec->sid, newsid, sid,
isec->sclass);
if (rc)
return rc;
return avc_has_perm(newsid,
sbsec->sid,
SECCLASS_FILESYSTEM,
FILESYSTEM__ASSOCIATE,
&ad);
}
static void selinux_inode_post_setxattr(struct dentry *dentry, const char *name,
const void *value, size_t size,
int flags)
{
struct inode *inode = dentry->d_inode;
struct inode_security_struct *isec = inode->i_security;
u32 newsid;
int rc;
if (strcmp(name, XATTR_NAME_SELINUX)) {
/* Not an attribute we recognize, so nothing to do. */
return;
}
rc = security_context_to_sid_force(value, size, &newsid);
if (rc) {
printk(KERN_ERR "SELinux: unable to map context to SID"
"for (%s, %lu), rc=%d\n",
inode->i_sb->s_id, inode->i_ino, -rc);
return;
}
isec->sid = newsid;
return;
}
static int selinux_inode_getxattr(struct dentry *dentry, const char *name)
{
const struct cred *cred = current_cred();
return dentry_has_perm(cred, dentry, FILE__GETATTR);
}
static int selinux_inode_listxattr(struct dentry *dentry)
{
const struct cred *cred = current_cred();
return dentry_has_perm(cred, dentry, FILE__GETATTR);
}
static int selinux_inode_removexattr(struct dentry *dentry, const char *name)
{
if (strcmp(name, XATTR_NAME_SELINUX))
return selinux_inode_setotherxattr(dentry, name);
/* No one is allowed to remove a SELinux security label.
You can change the label, but all data must be labeled. */
return -EACCES;
}
/*
* Copy the inode security context value to the user.
*
* Permission check is handled by selinux_inode_getxattr hook.
*/
static int selinux_inode_getsecurity(const struct inode *inode, const char *name, void **buffer, bool alloc)
{
u32 size;
int error;
char *context = NULL;
struct inode_security_struct *isec = inode->i_security;
if (strcmp(name, XATTR_SELINUX_SUFFIX))
return -EOPNOTSUPP;
/*
* If the caller has CAP_MAC_ADMIN, then get the raw context
* value even if it is not defined by current policy; otherwise,
* use the in-core value under current policy.
* Use the non-auditing forms of the permission checks since
* getxattr may be called by unprivileged processes commonly
* and lack of permission just means that we fall back to the
* in-core context value, not a denial.
*/
error = selinux_capable(current, current_cred(),
&init_user_ns, CAP_MAC_ADMIN,
SECURITY_CAP_NOAUDIT);
if (!error)
error = security_sid_to_context_force(isec->sid, &context,
&size);
else
error = security_sid_to_context(isec->sid, &context, &size);
if (error)
return error;
error = size;
if (alloc) {
*buffer = context;
goto out_nofree;
}
kfree(context);
out_nofree:
return error;
}
static int selinux_inode_setsecurity(struct inode *inode, const char *name,
const void *value, size_t size, int flags)
{
struct inode_security_struct *isec = inode->i_security;
u32 newsid;
int rc;
if (strcmp(name, XATTR_SELINUX_SUFFIX))
return -EOPNOTSUPP;
if (!value || !size)
return -EACCES;
rc = security_context_to_sid((void *)value, size, &newsid);
if (rc)
return rc;
isec->sid = newsid;
isec->initialized = 1;
return 0;
}
static int selinux_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size)
{
const int len = sizeof(XATTR_NAME_SELINUX);
if (buffer && len <= buffer_size)
memcpy(buffer, XATTR_NAME_SELINUX, len);
return len;
}
static void selinux_inode_getsecid(const struct inode *inode, u32 *secid)
{
struct inode_security_struct *isec = inode->i_security;
*secid = isec->sid;
}
/* file security operations */
static int selinux_revalidate_file_permission(struct file *file, int mask)
{
const struct cred *cred = current_cred();
struct inode *inode = file->f_path.dentry->d_inode;
/* file_mask_to_av won't add FILE__WRITE if MAY_APPEND is set */
if ((file->f_flags & O_APPEND) && (mask & MAY_WRITE))
mask |= MAY_APPEND;
return file_has_perm(cred, file,
file_mask_to_av(inode->i_mode, mask));
}
static int selinux_file_permission(struct file *file, int mask)
{
struct inode *inode = file->f_path.dentry->d_inode;
struct file_security_struct *fsec = file->f_security;
struct inode_security_struct *isec = inode->i_security;
u32 sid = current_sid();
if (!mask)
/* No permission to check. Existence test. */
return 0;
if (sid == fsec->sid && fsec->isid == isec->sid &&
fsec->pseqno == avc_policy_seqno())
/* No change since dentry_open check. */
return 0;
return selinux_revalidate_file_permission(file, mask);
}
static int selinux_file_alloc_security(struct file *file)
{
return file_alloc_security(file);
}
static void selinux_file_free_security(struct file *file)
{
file_free_security(file);
}
/*
* Check whether a task has the ioctl permission and cmd
* operation to an inode.
*/
int ioctl_has_perm(const struct cred *cred, struct file *file,
u32 requested, u16 cmd)
{
struct common_audit_data ad;
struct file_security_struct *fsec = file->f_security;
struct inode *inode = file->f_path.dentry->d_inode;
struct inode_security_struct *isec = inode->i_security;
struct lsm_ioctlop_audit ioctl;
u32 ssid = cred_sid(cred);
int rc;
COMMON_AUDIT_DATA_INIT(&ad, IOCTL_OP);
ad.u.op = &ioctl;
ad.u.op->cmd = cmd;
ad.u.op->path = file->f_path;
if (ssid != fsec->sid) {
rc = avc_has_perm(ssid, fsec->sid,
SECCLASS_FD,
FD__USE,
&ad);
if (rc)
goto out;
}
if (unlikely(IS_PRIVATE(inode)))
return 0;
rc = avc_has_operation(ssid, isec->sid, isec->sclass,
requested, cmd, &ad);
out:
return rc;
}
static int selinux_file_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
{
const struct cred *cred = current_cred();
int error = 0;
switch (cmd) {
case FIONREAD:
/* fall through */
case FIBMAP:
/* fall through */
case FIGETBSZ:
/* fall through */
case EXT2_IOC_GETFLAGS:
/* fall through */
case EXT2_IOC_GETVERSION:
error = file_has_perm(cred, file, FILE__GETATTR);
break;
case EXT2_IOC_SETFLAGS:
/* fall through */
case EXT2_IOC_SETVERSION:
error = file_has_perm(cred, file, FILE__SETATTR);
break;
/* sys_ioctl() checks */
case FIONBIO:
/* fall through */
case FIOASYNC:
error = file_has_perm(cred, file, 0);
break;
case KDSKBENT:
case KDSKBSENT:
error = task_has_capability(current, cred, CAP_SYS_TTY_CONFIG,
SECURITY_CAP_AUDIT);
break;
/* default case assumes that the command will go
* to the file's ioctl() function.
*/
default:
error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
}
return error;
}
static int default_noexec;
static int file_map_prot_check(struct file *file, unsigned long prot, int shared)
{
const struct cred *cred = current_cred();
int rc = 0;
if (default_noexec &&
(prot & PROT_EXEC) && (!file || (!shared && (prot & PROT_WRITE)))) {
/*
* We are making executable an anonymous mapping or a
* private file mapping that will also be writable.
* This has an additional check.
*/
rc = cred_has_perm(cred, cred, PROCESS__EXECMEM);
if (rc)
goto error;
}
if (file) {
/* read access is always possible with a mapping */
u32 av = FILE__READ;
/* write access only matters if the mapping is shared */
if (shared && (prot & PROT_WRITE))
av |= FILE__WRITE;
if (prot & PROT_EXEC)
av |= FILE__EXECUTE;
return file_has_perm(cred, file, av);
}
error:
return rc;
}
static int selinux_file_mmap(struct file *file, unsigned long reqprot,
unsigned long prot, unsigned long flags,
unsigned long addr, unsigned long addr_only)
{
int rc = 0;
u32 sid = current_sid();
/*
* notice that we are intentionally putting the SELinux check before
* the secondary cap_file_mmap check. This is such a likely attempt
* at bad behaviour/exploit that we always want to get the AVC, even
* if DAC would have also denied the operation.
*/
if (addr < CONFIG_LSM_MMAP_MIN_ADDR) {
rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT,
MEMPROTECT__MMAP_ZERO, NULL);
if (rc)
return rc;
}
/* do DAC check on address space usage */
rc = cap_file_mmap(file, reqprot, prot, flags, addr, addr_only);
if (rc || addr_only)
return rc;
if (selinux_checkreqprot)
prot = reqprot;
return file_map_prot_check(file, prot,
(flags & MAP_TYPE) == MAP_SHARED);
}
static int selinux_file_mprotect(struct vm_area_struct *vma,
unsigned long reqprot,
unsigned long prot)
{
const struct cred *cred = current_cred();
if (selinux_checkreqprot)
prot = reqprot;
if (default_noexec &&
(prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) {
int rc = 0;
if (vma->vm_start >= vma->vm_mm->start_brk &&
vma->vm_end <= vma->vm_mm->brk) {
rc = cred_has_perm(cred, cred, PROCESS__EXECHEAP);
} else if (!vma->vm_file &&
vma->vm_start <= vma->vm_mm->start_stack &&
vma->vm_end >= vma->vm_mm->start_stack) {
rc = current_has_perm(current, PROCESS__EXECSTACK);
} else if (vma->vm_file && vma->anon_vma) {
/*
* We are making executable a file mapping that has
* had some COW done. Since pages might have been
* written, check ability to execute the possibly
* modified content. This typically should only
* occur for text relocations.
*/
rc = file_has_perm(cred, vma->vm_file, FILE__EXECMOD);
}
if (rc)
return rc;
}
return file_map_prot_check(vma->vm_file, prot, vma->vm_flags&VM_SHARED);
}
static int selinux_file_lock(struct file *file, unsigned int cmd)
{
const struct cred *cred = current_cred();
return file_has_perm(cred, file, FILE__LOCK);
}
static int selinux_file_fcntl(struct file *file, unsigned int cmd,
unsigned long arg)
{
const struct cred *cred = current_cred();
int err = 0;
switch (cmd) {
case F_SETFL:
if (!file->f_path.dentry || !file->f_path.dentry->d_inode) {
err = -EINVAL;
break;
}
if ((file->f_flags & O_APPEND) && !(arg & O_APPEND)) {
err = file_has_perm(cred, file, FILE__WRITE);
break;
}
/* fall through */
case F_SETOWN:
case F_SETSIG:
case F_GETFL:
case F_GETOWN:
case F_GETSIG:
/* Just check FD__USE permission */
err = file_has_perm(cred, file, 0);
break;
case F_GETLK:
case F_SETLK:
case F_SETLKW:
#if BITS_PER_LONG == 32
case F_GETLK64:
case F_SETLK64:
case F_SETLKW64:
#endif
if (!file->f_path.dentry || !file->f_path.dentry->d_inode) {
err = -EINVAL;
break;
}
err = file_has_perm(cred, file, FILE__LOCK);
break;
}
return err;
}
static int selinux_file_set_fowner(struct file *file)
{
struct file_security_struct *fsec;
fsec = file->f_security;
fsec->fown_sid = current_sid();
return 0;
}
static int selinux_file_send_sigiotask(struct task_struct *tsk,
struct fown_struct *fown, int signum)
{
struct file *file;
u32 sid = task_sid(tsk);
u32 perm;
struct file_security_struct *fsec;
/* struct fown_struct is never outside the context of a struct file */
file = container_of(fown, struct file, f_owner);
fsec = file->f_security;
if (!signum)
perm = signal_to_av(SIGIO); /* as per send_sigio_to_task */
else
perm = signal_to_av(signum);
return avc_has_perm(fsec->fown_sid, sid,
SECCLASS_PROCESS, perm, NULL);
}
static int selinux_file_receive(struct file *file)
{
const struct cred *cred = current_cred();
return file_has_perm(cred, file, file_to_av(file));
}
static int selinux_dentry_open(struct file *file, const struct cred *cred)
{
struct file_security_struct *fsec;
struct inode *inode;
struct inode_security_struct *isec;
inode = file->f_path.dentry->d_inode;
fsec = file->f_security;
isec = inode->i_security;
/*
* Save inode label and policy sequence number
* at open-time so that selinux_file_permission
* can determine whether revalidation is necessary.
* Task label is already saved in the file security
* struct as its SID.
*/
fsec->isid = isec->sid;
fsec->pseqno = avc_policy_seqno();
/*
* Since the inode label or policy seqno may have changed
* between the selinux_inode_permission check and the saving
* of state above, recheck that access is still permitted.
* Otherwise, access might never be revalidated against the
* new inode label or new policy.
* This check is not redundant - do not remove.
*/
return inode_has_perm_noadp(cred, inode, open_file_to_av(file), 0);
}
/* task security operations */
static int selinux_task_create(unsigned long clone_flags)
{
return current_has_perm(current, PROCESS__FORK);
}
/*
* allocate the SELinux part of blank credentials
*/
static int selinux_cred_alloc_blank(struct cred *cred, gfp_t gfp)
{
struct task_security_struct *tsec;
tsec = kzalloc(sizeof(struct task_security_struct), gfp);
if (!tsec)
return -ENOMEM;
cred->security = tsec;
return 0;
}
/*
* detach and free the LSM part of a set of credentials
*/
static void selinux_cred_free(struct cred *cred)
{
struct task_security_struct *tsec = cred->security;
/*
* cred->security == NULL if security_cred_alloc_blank() or
* security_prepare_creds() returned an error.
*/
BUG_ON(cred->security && (unsigned long) cred->security < PAGE_SIZE);
cred->security = (void *) 0x7UL;
kfree(tsec);
}
/*
* prepare a new set of credentials for modification
*/
static int selinux_cred_prepare(struct cred *new, const struct cred *old,
gfp_t gfp)
{
const struct task_security_struct *old_tsec;
struct task_security_struct *tsec;
old_tsec = old->security;
tsec = kmemdup(old_tsec, sizeof(struct task_security_struct), gfp);
if (!tsec)
return -ENOMEM;
new->security = tsec;
return 0;
}
/*
* transfer the SELinux data to a blank set of creds
*/
static void selinux_cred_transfer(struct cred *new, const struct cred *old)
{
const struct task_security_struct *old_tsec = old->security;
struct task_security_struct *tsec = new->security;
*tsec = *old_tsec;
}
/*
* set the security data for a kernel service
* - all the creation contexts are set to unlabelled
*/
static int selinux_kernel_act_as(struct cred *new, u32 secid)
{
struct task_security_struct *tsec = new->security;
u32 sid = current_sid();
int ret;
ret = avc_has_perm(sid, secid,
SECCLASS_KERNEL_SERVICE,
KERNEL_SERVICE__USE_AS_OVERRIDE,
NULL);
if (ret == 0) {
tsec->sid = secid;
tsec->create_sid = 0;
tsec->keycreate_sid = 0;
tsec->sockcreate_sid = 0;
}
return ret;
}
/*
* set the file creation context in a security record to the same as the
* objective context of the specified inode
*/
static int selinux_kernel_create_files_as(struct cred *new, struct inode *inode)
{
struct inode_security_struct *isec = inode->i_security;
struct task_security_struct *tsec = new->security;
u32 sid = current_sid();
int ret;
ret = avc_has_perm(sid, isec->sid,
SECCLASS_KERNEL_SERVICE,
KERNEL_SERVICE__CREATE_FILES_AS,
NULL);
if (ret == 0)
tsec->create_sid = isec->sid;
return ret;
}
static int selinux_kernel_module_request(char *kmod_name)
{
u32 sid;
struct common_audit_data ad;
sid = task_sid(current);
COMMON_AUDIT_DATA_INIT(&ad, KMOD);
ad.u.kmod_name = kmod_name;
return avc_has_perm(sid, SECINITSID_KERNEL, SECCLASS_SYSTEM,
SYSTEM__MODULE_REQUEST, &ad);
}
static int selinux_task_setpgid(struct task_struct *p, pid_t pgid)
{
return current_has_perm(p, PROCESS__SETPGID);
}
static int selinux_task_getpgid(struct task_struct *p)
{
return current_has_perm(p, PROCESS__GETPGID);
}
static int selinux_task_getsid(struct task_struct *p)
{
return current_has_perm(p, PROCESS__GETSESSION);
}
static void selinux_task_getsecid(struct task_struct *p, u32 *secid)
{
*secid = task_sid(p);
}
static int selinux_task_setnice(struct task_struct *p, int nice)
{
int rc;
rc = cap_task_setnice(p, nice);
if (rc)
return rc;
return current_has_perm(p, PROCESS__SETSCHED);
}
static int selinux_task_setioprio(struct task_struct *p, int ioprio)
{
int rc;
rc = cap_task_setioprio(p, ioprio);
if (rc)
return rc;
return current_has_perm(p, PROCESS__SETSCHED);
}
static int selinux_task_getioprio(struct task_struct *p)
{
return current_has_perm(p, PROCESS__GETSCHED);
}
static int selinux_task_setrlimit(struct task_struct *p, unsigned int resource,
struct rlimit *new_rlim)
{
struct rlimit *old_rlim = p->signal->rlim + resource;
/* Control the ability to change the hard limit (whether
lowering or raising it), so that the hard limit can
later be used as a safe reset point for the soft limit
upon context transitions. See selinux_bprm_committing_creds. */
if (old_rlim->rlim_max != new_rlim->rlim_max)
return current_has_perm(p, PROCESS__SETRLIMIT);
return 0;
}
static int selinux_task_setscheduler(struct task_struct *p)
{
int rc;
rc = cap_task_setscheduler(p);
if (rc)
return rc;
return current_has_perm(p, PROCESS__SETSCHED);
}
static int selinux_task_getscheduler(struct task_struct *p)
{
return current_has_perm(p, PROCESS__GETSCHED);
}
static int selinux_task_movememory(struct task_struct *p)
{
return current_has_perm(p, PROCESS__SETSCHED);
}
static int selinux_task_kill(struct task_struct *p, struct siginfo *info,
int sig, u32 secid)
{
u32 perm;
int rc;
if (!sig)
perm = PROCESS__SIGNULL; /* null signal; existence test */
else
perm = signal_to_av(sig);
if (secid)
rc = avc_has_perm(secid, task_sid(p),
SECCLASS_PROCESS, perm, NULL);
else
rc = current_has_perm(p, perm);
return rc;
}
static int selinux_task_wait(struct task_struct *p)
{
return task_has_perm(p, current, PROCESS__SIGCHLD);
}
static void selinux_task_to_inode(struct task_struct *p,
struct inode *inode)
{
struct inode_security_struct *isec = inode->i_security;
u32 sid = task_sid(p);
isec->sid = sid;
isec->initialized = 1;
}
/* Returns error only if unable to parse addresses */
static int selinux_parse_skb_ipv4(struct sk_buff *skb,
struct common_audit_data *ad, u8 *proto)
{
int offset, ihlen, ret = -EINVAL;
struct iphdr _iph, *ih;
offset = skb_network_offset(skb);
ih = skb_header_pointer(skb, offset, sizeof(_iph), &_iph);
if (ih == NULL)
goto out;
ihlen = ih->ihl * 4;
if (ihlen < sizeof(_iph))
goto out;
ad->u.net.v4info.saddr = ih->saddr;
ad->u.net.v4info.daddr = ih->daddr;
ret = 0;
if (proto)
*proto = ih->protocol;
switch (ih->protocol) {
case IPPROTO_TCP: {
struct tcphdr _tcph, *th;
if (ntohs(ih->frag_off) & IP_OFFSET)
break;
offset += ihlen;
th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
if (th == NULL)
break;
ad->u.net.sport = th->source;
ad->u.net.dport = th->dest;
break;
}
case IPPROTO_UDP: {
struct udphdr _udph, *uh;
if (ntohs(ih->frag_off) & IP_OFFSET)
break;
offset += ihlen;
uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph);
if (uh == NULL)
break;
ad->u.net.sport = uh->source;
ad->u.net.dport = uh->dest;
break;
}
case IPPROTO_DCCP: {
struct dccp_hdr _dccph, *dh;
if (ntohs(ih->frag_off) & IP_OFFSET)
break;
offset += ihlen;
dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph);
if (dh == NULL)
break;
ad->u.net.sport = dh->dccph_sport;
ad->u.net.dport = dh->dccph_dport;
break;
}
default:
break;
}
out:
return ret;
}
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
/* Returns error only if unable to parse addresses */
static int selinux_parse_skb_ipv6(struct sk_buff *skb,
struct common_audit_data *ad, u8 *proto)
{
u8 nexthdr;
int ret = -EINVAL, offset;
struct ipv6hdr _ipv6h, *ip6;
offset = skb_network_offset(skb);
ip6 = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h);
if (ip6 == NULL)
goto out;
ipv6_addr_copy(&ad->u.net.v6info.saddr, &ip6->saddr);
ipv6_addr_copy(&ad->u.net.v6info.daddr, &ip6->daddr);
ret = 0;
nexthdr = ip6->nexthdr;
offset += sizeof(_ipv6h);
offset = ipv6_skip_exthdr(skb, offset, &nexthdr);
if (offset < 0)
goto out;
if (proto)
*proto = nexthdr;
switch (nexthdr) {
case IPPROTO_TCP: {
struct tcphdr _tcph, *th;
th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
if (th == NULL)
break;
ad->u.net.sport = th->source;
ad->u.net.dport = th->dest;
break;
}
case IPPROTO_UDP: {
struct udphdr _udph, *uh;
uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph);
if (uh == NULL)
break;
ad->u.net.sport = uh->source;
ad->u.net.dport = uh->dest;
break;
}
case IPPROTO_DCCP: {
struct dccp_hdr _dccph, *dh;
dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph);
if (dh == NULL)
break;
ad->u.net.sport = dh->dccph_sport;
ad->u.net.dport = dh->dccph_dport;
break;
}
/* includes fragments */
default:
break;
}
out:
return ret;
}
#endif /* IPV6 */
static int selinux_parse_skb(struct sk_buff *skb, struct common_audit_data *ad,
char **_addrp, int src, u8 *proto)
{
char *addrp;
int ret;
switch (ad->u.net.family) {
case PF_INET:
ret = selinux_parse_skb_ipv4(skb, ad, proto);
if (ret)
goto parse_error;
addrp = (char *)(src ? &ad->u.net.v4info.saddr :
&ad->u.net.v4info.daddr);
goto okay;
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
case PF_INET6:
ret = selinux_parse_skb_ipv6(skb, ad, proto);
if (ret)
goto parse_error;
addrp = (char *)(src ? &ad->u.net.v6info.saddr :
&ad->u.net.v6info.daddr);
goto okay;
#endif /* IPV6 */
default:
addrp = NULL;
goto okay;
}
parse_error:
printk(KERN_WARNING
"SELinux: failure in selinux_parse_skb(),"
" unable to parse packet\n");
return ret;
okay:
if (_addrp)
*_addrp = addrp;
return 0;
}
/**
* selinux_skb_peerlbl_sid - Determine the peer label of a packet
* @skb: the packet
* @family: protocol family
* @sid: the packet's peer label SID
*
* Description:
* Check the various different forms of network peer labeling and determine
* the peer label/SID for the packet; most of the magic actually occurs in
* the security server function security_net_peersid_cmp(). The function
* returns zero if the value in @sid is valid (although it may be SECSID_NULL)
* or -EACCES if @sid is invalid due to inconsistencies with the different
* peer labels.
*
*/
static int selinux_skb_peerlbl_sid(struct sk_buff *skb, u16 family, u32 *sid)
{
int err;
u32 xfrm_sid;
u32 nlbl_sid;
u32 nlbl_type;
selinux_skb_xfrm_sid(skb, &xfrm_sid);
selinux_netlbl_skbuff_getsid(skb, family, &nlbl_type, &nlbl_sid);
err = security_net_peersid_resolve(nlbl_sid, nlbl_type, xfrm_sid, sid);
if (unlikely(err)) {
printk(KERN_WARNING
"SELinux: failure in selinux_skb_peerlbl_sid(),"
" unable to determine packet's peer label\n");
return -EACCES;
}
return 0;
}
/* socket security operations */
static int socket_sockcreate_sid(const struct task_security_struct *tsec,
u16 secclass, u32 *socksid)
{
if (tsec->sockcreate_sid > SECSID_NULL) {
*socksid = tsec->sockcreate_sid;
return 0;
}
return security_transition_sid(tsec->sid, tsec->sid, secclass, NULL,
socksid);
}
static int sock_has_perm(struct task_struct *task, struct sock *sk, u32 perms)
{
struct sk_security_struct *sksec = sk->sk_security;
struct common_audit_data ad;
u32 tsid = task_sid(task);
if (sksec->sid == SECINITSID_KERNEL)
return 0;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.sk = sk;
return avc_has_perm(tsid, sksec->sid, sksec->sclass, perms, &ad);
}
static int selinux_socket_create(int family, int type,
int protocol, int kern)
{
const struct task_security_struct *tsec = current_security();
u32 newsid;
u16 secclass;
int rc;
if (kern)
return 0;
secclass = socket_type_to_security_class(family, type, protocol);
rc = socket_sockcreate_sid(tsec, secclass, &newsid);
if (rc)
return rc;
return avc_has_perm(tsec->sid, newsid, secclass, SOCKET__CREATE, NULL);
}
static int selinux_socket_post_create(struct socket *sock, int family,
int type, int protocol, int kern)
{
const struct task_security_struct *tsec = current_security();
struct inode_security_struct *isec = SOCK_INODE(sock)->i_security;
struct sk_security_struct *sksec;
int err = 0;
isec->sclass = socket_type_to_security_class(family, type, protocol);
if (kern)
isec->sid = SECINITSID_KERNEL;
else {
err = socket_sockcreate_sid(tsec, isec->sclass, &(isec->sid));
if (err)
return err;
}
isec->initialized = 1;
if (sock->sk) {
sksec = sock->sk->sk_security;
sksec->sid = isec->sid;
sksec->sclass = isec->sclass;
err = selinux_netlbl_socket_post_create(sock->sk, family);
}
return err;
}
/* Range of port numbers used to automatically bind.
Need to determine whether we should perform a name_bind
permission check between the socket and the port number. */
static int selinux_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)
{
struct sock *sk = sock->sk;
u16 family;
int err;
err = sock_has_perm(current, sk, SOCKET__BIND);
if (err)
goto out;
/*
* If PF_INET or PF_INET6, check name_bind permission for the port.
* Multiple address binding for SCTP is not supported yet: we just
* check the first address now.
*/
family = sk->sk_family;
if (family == PF_INET || family == PF_INET6) {
char *addrp;
struct sk_security_struct *sksec = sk->sk_security;
struct common_audit_data ad;
struct sockaddr_in *addr4 = NULL;
struct sockaddr_in6 *addr6 = NULL;
unsigned short snum;
u32 sid, node_perm;
if (family == PF_INET) {
addr4 = (struct sockaddr_in *)address;
snum = ntohs(addr4->sin_port);
addrp = (char *)&addr4->sin_addr.s_addr;
} else {
addr6 = (struct sockaddr_in6 *)address;
snum = ntohs(addr6->sin6_port);
addrp = (char *)&addr6->sin6_addr.s6_addr;
}
if (snum) {
int low, high;
inet_get_local_port_range(&low, &high);
if (snum < max(PROT_SOCK, low) || snum > high) {
err = sel_netport_sid(sk->sk_protocol,
snum, &sid);
if (err)
goto out;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.sport = htons(snum);
ad.u.net.family = family;
err = avc_has_perm(sksec->sid, sid,
sksec->sclass,
SOCKET__NAME_BIND, &ad);
if (err)
goto out;
}
}
switch (sksec->sclass) {
case SECCLASS_TCP_SOCKET:
node_perm = TCP_SOCKET__NODE_BIND;
break;
case SECCLASS_UDP_SOCKET:
node_perm = UDP_SOCKET__NODE_BIND;
break;
case SECCLASS_DCCP_SOCKET:
node_perm = DCCP_SOCKET__NODE_BIND;
break;
default:
node_perm = RAWIP_SOCKET__NODE_BIND;
break;
}
err = sel_netnode_sid(addrp, family, &sid);
if (err)
goto out;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.sport = htons(snum);
ad.u.net.family = family;
if (family == PF_INET)
ad.u.net.v4info.saddr = addr4->sin_addr.s_addr;
else
ipv6_addr_copy(&ad.u.net.v6info.saddr, &addr6->sin6_addr);
err = avc_has_perm(sksec->sid, sid,
sksec->sclass, node_perm, &ad);
if (err)
goto out;
}
out:
return err;
}
static int selinux_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen)
{
struct sock *sk = sock->sk;
struct sk_security_struct *sksec = sk->sk_security;
int err;
err = sock_has_perm(current, sk, SOCKET__CONNECT);
if (err)
return err;
/*
* If a TCP or DCCP socket, check name_connect permission for the port.
*/
if (sksec->sclass == SECCLASS_TCP_SOCKET ||
sksec->sclass == SECCLASS_DCCP_SOCKET) {
struct common_audit_data ad;
struct sockaddr_in *addr4 = NULL;
struct sockaddr_in6 *addr6 = NULL;
unsigned short snum;
u32 sid, perm;
if (sk->sk_family == PF_INET) {
addr4 = (struct sockaddr_in *)address;
if (addrlen < sizeof(struct sockaddr_in))
return -EINVAL;
snum = ntohs(addr4->sin_port);
} else {
addr6 = (struct sockaddr_in6 *)address;
if (addrlen < SIN6_LEN_RFC2133)
return -EINVAL;
snum = ntohs(addr6->sin6_port);
}
err = sel_netport_sid(sk->sk_protocol, snum, &sid);
if (err)
goto out;
perm = (sksec->sclass == SECCLASS_TCP_SOCKET) ?
TCP_SOCKET__NAME_CONNECT : DCCP_SOCKET__NAME_CONNECT;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.dport = htons(snum);
ad.u.net.family = sk->sk_family;
err = avc_has_perm(sksec->sid, sid, sksec->sclass, perm, &ad);
if (err)
goto out;
}
err = selinux_netlbl_socket_connect(sk, address);
out:
return err;
}
static int selinux_socket_listen(struct socket *sock, int backlog)
{
return sock_has_perm(current, sock->sk, SOCKET__LISTEN);
}
static int selinux_socket_accept(struct socket *sock, struct socket *newsock)
{
int err;
struct inode_security_struct *isec;
struct inode_security_struct *newisec;
err = sock_has_perm(current, sock->sk, SOCKET__ACCEPT);
if (err)
return err;
newisec = SOCK_INODE(newsock)->i_security;
isec = SOCK_INODE(sock)->i_security;
newisec->sclass = isec->sclass;
newisec->sid = isec->sid;
newisec->initialized = 1;
return 0;
}
static int selinux_socket_sendmsg(struct socket *sock, struct msghdr *msg,
int size)
{
return sock_has_perm(current, sock->sk, SOCKET__WRITE);
}
static int selinux_socket_recvmsg(struct socket *sock, struct msghdr *msg,
int size, int flags)
{
return sock_has_perm(current, sock->sk, SOCKET__READ);
}
static int selinux_socket_getsockname(struct socket *sock)
{
return sock_has_perm(current, sock->sk, SOCKET__GETATTR);
}
static int selinux_socket_getpeername(struct socket *sock)
{
return sock_has_perm(current, sock->sk, SOCKET__GETATTR);
}
static int selinux_socket_setsockopt(struct socket *sock, int level, int optname)
{
int err;
err = sock_has_perm(current, sock->sk, SOCKET__SETOPT);
if (err)
return err;
return selinux_netlbl_socket_setsockopt(sock, level, optname);
}
static int selinux_socket_getsockopt(struct socket *sock, int level,
int optname)
{
return sock_has_perm(current, sock->sk, SOCKET__GETOPT);
}
static int selinux_socket_shutdown(struct socket *sock, int how)
{
return sock_has_perm(current, sock->sk, SOCKET__SHUTDOWN);
}
static int selinux_socket_unix_stream_connect(struct sock *sock,
struct sock *other,
struct sock *newsk)
{
struct sk_security_struct *sksec_sock = sock->sk_security;
struct sk_security_struct *sksec_other = other->sk_security;
struct sk_security_struct *sksec_new = newsk->sk_security;
struct common_audit_data ad;
int err;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.sk = other;
err = avc_has_perm(sksec_sock->sid, sksec_other->sid,
sksec_other->sclass,
UNIX_STREAM_SOCKET__CONNECTTO, &ad);
if (err)
return err;
/* server child socket */
sksec_new->peer_sid = sksec_sock->sid;
err = security_sid_mls_copy(sksec_other->sid, sksec_sock->sid,
&sksec_new->sid);
if (err)
return err;
/* connecting socket */
sksec_sock->peer_sid = sksec_new->sid;
return 0;
}
static int selinux_socket_unix_may_send(struct socket *sock,
struct socket *other)
{
struct sk_security_struct *ssec = sock->sk->sk_security;
struct sk_security_struct *osec = other->sk->sk_security;
struct common_audit_data ad;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.sk = other->sk;
return avc_has_perm(ssec->sid, osec->sid, osec->sclass, SOCKET__SENDTO,
&ad);
}
static int selinux_inet_sys_rcv_skb(int ifindex, char *addrp, u16 family,
u32 peer_sid,
struct common_audit_data *ad)
{
int err;
u32 if_sid;
u32 node_sid;
err = sel_netif_sid(ifindex, &if_sid);
if (err)
return err;
err = avc_has_perm(peer_sid, if_sid,
SECCLASS_NETIF, NETIF__INGRESS, ad);
if (err)
return err;
err = sel_netnode_sid(addrp, family, &node_sid);
if (err)
return err;
return avc_has_perm(peer_sid, node_sid,
SECCLASS_NODE, NODE__RECVFROM, ad);
}
static int selinux_sock_rcv_skb_compat(struct sock *sk, struct sk_buff *skb,
u16 family)
{
int err = 0;
struct sk_security_struct *sksec = sk->sk_security;
u32 sk_sid = sksec->sid;
struct common_audit_data ad;
char *addrp;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.netif = skb->skb_iif;
ad.u.net.family = family;
err = selinux_parse_skb(skb, &ad, &addrp, 1, NULL);
if (err)
return err;
if (selinux_secmark_enabled()) {
err = avc_has_perm(sk_sid, skb->secmark, SECCLASS_PACKET,
PACKET__RECV, &ad);
if (err)
return err;
}
err = selinux_netlbl_sock_rcv_skb(sksec, skb, family, &ad);
if (err)
return err;
err = selinux_xfrm_sock_rcv_skb(sksec->sid, skb, &ad);
return err;
}
static int selinux_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
{
int err;
struct sk_security_struct *sksec = sk->sk_security;
u16 family = sk->sk_family;
u32 sk_sid = sksec->sid;
struct common_audit_data ad;
char *addrp;
u8 secmark_active;
u8 peerlbl_active;
if (family != PF_INET && family != PF_INET6)
return 0;
/* Handle mapped IPv4 packets arriving via IPv6 sockets */
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
family = PF_INET;
/* If any sort of compatibility mode is enabled then handoff processing
* to the selinux_sock_rcv_skb_compat() function to deal with the
* special handling. We do this in an attempt to keep this function
* as fast and as clean as possible. */
if (!selinux_policycap_netpeer)
return selinux_sock_rcv_skb_compat(sk, skb, family);
secmark_active = selinux_secmark_enabled();
peerlbl_active = netlbl_enabled() || selinux_xfrm_enabled();
if (!secmark_active && !peerlbl_active)
return 0;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.netif = skb->skb_iif;
ad.u.net.family = family;
err = selinux_parse_skb(skb, &ad, &addrp, 1, NULL);
if (err)
return err;
if (peerlbl_active) {
u32 peer_sid;
err = selinux_skb_peerlbl_sid(skb, family, &peer_sid);
if (err)
return err;
err = selinux_inet_sys_rcv_skb(skb->skb_iif, addrp, family,
peer_sid, &ad);
if (err) {
selinux_netlbl_err(skb, err, 0);
return err;
}
err = avc_has_perm(sk_sid, peer_sid, SECCLASS_PEER,
PEER__RECV, &ad);
if (err)
selinux_netlbl_err(skb, err, 0);
}
if (secmark_active) {
err = avc_has_perm(sk_sid, skb->secmark, SECCLASS_PACKET,
PACKET__RECV, &ad);
if (err)
return err;
}
return err;
}
static int selinux_socket_getpeersec_stream(struct socket *sock, char __user *optval,
int __user *optlen, unsigned len)
{
int err = 0;
char *scontext;
u32 scontext_len;
struct sk_security_struct *sksec = sock->sk->sk_security;
u32 peer_sid = SECSID_NULL;
if (sksec->sclass == SECCLASS_UNIX_STREAM_SOCKET ||
sksec->sclass == SECCLASS_TCP_SOCKET)
peer_sid = sksec->peer_sid;
if (peer_sid == SECSID_NULL)
return -ENOPROTOOPT;
err = security_sid_to_context(peer_sid, &scontext, &scontext_len);
if (err)
return err;
if (scontext_len > len) {
err = -ERANGE;
goto out_len;
}
if (copy_to_user(optval, scontext, scontext_len))
err = -EFAULT;
out_len:
if (put_user(scontext_len, optlen))
err = -EFAULT;
kfree(scontext);
return err;
}
static int selinux_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)
{
u32 peer_secid = SECSID_NULL;
u16 family;
if (skb && skb->protocol == htons(ETH_P_IP))
family = PF_INET;
else if (skb && skb->protocol == htons(ETH_P_IPV6))
family = PF_INET6;
else if (sock)
family = sock->sk->sk_family;
else
goto out;
if (sock && family == PF_UNIX)
selinux_inode_getsecid(SOCK_INODE(sock), &peer_secid);
else if (skb)
selinux_skb_peerlbl_sid(skb, family, &peer_secid);
out:
*secid = peer_secid;
if (peer_secid == SECSID_NULL)
return -EINVAL;
return 0;
}
static int selinux_sk_alloc_security(struct sock *sk, int family, gfp_t priority)
{
struct sk_security_struct *sksec;
sksec = kzalloc(sizeof(*sksec), priority);
if (!sksec)
return -ENOMEM;
sksec->peer_sid = SECINITSID_UNLABELED;
sksec->sid = SECINITSID_UNLABELED;
selinux_netlbl_sk_security_reset(sksec);
sk->sk_security = sksec;
return 0;
}
static void selinux_sk_free_security(struct sock *sk)
{
struct sk_security_struct *sksec = sk->sk_security;
sk->sk_security = NULL;
selinux_netlbl_sk_security_free(sksec);
kfree(sksec);
}
static void selinux_sk_clone_security(const struct sock *sk, struct sock *newsk)
{
struct sk_security_struct *sksec = sk->sk_security;
struct sk_security_struct *newsksec = newsk->sk_security;
newsksec->sid = sksec->sid;
newsksec->peer_sid = sksec->peer_sid;
newsksec->sclass = sksec->sclass;
selinux_netlbl_sk_security_reset(newsksec);
}
static void selinux_sk_getsecid(struct sock *sk, u32 *secid)
{
if (!sk)
*secid = SECINITSID_ANY_SOCKET;
else {
struct sk_security_struct *sksec = sk->sk_security;
*secid = sksec->sid;
}
}
static void selinux_sock_graft(struct sock *sk, struct socket *parent)
{
struct inode_security_struct *isec = SOCK_INODE(parent)->i_security;
struct sk_security_struct *sksec = sk->sk_security;
if (sk->sk_family == PF_INET || sk->sk_family == PF_INET6 ||
sk->sk_family == PF_UNIX)
isec->sid = sksec->sid;
sksec->sclass = isec->sclass;
}
static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
struct request_sock *req)
{
struct sk_security_struct *sksec = sk->sk_security;
int err;
u16 family = sk->sk_family;
u32 newsid;
u32 peersid;
/* handle mapped IPv4 packets arriving via IPv6 sockets */
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
family = PF_INET;
err = selinux_skb_peerlbl_sid(skb, family, &peersid);
if (err)
return err;
if (peersid == SECSID_NULL) {
req->secid = sksec->sid;
req->peer_secid = SECSID_NULL;
} else {
err = security_sid_mls_copy(sksec->sid, peersid, &newsid);
if (err)
return err;
req->secid = newsid;
req->peer_secid = peersid;
}
return selinux_netlbl_inet_conn_request(req, family);
}
static void selinux_inet_csk_clone(struct sock *newsk,
const struct request_sock *req)
{
struct sk_security_struct *newsksec = newsk->sk_security;
newsksec->sid = req->secid;
newsksec->peer_sid = req->peer_secid;
/* NOTE: Ideally, we should also get the isec->sid for the
new socket in sync, but we don't have the isec available yet.
So we will wait until sock_graft to do it, by which
time it will have been created and available. */
/* We don't need to take any sort of lock here as we are the only
* thread with access to newsksec */
selinux_netlbl_inet_csk_clone(newsk, req->rsk_ops->family);
}
static void selinux_inet_conn_established(struct sock *sk, struct sk_buff *skb)
{
u16 family = sk->sk_family;
struct sk_security_struct *sksec = sk->sk_security;
/* handle mapped IPv4 packets arriving via IPv6 sockets */
if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
family = PF_INET;
selinux_skb_peerlbl_sid(skb, family, &sksec->peer_sid);
}
static int selinux_secmark_relabel_packet(u32 sid)
{
const struct task_security_struct *__tsec;
u32 tsid;
__tsec = current_security();
tsid = __tsec->sid;
return avc_has_perm(tsid, sid, SECCLASS_PACKET, PACKET__RELABELTO, NULL);
}
static void selinux_secmark_refcount_inc(void)
{
atomic_inc(&selinux_secmark_refcount);
}
static void selinux_secmark_refcount_dec(void)
{
atomic_dec(&selinux_secmark_refcount);
}
static void selinux_req_classify_flow(const struct request_sock *req,
struct flowi *fl)
{
fl->flowi_secid = req->secid;
}
static int selinux_tun_dev_create(void)
{
u32 sid = current_sid();
/* we aren't taking into account the "sockcreate" SID since the socket
* that is being created here is not a socket in the traditional sense,
* instead it is a private sock, accessible only to the kernel, and
* representing a wide range of network traffic spanning multiple
* connections unlike traditional sockets - check the TUN driver to
* get a better understanding of why this socket is special */
return avc_has_perm(sid, sid, SECCLASS_TUN_SOCKET, TUN_SOCKET__CREATE,
NULL);
}
static void selinux_tun_dev_post_create(struct sock *sk)
{
struct sk_security_struct *sksec = sk->sk_security;
/* we don't currently perform any NetLabel based labeling here and it
* isn't clear that we would want to do so anyway; while we could apply
* labeling without the support of the TUN user the resulting labeled
* traffic from the other end of the connection would almost certainly
* cause confusion to the TUN user that had no idea network labeling
* protocols were being used */
/* see the comments in selinux_tun_dev_create() about why we don't use
* the sockcreate SID here */
sksec->sid = current_sid();
sksec->sclass = SECCLASS_TUN_SOCKET;
}
static int selinux_tun_dev_attach(struct sock *sk)
{
struct sk_security_struct *sksec = sk->sk_security;
u32 sid = current_sid();
int err;
err = avc_has_perm(sid, sksec->sid, SECCLASS_TUN_SOCKET,
TUN_SOCKET__RELABELFROM, NULL);
if (err)
return err;
err = avc_has_perm(sid, sid, SECCLASS_TUN_SOCKET,
TUN_SOCKET__RELABELTO, NULL);
if (err)
return err;
sksec->sid = sid;
return 0;
}
static int selinux_nlmsg_perm(struct sock *sk, struct sk_buff *skb)
{
int err = 0;
u32 perm;
struct nlmsghdr *nlh;
struct sk_security_struct *sksec = sk->sk_security;
if (skb->len < NLMSG_SPACE(0)) {
err = -EINVAL;
goto out;
}
nlh = nlmsg_hdr(skb);
err = selinux_nlmsg_lookup(sksec->sclass, nlh->nlmsg_type, &perm);
if (err) {
if (err == -EINVAL) {
audit_log(current->audit_context, GFP_KERNEL, AUDIT_SELINUX_ERR,
"SELinux: unrecognized netlink message"
" type=%hu for sclass=%hu\n",
nlh->nlmsg_type, sksec->sclass);
if (!selinux_enforcing || security_get_allow_unknown())
err = 0;
}
/* Ignore */
if (err == -ENOENT)
err = 0;
goto out;
}
err = sock_has_perm(current, sk, perm);
out:
return err;
}
#ifdef CONFIG_NETFILTER
static unsigned int selinux_ip_forward(struct sk_buff *skb, int ifindex,
u16 family)
{
int err;
char *addrp;
u32 peer_sid;
struct common_audit_data ad;
u8 secmark_active;
u8 netlbl_active;
u8 peerlbl_active;
if (!selinux_policycap_netpeer)
return NF_ACCEPT;
secmark_active = selinux_secmark_enabled();
netlbl_active = netlbl_enabled();
peerlbl_active = netlbl_active || selinux_xfrm_enabled();
if (!secmark_active && !peerlbl_active)
return NF_ACCEPT;
if (selinux_skb_peerlbl_sid(skb, family, &peer_sid) != 0)
return NF_DROP;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.netif = ifindex;
ad.u.net.family = family;
if (selinux_parse_skb(skb, &ad, &addrp, 1, NULL) != 0)
return NF_DROP;
if (peerlbl_active) {
err = selinux_inet_sys_rcv_skb(ifindex, addrp, family,
peer_sid, &ad);
if (err) {
selinux_netlbl_err(skb, err, 1);
return NF_DROP;
}
}
if (secmark_active)
if (avc_has_perm(peer_sid, skb->secmark,
SECCLASS_PACKET, PACKET__FORWARD_IN, &ad))
return NF_DROP;
if (netlbl_active)
/* we do this in the FORWARD path and not the POST_ROUTING
* path because we want to make sure we apply the necessary
* labeling before IPsec is applied so we can leverage AH
* protection */
if (selinux_netlbl_skbuff_setsid(skb, family, peer_sid) != 0)
return NF_DROP;
return NF_ACCEPT;
}
static unsigned int selinux_ipv4_forward(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
return selinux_ip_forward(skb, in->ifindex, PF_INET);
}
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
static unsigned int selinux_ipv6_forward(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
return selinux_ip_forward(skb, in->ifindex, PF_INET6);
}
#endif /* IPV6 */
static unsigned int selinux_ip_output(struct sk_buff *skb,
u16 family)
{
u32 sid;
if (!netlbl_enabled())
return NF_ACCEPT;
/* we do this in the LOCAL_OUT path and not the POST_ROUTING path
* because we want to make sure we apply the necessary labeling
* before IPsec is applied so we can leverage AH protection */
if (skb->sk) {
struct sk_security_struct *sksec = skb->sk->sk_security;
sid = sksec->sid;
} else
sid = SECINITSID_KERNEL;
if (selinux_netlbl_skbuff_setsid(skb, family, sid) != 0)
return NF_DROP;
return NF_ACCEPT;
}
static unsigned int selinux_ipv4_output(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
return selinux_ip_output(skb, PF_INET);
}
static unsigned int selinux_ip_postroute_compat(struct sk_buff *skb,
int ifindex,
u16 family)
{
struct sock *sk = skb->sk;
struct sk_security_struct *sksec;
struct common_audit_data ad;
char *addrp;
u8 proto;
if (sk == NULL)
return NF_ACCEPT;
sksec = sk->sk_security;
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.netif = ifindex;
ad.u.net.family = family;
if (selinux_parse_skb(skb, &ad, &addrp, 0, &proto))
return NF_DROP;
if (selinux_secmark_enabled())
if (avc_has_perm(sksec->sid, skb->secmark,
SECCLASS_PACKET, PACKET__SEND, &ad))
return NF_DROP_ERR(-ECONNREFUSED);
if (selinux_xfrm_postroute_last(sksec->sid, skb, &ad, proto))
return NF_DROP_ERR(-ECONNREFUSED);
return NF_ACCEPT;
}
static unsigned int selinux_ip_postroute(struct sk_buff *skb, int ifindex,
u16 family)
{
u32 secmark_perm;
u32 peer_sid;
struct sock *sk;
struct common_audit_data ad;
char *addrp;
u8 secmark_active;
u8 peerlbl_active;
/* If any sort of compatibility mode is enabled then handoff processing
* to the selinux_ip_postroute_compat() function to deal with the
* special handling. We do this in an attempt to keep this function
* as fast and as clean as possible. */
if (!selinux_policycap_netpeer)
return selinux_ip_postroute_compat(skb, ifindex, family);
#ifdef CONFIG_XFRM
/* If skb->dst->xfrm is non-NULL then the packet is undergoing an IPsec
* packet transformation so allow the packet to pass without any checks
* since we'll have another chance to perform access control checks
* when the packet is on it's final way out.
* NOTE: there appear to be some IPv6 multicast cases where skb->dst
* is NULL, in this case go ahead and apply access control. */
if (skb_dst(skb) != NULL && skb_dst(skb)->xfrm != NULL)
return NF_ACCEPT;
#endif
secmark_active = selinux_secmark_enabled();
peerlbl_active = netlbl_enabled() || selinux_xfrm_enabled();
if (!secmark_active && !peerlbl_active)
return NF_ACCEPT;
/* if the packet is being forwarded then get the peer label from the
* packet itself; otherwise check to see if it is from a local
* application or the kernel, if from an application get the peer label
* from the sending socket, otherwise use the kernel's sid */
sk = skb->sk;
if (sk == NULL) {
if (skb->skb_iif) {
secmark_perm = PACKET__FORWARD_OUT;
if (selinux_skb_peerlbl_sid(skb, family, &peer_sid))
return NF_DROP;
} else {
secmark_perm = PACKET__SEND;
peer_sid = SECINITSID_KERNEL;
}
} else {
struct sk_security_struct *sksec = sk->sk_security;
peer_sid = sksec->sid;
secmark_perm = PACKET__SEND;
}
COMMON_AUDIT_DATA_INIT(&ad, NET);
ad.u.net.netif = ifindex;
ad.u.net.family = family;
if (selinux_parse_skb(skb, &ad, &addrp, 0, NULL))
return NF_DROP;
if (secmark_active)
if (avc_has_perm(peer_sid, skb->secmark,
SECCLASS_PACKET, secmark_perm, &ad))
return NF_DROP_ERR(-ECONNREFUSED);
if (peerlbl_active) {
u32 if_sid;
u32 node_sid;
if (sel_netif_sid(ifindex, &if_sid))
return NF_DROP;
if (avc_has_perm(peer_sid, if_sid,
SECCLASS_NETIF, NETIF__EGRESS, &ad))
return NF_DROP_ERR(-ECONNREFUSED);
if (sel_netnode_sid(addrp, family, &node_sid))
return NF_DROP;
if (avc_has_perm(peer_sid, node_sid,
SECCLASS_NODE, NODE__SENDTO, &ad))
return NF_DROP_ERR(-ECONNREFUSED);
}
return NF_ACCEPT;
}
static unsigned int selinux_ipv4_postroute(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
return selinux_ip_postroute(skb, out->ifindex, PF_INET);
}
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
static unsigned int selinux_ipv6_postroute(unsigned int hooknum,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
return selinux_ip_postroute(skb, out->ifindex, PF_INET6);
}
#endif /* IPV6 */
#endif /* CONFIG_NETFILTER */
static int selinux_netlink_send(struct sock *sk, struct sk_buff *skb)
{
int err;
err = cap_netlink_send(sk, skb);
if (err)
return err;
return selinux_nlmsg_perm(sk, skb);
}
static int selinux_netlink_recv(struct sk_buff *skb, int capability)
{
int err;
struct common_audit_data ad;
u32 sid;
err = cap_netlink_recv(skb, capability);
if (err)
return err;
COMMON_AUDIT_DATA_INIT(&ad, CAP);
ad.u.cap = capability;
security_task_getsecid(current, &sid);
return avc_has_perm(sid, sid, SECCLASS_CAPABILITY,
CAP_TO_MASK(capability), &ad);
}
static int ipc_alloc_security(struct task_struct *task,
struct kern_ipc_perm *perm,
u16 sclass)
{
struct ipc_security_struct *isec;
u32 sid;
isec = kzalloc(sizeof(struct ipc_security_struct), GFP_KERNEL);
if (!isec)
return -ENOMEM;
sid = task_sid(task);
isec->sclass = sclass;
isec->sid = sid;
perm->security = isec;
return 0;
}
static void ipc_free_security(struct kern_ipc_perm *perm)
{
struct ipc_security_struct *isec = perm->security;
perm->security = NULL;
kfree(isec);
}
static int msg_msg_alloc_security(struct msg_msg *msg)
{
struct msg_security_struct *msec;
msec = kzalloc(sizeof(struct msg_security_struct), GFP_KERNEL);
if (!msec)
return -ENOMEM;
msec->sid = SECINITSID_UNLABELED;
msg->security = msec;
return 0;
}
static void msg_msg_free_security(struct msg_msg *msg)
{
struct msg_security_struct *msec = msg->security;
msg->security = NULL;
kfree(msec);
}
static int ipc_has_perm(struct kern_ipc_perm *ipc_perms,
u32 perms)
{
struct ipc_security_struct *isec;
struct common_audit_data ad;
u32 sid = current_sid();
isec = ipc_perms->security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = ipc_perms->key;
return avc_has_perm(sid, isec->sid, isec->sclass, perms, &ad);
}
static int selinux_msg_msg_alloc_security(struct msg_msg *msg)
{
return msg_msg_alloc_security(msg);
}
static void selinux_msg_msg_free_security(struct msg_msg *msg)
{
msg_msg_free_security(msg);
}
/* message queue security operations */
static int selinux_msg_queue_alloc_security(struct msg_queue *msq)
{
struct ipc_security_struct *isec;
struct common_audit_data ad;
u32 sid = current_sid();
int rc;
rc = ipc_alloc_security(current, &msq->q_perm, SECCLASS_MSGQ);
if (rc)
return rc;
isec = msq->q_perm.security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = msq->q_perm.key;
rc = avc_has_perm(sid, isec->sid, SECCLASS_MSGQ,
MSGQ__CREATE, &ad);
if (rc) {
ipc_free_security(&msq->q_perm);
return rc;
}
return 0;
}
static void selinux_msg_queue_free_security(struct msg_queue *msq)
{
ipc_free_security(&msq->q_perm);
}
static int selinux_msg_queue_associate(struct msg_queue *msq, int msqflg)
{
struct ipc_security_struct *isec;
struct common_audit_data ad;
u32 sid = current_sid();
isec = msq->q_perm.security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = msq->q_perm.key;
return avc_has_perm(sid, isec->sid, SECCLASS_MSGQ,
MSGQ__ASSOCIATE, &ad);
}
static int selinux_msg_queue_msgctl(struct msg_queue *msq, int cmd)
{
int err;
int perms;
switch (cmd) {
case IPC_INFO:
case MSG_INFO:
/* No specific object, just general system-wide information. */
return task_has_system(current, SYSTEM__IPC_INFO);
case IPC_STAT:
case MSG_STAT:
perms = MSGQ__GETATTR | MSGQ__ASSOCIATE;
break;
case IPC_SET:
perms = MSGQ__SETATTR;
break;
case IPC_RMID:
perms = MSGQ__DESTROY;
break;
default:
return 0;
}
err = ipc_has_perm(&msq->q_perm, perms);
return err;
}
static int selinux_msg_queue_msgsnd(struct msg_queue *msq, struct msg_msg *msg, int msqflg)
{
struct ipc_security_struct *isec;
struct msg_security_struct *msec;
struct common_audit_data ad;
u32 sid = current_sid();
int rc;
isec = msq->q_perm.security;
msec = msg->security;
/*
* First time through, need to assign label to the message
*/
if (msec->sid == SECINITSID_UNLABELED) {
/*
* Compute new sid based on current process and
* message queue this message will be stored in
*/
rc = security_transition_sid(sid, isec->sid, SECCLASS_MSG,
NULL, &msec->sid);
if (rc)
return rc;
}
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = msq->q_perm.key;
/* Can this process write to the queue? */
rc = avc_has_perm(sid, isec->sid, SECCLASS_MSGQ,
MSGQ__WRITE, &ad);
if (!rc)
/* Can this process send the message */
rc = avc_has_perm(sid, msec->sid, SECCLASS_MSG,
MSG__SEND, &ad);
if (!rc)
/* Can the message be put in the queue? */
rc = avc_has_perm(msec->sid, isec->sid, SECCLASS_MSGQ,
MSGQ__ENQUEUE, &ad);
return rc;
}
static int selinux_msg_queue_msgrcv(struct msg_queue *msq, struct msg_msg *msg,
struct task_struct *target,
long type, int mode)
{
struct ipc_security_struct *isec;
struct msg_security_struct *msec;
struct common_audit_data ad;
u32 sid = task_sid(target);
int rc;
isec = msq->q_perm.security;
msec = msg->security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = msq->q_perm.key;
rc = avc_has_perm(sid, isec->sid,
SECCLASS_MSGQ, MSGQ__READ, &ad);
if (!rc)
rc = avc_has_perm(sid, msec->sid,
SECCLASS_MSG, MSG__RECEIVE, &ad);
return rc;
}
/* Shared Memory security operations */
static int selinux_shm_alloc_security(struct shmid_kernel *shp)
{
struct ipc_security_struct *isec;
struct common_audit_data ad;
u32 sid = current_sid();
int rc;
rc = ipc_alloc_security(current, &shp->shm_perm, SECCLASS_SHM);
if (rc)
return rc;
isec = shp->shm_perm.security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = shp->shm_perm.key;
rc = avc_has_perm(sid, isec->sid, SECCLASS_SHM,
SHM__CREATE, &ad);
if (rc) {
ipc_free_security(&shp->shm_perm);
return rc;
}
return 0;
}
static void selinux_shm_free_security(struct shmid_kernel *shp)
{
ipc_free_security(&shp->shm_perm);
}
static int selinux_shm_associate(struct shmid_kernel *shp, int shmflg)
{
struct ipc_security_struct *isec;
struct common_audit_data ad;
u32 sid = current_sid();
isec = shp->shm_perm.security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = shp->shm_perm.key;
return avc_has_perm(sid, isec->sid, SECCLASS_SHM,
SHM__ASSOCIATE, &ad);
}
/* Note, at this point, shp is locked down */
static int selinux_shm_shmctl(struct shmid_kernel *shp, int cmd)
{
int perms;
int err;
switch (cmd) {
case IPC_INFO:
case SHM_INFO:
/* No specific object, just general system-wide information. */
return task_has_system(current, SYSTEM__IPC_INFO);
case IPC_STAT:
case SHM_STAT:
perms = SHM__GETATTR | SHM__ASSOCIATE;
break;
case IPC_SET:
perms = SHM__SETATTR;
break;
case SHM_LOCK:
case SHM_UNLOCK:
perms = SHM__LOCK;
break;
case IPC_RMID:
perms = SHM__DESTROY;
break;
default:
return 0;
}
err = ipc_has_perm(&shp->shm_perm, perms);
return err;
}
static int selinux_shm_shmat(struct shmid_kernel *shp,
char __user *shmaddr, int shmflg)
{
u32 perms;
if (shmflg & SHM_RDONLY)
perms = SHM__READ;
else
perms = SHM__READ | SHM__WRITE;
return ipc_has_perm(&shp->shm_perm, perms);
}
/* Semaphore security operations */
static int selinux_sem_alloc_security(struct sem_array *sma)
{
struct ipc_security_struct *isec;
struct common_audit_data ad;
u32 sid = current_sid();
int rc;
rc = ipc_alloc_security(current, &sma->sem_perm, SECCLASS_SEM);
if (rc)
return rc;
isec = sma->sem_perm.security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = sma->sem_perm.key;
rc = avc_has_perm(sid, isec->sid, SECCLASS_SEM,
SEM__CREATE, &ad);
if (rc) {
ipc_free_security(&sma->sem_perm);
return rc;
}
return 0;
}
static void selinux_sem_free_security(struct sem_array *sma)
{
ipc_free_security(&sma->sem_perm);
}
static int selinux_sem_associate(struct sem_array *sma, int semflg)
{
struct ipc_security_struct *isec;
struct common_audit_data ad;
u32 sid = current_sid();
isec = sma->sem_perm.security;
COMMON_AUDIT_DATA_INIT(&ad, IPC);
ad.u.ipc_id = sma->sem_perm.key;
return avc_has_perm(sid, isec->sid, SECCLASS_SEM,
SEM__ASSOCIATE, &ad);
}
/* Note, at this point, sma is locked down */
static int selinux_sem_semctl(struct sem_array *sma, int cmd)
{
int err;
u32 perms;
switch (cmd) {
case IPC_INFO:
case SEM_INFO:
/* No specific object, just general system-wide information. */
return task_has_system(current, SYSTEM__IPC_INFO);
case GETPID:
case GETNCNT:
case GETZCNT:
perms = SEM__GETATTR;
break;
case GETVAL:
case GETALL:
perms = SEM__READ;
break;
case SETVAL:
case SETALL:
perms = SEM__WRITE;
break;
case IPC_RMID:
perms = SEM__DESTROY;
break;
case IPC_SET:
perms = SEM__SETATTR;
break;
case IPC_STAT:
case SEM_STAT:
perms = SEM__GETATTR | SEM__ASSOCIATE;
break;
default:
return 0;
}
err = ipc_has_perm(&sma->sem_perm, perms);
return err;
}
static int selinux_sem_semop(struct sem_array *sma,
struct sembuf *sops, unsigned nsops, int alter)
{
u32 perms;
if (alter)
perms = SEM__READ | SEM__WRITE;
else
perms = SEM__READ;
return ipc_has_perm(&sma->sem_perm, perms);
}
static int selinux_ipc_permission(struct kern_ipc_perm *ipcp, short flag)
{
u32 av = 0;
av = 0;
if (flag & S_IRUGO)
av |= IPC__UNIX_READ;
if (flag & S_IWUGO)
av |= IPC__UNIX_WRITE;
if (av == 0)
return 0;
return ipc_has_perm(ipcp, av);
}
static void selinux_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid)
{
struct ipc_security_struct *isec = ipcp->security;
*secid = isec->sid;
}
static void selinux_d_instantiate(struct dentry *dentry, struct inode *inode)
{
if (inode)
inode_doinit_with_dentry(inode, dentry);
}
static int selinux_getprocattr(struct task_struct *p,
char *name, char **value)
{
const struct task_security_struct *__tsec;
u32 sid;
int error;
unsigned len;
if (current != p) {
error = current_has_perm(p, PROCESS__GETATTR);
if (error)
return error;
}
rcu_read_lock();
__tsec = __task_cred(p)->security;
if (!strcmp(name, "current"))
sid = __tsec->sid;
else if (!strcmp(name, "prev"))
sid = __tsec->osid;
else if (!strcmp(name, "exec"))
sid = __tsec->exec_sid;
else if (!strcmp(name, "fscreate"))
sid = __tsec->create_sid;
else if (!strcmp(name, "keycreate"))
sid = __tsec->keycreate_sid;
else if (!strcmp(name, "sockcreate"))
sid = __tsec->sockcreate_sid;
else
goto invalid;
rcu_read_unlock();
if (!sid)
return 0;
error = security_sid_to_context(sid, value, &len);
if (error)
return error;
return len;
invalid:
rcu_read_unlock();
return -EINVAL;
}
static int selinux_setprocattr(struct task_struct *p,
char *name, void *value, size_t size)
{
struct task_security_struct *tsec;
struct task_struct *tracer;
struct cred *new;
u32 sid = 0, ptsid;
int error;
char *str = value;
if (current != p) {
/* SELinux only allows a process to change its own
security attributes. */
return -EACCES;
}
/*
* Basic control over ability to set these attributes at all.
* current == p, but we'll pass them separately in case the
* above restriction is ever removed.
*/
if (!strcmp(name, "exec"))
error = current_has_perm(p, PROCESS__SETEXEC);
else if (!strcmp(name, "fscreate"))
error = current_has_perm(p, PROCESS__SETFSCREATE);
else if (!strcmp(name, "keycreate"))
error = current_has_perm(p, PROCESS__SETKEYCREATE);
else if (!strcmp(name, "sockcreate"))
error = current_has_perm(p, PROCESS__SETSOCKCREATE);
else if (!strcmp(name, "current"))
error = current_has_perm(p, PROCESS__SETCURRENT);
else
error = -EINVAL;
if (error)
return error;
/* Obtain a SID for the context, if one was specified. */
if (size && str[1] && str[1] != '\n') {
if (str[size-1] == '\n') {
str[size-1] = 0;
size--;
}
error = security_context_to_sid(value, size, &sid);
if (error == -EINVAL && !strcmp(name, "fscreate")) {
if (!capable(CAP_MAC_ADMIN))
return error;
error = security_context_to_sid_force(value, size,
&sid);
}
if (error)
return error;
}
new = prepare_creds();
if (!new)
return -ENOMEM;
/* Permission checking based on the specified context is
performed during the actual operation (execve,
open/mkdir/...), when we know the full context of the
operation. See selinux_bprm_set_creds for the execve
checks and may_create for the file creation checks. The
operation will then fail if the context is not permitted. */
tsec = new->security;
if (!strcmp(name, "exec")) {
tsec->exec_sid = sid;
} else if (!strcmp(name, "fscreate")) {
tsec->create_sid = sid;
} else if (!strcmp(name, "keycreate")) {
error = may_create_key(sid, p);
if (error)
goto abort_change;
tsec->keycreate_sid = sid;
} else if (!strcmp(name, "sockcreate")) {
tsec->sockcreate_sid = sid;
} else if (!strcmp(name, "current")) {
error = -EINVAL;
if (sid == 0)
goto abort_change;
/* Only allow single threaded processes to change context */
error = -EPERM;
if (!current_is_single_threaded()) {
error = security_bounded_transition(tsec->sid, sid);
if (error)
goto abort_change;
}
/* Check permissions for the transition. */
error = avc_has_perm(tsec->sid, sid, SECCLASS_PROCESS,
PROCESS__DYNTRANSITION, NULL);
if (error)
goto abort_change;
/* Check for ptracing, and update the task SID if ok.
Otherwise, leave SID unchanged and fail. */
ptsid = 0;
task_lock(p);
tracer = tracehook_tracer_task(p);
if (tracer)
ptsid = task_sid(tracer);
task_unlock(p);
if (tracer) {
error = avc_has_perm(ptsid, sid, SECCLASS_PROCESS,
PROCESS__PTRACE, NULL);
if (error)
goto abort_change;
}
tsec->sid = sid;
} else {
error = -EINVAL;
goto abort_change;
}
commit_creds(new);
return size;
abort_change:
abort_creds(new);
return error;
}
static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen)
{
return security_sid_to_context(secid, secdata, seclen);
}
static int selinux_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid)
{
return security_context_to_sid(secdata, seclen, secid);
}
static void selinux_release_secctx(char *secdata, u32 seclen)
{
kfree(secdata);
}
/*
* called with inode->i_mutex locked
*/
static int selinux_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen)
{
return selinux_inode_setsecurity(inode, XATTR_SELINUX_SUFFIX, ctx, ctxlen, 0);
}
/*
* called with inode->i_mutex locked
*/
static int selinux_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
{
return __vfs_setxattr_noperm(dentry, XATTR_NAME_SELINUX, ctx, ctxlen, 0);
}
static int selinux_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen)
{
int len = 0;
len = selinux_inode_getsecurity(inode, XATTR_SELINUX_SUFFIX,
ctx, true);
if (len < 0)
return len;
*ctxlen = len;
return 0;
}
#ifdef CONFIG_KEYS
static int selinux_key_alloc(struct key *k, const struct cred *cred,
unsigned long flags)
{
const struct task_security_struct *tsec;
struct key_security_struct *ksec;
ksec = kzalloc(sizeof(struct key_security_struct), GFP_KERNEL);
if (!ksec)
return -ENOMEM;
tsec = cred->security;
if (tsec->keycreate_sid)
ksec->sid = tsec->keycreate_sid;
else
ksec->sid = tsec->sid;
k->security = ksec;
return 0;
}
static void selinux_key_free(struct key *k)
{
struct key_security_struct *ksec = k->security;
k->security = NULL;
kfree(ksec);
}
static int selinux_key_permission(key_ref_t key_ref,
const struct cred *cred,
key_perm_t perm)
{
struct key *key;
struct key_security_struct *ksec;
u32 sid;
/* if no specific permissions are requested, we skip the
permission check. No serious, additional covert channels
appear to be created. */
if (perm == 0)
return 0;
sid = cred_sid(cred);
key = key_ref_to_ptr(key_ref);
ksec = key->security;
return avc_has_perm(sid, ksec->sid, SECCLASS_KEY, perm, NULL);
}
static int selinux_key_getsecurity(struct key *key, char **_buffer)
{
struct key_security_struct *ksec = key->security;
char *context = NULL;
unsigned len;
int rc;
rc = security_sid_to_context(ksec->sid, &context, &len);
if (!rc)
rc = len;
*_buffer = context;
return rc;
}
#endif
static struct security_operations selinux_ops = {
.name = "selinux",
.binder_set_context_mgr = selinux_binder_set_context_mgr,
.binder_transaction = selinux_binder_transaction,
.binder_transfer_binder = selinux_binder_transfer_binder,
.binder_transfer_file = selinux_binder_transfer_file,
.ptrace_access_check = selinux_ptrace_access_check,
.ptrace_traceme = selinux_ptrace_traceme,
.capget = selinux_capget,
.capset = selinux_capset,
.capable = selinux_capable,
.quotactl = selinux_quotactl,
.quota_on = selinux_quota_on,
.syslog = selinux_syslog,
.vm_enough_memory = selinux_vm_enough_memory,
.netlink_send = selinux_netlink_send,
.netlink_recv = selinux_netlink_recv,
.bprm_set_creds = selinux_bprm_set_creds,
.bprm_committing_creds = selinux_bprm_committing_creds,
.bprm_committed_creds = selinux_bprm_committed_creds,
.bprm_secureexec = selinux_bprm_secureexec,
.sb_alloc_security = selinux_sb_alloc_security,
.sb_free_security = selinux_sb_free_security,
.sb_copy_data = selinux_sb_copy_data,
.sb_remount = selinux_sb_remount,
.sb_kern_mount = selinux_sb_kern_mount,
.sb_show_options = selinux_sb_show_options,
.sb_statfs = selinux_sb_statfs,
.sb_mount = selinux_mount,
.sb_umount = selinux_umount,
.sb_set_mnt_opts = selinux_set_mnt_opts,
.sb_clone_mnt_opts = selinux_sb_clone_mnt_opts,
.sb_parse_opts_str = selinux_parse_opts_str,
.inode_alloc_security = selinux_inode_alloc_security,
.inode_free_security = selinux_inode_free_security,
.inode_init_security = selinux_inode_init_security,
.inode_create = selinux_inode_create,
.inode_link = selinux_inode_link,
.inode_unlink = selinux_inode_unlink,
.inode_symlink = selinux_inode_symlink,
.inode_mkdir = selinux_inode_mkdir,
.inode_rmdir = selinux_inode_rmdir,
.inode_mknod = selinux_inode_mknod,
.inode_rename = selinux_inode_rename,
.inode_readlink = selinux_inode_readlink,
.inode_follow_link = selinux_inode_follow_link,
.inode_permission = selinux_inode_permission,
.inode_setattr = selinux_inode_setattr,
.inode_getattr = selinux_inode_getattr,
.inode_setxattr = selinux_inode_setxattr,
.inode_post_setxattr = selinux_inode_post_setxattr,
.inode_getxattr = selinux_inode_getxattr,
.inode_listxattr = selinux_inode_listxattr,
.inode_removexattr = selinux_inode_removexattr,
.inode_getsecurity = selinux_inode_getsecurity,
.inode_setsecurity = selinux_inode_setsecurity,
.inode_listsecurity = selinux_inode_listsecurity,
.inode_getsecid = selinux_inode_getsecid,
.file_permission = selinux_file_permission,
.file_alloc_security = selinux_file_alloc_security,
.file_free_security = selinux_file_free_security,
.file_ioctl = selinux_file_ioctl,
.file_mmap = selinux_file_mmap,
.file_mprotect = selinux_file_mprotect,
.file_lock = selinux_file_lock,
.file_fcntl = selinux_file_fcntl,
.file_set_fowner = selinux_file_set_fowner,
.file_send_sigiotask = selinux_file_send_sigiotask,
.file_receive = selinux_file_receive,
.dentry_open = selinux_dentry_open,
.task_create = selinux_task_create,
.cred_alloc_blank = selinux_cred_alloc_blank,
.cred_free = selinux_cred_free,
.cred_prepare = selinux_cred_prepare,
.cred_transfer = selinux_cred_transfer,
.kernel_act_as = selinux_kernel_act_as,
.kernel_create_files_as = selinux_kernel_create_files_as,
.kernel_module_request = selinux_kernel_module_request,
.task_setpgid = selinux_task_setpgid,
.task_getpgid = selinux_task_getpgid,
.task_getsid = selinux_task_getsid,
.task_getsecid = selinux_task_getsecid,
.task_setnice = selinux_task_setnice,
.task_setioprio = selinux_task_setioprio,
.task_getioprio = selinux_task_getioprio,
.task_setrlimit = selinux_task_setrlimit,
.task_setscheduler = selinux_task_setscheduler,
.task_getscheduler = selinux_task_getscheduler,
.task_movememory = selinux_task_movememory,
.task_kill = selinux_task_kill,
.task_wait = selinux_task_wait,
.task_to_inode = selinux_task_to_inode,
.ipc_permission = selinux_ipc_permission,
.ipc_getsecid = selinux_ipc_getsecid,
.msg_msg_alloc_security = selinux_msg_msg_alloc_security,
.msg_msg_free_security = selinux_msg_msg_free_security,
.msg_queue_alloc_security = selinux_msg_queue_alloc_security,
.msg_queue_free_security = selinux_msg_queue_free_security,
.msg_queue_associate = selinux_msg_queue_associate,
.msg_queue_msgctl = selinux_msg_queue_msgctl,
.msg_queue_msgsnd = selinux_msg_queue_msgsnd,
.msg_queue_msgrcv = selinux_msg_queue_msgrcv,
.shm_alloc_security = selinux_shm_alloc_security,
.shm_free_security = selinux_shm_free_security,
.shm_associate = selinux_shm_associate,
.shm_shmctl = selinux_shm_shmctl,
.shm_shmat = selinux_shm_shmat,
.sem_alloc_security = selinux_sem_alloc_security,
.sem_free_security = selinux_sem_free_security,
.sem_associate = selinux_sem_associate,
.sem_semctl = selinux_sem_semctl,
.sem_semop = selinux_sem_semop,
.d_instantiate = selinux_d_instantiate,
.getprocattr = selinux_getprocattr,
.setprocattr = selinux_setprocattr,
.secid_to_secctx = selinux_secid_to_secctx,
.secctx_to_secid = selinux_secctx_to_secid,
.release_secctx = selinux_release_secctx,
.inode_notifysecctx = selinux_inode_notifysecctx,
.inode_setsecctx = selinux_inode_setsecctx,
.inode_getsecctx = selinux_inode_getsecctx,
.unix_stream_connect = selinux_socket_unix_stream_connect,
.unix_may_send = selinux_socket_unix_may_send,
.socket_create = selinux_socket_create,
.socket_post_create = selinux_socket_post_create,
.socket_bind = selinux_socket_bind,
.socket_connect = selinux_socket_connect,
.socket_listen = selinux_socket_listen,
.socket_accept = selinux_socket_accept,
.socket_sendmsg = selinux_socket_sendmsg,
.socket_recvmsg = selinux_socket_recvmsg,
.socket_getsockname = selinux_socket_getsockname,
.socket_getpeername = selinux_socket_getpeername,
.socket_getsockopt = selinux_socket_getsockopt,
.socket_setsockopt = selinux_socket_setsockopt,
.socket_shutdown = selinux_socket_shutdown,
.socket_sock_rcv_skb = selinux_socket_sock_rcv_skb,
.socket_getpeersec_stream = selinux_socket_getpeersec_stream,
.socket_getpeersec_dgram = selinux_socket_getpeersec_dgram,
.sk_alloc_security = selinux_sk_alloc_security,
.sk_free_security = selinux_sk_free_security,
.sk_clone_security = selinux_sk_clone_security,
.sk_getsecid = selinux_sk_getsecid,
.sock_graft = selinux_sock_graft,
.inet_conn_request = selinux_inet_conn_request,
.inet_csk_clone = selinux_inet_csk_clone,
.inet_conn_established = selinux_inet_conn_established,
.secmark_relabel_packet = selinux_secmark_relabel_packet,
.secmark_refcount_inc = selinux_secmark_refcount_inc,
.secmark_refcount_dec = selinux_secmark_refcount_dec,
.req_classify_flow = selinux_req_classify_flow,
.tun_dev_create = selinux_tun_dev_create,
.tun_dev_post_create = selinux_tun_dev_post_create,
.tun_dev_attach = selinux_tun_dev_attach,
#ifdef CONFIG_SECURITY_NETWORK_XFRM
.xfrm_policy_alloc_security = selinux_xfrm_policy_alloc,
.xfrm_policy_clone_security = selinux_xfrm_policy_clone,
.xfrm_policy_free_security = selinux_xfrm_policy_free,
.xfrm_policy_delete_security = selinux_xfrm_policy_delete,
.xfrm_state_alloc_security = selinux_xfrm_state_alloc,
.xfrm_state_free_security = selinux_xfrm_state_free,
.xfrm_state_delete_security = selinux_xfrm_state_delete,
.xfrm_policy_lookup = selinux_xfrm_policy_lookup,
.xfrm_state_pol_flow_match = selinux_xfrm_state_pol_flow_match,
.xfrm_decode_session = selinux_xfrm_decode_session,
#endif
#ifdef CONFIG_KEYS
.key_alloc = selinux_key_alloc,
.key_free = selinux_key_free,
.key_permission = selinux_key_permission,
.key_getsecurity = selinux_key_getsecurity,
#endif
#ifdef CONFIG_AUDIT
.audit_rule_init = selinux_audit_rule_init,
.audit_rule_known = selinux_audit_rule_known,
.audit_rule_match = selinux_audit_rule_match,
.audit_rule_free = selinux_audit_rule_free,
#endif
};
static __init int selinux_init(void)
{
if (!security_module_enable(&selinux_ops)) {
selinux_enabled = 0;
return 0;
}
if (!selinux_enabled) {
printk(KERN_INFO "SELinux: Disabled at boot.\n");
return 0;
}
printk(KERN_INFO "SELinux: Initializing.\n");
/* Set the security state for the initial task. */
cred_init_security();
default_noexec = !(VM_DATA_DEFAULT_FLAGS & VM_EXEC);
sel_inode_cache = kmem_cache_create("selinux_inode_security",
sizeof(struct inode_security_struct),
0, SLAB_PANIC, NULL);
avc_init();
if (register_security(&selinux_ops))
panic("SELinux: Unable to register with kernel.\n");
if (selinux_enforcing)
printk(KERN_DEBUG "SELinux: Starting in enforcing mode\n");
else
printk(KERN_DEBUG "SELinux: Starting in permissive mode\n");
return 0;
}
static void delayed_superblock_init(struct super_block *sb, void *unused)
{
superblock_doinit(sb, NULL);
}
void selinux_complete_init(void)
{
printk(KERN_DEBUG "SELinux: Completing initialization.\n");
/* Set up any superblocks initialized prior to the policy load. */
printk(KERN_DEBUG "SELinux: Setting up existing superblocks.\n");
iterate_supers(delayed_superblock_init, NULL);
}
/* SELinux requires early initialization in order to label
all processes and objects when they are created. */
security_initcall(selinux_init);
#if defined(CONFIG_NETFILTER)
static struct nf_hook_ops selinux_ipv4_ops[] = {
{
.hook = selinux_ipv4_postroute,
.owner = THIS_MODULE,
.pf = PF_INET,
.hooknum = NF_INET_POST_ROUTING,
.priority = NF_IP_PRI_SELINUX_LAST,
},
{
.hook = selinux_ipv4_forward,
.owner = THIS_MODULE,
.pf = PF_INET,
.hooknum = NF_INET_FORWARD,
.priority = NF_IP_PRI_SELINUX_FIRST,
},
{
.hook = selinux_ipv4_output,
.owner = THIS_MODULE,
.pf = PF_INET,
.hooknum = NF_INET_LOCAL_OUT,
.priority = NF_IP_PRI_SELINUX_FIRST,
}
};
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
static struct nf_hook_ops selinux_ipv6_ops[] = {
{
.hook = selinux_ipv6_postroute,
.owner = THIS_MODULE,
.pf = PF_INET6,
.hooknum = NF_INET_POST_ROUTING,
.priority = NF_IP6_PRI_SELINUX_LAST,
},
{
.hook = selinux_ipv6_forward,
.owner = THIS_MODULE,
.pf = PF_INET6,
.hooknum = NF_INET_FORWARD,
.priority = NF_IP6_PRI_SELINUX_FIRST,
}
};
#endif /* IPV6 */
static int __init selinux_nf_ip_init(void)
{
int err = 0;
if (!selinux_enabled)
goto out;
printk(KERN_DEBUG "SELinux: Registering netfilter hooks\n");
err = nf_register_hooks(selinux_ipv4_ops, ARRAY_SIZE(selinux_ipv4_ops));
if (err)
panic("SELinux: nf_register_hooks for IPv4: error %d\n", err);
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
err = nf_register_hooks(selinux_ipv6_ops, ARRAY_SIZE(selinux_ipv6_ops));
if (err)
panic("SELinux: nf_register_hooks for IPv6: error %d\n", err);
#endif /* IPV6 */
out:
return err;
}
__initcall(selinux_nf_ip_init);
#ifdef CONFIG_SECURITY_SELINUX_DISABLE
static void selinux_nf_ip_exit(void)
{
printk(KERN_DEBUG "SELinux: Unregistering netfilter hooks\n");
nf_unregister_hooks(selinux_ipv4_ops, ARRAY_SIZE(selinux_ipv4_ops));
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
nf_unregister_hooks(selinux_ipv6_ops, ARRAY_SIZE(selinux_ipv6_ops));
#endif /* IPV6 */
}
#endif
#else /* CONFIG_NETFILTER */
#ifdef CONFIG_SECURITY_SELINUX_DISABLE
#define selinux_nf_ip_exit()
#endif
#endif /* CONFIG_NETFILTER */
#ifdef CONFIG_SECURITY_SELINUX_DISABLE
static int selinux_disabled;
int selinux_disable(void)
{
extern void exit_sel_fs(void);
if (ss_initialized) {
/* Not permitted after initial policy load. */
return -EINVAL;
}
if (selinux_disabled) {
/* Only do this once. */
return -EINVAL;
}
printk(KERN_INFO "SELinux: Disabled at runtime.\n");
selinux_disabled = 1;
selinux_enabled = 0;
reset_security_ops();
/* Try to destroy the avc node cache */
avc_disable();
/* Unregister netfilter hooks. */
selinux_nf_ip_exit();
/* Unregister selinuxfs. */
exit_sel_fs();
return 0;
}
#endif
| keepcalm444/android_kernel_samsung_smdk4412 | security/selinux/hooks.c | C | gpl-2.0 | 148,050 | [
30522,
1013,
1008,
1008,
23971,
3036,
1011,
9412,
11603,
1006,
7367,
4115,
5602,
1007,
3036,
11336,
1008,
1008,
2023,
5371,
3397,
1996,
7367,
4115,
5602,
8103,
3853,
24977,
1012,
1008,
1008,
6048,
1024,
4459,
2235,
3240,
1010,
1026,
17371,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
class Twig_Tests_TokenStreamTest extends PHPUnit_Framework_TestCase
{
protected static $Vnzh5r33esb0;
public function setUp()
{
self::$Vnzh5r33esb0 = array(
new Twig_Token(Twig_Token::TEXT_TYPE, 1, 1),
new Twig_Token(Twig_Token::TEXT_TYPE, 2, 1),
new Twig_Token(Twig_Token::TEXT_TYPE, 3, 1),
new Twig_Token(Twig_Token::TEXT_TYPE, 4, 1),
new Twig_Token(Twig_Token::TEXT_TYPE, 5, 1),
new Twig_Token(Twig_Token::TEXT_TYPE, 6, 1),
new Twig_Token(Twig_Token::TEXT_TYPE, 7, 1),
new Twig_Token(Twig_Token::EOF_TYPE, 0, 1),
);
}
public function testNext()
{
$Vxzcqmu3jtlz = new Twig_TokenStream(self::$Vnzh5r33esb0);
$V4kzgsq5cmsu = array();
while (!$Vxzcqmu3jtlz->isEOF()) {
$Vchzzgk3uvsq = $Vxzcqmu3jtlz->next();
$V4kzgsq5cmsu[] = $Vchzzgk3uvsq->getValue();
}
$this->assertEquals('1, 2, 3, 4, 5, 6, 7', implode(', ', $V4kzgsq5cmsu), '->next() advances the pointer and returns the current token');
}
public function testEndOfTemplateNext()
{
$Vxzcqmu3jtlz = new Twig_TokenStream(array(
new Twig_Token(Twig_Token::BLOCK_START_TYPE, 1, 1),
));
while (!$Vxzcqmu3jtlz->isEOF()) {
$Vxzcqmu3jtlz->next();
}
}
public function testEndOfTemplateLook()
{
$Vxzcqmu3jtlz = new Twig_TokenStream(array(
new Twig_Token(Twig_Token::BLOCK_START_TYPE, 1, 1),
));
while (!$Vxzcqmu3jtlz->isEOF()) {
$Vxzcqmu3jtlz->look();
$Vxzcqmu3jtlz->next();
}
}
}
| diogoleitao/ssof | apps/xvwa-master/phpprotect_obfuscated/vulnerabilities/ssti/vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php | PHP | mit | 1,700 | [
30522,
1026,
1029,
25718,
2465,
1056,
16279,
1035,
5852,
1035,
19204,
21422,
22199,
8908,
25718,
19496,
2102,
1035,
7705,
1035,
3231,
18382,
1063,
5123,
10763,
1002,
1058,
14191,
2232,
2629,
2099,
22394,
2229,
2497,
2692,
1025,
2270,
3853,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package helper;
import java.awt.AlphaComposite;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
public class GhostGlassPane extends JPanel
{
private AlphaComposite composite;
private BufferedImage dragged = null;
private Point location = new Point(0, 0);
public GhostGlassPane()
{
setOpaque(false);
composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f);
}
public void setImage(BufferedImage dragged)
{
this.dragged = dragged;
}
public void setPoint(Point location)
{
this.location = location;
}
public void paintComponent(Graphics g)
{
if (dragged == null)
return;
Graphics2D g2 = (Graphics2D) g;
g2.setComposite(composite);
g2.drawImage(dragged,
(int) (location.getX() - (dragged.getWidth(this) / 2)),
(int) (location.getY() - (dragged.getHeight(this) / 2)),
null);
}
} | pja35/ThePyBotWarPro | src/main/java/helper/GhostGlassPane.java | Java | gpl-2.0 | 1,128 | [
30522,
7427,
2393,
2121,
1025,
12324,
9262,
1012,
22091,
2102,
1012,
6541,
9006,
6873,
28032,
2063,
1025,
12324,
9262,
1012,
22091,
2102,
1012,
8389,
1025,
12324,
9262,
1012,
22091,
2102,
1012,
8389,
2475,
2094,
1025,
12324,
9262,
1012,
220... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
---
layout: page
title: Bukkit
---
Welcome to my Bukkit plugin development information page.<br />
<br />
Here you can find some available resources for developers using my projects along with information about my plugin commission service.<br />
<br />
<div align="center">
<table>
<tr>
<td><a href="http://forums.bukkit.org/members/stealth2800.97612"><img hspace="20" src="http://dl.st28.me/website/images/BukkitForums.png"></a>
<td><a href="http://dev.bukkit.org/profiles/stealth2800/"><img hspace="20" src="http://dl.st28.me/website/images/BukkitDev.png"></a>
<td><a href="https://github.com/Stealth2800"><img hspace="20" src="http://dl.st28.me/website/images/GitHub.png"></a>
<td><a href="https://bitbucket.org/Stealth2800"><img hspace="20" src="http://dl.st28.me/website/images/Bitbucket.png"></a>
</tr>
</table>
</div>
<br />
<br />
<div align="center">
<table cellpadding="10">
<tr>
<th><div align="center"><h3>Developer Resources</h3></div></th>
<th><div align="center"><h3>Plugin Commissions</h3></div></th>
</tr>
<tr>
<td>
If you're a developer looking to use any of my projects, you can find information about both my public Maven repository and Jenkins build server on my <a href="developer-resources">developer resources</a> page.
</td>
<td>
<br />
I periodically browse the <a href="http://forums.bukkit.org/forums/plugin-requests.13/">Plugin Requests</a> subforum on the Bukkit forums and create plugins I find there. If you want me to take a look at your request, just contact me.<br />
<br />
I also offer private plugin commissions for a fee. Visit the <a href="commissions">commissions</a> page for more information.
</td>
</tr>
</table>
</div>
| Stealth2800/stealth2800.github.io | bukkit/index.html | HTML | mit | 1,935 | [
30522,
1011,
1011,
1011,
9621,
1024,
3931,
2516,
1024,
20934,
24103,
2102,
1011,
1011,
1011,
6160,
2000,
2026,
20934,
24103,
2102,
13354,
2378,
2458,
2592,
3931,
1012,
1026,
7987,
1013,
1028,
1026,
7987,
1013,
1028,
2182,
2017,
2064,
2424,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
(function() {
'use strict';
angular.module('pteroWorkflowClient.services', []);
})();
| genome/ptero-workflow-client | src/app/services.module.js | JavaScript | gpl-3.0 | 90 | [
30522,
1006,
3853,
1006,
1007,
1063,
1005,
2224,
9384,
1005,
1025,
16108,
1012,
11336,
1006,
1005,
13866,
10624,
6198,
12314,
20464,
11638,
1012,
2578,
1005,
1010,
1031,
1033,
1007,
1025,
1065,
1007,
1006,
1007,
1025,
102,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<#
DESCRIPTION:
Ensure all drives are formatted as NTFS.
REQUIRED-INPUTS:
None
DEFAULT-VALUES:
None
DEFAULT-STATE:
Enabled
RESULTS:
PASS:
All drives are formatted as NTFS
WARNING:
FAIL:
One or more drives were found not formatted as NTFS
MANUAL:
Unable to get drive information, please check manually
NA:
APPLIES:
All Servers
REQUIRED-FUNCTIONS:
None
#>
Function c-drv-08-drive-ntfs-format
{
Param ( [string]$serverName, [string]$resultPath )
$serverName = $serverName.Replace('[0]', '')
$resultPath = $resultPath.Replace('[0]', '')
$result = newResult
$result.server = $serverName
$result.name = $script:lang['Name']
$result.check = 'c-drv-08-drive-ntfs-format'
#... CHECK STARTS HERE ...#
Try
{
[string]$query = 'SELECT * FROM Win32_LogicalDisk WHERE DriveType = "3"' # Filter on DriveType=3 (Fixed Drives)
[array] $check = Get-WmiObject -ComputerName $serverName -Query $query -Namespace ROOT\Cimv2 | Select-Object Name, FileSystem
}
Catch
{
$result.result = $script:lang['Error']
$result.message = $script:lang['Script-Error']
$result.data = $_.Exception.Message
Return $result
}
$countFailed = 0
$result.data = ''
If ($check -ne $null)
{
$check | ForEach {
If ($_.FileSystem -ne 'NTFS')
{
If ($_.FileSystem -eq $null) { $_.FileSystem = 'Not Formatted' }
$result.data += '{0} ({1}),#' -f $_.Name, $_.FileSystem
$countFailed += 1
}
}
If ($countFailed -ne 0)
{
$result.result = $script:lang['Fail']
$result.message = 'One or more drives were found not formatted as NTFS'
}
Else
{
$result.result = $script:lang['Pass']
$result.message = 'All drives are formatted as NTFS'
}
}
Else
{
$result.result = $script:lang['Manual']
$result.message = 'Unable to get drive information, please check manually'
$result.data = 'All drives need to be formatted as NTFS'
}
Return $result
} | My-Random-Thoughts/Server-QA-Checks | checks/drives/c-drv-08-drive-ntfs-format.ps1 | PowerShell | apache-2.0 | 2,337 | [
30522,
1026,
1001,
6412,
1024,
5676,
2035,
9297,
2024,
4289,
3064,
2004,
23961,
10343,
1012,
3223,
1011,
20407,
1024,
3904,
12398,
1011,
5300,
1024,
3904,
12398,
1011,
2110,
1024,
9124,
3463,
1024,
3413,
1024,
2035,
9297,
2024,
4289,
3064,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
module.exports = { prefix: 'far', iconName: 'arrow-alt-square-up', icon: [448, 512, [], "f353", "M244 384h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"] }; | dolare/myCMS | static/fontawesome5/fontawesome-pro-5.0.2/fontawesome-pro-5.0.2/advanced-options/use-with-node-js/fontawesome-pro-regular/faArrowAltSquareUp.js | JavaScript | mit | 450 | [
30522,
11336,
1012,
14338,
1027,
1063,
17576,
1024,
1005,
2521,
1005,
1010,
12696,
18442,
1024,
1005,
8612,
1011,
12456,
1011,
2675,
1011,
2039,
1005,
1010,
12696,
1024,
1031,
4008,
2620,
1010,
24406,
1010,
1031,
1033,
1010,
1000,
1042,
194... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
class ACLHelperMethod < ApplicationController
access_control :helper => :foo? do
allow :owner, :of => :foo
end
def allow
@foo = Foo.first
render inline: "<div><%= foo? ? 'OK' : 'AccessDenied' %></div>"
end
end
| be9/acl9 | test/dummy/app/controllers/acl_helper_method.rb | Ruby | mit | 232 | [
30522,
2465,
9353,
2140,
16001,
4842,
11368,
6806,
2094,
1026,
4646,
8663,
13181,
10820,
3229,
1035,
2491,
1024,
2393,
2121,
1027,
1028,
1024,
29379,
1029,
2079,
3499,
1024,
3954,
1010,
1024,
1997,
1027,
1028,
1024,
29379,
2203,
13366,
3499... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import VueRouter from 'vue-router'
import { mount } from '@vue/test-utils'
import { waitNT, waitRAF } from '../../../tests/utils'
import { Vue } from '../../vue'
import { BPaginationNav } from './pagination-nav'
Vue.use(VueRouter)
// The majority of tests for the core of pagination mixin are performed
// in pagination.spec.js. Here we just test the differences that
// <pagination-nav> has
// We use a (currently) undocumented wrapper method `destroy()` at the end
// of each test to remove the VM and DOM from the JSDOM document, as
// the wrapper's and instances remain after each test completes
describe('pagination-nav', () => {
it('renders with correct basic structure for root elements', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 1,
value: 1
}
})
await waitNT(wrapper.vm)
await waitRAF()
// <pagination-nav> has an outer wrapper of nav
expect(wrapper.element.tagName).toBe('NAV')
const $ul = wrapper.find('ul.pagination')
expect($ul.exists()).toBe(true)
// NAV Attributes
expect(wrapper.attributes('aria-hidden')).toBe('false')
expect(wrapper.attributes('aria-label')).toBe('Pagination')
// UL Classes
expect($ul.classes()).toContain('pagination')
expect($ul.classes()).toContain('b-pagination')
expect($ul.classes()).not.toContain('pagination-sm')
expect($ul.classes()).not.toContain('pagination-lg')
expect($ul.classes()).not.toContain('justify-content-center')
expect($ul.classes()).not.toContain('justify-content-end')
// UL Attributes
expect($ul.attributes('role')).not.toBe('menubar')
expect($ul.attributes('aria-disabled')).toBe('false')
expect($ul.attributes('aria-label')).not.toBe('Pagination')
wrapper.destroy()
})
it('renders with correct default HREF', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 5,
value: 3,
limit: 10
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
// Default base URL is '/', and link will be the page number
expect($links.at(0).attributes('href')).toBe('/1')
expect($links.at(1).attributes('href')).toBe('/2')
expect($links.at(2).attributes('href')).toBe('/1')
expect($links.at(3).attributes('href')).toBe('/2')
expect($links.at(4).attributes('href')).toBe('/3')
expect($links.at(5).attributes('href')).toBe('/4')
expect($links.at(6).attributes('href')).toBe('/5')
expect($links.at(7).attributes('href')).toBe('/4')
expect($links.at(8).attributes('href')).toBe('/5')
wrapper.destroy()
})
it('renders with correct default page button text', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 5,
value: 3,
limit: 10
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
expect($links.at(2).text()).toBe('1')
expect($links.at(3).text()).toBe('2')
expect($links.at(4).text()).toBe('3')
expect($links.at(5).text()).toBe('4')
expect($links.at(6).text()).toBe('5')
wrapper.destroy()
})
it('disabled renders correct', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 1,
value: 1,
disabled: true
}
})
await waitNT(wrapper.vm)
await waitRAF()
// <pagination-nav> has an outer wrapper of nav
expect(wrapper.element.tagName).toBe('NAV')
const $ul = wrapper.find('ul.pagination')
expect($ul.exists()).toBe(true)
// NAV Attributes
expect(wrapper.attributes('aria-hidden')).toBe('true')
expect(wrapper.attributes('aria-disabled')).toBe('true')
// UL Classes
expect($ul.classes()).toContain('pagination')
expect($ul.classes()).toContain('b-pagination')
// UL Attributes
expect($ul.attributes('role')).not.toBe('menubar')
expect($ul.attributes('aria-disabled')).toBe('true')
// LI classes
expect(wrapper.findAll('li').length).toBe(5)
expect(wrapper.findAll('li.page-item').length).toBe(5)
expect(wrapper.findAll('li.disabled').length).toBe(5)
// LI Inner should be span elements
expect(wrapper.findAll('li > span').length).toBe(5)
expect(wrapper.findAll('li > span.page-link').length).toBe(5)
expect(wrapper.findAll('li > span[aria-disabled="true"').length).toBe(5)
wrapper.destroy()
})
it('reacts to changes in number-of-pages', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 3,
value: 2,
limit: 10
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
let $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(7)
await wrapper.setProps({
numberOfPages: 5
})
await waitNT(wrapper.vm)
$links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
wrapper.destroy()
})
it('renders with correct HREF when base-url specified', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 5,
value: 3,
limit: 10,
baseUrl: '/foo/'
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
// Default base URL is '/', and link will be the page number
expect($links.at(0).attributes('href')).toBe('/foo/1')
expect($links.at(1).attributes('href')).toBe('/foo/2')
expect($links.at(2).attributes('href')).toBe('/foo/1')
expect($links.at(3).attributes('href')).toBe('/foo/2')
expect($links.at(4).attributes('href')).toBe('/foo/3')
expect($links.at(5).attributes('href')).toBe('/foo/4')
expect($links.at(6).attributes('href')).toBe('/foo/5')
expect($links.at(7).attributes('href')).toBe('/foo/4')
expect($links.at(8).attributes('href')).toBe('/foo/5')
wrapper.destroy()
})
it('renders with correct HREF when link-gen function provided', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 5,
value: 3,
limit: 10,
linkGen: page => `?${page}`
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
// Default base URL is '/', and link will be the page number
expect($links.at(0).attributes('href')).toBe('?1')
expect($links.at(1).attributes('href')).toBe('?2')
expect($links.at(2).attributes('href')).toBe('?1')
expect($links.at(3).attributes('href')).toBe('?2')
expect($links.at(4).attributes('href')).toBe('?3')
expect($links.at(5).attributes('href')).toBe('?4')
expect($links.at(6).attributes('href')).toBe('?5')
expect($links.at(7).attributes('href')).toBe('?4')
expect($links.at(8).attributes('href')).toBe('?5')
wrapper.destroy()
})
it('renders with correct HREF when link-gen function returns object', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 5,
value: 3,
limit: 10,
linkGen: page => ({ path: `/baz?${page}` })
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
// Default base URL is '/', and link will be the page number
expect($links.at(0).attributes('href')).toBe('/baz?1')
expect($links.at(1).attributes('href')).toBe('/baz?2')
expect($links.at(2).attributes('href')).toBe('/baz?1')
expect($links.at(3).attributes('href')).toBe('/baz?2')
expect($links.at(4).attributes('href')).toBe('/baz?3')
expect($links.at(5).attributes('href')).toBe('/baz?4')
expect($links.at(6).attributes('href')).toBe('/baz?5')
expect($links.at(7).attributes('href')).toBe('/baz?4')
expect($links.at(8).attributes('href')).toBe('/baz?5')
wrapper.destroy()
})
it('renders with correct page button text when page-gen function provided', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 5,
value: 3,
limit: 10,
pageGen: page => `Page ${page}`
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
expect($links.at(2).text()).toBe('Page 1')
expect($links.at(3).text()).toBe('Page 2')
expect($links.at(4).text()).toBe('Page 3')
expect($links.at(5).text()).toBe('Page 4')
expect($links.at(6).text()).toBe('Page 5')
wrapper.destroy()
})
it('renders with correct HREF when array of links set via pages prop', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
value: 3,
limit: 10,
pages: ['/baz?1', '/baz?2', '/baz?3', '/baz?4', '/baz?5']
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
// Default base URL is '/', and link will be the page number
expect($links.at(0).attributes('href')).toBe('/baz?1')
expect($links.at(1).attributes('href')).toBe('/baz?2')
expect($links.at(2).attributes('href')).toBe('/baz?1')
expect($links.at(3).attributes('href')).toBe('/baz?2')
expect($links.at(4).attributes('href')).toBe('/baz?3')
expect($links.at(5).attributes('href')).toBe('/baz?4')
expect($links.at(6).attributes('href')).toBe('/baz?5')
expect($links.at(7).attributes('href')).toBe('/baz?4')
expect($links.at(8).attributes('href')).toBe('/baz?5')
// Page buttons have correct content
expect($links.at(2).text()).toBe('1')
expect($links.at(3).text()).toBe('2')
expect($links.at(4).text()).toBe('3')
expect($links.at(5).text()).toBe('4')
expect($links.at(6).text()).toBe('5')
wrapper.destroy()
})
it('renders with correct HREF when array of links and text set via pages prop', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
value: 3,
limit: 10,
pages: [
{ link: '/baz?1', text: 'one' },
{ link: '/baz?2', text: 'two' },
{ link: '/baz?3', text: 'three' },
{ link: '/baz?4', text: 'four' },
{ link: '/baz?5', text: 'five' }
]
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
const $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(9)
// Default base URL is '/', and link will be the page number
expect($links.at(0).attributes('href')).toBe('/baz?1')
expect($links.at(1).attributes('href')).toBe('/baz?2')
expect($links.at(2).attributes('href')).toBe('/baz?1')
expect($links.at(3).attributes('href')).toBe('/baz?2')
expect($links.at(4).attributes('href')).toBe('/baz?3')
expect($links.at(5).attributes('href')).toBe('/baz?4')
expect($links.at(6).attributes('href')).toBe('/baz?5')
expect($links.at(7).attributes('href')).toBe('/baz?4')
expect($links.at(8).attributes('href')).toBe('/baz?5')
// Page buttons have correct content
expect($links.at(2).text()).toBe('one')
expect($links.at(3).text()).toBe('two')
expect($links.at(4).text()).toBe('three')
expect($links.at(5).text()).toBe('four')
expect($links.at(6).text()).toBe('five')
wrapper.destroy()
})
it('reacts to changes in pages array length', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
value: 2,
limit: 10,
pages: ['/baz?1', '/baz?2', '/baz?3']
}
})
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.element.tagName).toBe('NAV')
let $links = wrapper.findAll('a.page-link')
expect($links.length).toBe(7)
expect($links.at(0).attributes('href')).toBe('/baz?1')
expect($links.at(1).attributes('href')).toBe('/baz?1')
expect($links.at(2).attributes('href')).toBe('/baz?1')
expect($links.at(3).attributes('href')).toBe('/baz?2')
expect($links.at(4).attributes('href')).toBe('/baz?3')
expect($links.at(5).attributes('href')).toBe('/baz?3')
expect($links.at(6).attributes('href')).toBe('/baz?3')
// Add extra page
await wrapper.setProps({
pages: ['/baz?1', '/baz?2', '/baz?3', '/baz?4']
})
await waitNT(wrapper.vm)
$links = wrapper.findAll('a.page-link')
expect($links.length).toBe(8)
expect($links.at(0).attributes('href')).toBe('/baz?1')
expect($links.at(1).attributes('href')).toBe('/baz?1')
expect($links.at(2).attributes('href')).toBe('/baz?1')
expect($links.at(3).attributes('href')).toBe('/baz?2')
expect($links.at(4).attributes('href')).toBe('/baz?3')
expect($links.at(5).attributes('href')).toBe('/baz?4')
expect($links.at(6).attributes('href')).toBe('/baz?3')
expect($links.at(7).attributes('href')).toBe('/baz?4')
wrapper.destroy()
})
it('clicking buttons updates the v-model', async () => {
const App = {
compatConfig: { MODE: 3, RENDER_FUNCTION: 'suppress-warning' },
methods: {
onPageClick(bvEvent, page) {
// Prevent 3rd page from being selected
if (page === 3) {
bvEvent.preventDefault()
}
}
},
render(h) {
return h(BPaginationNav, {
props: {
baseUrl: '#', // Needed to prevent JSDOM errors
numberOfPages: 5,
value: 1,
limit: 10
},
on: { 'page-click': this.onPageClick }
})
}
}
const wrapper = mount(App)
expect(wrapper).toBeDefined()
const paginationNav = wrapper.findComponent(BPaginationNav)
expect(paginationNav).toBeDefined()
expect(paginationNav.element.tagName).toBe('NAV')
// Grab the page links
const lis = paginationNav.findAll('li')
expect(lis.length).toBe(9)
expect(paginationNav.vm.computedCurrentPage).toBe(1)
expect(paginationNav.emitted('input')).toBeUndefined()
expect(paginationNav.emitted('change')).toBeUndefined()
expect(paginationNav.emitted('page-click')).toBeUndefined()
// Click on current (1st) page link (does nothing)
await lis
.at(2)
.find('a')
.trigger('click')
await waitRAF()
expect(paginationNav.vm.computedCurrentPage).toBe(1)
expect(paginationNav.emitted('input')).toBeUndefined()
expect(paginationNav.emitted('change')).toBeUndefined()
expect(paginationNav.emitted('page-click')).toBeUndefined()
// Click on 2nd page link
await lis
.at(3)
.find('a')
.trigger('click')
await waitRAF()
expect(paginationNav.vm.computedCurrentPage).toBe(2)
expect(paginationNav.emitted('input')).toBeDefined()
expect(paginationNav.emitted('change')).toBeDefined()
expect(paginationNav.emitted('page-click')).toBeDefined()
expect(paginationNav.emitted('input')[0][0]).toBe(2)
expect(paginationNav.emitted('change')[0][0]).toBe(2)
expect(paginationNav.emitted('page-click').length).toBe(1)
// Click goto last page link
await lis
.at(8)
.find('a')
.trigger('click')
await waitRAF()
expect(paginationNav.vm.computedCurrentPage).toBe(5)
expect(paginationNav.emitted('input')[1][0]).toBe(5)
expect(paginationNav.emitted('change')[1][0]).toBe(5)
expect(paginationNav.emitted('page-click').length).toBe(2)
// Click prev page link
await lis
.at(1)
.find('a')
.trigger('click')
await waitRAF()
expect(paginationNav.vm.computedCurrentPage).toBe(4)
expect(paginationNav.emitted('input')[2][0]).toBe(4)
expect(paginationNav.emitted('change')[2][0]).toBe(4)
expect(paginationNav.emitted('page-click').length).toBe(3)
// Click on 3rd page link (prevented)
await lis
.at(4)
.find('a')
.trigger('click')
await waitRAF()
expect(paginationNav.vm.computedCurrentPage).toBe(4)
expect(paginationNav.emitted('input').length).toBe(3)
expect(paginationNav.emitted('change').length).toBe(3)
expect(paginationNav.emitted('page-click').length).toBe(4)
wrapper.destroy()
})
describe('auto-detect page', () => {
// Note: JSDOM only works with hash URL updates out of the box
beforeEach(() => {
// Make sure theJSDOM is at '/', as JSDOM instances for each test!
window.history.pushState({}, '', '/')
})
it('detects current page without $router', async () => {
const wrapper = mount(BPaginationNav, {
propsData: {
numberOfPages: 3,
value: null,
linkGen: page => (page === 2 ? '/' : `/#${page}`)
}
})
await waitNT(wrapper.vm)
await waitRAF()
await waitNT(wrapper.vm)
expect(wrapper.vm.$router).toBeUndefined()
expect(wrapper.vm.$route).toBeUndefined()
expect(wrapper.element.tagName).toBe('NAV')
const $ul = wrapper.find('ul.pagination')
expect($ul.exists()).toBe(true)
// Emitted current page (2)
expect(wrapper.emitted('input')).toBeDefined()
expect(wrapper.emitted('input').length).toBe(1)
expect(wrapper.emitted('input')[0][0]).toBe(2) // Page 2, URL = ''
wrapper.destroy()
})
it('works with $router to detect path and linkGen returns location object', async () => {
const App = {
compatConfig: { MODE: 3, COMPONENT_FUNCTIONAL: 'suppress-warning' },
components: { BPaginationNav },
methods: {
linkGen(page) {
// We make page #2 "home" for testing
// We return a to prop to auto trigger use of $router
// if using strings, we would need to set use-router=true
return page === 2 ? { path: '/' } : { path: '/' + page }
}
},
template: `
<div>
<b-pagination-nav :number-of-pages="3" :link-gen="linkGen"></b-pagination-nav>
<router-view></router-view>
</div>
`
}
// Our router view component
const FooRoute = {
compatConfig: { MODE: 3, RENDER_FUNCTION: 'suppress-warning' },
render(h) {
return h('div', { class: 'foo-content' }, ['stub'])
}
}
// Create router instance
const router = new VueRouter({
routes: [{ path: '/', component: FooRoute }, { path: '/:page', component: FooRoute }]
})
const wrapper = mount(App, { router })
expect(wrapper).toBeDefined()
// Wait for the router to initialize
await new Promise(resolve => router.onReady(resolve))
// Wait for the guessCurrentPage to complete
await waitNT(wrapper.vm)
await waitRAF()
await waitNT(wrapper.vm)
// The pagination-nav component should exist
expect(wrapper.findComponent(BPaginationNav).exists()).toBe(true)
// And should be on page 2
expect(wrapper.findComponent(BPaginationNav).vm.currentPage).toBe(2)
// Push router to a new page
wrapper.vm.$router.push('/3')
// Wait for the guessCurrentPage to complete
await waitNT(wrapper.vm)
await waitRAF()
await waitNT(wrapper.vm)
// The pagination-nav component should exist
expect(wrapper.findComponent(BPaginationNav).exists()).toBe(true)
// And should be on page 3
expect(wrapper.findComponent(BPaginationNav).vm.currentPage).toBe(3)
wrapper.destroy()
})
it('works with $router to detect path and use-router set and linkGen returns string', async () => {
const App = {
compatConfig: { MODE: 3, COMPONENT_FUNCTIONAL: 'suppress-warning' },
components: { BPaginationNav },
methods: {
linkGen(page) {
// We make page #2 "home" for testing
// We return a to prop to auto trigger use of $router
// if using strings, we would need to set use-router=true
return page === 2 ? '/' : `/${page}`
}
},
template: `
<div>
<b-pagination-nav :number-of-pages="3" :link-gen="linkGen" use-router></b-pagination-nav>
<router-view></router-view>
</div>
`
}
// Our router view component
const FooRoute = {
compatConfig: { MODE: 3, RENDER_FUNCTION: 'suppress-warning' },
render(h) {
return h('div', { class: 'foo-content' }, ['stub'])
}
}
// Create router instance
const router = new VueRouter({
routes: [{ path: '/', component: FooRoute }, { path: '/:page', component: FooRoute }]
})
const wrapper = mount(App, { router })
expect(wrapper).toBeDefined()
// Wait for the router to initialize
await new Promise(resolve => router.onReady(resolve))
// Wait for the guessCurrentPage to complete
await waitNT(wrapper.vm)
await waitRAF()
await waitNT(wrapper.vm)
// The <pagination-nav> component should exist
expect(wrapper.findComponent(BPaginationNav).exists()).toBe(true)
// And should be on page 2
expect(wrapper.findComponent(BPaginationNav).vm.currentPage).toBe(2)
// Push router to a new page
wrapper.vm.$router.push('/3')
// Wait for the guessCurrentPage to complete
await waitNT(wrapper.vm)
await waitRAF()
await waitNT(wrapper.vm)
// The pagination-nav component should exist
expect(wrapper.findComponent(BPaginationNav).exists()).toBe(true)
// And should be on page 3
expect(wrapper.findComponent(BPaginationNav).vm.currentPage).toBe(3)
wrapper.destroy()
})
})
})
| bootstrap-vue/bootstrap-vue | src/components/pagination-nav/pagination-nav.spec.js | JavaScript | mit | 22,231 | [
30522,
12324,
24728,
10624,
19901,
2013,
1005,
24728,
2063,
1011,
2799,
2099,
1005,
12324,
1063,
4057,
1065,
2013,
1005,
1030,
24728,
2063,
1013,
3231,
1011,
21183,
12146,
1005,
12324,
1063,
3524,
3372,
1010,
3524,
27528,
1065,
2013,
1005,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
.page-content .navbar-fixed-bottom,.page-content .navbar-fixed-top{position:relative}.page-content .card-block{padding-left:0;padding-right:0}.page-content .card-block .card-link+.card-link{margin-left:0}.scrollspy-example{position:relative;height:200px;padding:0 20px;overflow:auto;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.08);box-shadow:0 2px 4px rgba(0,0,0,.08)}.example-fixed{height:400px;line-height:400px;text-align:center}.example-grid .example-col{margin-bottom:10px;word-break:break-all} | harinathebc/sample_codeigniter | assets/examples/css/structure/navbars.min.css | CSS | mit | 496 | [
30522,
1012,
3931,
1011,
4180,
1012,
6583,
26493,
2906,
1011,
4964,
1011,
3953,
1010,
1012,
3931,
1011,
4180,
1012,
6583,
26493,
2906,
1011,
4964,
1011,
2327,
1063,
2597,
1024,
5816,
1065,
1012,
3931,
1011,
4180,
1012,
4003,
1011,
3796,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="sv">
<head>
<!-- Generated by javadoc (1.8.0_66) on Fri Feb 05 11:53:26 CET 2016 -->
<title>Bike</title>
<meta name="date" content="2016-02-05">
<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="Bike";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</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="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Bike.html">Use</a></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 Class</li>
<li><a href="BikeGUI.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="index.html?Bike.html" target="_top">Frames</a></li>
<li><a href="Bike.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>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<h2 title="Class Bike" class="title">Class Bike</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>Bike</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">Bike</span>
extends java.lang.Object</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="Bike.html#Bike-java.lang.String-int-">Bike</a></span>(java.lang.String color,
int size)</code>
<div class="block">Constructors</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="Bike.html#Bike-java.lang.String-int-int-">Bike</a></span>(java.lang.String color,
int size,
int price)</code>
<div class="block">Limitations.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Bike.html#getColor--">getColor</a></span>()</code>
<div class="block">Methods</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Bike.html#getPrice--">getPrice</a></span>()</code> </td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Bike.html#getSize--">getSize</a></span>()</code> </td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Bike.html#setPrice-int-">setPrice</a></span>(int price)</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Bike-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Bike</h4>
<pre>public Bike(java.lang.String color,
int size)</pre>
<div class="block">Constructors</div>
</li>
</ul>
<a name="Bike-java.lang.String-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Bike</h4>
<pre>public Bike(java.lang.String color,
int size,
int price)</pre>
<div class="block">Limitations. A value that are not in the right area will give a error message.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getColor--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getColor</h4>
<pre>public java.lang.String getColor()</pre>
<div class="block">Methods</div>
</li>
</ul>
<a name="getSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSize</h4>
<pre>public int getSize()</pre>
</li>
</ul>
<a name="getPrice--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrice</h4>
<pre>public int getPrice()</pre>
</li>
</ul>
<a name="setPrice-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setPrice</h4>
<pre>public void setPrice(int price)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= 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="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Bike.html">Use</a></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 Class</li>
<li><a href="BikeGUI.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="index.html?Bike.html" target="_top">Frames</a></li>
<li><a href="Bike.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>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| mackan92/KD405A_Marcus_O | Assignment_3/doc/Bike.html | HTML | apache-2.0 | 10,117 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
16129,
1018,
1012,
5890,
17459,
1013,
1013,
4372,
1000,
1000,
8299,
1024,
1013,
1013,
7479,
1012,
1059,
2509,
1012,
8917,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace FCT.LLC.BusinessService.Entities
{
[Table("tblLawyerPaymentAuthorizationMethod")]
public partial class tblLawyerPaymentAuthorizationMethod
{
[Key]
public int PaymentMethodID { get; set; }
public int LawyerID { get; set; }
public int AuthorizedTypeID { get; set; }
public virtual tblLawyer tblLawyer { get; set; }
public virtual tblLawyerAuthorizedPaymentMethodType tblLawyerAuthorizedPaymentMethodType { get; set; }
}
}
| ygrinev/ygrinev | LLC/Source Code/FCT.LLC.BusinessService/Entities/tblLawyerPaymentAuthorizationMethod.cs | C# | apache-2.0 | 596 | [
30522,
2478,
2291,
1012,
6922,
5302,
9247,
1012,
2951,
11639,
17287,
9285,
1025,
2478,
2291,
1012,
6922,
5302,
9247,
1012,
2951,
11639,
17287,
9285,
1012,
8040,
28433,
1025,
3415,
15327,
4429,
2102,
1012,
11775,
1012,
2449,
8043,
7903,
2063... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
$(document).delegate('.storage_graph_link', 'click', function(e){
var anchor = this,
el = $(anchor),
id = el.attr('data-status');
if(e.ctrlKey || e.metaKey){
return true;
}else{
e.preventDefault();
}
var cell = document.getElementById(id);
var text = el.html();
if (text == '[:: show ::]') {
anchor.innerHTML = '[:: hide ::]';
if (cell.nodeName == 'IMG') { // <img src='...'/>
cell.src=anchor.href;
} else {
$.ajax({
type: "get",
url: anchor.href,
success : function(response, textStatus) {
cell.style.display = 'block';
cell.parentNode.style.display = 'block';
cell.innerHTML = response;
var data = $('#countTrendMeta',cell).text();
graphLineChart($('#countTrend',cell)[0],eval('('+data+')'));
data = $('#longTrendMeta',cell).text();
graphLineChart($('#longTrend',cell)[0],eval('('+data+')'));
data = $('#avgTrendMeta',cell).text();
graphLineChart($('#avgTrend',cell)[0],eval('('+data+')'));
data = $('#errorTrendMeta',cell).text();
graphLineChart($('#errorTrend',cell)[0],eval('('+data+')'));
data = $('#piechartMeta',cell).text();
graphPieChart($('#piechart',cell)[0],eval('('+data+')'));
}
});
}
} else {
anchor.innerHTML = '[:: show ::]';
cell.style.display = 'none';
cell.parentNode.style.display = 'none';
}
}) | jialinsun/cat | cat-home/src/main/webapp/js/storage.js | JavaScript | apache-2.0 | 1,379 | [
30522,
1002,
1006,
6254,
1007,
1012,
11849,
1006,
1005,
1012,
5527,
1035,
10629,
1035,
4957,
1005,
1010,
1005,
11562,
1005,
1010,
3853,
1006,
1041,
1007,
1063,
13075,
8133,
1027,
2023,
1010,
3449,
1027,
1002,
1006,
8133,
1007,
1010,
8909,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
module.exports = {
entry: {
app : './app/app.js'
},
output: {
filename: '[name]_bundle.js',
path: './dist'
}
}; | remibantos/jeeshop | admin/src/main/webapp/webpack.config.js | JavaScript | apache-2.0 | 151 | [
30522,
11336,
1012,
14338,
1027,
1063,
4443,
1024,
1063,
10439,
1024,
1005,
1012,
1013,
10439,
1013,
10439,
1012,
1046,
2015,
1005,
1065,
1010,
6434,
1024,
1063,
5371,
18442,
1024,
1005,
1031,
2171,
1033,
1035,
14012,
1012,
1046,
2015,
1005... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
using System.Linq;
namespace NuPattern.Runtime.Comparers
{
/// <summary>
/// A comparer that compares the string value of the first property of an element.
/// </summary>
public class FirstPropertyValueProductElementComparer : ProductElementComparer
{
/// <summary>
/// Compares the string value of the first property of the two elements for equality.
/// </summary>
public override int Compare(IProductElement x, IProductElement y)
{
var value1 = string.Empty;
var value2 = string.Empty;
var property1 = x.Properties.FirstOrDefault();
if (property1 != null)
{
value1 = property1.Value.ToString();
}
var property2 = y.Properties.FirstOrDefault();
if (property2 != null)
{
value2 = property2.Value.ToString();
}
return String.Compare(value1, value2, true);
}
}
}
| NuPattern/NuPattern | Src/Runtime/Source/Runtime.Extensibility/Comparers/FirstPropertyValueProductElementComparer.cs | C# | apache-2.0 | 1,020 | [
30522,
2478,
2291,
1025,
2478,
2291,
1012,
11409,
4160,
1025,
3415,
15327,
16371,
4502,
12079,
2078,
1012,
2448,
7292,
1012,
12826,
2869,
1063,
1013,
1013,
1013,
1026,
12654,
1028,
1013,
1013,
1013,
1037,
12826,
2099,
2008,
22963,
1996,
516... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, PageBreak
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.rl_config import defaultPageSize
from reportlab.lib.units import cm
import operator
import os
import ConfigParser
import string
config = ConfigParser.ConfigParser()
config.read(os.environ["HOME"] + "/.abook/addressbook")
config.remove_section('format')
PAGE_HEIGHT=defaultPageSize[1]; PAGE_WIDTH=defaultPageSize[0]
styles = getSampleStyleSheet()
buchstabe = "A"
Title = "Hello world"
pageinfo = "platypus example"
def Pages(canvas, doc):
canvas.saveState()
canvas.restoreState()
def go(buchstabe):
doc = SimpleDocTemplate("phello.pdf")
Story = []
style = styles["Normal"]
addresses=[]
for s in config.sections():
nb=""
ub=""
mb=""
if config.has_option(s,'name'):
nb = "<b>" + config.get(s,'name') + "</b><br/>"
worte=config.get(s,'name').split()
print len(worte)
if len(worte)<2:
nachname=worte[0]
else:
nachname=worte[1]
anfangsbuchstabe=nachname[0:1]
if anfangsbuchstabe!=buchstabe:
buchstabe=anfangsbuchstabe
print buchstabe
p = Table(addresses)
p.setStyle(TableStyle([('VALIGN',(0,0),(-1,-1),"TOP"),
('ALIGN',(0,-1),(0,-1),'RIGHT')]))
Story.append(p)
Story.append(PageBreak())
addresses=[]
if config.has_option(s,'address'):
nb = nb + config.get(s,'address') + "<br/>"
if config.has_option(s,'zip'):
nb = nb + config.get(s,'zip') + " "
if config.has_option(s,'city'):
nb = nb + config.get(s,'city') + "<br/>"
if config.has_option(s,'state'):
nb = nb + config.get(s,'state') + " - "
if config.has_option(s,'country'):
nb = nb + config.get(s,'country') + "<br/>"
nb = nb +"<br/>"
if config.has_option(s,'phone'):
ub= "Fon: " + config.get(s,'phone') + "<br/>"
if config.has_option(s,'mobile'):
ub= ub + "Mobi: " + config.get(s,'mobile') + "<br/>"
if config.has_option(s,'email'):
ub= ub + config.get(s,'email').replace(',','<br/>') + "<br/>"
ub=ub+"<br/>"
if config.has_option(s,'custom3'):
mb= config.get(s,'custom3') + "<br/>"
mb=mb+"<br/>"
nameblock = Paragraph(nb,style)
numberblock = Paragraph(ub,style)
middleblock = Paragraph(mb,style)
addresses.append([nameblock,middleblock,numberblock])
p = Table(addresses)
p.setStyle(TableStyle([('VALIGN',(0,0),(-1,-1),"TOP"),
('ALIGN',(0,-1),(0,-1),'RIGHT')]))
Story.append(p)
doc.build(Story, onFirstPage=Pages, onLaterPages=Pages)
go(buchstabe)
| andydrop/x17papertrail | abook2pdf.py | Python | gpl-3.0 | 3,106 | [
30522,
2013,
3189,
20470,
1012,
20228,
4017,
22571,
2271,
12324,
3722,
3527,
6593,
6633,
15725,
1010,
20423,
1010,
2686,
2099,
1010,
2795,
1010,
7251,
27983,
1010,
3931,
23890,
2013,
3189,
20470,
1012,
5622,
2497,
1012,
6782,
12324,
4152,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# Integrating the Play Framework with MongoDB
Using some examples from the web ( see Thanks below ) to integrate [MongoDB] ( http://www.mongodb.org/ ) into the
[Play Framework] (http://www.playframework.com/ ) using [SalatDAO] ( https://github.com/novus/salat/wiki/SalatDAO ).
# Software
* Operating System : Mac OS 10.9 ( Mavericks )
* Play Framework : v0.13.0
* MongoDB: v2.4.7
# Installing and Running
After installing from GitHub:
play clean-all
play compile
To run:
play run
and start the database:
mongod -dbpath /<Folder Name>/data
# Thanks
To the Team behind [ ScalaIDE for Eclipse ] ( http://scala-ide.org/docs/tutorials/play/ ),
James Hughes' Blog [Starter for 10 - Scala, Play 2 and Mongo](http://yobriefca.se/blog/2012/05/08/starter-for-10-scala-play-2-and-mongo/),
and Rose Tommey for [SalatDAO] ( https://github.com/novus/salat/wiki/SalatDAO ).
# Licence
[See licence]( https://github.com/dtinblack/Play-TestDB/blob/master/LICENSE )
| dtinblack/Play-TestDB | README.markdown | Markdown | mit | 988 | [
30522,
1001,
22380,
1996,
2377,
7705,
2007,
12256,
3995,
18939,
2478,
2070,
4973,
2013,
1996,
4773,
1006,
2156,
4283,
2917,
1007,
2000,
17409,
1031,
12256,
3995,
18939,
1033,
1006,
8299,
1024,
1013,
1013,
7479,
1012,
12256,
3995,
18939,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!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/html; charset=utf-8" />
<title>
MetaData / Schema
—
SQLAlchemy 1.0 Documentation
</title>
<!-- begin iterate through SQLA + sphinx environment css_files -->
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/changelog.css" type="text/css" />
<link rel="stylesheet" href="../_static/sphinx_paramlinks.css" type="text/css" />
<link rel="stylesheet" href="../_static/docs.css" type="text/css" />
<!-- end iterate through SQLA + sphinx environment css_files -->
<!-- begin layout.mako headers -->
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="copyright" title="Copyright" href="../copyright.html" />
<link rel="top" title="SQLAlchemy 1.0 Documentation" href="../index.html" />
<link rel="up" title="Frequently Asked Questions" href="index.html" />
<link rel="next" title="SQL Expressions" href="sqlexpressions.html" />
<link rel="prev" title="Connections / Engines" href="connections.html" />
<!-- end layout.mako headers -->
</head>
<body>
<div id="docs-container">
<div id="docs-top-navigation-container" class="body-background">
<div id="docs-header">
<div id="docs-version-header">
Release: <span class="version-num">1.0.4</span> | Release Date: May 7, 2015
</div>
<h1>SQLAlchemy 1.0 Documentation</h1>
</div>
</div>
<div id="docs-body-container">
<div id="fixed-sidebar" class="withsidebar">
<div id="docs-sidebar-popout">
<h3><a href="../index.html">SQLAlchemy 1.0 Documentation</a></h3>
<p id="sidebar-topnav">
<a href="../contents.html">Contents</a> |
<a href="../genindex.html">Index</a>
</p>
<div id="sidebar-search">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" size="12" /> <input type="submit" value="Search" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div id="docs-sidebar">
<h3>
<a href="index.html" title="Frequently Asked Questions">Frequently Asked Questions</a>
</h3>
<ul>
<li><span class="link-container first"><a class="reference external" href="connections.html">Connections / Engines</a></span></li>
<li class="selected"><span class="link-container first"><strong>MetaData / Schema</strong><a class="paramlink headerlink reference internal" href="#">¶</a></span><ul>
<li><span class="link-container first"><a class="reference external" href="#my-program-is-hanging-when-i-say-table-drop-metadata-drop-all">My program is hanging when I say <code class="docutils literal"><span class="pre">table.drop()</span></code> / <code class="docutils literal"><span class="pre">metadata.drop_all()</span></code></a></span></li>
<li><span class="link-container first"><a class="reference external" href="#does-sqlalchemy-support-alter-table-create-view-create-trigger-schema-upgrade-functionality">Does SQLAlchemy support ALTER TABLE, CREATE VIEW, CREATE TRIGGER, Schema Upgrade Functionality?</a></span></li>
<li><span class="link-container first"><a class="reference external" href="#how-can-i-sort-table-objects-in-order-of-their-dependency">How can I sort Table objects in order of their dependency?</a></span></li>
<li><span class="link-container first"><a class="reference external" href="#how-can-i-get-the-create-table-drop-table-output-as-a-string">How can I get the CREATE TABLE/ DROP TABLE output as a string?</a></span></li>
<li><span class="link-container first"><a class="reference external" href="#how-can-i-subclass-table-column-to-provide-certain-behaviors-configurations">How can I subclass Table/Column to provide certain behaviors/configurations?</a></span></li>
</ul>
</li>
<li><span class="link-container first"><a class="reference external" href="sqlexpressions.html">SQL Expressions</a></span></li>
<li><span class="link-container first"><a class="reference external" href="ormconfiguration.html">ORM Configuration</a></span></li>
<li><span class="link-container first"><a class="reference external" href="performance.html">Performance</a></span></li>
<li><span class="link-container first"><a class="reference external" href="sessions.html">Sessions / Queries</a></span></li>
</ul>
</div>
</div>
<div id="docs-body" class="withsidebar" >
<div class="section" id="metadata-schema">
<h1>MetaData / Schema<a class="headerlink" href="#metadata-schema" title="Permalink to this headline">¶</a></h1>
<div class="contents faq local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#my-program-is-hanging-when-i-say-table-drop-metadata-drop-all" id="id1">My program is hanging when I say <code class="docutils literal"><span class="pre">table.drop()</span></code> / <code class="docutils literal"><span class="pre">metadata.drop_all()</span></code></a></li>
<li><a class="reference internal" href="#does-sqlalchemy-support-alter-table-create-view-create-trigger-schema-upgrade-functionality" id="id2">Does SQLAlchemy support ALTER TABLE, CREATE VIEW, CREATE TRIGGER, Schema Upgrade Functionality?</a></li>
<li><a class="reference internal" href="#how-can-i-sort-table-objects-in-order-of-their-dependency" id="id3">How can I sort Table objects in order of their dependency?</a></li>
<li><a class="reference internal" href="#how-can-i-get-the-create-table-drop-table-output-as-a-string" id="id4">How can I get the CREATE TABLE/ DROP TABLE output as a string?</a></li>
<li><a class="reference internal" href="#how-can-i-subclass-table-column-to-provide-certain-behaviors-configurations" id="id5">How can I subclass Table/Column to provide certain behaviors/configurations?</a></li>
</ul>
</div>
<div class="section" id="my-program-is-hanging-when-i-say-table-drop-metadata-drop-all">
<h2>My program is hanging when I say <code class="docutils literal"><span class="pre">table.drop()</span></code> / <code class="docutils literal"><span class="pre">metadata.drop_all()</span></code><a class="headerlink" href="#my-program-is-hanging-when-i-say-table-drop-metadata-drop-all" title="Permalink to this headline">¶</a></h2>
<p>This usually corresponds to two conditions: 1. using PostgreSQL, which is really
strict about table locks, and 2. you have a connection still open which
contains locks on the table and is distinct from the connection being used for
the DROP statement. Heres the most minimal version of the pattern:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">connection</span> <span class="o">=</span> <span class="n">engine</span><span class="o">.</span><span class="n">connect</span><span class="p">()</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">connection</span><span class="o">.</span><span class="n">execute</span><span class="p">(</span><span class="n">mytable</span><span class="o">.</span><span class="n">select</span><span class="p">())</span>
<span class="n">mytable</span><span class="o">.</span><span class="n">drop</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span></pre></div>
</div>
<p>Above, a connection pool connection is still checked out; furthermore, the
result object above also maintains a link to this connection. If
“implicit execution” is used, the result will hold this connection opened until
the result object is closed or all rows are exhausted.</p>
<p>The call to <code class="docutils literal"><span class="pre">mytable.drop(engine)</span></code> attempts to emit DROP TABLE on a second
connection procured from the <a class="reference internal" href="../core/connections.html#sqlalchemy.engine.Engine" title="sqlalchemy.engine.Engine"><code class="xref py py-class docutils literal"><span class="pre">Engine</span></code></a> which will lock.</p>
<p>The solution is to close out all connections before emitting DROP TABLE:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">connection</span> <span class="o">=</span> <span class="n">engine</span><span class="o">.</span><span class="n">connect</span><span class="p">()</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">connection</span><span class="o">.</span><span class="n">execute</span><span class="p">(</span><span class="n">mytable</span><span class="o">.</span><span class="n">select</span><span class="p">())</span>
<span class="c"># fully read result sets</span>
<span class="n">result</span><span class="o">.</span><span class="n">fetchall</span><span class="p">()</span>
<span class="c"># close connections</span>
<span class="n">connection</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
<span class="c"># now locks are removed</span>
<span class="n">mytable</span><span class="o">.</span><span class="n">drop</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span></pre></div>
</div>
</div>
<div class="section" id="does-sqlalchemy-support-alter-table-create-view-create-trigger-schema-upgrade-functionality">
<h2>Does SQLAlchemy support ALTER TABLE, CREATE VIEW, CREATE TRIGGER, Schema Upgrade Functionality?<a class="headerlink" href="#does-sqlalchemy-support-alter-table-create-view-create-trigger-schema-upgrade-functionality" title="Permalink to this headline">¶</a></h2>
<p>General ALTER support isn’t present in SQLAlchemy directly. For special DDL
on an ad-hoc basis, the <a class="reference internal" href="../core/ddl.html#sqlalchemy.schema.DDL" title="sqlalchemy.schema.DDL"><code class="xref py py-class docutils literal"><span class="pre">DDL</span></code></a> and related constructs can be used.
See <code class="xref doc docutils literal"><span class="pre">core/ddl</span></code> for a discussion on this subject.</p>
<p>A more comprehensive option is to use schema migration tools, such as Alembic
or SQLAlchemy-Migrate; see <a class="reference internal" href="../core/metadata.html#schema-migrations"><span>Altering Schemas through Migrations</span></a> for discussion on this.</p>
</div>
<div class="section" id="how-can-i-sort-table-objects-in-order-of-their-dependency">
<h2>How can I sort Table objects in order of their dependency?<a class="headerlink" href="#how-can-i-sort-table-objects-in-order-of-their-dependency" title="Permalink to this headline">¶</a></h2>
<p>This is available via the <a class="reference internal" href="../core/metadata.html#sqlalchemy.schema.MetaData.sorted_tables" title="sqlalchemy.schema.MetaData.sorted_tables"><code class="xref py py-attr docutils literal"><span class="pre">MetaData.sorted_tables</span></code></a> function:</p>
<div class="highlight-python"><div class="highlight"><pre>metadata = MetaData()
# ... add Table objects to metadata
ti = metadata.sorted_tables:
for t in ti:
print t</pre></div>
</div>
</div>
<div class="section" id="how-can-i-get-the-create-table-drop-table-output-as-a-string">
<h2>How can I get the CREATE TABLE/ DROP TABLE output as a string?<a class="headerlink" href="#how-can-i-get-the-create-table-drop-table-output-as-a-string" title="Permalink to this headline">¶</a></h2>
<p>Modern SQLAlchemy has clause constructs which represent DDL operations. These
can be rendered to strings like any other SQL expression:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">sqlalchemy.schema</span> <span class="kn">import</span> <span class="n">CreateTable</span>
<span class="k">print</span> <span class="n">CreateTable</span><span class="p">(</span><span class="n">mytable</span><span class="p">)</span></pre></div>
</div>
<p>To get the string specific to a certain engine:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">print</span> <span class="n">CreateTable</span><span class="p">(</span><span class="n">mytable</span><span class="p">)</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="n">engine</span><span class="p">)</span></pre></div>
</div>
<p>There’s also a special form of <a class="reference internal" href="../core/connections.html#sqlalchemy.engine.Engine" title="sqlalchemy.engine.Engine"><code class="xref py py-class docutils literal"><span class="pre">Engine</span></code></a> that can let you dump an entire
metadata creation sequence, using this recipe:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">dump</span><span class="p">(</span><span class="n">sql</span><span class="p">,</span> <span class="o">*</span><span class="n">multiparams</span><span class="p">,</span> <span class="o">**</span><span class="n">params</span><span class="p">):</span>
<span class="k">print</span> <span class="n">sql</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="n">dialect</span><span class="o">=</span><span class="n">engine</span><span class="o">.</span><span class="n">dialect</span><span class="p">)</span>
<span class="n">engine</span> <span class="o">=</span> <span class="n">create_engine</span><span class="p">(</span><span class="s">'postgresql://'</span><span class="p">,</span> <span class="n">strategy</span><span class="o">=</span><span class="s">'mock'</span><span class="p">,</span> <span class="n">executor</span><span class="o">=</span><span class="n">dump</span><span class="p">)</span>
<span class="n">metadata</span><span class="o">.</span><span class="n">create_all</span><span class="p">(</span><span class="n">engine</span><span class="p">,</span> <span class="n">checkfirst</span><span class="o">=</span><span class="bp">False</span><span class="p">)</span></pre></div>
</div>
<p>The <a class="reference external" href="https://bitbucket.org/zzzeek/alembic">Alembic</a> tool also supports
an “offline” SQL generation mode that renders database migrations as SQL scripts.</p>
</div>
<div class="section" id="how-can-i-subclass-table-column-to-provide-certain-behaviors-configurations">
<h2>How can I subclass Table/Column to provide certain behaviors/configurations?<a class="headerlink" href="#how-can-i-subclass-table-column-to-provide-certain-behaviors-configurations" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../core/metadata.html#sqlalchemy.schema.Table" title="sqlalchemy.schema.Table"><code class="xref py py-class docutils literal"><span class="pre">Table</span></code></a> and <a class="reference internal" href="../core/metadata.html#sqlalchemy.schema.Column" title="sqlalchemy.schema.Column"><code class="xref py py-class docutils literal"><span class="pre">Column</span></code></a> are not good targets for direct subclassing.
However, there are simple ways to get on-construction behaviors using creation
functions, and behaviors related to the linkages between schema objects such as
constraint conventions or naming conventions using attachment events.
An example of many of these
techniques can be seen at <a class="reference external" href="http://www.sqlalchemy.org/trac/wiki/UsageRecipes/NamingConventions">Naming Conventions</a>.</p>
</div>
</div>
</div>
</div>
<div id="docs-bottom-navigation" class="docs-navigation-links">
Previous:
<a href="connections.html" title="previous chapter">Connections / Engines</a>
Next:
<a href="sqlexpressions.html" title="next chapter">SQL Expressions</a>
<div id="docs-copyright">
© <a href="../copyright.html">Copyright</a> 2007-2015, the SQLAlchemy authors and contributors.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
</div>
</div>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
VERSION: '1.0.4',
COLLAPSE_MODINDEX: false,
FILE_SUFFIX: '.html'
};
</script>
<!-- begin iterate through sphinx environment script_files -->
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<!-- end iterate through sphinx environment script_files -->
<script type="text/javascript" src="../_static/detectmobile.js"></script>
<script type="text/javascript" src="../_static/init.js"></script>
</body>
</html>
| malkoto1/just_cook | SQLAlchemy-1.0.4/doc/faq/metadata_schema.html | HTML | gpl-2.0 | 17,237 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
1060,
11039,
19968,
1015,
1012,
1014,
17459,
1013,
1013,
4372,
1000,
1000,
8299,
1024,
1013,
1013,
7479,
1012,
1059,
2509,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Lab14avst.java
// Lab14a
// Student starting version
import java.awt.*;
import java.applet.*;
import java.util.ArrayList;
public class Lab14avst extends Applet {
public void paint(Graphics g) {
drawGrid(g);
Shape square = new Shape1Square();
Shape triangle = new Shape2Triangle();
Shape octagon = new Shape3Octagon();
Shape circle = new Shape4Circle();
ArrayList<Shape> shapes = new ArrayList<Shape>();
shapes.add(square);
shapes.add(triangle);
shapes.add(octagon);
shapes.add(circle);
for (Shape shape : shapes) {
shape.drawShape(g);
shape.displayName(g);
shape.displayNumSides(g);
}
}
public void drawGrid(Graphics g) {
g.drawRect(10, 10, 800, 600);
g.drawLine(10, 300, 810, 300);
g.drawLine(410, 10, 410, 610);
}
}
| andrewwiik/Lab14avst | Lab14avst.java | Java | mit | 771 | [
30522,
1013,
1013,
6845,
16932,
29553,
2102,
1012,
30524,
2270,
11675,
6773,
1006,
8389,
1043,
1007,
1063,
4009,
16523,
3593,
1006,
1043,
1007,
1025,
4338,
2675,
1027,
2047,
4338,
2487,
2015,
16211,
2890,
1006,
1007,
1025,
4338,
9546,
1027,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Cocoa/Cocoa.h>
#include "base/callback.h"
#include "remoting/host/disconnect_window.h"
namespace remoting {
class ChromotingHost;
}
// Controller for the disconnect window which allows the host user to
// quickly disconnect a session.
@interface DisconnectWindowController : NSWindowController {
@private
remoting::ChromotingHost* host_;
base::Closure disconnect_callback_;
NSString* username_;
IBOutlet NSTextField* connectedToField_;
IBOutlet NSButton* disconnectButton_;
}
- (id)initWithHost:(remoting::ChromotingHost*)host
callback:(const base::Closure&)disconnect_callback
username:(NSString*)username;
- (IBAction)stopSharing:(id)sender;
@end
// A floating window with a custom border. The custom border and background
// content is defined by DisconnectView. Declared here so that it can be
// instantiated via a xib.
@interface DisconnectWindow : NSWindow
@end
// The custom background/border for the DisconnectWindow. Declared here so that
// it can be instantiated via a xib.
@interface DisconnectView : NSView
@end
| leighpauls/k2cro4 | remoting/host/disconnect_window_mac.h | C | bsd-3-clause | 1,242 | [
30522,
1013,
1013,
9385,
1006,
1039,
1007,
2262,
1996,
10381,
21716,
5007,
6048,
1012,
2035,
2916,
9235,
1012,
1013,
1013,
2224,
1997,
2023,
3120,
3642,
2003,
9950,
2011,
1037,
18667,
2094,
1011,
2806,
6105,
2008,
2064,
2022,
1013,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package org.usfirst.frc.team4915.stronghold;
import org.usfirst.frc.team4915.stronghold.commands.AutoCommand1;
import org.usfirst.frc.team4915.stronghold.commands.PortcullisMoveUp;
import org.usfirst.frc.team4915.stronghold.subsystems.Autonomous;
import org.usfirst.frc.team4915.stronghold.subsystems.DriveTrain;
import org.usfirst.frc.team4915.stronghold.subsystems.GearShift;
import org.usfirst.frc.team4915.stronghold.subsystems.IntakeLauncher;
import org.usfirst.frc.team4915.stronghold.subsystems.Scaler;
import org.usfirst.frc.team4915.stronghold.utils.BNO055;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/**
* The VM is configured to automatically run this class, and to call the
* functions corresponding to each mode, as described in the IterativeRobot
* documentation. If you change the name of this class or the package after
* creating this project, you must also update the manifest file in the resource
* directory.
*/
public class Robot extends IterativeRobot {
public static DriveTrain driveTrain;
public static IntakeLauncher intakeLauncher;
public static OI oi;
public static GearShift gearShift;
public static Scaler scaler;
Command autonomousCommand;
SendableChooser autonomousProgramChooser;
private volatile double lastTime;
/**
* This function is run when the robot is first started up and should be
* used for any initialization code.
*/
@Override
public void robotInit() {
RobotMap.init(); // 1. Initialize RobotMap prior to initializing modules
// 2. conditionally create the modules
if (ModuleManager.PORTCULLIS_MODULE_ON){
new PortcullisMoveUp().start();
}
if (ModuleManager.DRIVE_MODULE_ON) {
driveTrain = new DriveTrain();
SmartDashboard.putString("Drivetrain Module", "initialized");
}
else
SmartDashboard.putString("Drivetrain Module", "disabled");
if (ModuleManager.GEARSHIFT_MODULE_ON) {
gearShift = new GearShift();
SmartDashboard.putString("Shift Module", "initialized");
}
else
SmartDashboard.putString("Shift Module", "disabled");
if (ModuleManager.INTAKELAUNCHER_MODULE_ON) {
/* to prevent module-manager-madness (M-cubed), we
* place try/catch block for exceptions thrown on account of
* missing hardware.
*/
try {
intakeLauncher = new IntakeLauncher();
SmartDashboard.putString("IntakeLauncher Module", "initialized");
}
catch (Throwable e) {
System.out.println("Disabling IntakeLauncher at runtime");
SmartDashboard.putString("IntakeLauncher Module", "ERROR");
ModuleManager.INTAKELAUNCHER_MODULE_ON = false;
}
}
else
SmartDashboard.putString("IntakeLauncher Module", "disabled");
if (ModuleManager.SCALING_MODULE_ON) {
scaler = new Scaler();
SmartDashboard.putString("Scaling Module", "initialized");
}
else
SmartDashboard.putString("Scaling Module", "disabled");
if (ModuleManager.IMU_MODULE_ON) {
// imu is initialized in RobotMap.init()
SmartDashboard.putString("IMU Module", "initialized");
SmartDashboard.putBoolean("IMU present", RobotMap.imu.isSensorPresent());
updateIMUStatus();
}
else
SmartDashboard.putString("IMU Module", "disabled");
oi = new OI(); // 3. Construct OI after subsystems created
}
@Override
public void disabledPeriodic() {
Scheduler.getInstance().run();
}
@Override
public void autonomousInit() {
// schedule the autonomous command
autonomousCommand = new AutoCommand1((Autonomous.Type) oi.barrierType.getSelected(), (Autonomous.Strat) oi.strategy.getSelected(),
(Autonomous.Position) oi.startingFieldPosition.getSelected());
System.out.println("Autonomous selection Angle: " + oi.startingFieldPosition.getSelected() + "Field Position " + oi.startingFieldPosition.getSelected() + "strategy " + oi.strategy.getSelected() + "Obstacle " + oi.barrierType.getSelected());
if (this.autonomousCommand != null) {
this.autonomousCommand.start();
}
}
/**
* This function is called periodically during autonomous
*/
@Override
public void autonomousPeriodic() {
Scheduler.getInstance().run();
periodicStatusUpdate();
}
@Override
public void teleopInit() {
// This makes sure that the autonomous stops running when
// teleop starts running. If you want the autonomous to
// continue until interrupted by another command, remove
// this line or comment it out.
//set speed
// RobotMap.rightBackMotor.changeControlMode(CANTalon.TalonControlMode.Speed);
// RobotMap.leftBackMotor.changeControlMode(CANTalon.TalonControlMode.Speed);
System.out.println("entering teleop");
Robot.intakeLauncher.aimMotor.enableControl();
if (this.autonomousCommand != null) {
this.autonomousCommand.cancel();
}
}
/**
* This function is called when the disabled button is hit. You can use it
* to reset subsystems before shutting down.
*/
@Override
public void disabledInit() {
}
/**
* This function is called periodically during operator control
*/
@Override
public void teleopPeriodic() {
Scheduler.getInstance().run();
periodicStatusUpdate();
}
/**
* This function is called periodically during test mode
*/
@Override
public void testPeriodic() {
LiveWindow.run();
periodicStatusUpdate();
}
public void periodicStatusUpdate() {
double currentTime = Timer.getFPGATimestamp(); // seconds
// only update the smart dashboard twice per second to prevent
// network congestion.
if(currentTime - this.lastTime > .5) {
updateIMUStatus();
updateLauncherStatus();
updateDrivetrainStatus();
this.lastTime = currentTime;
}
}
public void updateIMUStatus() {
if (ModuleManager.IMU_MODULE_ON) {
BNO055.CalData calData = RobotMap.imu.getCalibration();
SmartDashboard.putNumber("IMU heading", RobotMap.imu.getNormalizedHeading());
// SmartDashboard.putNumber("IMU dist to origin", RobotMap.imu.getDistFromOrigin());
SmartDashboard.putNumber("IMU calibration",
(1000 + (calData.accel * 100) + calData.gyro *10 + calData.mag));
//Calibration values range from 0-3, Right to left: mag, gyro, accel
}
}
public void updateLauncherStatus() {
if (ModuleManager.INTAKELAUNCHER_MODULE_ON) {
SmartDashboard.putNumber("aimMotor Potentiometer: ", intakeLauncher.getPosition());
SmartDashboard.putBoolean("Top Limit Switch: ", intakeLauncher.isLauncherAtTop());
SmartDashboard.putBoolean("Bottom Limit Switch: ", intakeLauncher.isLauncherAtBottom());
SmartDashboard.putBoolean("Boulder Limit Switch: ", intakeLauncher.boulderSwitch.get());
SmartDashboard.putBoolean("Potentiometer might be broken", intakeLauncher.getIsPotentiometerScrewed());
}
}
public void toggleSpeed() {
}
public void updateDrivetrainStatus() {
if (ModuleManager.DRIVE_MODULE_ON) {
}
}
}
| schmirob000/2016-Stronghold | src/org/usfirst/frc/team4915/stronghold/Robot.java | Java | mit | 7,923 | [
30522,
7427,
8917,
1012,
30524,
2386,
2094,
2487,
1025,
12324,
8917,
1012,
2149,
8873,
12096,
1012,
10424,
2278,
1012,
2136,
26224,
16068,
1012,
16995,
1012,
10954,
1012,
3417,
10841,
21711,
5302,
3726,
6279,
1025,
12324,
8917,
1012,
2149,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenLayers 3 API Reference - Class: Projection</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<script src="scripts/jquery.min.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="styles/jaguar.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/"><img src="logo-70x70.png"> OpenLayers 3</a>
<label id="stability">
<input type="checkbox" id="stability-toggle"> Stable Only
</label>
<ul class="nav navbar-nav pull-right">
<li><a href="../doc">Docs</a></li>
<li><a href="../examples">Examples</a></li>
<li><a href="index.html" class="active">API</a></li>
<li><a href="https://github.com/openlayers/ol3">Code</a></li>
</ul>
</div>
</div>
</div>
<div id="wrap" class="clearfix">
<div class="navigation">
<div class="search">
<input id="search" type="text" class="form-control input-sm" placeholder="Search Documentation">
</div>
<ul class="list">
<li class="item" data-name="ol">
<span class="title">
<a href="ol.html">ol</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.CanvasFunctionType" class="unstable">
<a href="ol.html#.CanvasFunctionType">CanvasFunctionType</a>
</li>
<li data-name="ol.Color" class="unstable">
<a href="ol.html#.Color">Color</a>
</li>
<li data-name="ol.Coordinate" class="">
<a href="ol.html#.Coordinate">Coordinate</a>
</li>
<li data-name="ol.CoordinateFormatType" class="">
<a href="ol.html#.CoordinateFormatType">CoordinateFormatType</a>
</li>
<li data-name="ol.Extent" class="">
<a href="ol.html#.Extent">Extent</a>
</li>
<li data-name="ol.FeatureLoader" class="unstable">
<a href="ol.html#.FeatureLoader">FeatureLoader</a>
</li>
<li data-name="ol.FeatureStyleFunction" class="">
<a href="ol.html#.FeatureStyleFunction">FeatureStyleFunction</a>
</li>
<li data-name="ol.FeatureUrlFunction" class="unstable">
<a href="ol.html#.FeatureUrlFunction">FeatureUrlFunction</a>
</li>
<li data-name="ol.ImageLoadFunctionType" class="unstable">
<a href="ol.html#.ImageLoadFunctionType">ImageLoadFunctionType</a>
</li>
<li data-name="ol.LoadingStrategy" class="unstable">
<a href="ol.html#.LoadingStrategy">LoadingStrategy</a>
</li>
<li data-name="ol.OverlayPositioning" class="">
<a href="ol.html#.OverlayPositioning">OverlayPositioning</a>
</li>
<li data-name="ol.Pixel" class="">
<a href="ol.html#.Pixel">Pixel</a>
</li>
<li data-name="ol.PreRenderFunction" class="unstable">
<a href="ol.html#.PreRenderFunction">PreRenderFunction</a>
</li>
<li data-name="ol.RendererType" class="">
<a href="ol.html#.RendererType">RendererType</a>
</li>
<li data-name="ol.Size" class="">
<a href="ol.html#.Size">Size</a>
</li>
<li data-name="ol.TileCoord" class="unstable">
<a href="ol.html#.TileCoord">TileCoord</a>
</li>
<li data-name="ol.TileLoadFunctionType" class="unstable">
<a href="ol.html#.TileLoadFunctionType">TileLoadFunctionType</a>
</li>
<li data-name="ol.TileUrlFunctionType" class="unstable">
<a href="ol.html#.TileUrlFunctionType">TileUrlFunctionType</a>
</li>
<li data-name="ol.TileVectorLoadFunctionType" class="unstable">
<a href="ol.html#.TileVectorLoadFunctionType">TileVectorLoadFunctionType</a>
</li>
<li data-name="ol.TransformFunction" class="">
<a href="ol.html#.TransformFunction">TransformFunction</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.inherits" class="unstable">
<a href="ol.html#.inherits">inherits</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Attribution">
<span class="title">
<a href="ol.Attribution.html">ol.Attribution</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Attribution#getHTML" class="">
<a href="ol.Attribution.html#getHTML">getHTML</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Collection">
<span class="title">
<a href="ol.Collection.html">ol.Collection</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Collection#changed" class="unstable">
<a href="ol.Collection.html#changed">changed</a>
</li>
<li data-name="ol.Collection#clear" class="">
<a href="ol.Collection.html#clear">clear</a>
</li>
<li data-name="ol.Collection#dispatchEvent" class="unstable">
<a href="ol.Collection.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.Collection#extend" class="">
<a href="ol.Collection.html#extend">extend</a>
</li>
<li data-name="ol.Collection#forEach" class="">
<a href="ol.Collection.html#forEach">forEach</a>
</li>
<li data-name="ol.Collection#get" class="">
<a href="ol.Collection.html#get">get</a>
</li>
<li data-name="ol.Collection#getArray" class="">
<a href="ol.Collection.html#getArray">getArray</a>
</li>
<li data-name="ol.Collection#getKeys" class="">
<a href="ol.Collection.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Collection#getLength" class="">
<a href="ol.Collection.html#getLength">getLength</a>
</li>
<li data-name="ol.Collection#getProperties" class="">
<a href="ol.Collection.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Collection#getRevision" class="unstable">
<a href="ol.Collection.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Collection#insertAt" class="">
<a href="ol.Collection.html#insertAt">insertAt</a>
</li>
<li data-name="ol.Collection#item" class="">
<a href="ol.Collection.html#item">item</a>
</li>
<li data-name="ol.Collection#on" class="">
<a href="ol.Collection.html#on">on</a>
</li>
<li data-name="ol.Collection#once" class="">
<a href="ol.Collection.html#once">once</a>
</li>
<li data-name="ol.Collection#pop" class="">
<a href="ol.Collection.html#pop">pop</a>
</li>
<li data-name="ol.Collection#push" class="">
<a href="ol.Collection.html#push">push</a>
</li>
<li data-name="ol.Collection#remove" class="">
<a href="ol.Collection.html#remove">remove</a>
</li>
<li data-name="ol.Collection#removeAt" class="">
<a href="ol.Collection.html#removeAt">removeAt</a>
</li>
<li data-name="ol.Collection#set" class="">
<a href="ol.Collection.html#set">set</a>
</li>
<li data-name="ol.Collection#setAt" class="">
<a href="ol.Collection.html#setAt">setAt</a>
</li>
<li data-name="ol.Collection#setProperties" class="">
<a href="ol.Collection.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Collection#un" class="">
<a href="ol.Collection.html#un">un</a>
</li>
<li data-name="ol.Collection#unByKey" class="">
<a href="ol.Collection.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Collection#unset" class="">
<a href="ol.Collection.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.CollectionEvent#event:add" class="">
<a href="ol.CollectionEvent.html#event:add">add</a>
</li>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:length" class="unstable">
change:length
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.CollectionEvent#event:remove" class="">
<a href="ol.CollectionEvent.html#event:remove">remove</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.CollectionEvent">
<span class="title">
<a href="ol.CollectionEvent.html">ol.CollectionEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.CollectionEvent#element"><a href="ol.CollectionEvent.html#element">element</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.DeviceOrientation">
<span class="title">
<a href="ol.DeviceOrientation.html">ol.DeviceOrientation</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.DeviceOrientation#changed" class="unstable">
<a href="ol.DeviceOrientation.html#changed">changed</a>
</li>
<li data-name="ol.DeviceOrientation#dispatchEvent" class="unstable">
<a href="ol.DeviceOrientation.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.DeviceOrientation#get" class="">
<a href="ol.DeviceOrientation.html#get">get</a>
</li>
<li data-name="ol.DeviceOrientation#getAlpha" class="unstable">
<a href="ol.DeviceOrientation.html#getAlpha">getAlpha</a>
</li>
<li data-name="ol.DeviceOrientation#getBeta" class="unstable">
<a href="ol.DeviceOrientation.html#getBeta">getBeta</a>
</li>
<li data-name="ol.DeviceOrientation#getGamma" class="unstable">
<a href="ol.DeviceOrientation.html#getGamma">getGamma</a>
</li>
<li data-name="ol.DeviceOrientation#getHeading" class="unstable">
<a href="ol.DeviceOrientation.html#getHeading">getHeading</a>
</li>
<li data-name="ol.DeviceOrientation#getKeys" class="">
<a href="ol.DeviceOrientation.html#getKeys">getKeys</a>
</li>
<li data-name="ol.DeviceOrientation#getProperties" class="">
<a href="ol.DeviceOrientation.html#getProperties">getProperties</a>
</li>
<li data-name="ol.DeviceOrientation#getRevision" class="unstable">
<a href="ol.DeviceOrientation.html#getRevision">getRevision</a>
</li>
<li data-name="ol.DeviceOrientation#getTracking" class="unstable">
<a href="ol.DeviceOrientation.html#getTracking">getTracking</a>
</li>
<li data-name="ol.DeviceOrientation#on" class="">
<a href="ol.DeviceOrientation.html#on">on</a>
</li>
<li data-name="ol.DeviceOrientation#once" class="">
<a href="ol.DeviceOrientation.html#once">once</a>
</li>
<li data-name="ol.DeviceOrientation#set" class="">
<a href="ol.DeviceOrientation.html#set">set</a>
</li>
<li data-name="ol.DeviceOrientation#setProperties" class="">
<a href="ol.DeviceOrientation.html#setProperties">setProperties</a>
</li>
<li data-name="ol.DeviceOrientation#setTracking" class="unstable">
<a href="ol.DeviceOrientation.html#setTracking">setTracking</a>
</li>
<li data-name="ol.DeviceOrientation#un" class="">
<a href="ol.DeviceOrientation.html#un">un</a>
</li>
<li data-name="ol.DeviceOrientation#unByKey" class="">
<a href="ol.DeviceOrientation.html#unByKey">unByKey</a>
</li>
<li data-name="ol.DeviceOrientation#unset" class="">
<a href="ol.DeviceOrientation.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:alpha" class="unstable">
change:alpha
</li>
<li data-name="ol.ObjectEvent#event:change:beta" class="unstable">
change:beta
</li>
<li data-name="ol.ObjectEvent#event:change:gamma" class="unstable">
change:gamma
</li>
<li data-name="ol.ObjectEvent#event:change:heading" class="unstable">
change:heading
</li>
<li data-name="ol.ObjectEvent#event:change:tracking" class="unstable">
change:tracking
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.DragBoxEvent">
<span class="title">
<a href="ol.DragBoxEvent.html">ol.DragBoxEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.DragBoxEvent#coordinate"><a href="ol.DragBoxEvent.html#coordinate">coordinate</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Feature">
<span class="title">
<a href="ol.Feature.html">ol.Feature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Feature#changed" class="unstable">
<a href="ol.Feature.html#changed">changed</a>
</li>
<li data-name="ol.Feature#clone" class="">
<a href="ol.Feature.html#clone">clone</a>
</li>
<li data-name="ol.Feature#dispatchEvent" class="unstable">
<a href="ol.Feature.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.Feature#get" class="">
<a href="ol.Feature.html#get">get</a>
</li>
<li data-name="ol.Feature#getGeometry" class="">
<a href="ol.Feature.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.Feature#getGeometryName" class="">
<a href="ol.Feature.html#getGeometryName">getGeometryName</a>
</li>
<li data-name="ol.Feature#getId" class="">
<a href="ol.Feature.html#getId">getId</a>
</li>
<li data-name="ol.Feature#getKeys" class="">
<a href="ol.Feature.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Feature#getProperties" class="">
<a href="ol.Feature.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Feature#getRevision" class="unstable">
<a href="ol.Feature.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Feature#getStyle" class="">
<a href="ol.Feature.html#getStyle">getStyle</a>
</li>
<li data-name="ol.Feature#getStyleFunction" class="">
<a href="ol.Feature.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.Feature#on" class="">
<a href="ol.Feature.html#on">on</a>
</li>
<li data-name="ol.Feature#once" class="">
<a href="ol.Feature.html#once">once</a>
</li>
<li data-name="ol.Feature#set" class="">
<a href="ol.Feature.html#set">set</a>
</li>
<li data-name="ol.Feature#setGeometry" class="">
<a href="ol.Feature.html#setGeometry">setGeometry</a>
</li>
<li data-name="ol.Feature#setGeometryName" class="">
<a href="ol.Feature.html#setGeometryName">setGeometryName</a>
</li>
<li data-name="ol.Feature#setId" class="">
<a href="ol.Feature.html#setId">setId</a>
</li>
<li data-name="ol.Feature#setProperties" class="">
<a href="ol.Feature.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Feature#setStyle" class="">
<a href="ol.Feature.html#setStyle">setStyle</a>
</li>
<li data-name="ol.Feature#un" class="">
<a href="ol.Feature.html#un">un</a>
</li>
<li data-name="ol.Feature#unByKey" class="">
<a href="ol.Feature.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Feature#unset" class="">
<a href="ol.Feature.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:geometry" class="unstable">
change:geometry
</li>
<li data-name="ol.ObjectEvent#event:change:id" class="unstable">
change:id
</li>
<li data-name="ol.ObjectEvent#event:change:style" class="unstable">
change:style
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.Geolocation">
<span class="title">
<a href="ol.Geolocation.html">ol.Geolocation</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Geolocation#changed" class="unstable">
<a href="ol.Geolocation.html#changed">changed</a>
</li>
<li data-name="ol.Geolocation#dispatchEvent" class="unstable">
<a href="ol.Geolocation.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.Geolocation#get" class="">
<a href="ol.Geolocation.html#get">get</a>
</li>
<li data-name="ol.Geolocation#getAccuracy" class="">
<a href="ol.Geolocation.html#getAccuracy">getAccuracy</a>
</li>
<li data-name="ol.Geolocation#getAccuracyGeometry" class="">
<a href="ol.Geolocation.html#getAccuracyGeometry">getAccuracyGeometry</a>
</li>
<li data-name="ol.Geolocation#getAltitude" class="">
<a href="ol.Geolocation.html#getAltitude">getAltitude</a>
</li>
<li data-name="ol.Geolocation#getAltitudeAccuracy" class="">
<a href="ol.Geolocation.html#getAltitudeAccuracy">getAltitudeAccuracy</a>
</li>
<li data-name="ol.Geolocation#getHeading" class="">
<a href="ol.Geolocation.html#getHeading">getHeading</a>
</li>
<li data-name="ol.Geolocation#getKeys" class="">
<a href="ol.Geolocation.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Geolocation#getPosition" class="">
<a href="ol.Geolocation.html#getPosition">getPosition</a>
</li>
<li data-name="ol.Geolocation#getProjection" class="">
<a href="ol.Geolocation.html#getProjection">getProjection</a>
</li>
<li data-name="ol.Geolocation#getProperties" class="">
<a href="ol.Geolocation.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Geolocation#getRevision" class="unstable">
<a href="ol.Geolocation.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Geolocation#getSpeed" class="">
<a href="ol.Geolocation.html#getSpeed">getSpeed</a>
</li>
<li data-name="ol.Geolocation#getTracking" class="">
<a href="ol.Geolocation.html#getTracking">getTracking</a>
</li>
<li data-name="ol.Geolocation#getTrackingOptions" class="">
<a href="ol.Geolocation.html#getTrackingOptions">getTrackingOptions</a>
</li>
<li data-name="ol.Geolocation#on" class="">
<a href="ol.Geolocation.html#on">on</a>
</li>
<li data-name="ol.Geolocation#once" class="">
<a href="ol.Geolocation.html#once">once</a>
</li>
<li data-name="ol.Geolocation#set" class="">
<a href="ol.Geolocation.html#set">set</a>
</li>
<li data-name="ol.Geolocation#setProjection" class="">
<a href="ol.Geolocation.html#setProjection">setProjection</a>
</li>
<li data-name="ol.Geolocation#setProperties" class="">
<a href="ol.Geolocation.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Geolocation#setTracking" class="">
<a href="ol.Geolocation.html#setTracking">setTracking</a>
</li>
<li data-name="ol.Geolocation#setTrackingOptions" class="">
<a href="ol.Geolocation.html#setTrackingOptions">setTrackingOptions</a>
</li>
<li data-name="ol.Geolocation#un" class="">
<a href="ol.Geolocation.html#un">un</a>
</li>
<li data-name="ol.Geolocation#unByKey" class="">
<a href="ol.Geolocation.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Geolocation#unset" class="">
<a href="ol.Geolocation.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:accuracy" class="unstable">
change:accuracy
</li>
<li data-name="ol.ObjectEvent#event:change:accuracyGeometry" class="unstable">
change:accuracyGeometry
</li>
<li data-name="ol.ObjectEvent#event:change:altitude" class="unstable">
change:altitude
</li>
<li data-name="ol.ObjectEvent#event:change:altitudeAccuracy" class="unstable">
change:altitudeAccuracy
</li>
<li data-name="ol.ObjectEvent#event:change:heading" class="unstable">
change:heading
</li>
<li data-name="ol.ObjectEvent#event:change:position" class="unstable">
change:position
</li>
<li data-name="ol.ObjectEvent#event:change:projection" class="unstable">
change:projection
</li>
<li data-name="ol.ObjectEvent#event:change:speed" class="unstable">
change:speed
</li>
<li data-name="ol.ObjectEvent#event:change:tracking" class="unstable">
change:tracking
</li>
<li data-name="ol.ObjectEvent#event:change:trackingOptions" class="unstable">
change:trackingOptions
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.Graticule">
<span class="title">
<a href="ol.Graticule.html">ol.Graticule</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Graticule#getMap" class="unstable">
<a href="ol.Graticule.html#getMap">getMap</a>
</li>
<li data-name="ol.Graticule#getMeridians" class="unstable">
<a href="ol.Graticule.html#getMeridians">getMeridians</a>
</li>
<li data-name="ol.Graticule#getParallels" class="unstable">
<a href="ol.Graticule.html#getParallels">getParallels</a>
</li>
<li data-name="ol.Graticule#setMap" class="unstable">
<a href="ol.Graticule.html#setMap">setMap</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Image">
<span class="title">
<a href="ol.Image.html">ol.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Image#getImage" class="unstable">
<a href="ol.Image.html#getImage">getImage</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.ImageBase">
<span class="title">
<a href="ol.ImageBase.html">ol.ImageBase</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.ImageTile">
<span class="title">
<a href="ol.ImageTile.html">ol.ImageTile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.ImageTile#getImage" class="unstable">
<a href="ol.ImageTile.html#getImage">getImage</a>
</li>
<li data-name="ol.ImageTile#getTileCoord" class="unstable">
<a href="ol.ImageTile.html#getTileCoord">getTileCoord</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Kinetic">
<span class="title">
<a href="ol.Kinetic.html">ol.Kinetic</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Map">
<span class="title">
<a href="ol.Map.html">ol.Map</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Map#addControl" class="">
<a href="ol.Map.html#addControl">addControl</a>
</li>
<li data-name="ol.Map#addInteraction" class="">
<a href="ol.Map.html#addInteraction">addInteraction</a>
</li>
<li data-name="ol.Map#addLayer" class="">
<a href="ol.Map.html#addLayer">addLayer</a>
</li>
<li data-name="ol.Map#addOverlay" class="">
<a href="ol.Map.html#addOverlay">addOverlay</a>
</li>
<li data-name="ol.Map#beforeRender" class="unstable">
<a href="ol.Map.html#beforeRender">beforeRender</a>
</li>
<li data-name="ol.Map#changed" class="unstable">
<a href="ol.Map.html#changed">changed</a>
</li>
<li data-name="ol.Map#dispatchEvent" class="unstable">
<a href="ol.Map.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.Map#forEachFeatureAtPixel" class="">
<a href="ol.Map.html#forEachFeatureAtPixel">forEachFeatureAtPixel</a>
</li>
<li data-name="ol.Map#forEachLayerAtPixel" class="">
<a href="ol.Map.html#forEachLayerAtPixel">forEachLayerAtPixel</a>
</li>
<li data-name="ol.Map#get" class="">
<a href="ol.Map.html#get">get</a>
</li>
<li data-name="ol.Map#getControls" class="">
<a href="ol.Map.html#getControls">getControls</a>
</li>
<li data-name="ol.Map#getCoordinateFromPixel" class="">
<a href="ol.Map.html#getCoordinateFromPixel">getCoordinateFromPixel</a>
</li>
<li data-name="ol.Map#getEventCoordinate" class="">
<a href="ol.Map.html#getEventCoordinate">getEventCoordinate</a>
</li>
<li data-name="ol.Map#getEventPixel" class="">
<a href="ol.Map.html#getEventPixel">getEventPixel</a>
</li>
<li data-name="ol.Map#getInteractions" class="">
<a href="ol.Map.html#getInteractions">getInteractions</a>
</li>
<li data-name="ol.Map#getKeys" class="">
<a href="ol.Map.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Map#getLayerGroup" class="">
<a href="ol.Map.html#getLayerGroup">getLayerGroup</a>
</li>
<li data-name="ol.Map#getLayers" class="">
<a href="ol.Map.html#getLayers">getLayers</a>
</li>
<li data-name="ol.Map#getOverlayById" class="unstable">
<a href="ol.Map.html#getOverlayById">getOverlayById</a>
</li>
<li data-name="ol.Map#getOverlays" class="">
<a href="ol.Map.html#getOverlays">getOverlays</a>
</li>
<li data-name="ol.Map#getPixelFromCoordinate" class="">
<a href="ol.Map.html#getPixelFromCoordinate">getPixelFromCoordinate</a>
</li>
<li data-name="ol.Map#getProperties" class="">
<a href="ol.Map.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Map#getRevision" class="unstable">
<a href="ol.Map.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Map#getSize" class="">
<a href="ol.Map.html#getSize">getSize</a>
</li>
<li data-name="ol.Map#getTarget" class="">
<a href="ol.Map.html#getTarget">getTarget</a>
</li>
<li data-name="ol.Map#getTargetElement" class="unstable">
<a href="ol.Map.html#getTargetElement">getTargetElement</a>
</li>
<li data-name="ol.Map#getView" class="">
<a href="ol.Map.html#getView">getView</a>
</li>
<li data-name="ol.Map#getViewport" class="">
<a href="ol.Map.html#getViewport">getViewport</a>
</li>
<li data-name="ol.Map#hasFeatureAtPixel" class="unstable">
<a href="ol.Map.html#hasFeatureAtPixel">hasFeatureAtPixel</a>
</li>
<li data-name="ol.Map#on" class="">
<a href="ol.Map.html#on">on</a>
</li>
<li data-name="ol.Map#once" class="">
<a href="ol.Map.html#once">once</a>
</li>
<li data-name="ol.Map#removeControl" class="">
<a href="ol.Map.html#removeControl">removeControl</a>
</li>
<li data-name="ol.Map#removeInteraction" class="">
<a href="ol.Map.html#removeInteraction">removeInteraction</a>
</li>
<li data-name="ol.Map#removeLayer" class="">
<a href="ol.Map.html#removeLayer">removeLayer</a>
</li>
<li data-name="ol.Map#removeOverlay" class="">
<a href="ol.Map.html#removeOverlay">removeOverlay</a>
</li>
<li data-name="ol.Map#render" class="">
<a href="ol.Map.html#render">render</a>
</li>
<li data-name="ol.Map#renderSync" class="">
<a href="ol.Map.html#renderSync">renderSync</a>
</li>
<li data-name="ol.Map#set" class="">
<a href="ol.Map.html#set">set</a>
</li>
<li data-name="ol.Map#setLayerGroup" class="">
<a href="ol.Map.html#setLayerGroup">setLayerGroup</a>
</li>
<li data-name="ol.Map#setProperties" class="">
<a href="ol.Map.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Map#setSize" class="unstable">
<a href="ol.Map.html#setSize">setSize</a>
</li>
<li data-name="ol.Map#setTarget" class="">
<a href="ol.Map.html#setTarget">setTarget</a>
</li>
<li data-name="ol.Map#setView" class="">
<a href="ol.Map.html#setView">setView</a>
</li>
<li data-name="ol.Map#un" class="">
<a href="ol.Map.html#un">un</a>
</li>
<li data-name="ol.Map#unByKey" class="">
<a href="ol.Map.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Map#unset" class="">
<a href="ol.Map.html#unset">unset</a>
</li>
<li data-name="ol.Map#updateSize" class="">
<a href="ol.Map.html#updateSize">updateSize</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:layerGroup" class="unstable">
change:layerGroup
</li>
<li data-name="ol.ObjectEvent#event:change:size" class="unstable">
change:size
</li>
<li data-name="ol.ObjectEvent#event:change:target" class="unstable">
change:target
</li>
<li data-name="ol.ObjectEvent#event:change:view" class="unstable">
change:view
</li>
<li data-name="ol.MapBrowserEvent#event:click" class="">
<a href="ol.MapBrowserEvent.html#event:click">click</a>
</li>
<li data-name="ol.MapBrowserEvent#event:dblclick" class="">
<a href="ol.MapBrowserEvent.html#event:dblclick">dblclick</a>
</li>
<li data-name="ol.MapEvent#event:moveend" class="">
<a href="ol.MapEvent.html#event:moveend">moveend</a>
</li>
<li data-name="ol.MapBrowserEvent#event:pointerdrag" class="unstable">
<a href="ol.MapBrowserEvent.html#event:pointerdrag">pointerdrag</a>
</li>
<li data-name="ol.MapBrowserEvent#event:pointermove" class="">
<a href="ol.MapBrowserEvent.html#event:pointermove">pointermove</a>
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.MapEvent#event:postrender" class="unstable">
<a href="ol.MapEvent.html#event:postrender">postrender</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.MapBrowserEvent#event:singleclick" class="">
<a href="ol.MapBrowserEvent.html#event:singleclick">singleclick</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.MapBrowserEvent">
<span class="title">
<a href="ol.MapBrowserEvent.html">ol.MapBrowserEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.MapBrowserEvent#coordinate"><a href="ol.MapBrowserEvent.html#coordinate">coordinate</a></li>
<li data-name="ol.MapBrowserEvent#dragging"><a href="ol.MapBrowserEvent.html#dragging">dragging</a></li>
<li data-name="ol.MapBrowserEvent#frameState"><a href="ol.MapBrowserEvent.html#frameState">frameState</a></li>
<li data-name="ol.MapBrowserEvent#map"><a href="ol.MapBrowserEvent.html#map">map</a></li>
<li data-name="ol.MapBrowserEvent#originalEvent"><a href="ol.MapBrowserEvent.html#originalEvent">originalEvent</a></li>
<li data-name="ol.MapBrowserEvent#pixel"><a href="ol.MapBrowserEvent.html#pixel">pixel</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.MapBrowserEvent#preventDefault" class="">
<a href="ol.MapBrowserEvent.html#preventDefault">preventDefault</a>
</li>
<li data-name="ol.MapBrowserEvent#stopPropagation" class="">
<a href="ol.MapBrowserEvent.html#stopPropagation">stopPropagation</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.MapEvent">
<span class="title">
<a href="ol.MapEvent.html">ol.MapEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.MapEvent#frameState"><a href="ol.MapEvent.html#frameState">frameState</a></li>
<li data-name="ol.MapEvent#map"><a href="ol.MapEvent.html#map">map</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Object">
<span class="title">
<a href="ol.Object.html">ol.Object</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Object#changed" class="unstable">
<a href="ol.Object.html#changed">changed</a>
</li>
<li data-name="ol.Object#dispatchEvent" class="unstable">
<a href="ol.Object.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.Object#get" class="">
<a href="ol.Object.html#get">get</a>
</li>
<li data-name="ol.Object#getKeys" class="">
<a href="ol.Object.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Object#getProperties" class="">
<a href="ol.Object.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Object#getRevision" class="unstable">
<a href="ol.Object.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Object#on" class="">
<a href="ol.Object.html#on">on</a>
</li>
<li data-name="ol.Object#once" class="">
<a href="ol.Object.html#once">once</a>
</li>
<li data-name="ol.Object#set" class="">
<a href="ol.Object.html#set">set</a>
</li>
<li data-name="ol.Object#setProperties" class="">
<a href="ol.Object.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Object#un" class="">
<a href="ol.Object.html#un">un</a>
</li>
<li data-name="ol.Object#unByKey" class="">
<a href="ol.Object.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Object#unset" class="">
<a href="ol.Object.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.ObjectEvent">
<span class="title">
<a href="ol.ObjectEvent.html">ol.ObjectEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.ObjectEvent#key"><a href="ol.ObjectEvent.html#key">key</a></li>
<li data-name="ol.ObjectEvent#oldValue"><a href="ol.ObjectEvent.html#oldValue">oldValue</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Observable">
<span class="title">
<a href="ol.Observable.html">ol.Observable</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Observable.unByKey" class="">
<a href="ol.Observable.html#.unByKey">unByKey</a>
</li>
<li data-name="ol.Observable#changed" class="unstable">
<a href="ol.Observable.html#changed">changed</a>
</li>
<li data-name="ol.Observable#dispatchEvent" class="unstable">
<a href="ol.Observable.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.Observable#getRevision" class="unstable">
<a href="ol.Observable.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Observable#on" class="">
<a href="ol.Observable.html#on">on</a>
</li>
<li data-name="ol.Observable#once" class="">
<a href="ol.Observable.html#once">once</a>
</li>
<li data-name="ol.Observable#un" class="">
<a href="ol.Observable.html#un">un</a>
</li>
<li data-name="ol.Observable#unByKey" class="">
<a href="ol.Observable.html#unByKey">unByKey</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.Overlay">
<span class="title">
<a href="ol.Overlay.html">ol.Overlay</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Overlay#changed" class="unstable">
<a href="ol.Overlay.html#changed">changed</a>
</li>
<li data-name="ol.Overlay#dispatchEvent" class="unstable">
<a href="ol.Overlay.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.Overlay#get" class="">
<a href="ol.Overlay.html#get">get</a>
</li>
<li data-name="ol.Overlay#getElement" class="">
<a href="ol.Overlay.html#getElement">getElement</a>
</li>
<li data-name="ol.Overlay#getId" class="unstable">
<a href="ol.Overlay.html#getId">getId</a>
</li>
<li data-name="ol.Overlay#getKeys" class="">
<a href="ol.Overlay.html#getKeys">getKeys</a>
</li>
<li data-name="ol.Overlay#getMap" class="">
<a href="ol.Overlay.html#getMap">getMap</a>
</li>
<li data-name="ol.Overlay#getOffset" class="">
<a href="ol.Overlay.html#getOffset">getOffset</a>
</li>
<li data-name="ol.Overlay#getPosition" class="">
<a href="ol.Overlay.html#getPosition">getPosition</a>
</li>
<li data-name="ol.Overlay#getPositioning" class="">
<a href="ol.Overlay.html#getPositioning">getPositioning</a>
</li>
<li data-name="ol.Overlay#getProperties" class="">
<a href="ol.Overlay.html#getProperties">getProperties</a>
</li>
<li data-name="ol.Overlay#getRevision" class="unstable">
<a href="ol.Overlay.html#getRevision">getRevision</a>
</li>
<li data-name="ol.Overlay#on" class="">
<a href="ol.Overlay.html#on">on</a>
</li>
<li data-name="ol.Overlay#once" class="">
<a href="ol.Overlay.html#once">once</a>
</li>
<li data-name="ol.Overlay#set" class="">
<a href="ol.Overlay.html#set">set</a>
</li>
<li data-name="ol.Overlay#setElement" class="">
<a href="ol.Overlay.html#setElement">setElement</a>
</li>
<li data-name="ol.Overlay#setMap" class="">
<a href="ol.Overlay.html#setMap">setMap</a>
</li>
<li data-name="ol.Overlay#setOffset" class="">
<a href="ol.Overlay.html#setOffset">setOffset</a>
</li>
<li data-name="ol.Overlay#setPosition" class="">
<a href="ol.Overlay.html#setPosition">setPosition</a>
</li>
<li data-name="ol.Overlay#setPositioning" class="">
<a href="ol.Overlay.html#setPositioning">setPositioning</a>
</li>
<li data-name="ol.Overlay#setProperties" class="">
<a href="ol.Overlay.html#setProperties">setProperties</a>
</li>
<li data-name="ol.Overlay#un" class="">
<a href="ol.Overlay.html#un">un</a>
</li>
<li data-name="ol.Overlay#unByKey" class="">
<a href="ol.Overlay.html#unByKey">unByKey</a>
</li>
<li data-name="ol.Overlay#unset" class="">
<a href="ol.Overlay.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:element" class="unstable">
change:element
</li>
<li data-name="ol.ObjectEvent#event:change:map" class="unstable">
change:map
</li>
<li data-name="ol.ObjectEvent#event:change:offset" class="unstable">
change:offset
</li>
<li data-name="ol.ObjectEvent#event:change:position" class="unstable">
change:position
</li>
<li data-name="ol.ObjectEvent#event:change:positioning" class="unstable">
change:positioning
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.Sphere">
<span class="title">
<a href="ol.Sphere.html">ol.Sphere</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Sphere#geodesicArea" class="unstable">
<a href="ol.Sphere.html#geodesicArea">geodesicArea</a>
</li>
<li data-name="ol.Sphere#haversineDistance" class="unstable">
<a href="ol.Sphere.html#haversineDistance">haversineDistance</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.Tile">
<span class="title">
<a href="ol.Tile.html">ol.Tile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.Tile#getTileCoord" class="unstable">
<a href="ol.Tile.html#getTileCoord">getTileCoord</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.VectorTile">
<span class="title">
<a href="ol.VectorTile.html">ol.VectorTile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.VectorTile#getFormat" class="unstable">
<a href="ol.VectorTile.html#getFormat">getFormat</a>
</li>
<li data-name="ol.VectorTile#getTileCoord" class="unstable">
<a href="ol.VectorTile.html#getTileCoord">getTileCoord</a>
</li>
<li data-name="ol.VectorTile#setLoader" class="unstable">
<a href="ol.VectorTile.html#setLoader">setLoader</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.View">
<span class="title">
<a href="ol.View.html">ol.View</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.View#calculateExtent" class="">
<a href="ol.View.html#calculateExtent">calculateExtent</a>
</li>
<li data-name="ol.View#centerOn" class="unstable">
<a href="ol.View.html#centerOn">centerOn</a>
</li>
<li data-name="ol.View#changed" class="unstable">
<a href="ol.View.html#changed">changed</a>
</li>
<li data-name="ol.View#constrainCenter" class="unstable">
<a href="ol.View.html#constrainCenter">constrainCenter</a>
</li>
<li data-name="ol.View#constrainResolution" class="unstable">
<a href="ol.View.html#constrainResolution">constrainResolution</a>
</li>
<li data-name="ol.View#constrainRotation" class="unstable">
<a href="ol.View.html#constrainRotation">constrainRotation</a>
</li>
<li data-name="ol.View#dispatchEvent" class="unstable">
<a href="ol.View.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.View#fit" class="unstable">
<a href="ol.View.html#fit">fit</a>
</li>
<li data-name="ol.View#get" class="">
<a href="ol.View.html#get">get</a>
</li>
<li data-name="ol.View#getCenter" class="">
<a href="ol.View.html#getCenter">getCenter</a>
</li>
<li data-name="ol.View#getKeys" class="">
<a href="ol.View.html#getKeys">getKeys</a>
</li>
<li data-name="ol.View#getProjection" class="">
<a href="ol.View.html#getProjection">getProjection</a>
</li>
<li data-name="ol.View#getProperties" class="">
<a href="ol.View.html#getProperties">getProperties</a>
</li>
<li data-name="ol.View#getResolution" class="">
<a href="ol.View.html#getResolution">getResolution</a>
</li>
<li data-name="ol.View#getRevision" class="unstable">
<a href="ol.View.html#getRevision">getRevision</a>
</li>
<li data-name="ol.View#getRotation" class="">
<a href="ol.View.html#getRotation">getRotation</a>
</li>
<li data-name="ol.View#getZoom" class="">
<a href="ol.View.html#getZoom">getZoom</a>
</li>
<li data-name="ol.View#on" class="">
<a href="ol.View.html#on">on</a>
</li>
<li data-name="ol.View#once" class="">
<a href="ol.View.html#once">once</a>
</li>
<li data-name="ol.View#rotate" class="">
<a href="ol.View.html#rotate">rotate</a>
</li>
<li data-name="ol.View#set" class="">
<a href="ol.View.html#set">set</a>
</li>
<li data-name="ol.View#setCenter" class="">
<a href="ol.View.html#setCenter">setCenter</a>
</li>
<li data-name="ol.View#setProperties" class="">
<a href="ol.View.html#setProperties">setProperties</a>
</li>
<li data-name="ol.View#setResolution" class="">
<a href="ol.View.html#setResolution">setResolution</a>
</li>
<li data-name="ol.View#setRotation" class="">
<a href="ol.View.html#setRotation">setRotation</a>
</li>
<li data-name="ol.View#setZoom" class="">
<a href="ol.View.html#setZoom">setZoom</a>
</li>
<li data-name="ol.View#un" class="">
<a href="ol.View.html#un">un</a>
</li>
<li data-name="ol.View#unByKey" class="">
<a href="ol.View.html#unByKey">unByKey</a>
</li>
<li data-name="ol.View#unset" class="">
<a href="ol.View.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:center" class="unstable">
change:center
</li>
<li data-name="ol.ObjectEvent#event:change:resolution" class="unstable">
change:resolution
</li>
<li data-name="ol.ObjectEvent#event:change:rotation" class="unstable">
change:rotation
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.animation">
<span class="title">
<a href="ol.animation.html">ol.animation</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.animation.bounce" class="unstable">
<a href="ol.animation.html#.bounce">bounce</a>
</li>
<li data-name="ol.animation.pan" class="unstable">
<a href="ol.animation.html#.pan">pan</a>
</li>
<li data-name="ol.animation.rotate" class="unstable">
<a href="ol.animation.html#.rotate">rotate</a>
</li>
<li data-name="ol.animation.zoom" class="unstable">
<a href="ol.animation.html#.zoom">zoom</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.color">
<span class="title">
<a href="ol.color.html">ol.color</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.color.asArray" class="unstable">
<a href="ol.color.html#.asArray">asArray</a>
</li>
<li data-name="ol.color.asString" class="unstable">
<a href="ol.color.html#.asString">asString</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.control">
<span class="title">
<a href="ol.control.html">ol.control</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.control.ScaleLineUnits" class="">
<a href="ol.control.html#.ScaleLineUnits">ScaleLineUnits</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.defaults" class="">
<a href="ol.control.html#.defaults">defaults</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.control.Attribution">
<span class="title">
<a href="ol.control.Attribution.html">ol.control.Attribution</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Attribution.render" class="unstable">
<a href="ol.control.Attribution.html#.render">render</a>
</li>
<li data-name="ol.control.Attribution#changed" class="unstable">
<a href="ol.control.Attribution.html#changed">changed</a>
</li>
<li data-name="ol.control.Attribution#dispatchEvent" class="unstable">
<a href="ol.control.Attribution.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.Attribution#get" class="">
<a href="ol.control.Attribution.html#get">get</a>
</li>
<li data-name="ol.control.Attribution#getCollapsed" class="">
<a href="ol.control.Attribution.html#getCollapsed">getCollapsed</a>
</li>
<li data-name="ol.control.Attribution#getCollapsible" class="">
<a href="ol.control.Attribution.html#getCollapsible">getCollapsible</a>
</li>
<li data-name="ol.control.Attribution#getKeys" class="">
<a href="ol.control.Attribution.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Attribution#getMap" class="">
<a href="ol.control.Attribution.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Attribution#getProperties" class="">
<a href="ol.control.Attribution.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Attribution#getRevision" class="unstable">
<a href="ol.control.Attribution.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Attribution#on" class="">
<a href="ol.control.Attribution.html#on">on</a>
</li>
<li data-name="ol.control.Attribution#once" class="">
<a href="ol.control.Attribution.html#once">once</a>
</li>
<li data-name="ol.control.Attribution#set" class="">
<a href="ol.control.Attribution.html#set">set</a>
</li>
<li data-name="ol.control.Attribution#setCollapsed" class="">
<a href="ol.control.Attribution.html#setCollapsed">setCollapsed</a>
</li>
<li data-name="ol.control.Attribution#setCollapsible" class="">
<a href="ol.control.Attribution.html#setCollapsible">setCollapsible</a>
</li>
<li data-name="ol.control.Attribution#setMap" class="">
<a href="ol.control.Attribution.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Attribution#setProperties" class="">
<a href="ol.control.Attribution.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Attribution#setTarget" class="unstable">
<a href="ol.control.Attribution.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Attribution#un" class="">
<a href="ol.control.Attribution.html#un">un</a>
</li>
<li data-name="ol.control.Attribution#unByKey" class="">
<a href="ol.control.Attribution.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.Attribution#unset" class="">
<a href="ol.control.Attribution.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.Control">
<span class="title">
<a href="ol.control.Control.html">ol.control.Control</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Control#changed" class="unstable">
<a href="ol.control.Control.html#changed">changed</a>
</li>
<li data-name="ol.control.Control#dispatchEvent" class="unstable">
<a href="ol.control.Control.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.Control#get" class="">
<a href="ol.control.Control.html#get">get</a>
</li>
<li data-name="ol.control.Control#getKeys" class="">
<a href="ol.control.Control.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Control#getMap" class="">
<a href="ol.control.Control.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Control#getProperties" class="">
<a href="ol.control.Control.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Control#getRevision" class="unstable">
<a href="ol.control.Control.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Control#on" class="">
<a href="ol.control.Control.html#on">on</a>
</li>
<li data-name="ol.control.Control#once" class="">
<a href="ol.control.Control.html#once">once</a>
</li>
<li data-name="ol.control.Control#set" class="">
<a href="ol.control.Control.html#set">set</a>
</li>
<li data-name="ol.control.Control#setMap" class="">
<a href="ol.control.Control.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Control#setProperties" class="">
<a href="ol.control.Control.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Control#setTarget" class="unstable">
<a href="ol.control.Control.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Control#un" class="">
<a href="ol.control.Control.html#un">un</a>
</li>
<li data-name="ol.control.Control#unByKey" class="">
<a href="ol.control.Control.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.Control#unset" class="">
<a href="ol.control.Control.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.FullScreen">
<span class="title">
<a href="ol.control.FullScreen.html">ol.control.FullScreen</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.FullScreen#changed" class="unstable">
<a href="ol.control.FullScreen.html#changed">changed</a>
</li>
<li data-name="ol.control.FullScreen#dispatchEvent" class="unstable">
<a href="ol.control.FullScreen.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.FullScreen#get" class="">
<a href="ol.control.FullScreen.html#get">get</a>
</li>
<li data-name="ol.control.FullScreen#getKeys" class="">
<a href="ol.control.FullScreen.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.FullScreen#getMap" class="">
<a href="ol.control.FullScreen.html#getMap">getMap</a>
</li>
<li data-name="ol.control.FullScreen#getProperties" class="">
<a href="ol.control.FullScreen.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.FullScreen#getRevision" class="unstable">
<a href="ol.control.FullScreen.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.FullScreen#on" class="">
<a href="ol.control.FullScreen.html#on">on</a>
</li>
<li data-name="ol.control.FullScreen#once" class="">
<a href="ol.control.FullScreen.html#once">once</a>
</li>
<li data-name="ol.control.FullScreen#set" class="">
<a href="ol.control.FullScreen.html#set">set</a>
</li>
<li data-name="ol.control.FullScreen#setMap" class="">
<a href="ol.control.FullScreen.html#setMap">setMap</a>
</li>
<li data-name="ol.control.FullScreen#setProperties" class="">
<a href="ol.control.FullScreen.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.FullScreen#setTarget" class="unstable">
<a href="ol.control.FullScreen.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.FullScreen#un" class="">
<a href="ol.control.FullScreen.html#un">un</a>
</li>
<li data-name="ol.control.FullScreen#unByKey" class="">
<a href="ol.control.FullScreen.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.FullScreen#unset" class="">
<a href="ol.control.FullScreen.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.MousePosition">
<span class="title">
<a href="ol.control.MousePosition.html">ol.control.MousePosition</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.MousePosition.render" class="unstable">
<a href="ol.control.MousePosition.html#.render">render</a>
</li>
<li data-name="ol.control.MousePosition#changed" class="unstable">
<a href="ol.control.MousePosition.html#changed">changed</a>
</li>
<li data-name="ol.control.MousePosition#dispatchEvent" class="unstable">
<a href="ol.control.MousePosition.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.MousePosition#get" class="">
<a href="ol.control.MousePosition.html#get">get</a>
</li>
<li data-name="ol.control.MousePosition#getCoordinateFormat" class="">
<a href="ol.control.MousePosition.html#getCoordinateFormat">getCoordinateFormat</a>
</li>
<li data-name="ol.control.MousePosition#getKeys" class="">
<a href="ol.control.MousePosition.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.MousePosition#getMap" class="">
<a href="ol.control.MousePosition.html#getMap">getMap</a>
</li>
<li data-name="ol.control.MousePosition#getProjection" class="">
<a href="ol.control.MousePosition.html#getProjection">getProjection</a>
</li>
<li data-name="ol.control.MousePosition#getProperties" class="">
<a href="ol.control.MousePosition.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.MousePosition#getRevision" class="unstable">
<a href="ol.control.MousePosition.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.MousePosition#on" class="">
<a href="ol.control.MousePosition.html#on">on</a>
</li>
<li data-name="ol.control.MousePosition#once" class="">
<a href="ol.control.MousePosition.html#once">once</a>
</li>
<li data-name="ol.control.MousePosition#set" class="">
<a href="ol.control.MousePosition.html#set">set</a>
</li>
<li data-name="ol.control.MousePosition#setCoordinateFormat" class="">
<a href="ol.control.MousePosition.html#setCoordinateFormat">setCoordinateFormat</a>
</li>
<li data-name="ol.control.MousePosition#setMap" class="">
<a href="ol.control.MousePosition.html#setMap">setMap</a>
</li>
<li data-name="ol.control.MousePosition#setProjection" class="">
<a href="ol.control.MousePosition.html#setProjection">setProjection</a>
</li>
<li data-name="ol.control.MousePosition#setProperties" class="">
<a href="ol.control.MousePosition.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.MousePosition#setTarget" class="unstable">
<a href="ol.control.MousePosition.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.MousePosition#un" class="">
<a href="ol.control.MousePosition.html#un">un</a>
</li>
<li data-name="ol.control.MousePosition#unByKey" class="">
<a href="ol.control.MousePosition.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.MousePosition#unset" class="">
<a href="ol.control.MousePosition.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:coordinateFormat" class="unstable">
change:coordinateFormat
</li>
<li data-name="ol.ObjectEvent#event:change:projection" class="unstable">
change:projection
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.OverviewMap">
<span class="title">
<a href="ol.control.OverviewMap.html">ol.control.OverviewMap</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.OverviewMap.render" class="unstable">
<a href="ol.control.OverviewMap.html#.render">render</a>
</li>
<li data-name="ol.control.OverviewMap#changed" class="unstable">
<a href="ol.control.OverviewMap.html#changed">changed</a>
</li>
<li data-name="ol.control.OverviewMap#dispatchEvent" class="unstable">
<a href="ol.control.OverviewMap.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.OverviewMap#get" class="">
<a href="ol.control.OverviewMap.html#get">get</a>
</li>
<li data-name="ol.control.OverviewMap#getCollapsed" class="">
<a href="ol.control.OverviewMap.html#getCollapsed">getCollapsed</a>
</li>
<li data-name="ol.control.OverviewMap#getCollapsible" class="">
<a href="ol.control.OverviewMap.html#getCollapsible">getCollapsible</a>
</li>
<li data-name="ol.control.OverviewMap#getKeys" class="">
<a href="ol.control.OverviewMap.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.OverviewMap#getMap" class="">
<a href="ol.control.OverviewMap.html#getMap">getMap</a>
</li>
<li data-name="ol.control.OverviewMap#getOverviewMap" class="unstable">
<a href="ol.control.OverviewMap.html#getOverviewMap">getOverviewMap</a>
</li>
<li data-name="ol.control.OverviewMap#getProperties" class="">
<a href="ol.control.OverviewMap.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.OverviewMap#getRevision" class="unstable">
<a href="ol.control.OverviewMap.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.OverviewMap#on" class="">
<a href="ol.control.OverviewMap.html#on">on</a>
</li>
<li data-name="ol.control.OverviewMap#once" class="">
<a href="ol.control.OverviewMap.html#once">once</a>
</li>
<li data-name="ol.control.OverviewMap#set" class="">
<a href="ol.control.OverviewMap.html#set">set</a>
</li>
<li data-name="ol.control.OverviewMap#setCollapsed" class="">
<a href="ol.control.OverviewMap.html#setCollapsed">setCollapsed</a>
</li>
<li data-name="ol.control.OverviewMap#setCollapsible" class="">
<a href="ol.control.OverviewMap.html#setCollapsible">setCollapsible</a>
</li>
<li data-name="ol.control.OverviewMap#setMap" class="">
<a href="ol.control.OverviewMap.html#setMap">setMap</a>
</li>
<li data-name="ol.control.OverviewMap#setProperties" class="">
<a href="ol.control.OverviewMap.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.OverviewMap#setTarget" class="unstable">
<a href="ol.control.OverviewMap.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.OverviewMap#un" class="">
<a href="ol.control.OverviewMap.html#un">un</a>
</li>
<li data-name="ol.control.OverviewMap#unByKey" class="">
<a href="ol.control.OverviewMap.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.OverviewMap#unset" class="">
<a href="ol.control.OverviewMap.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.Rotate">
<span class="title">
<a href="ol.control.Rotate.html">ol.control.Rotate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Rotate.render" class="unstable">
<a href="ol.control.Rotate.html#.render">render</a>
</li>
<li data-name="ol.control.Rotate#changed" class="unstable">
<a href="ol.control.Rotate.html#changed">changed</a>
</li>
<li data-name="ol.control.Rotate#dispatchEvent" class="unstable">
<a href="ol.control.Rotate.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.Rotate#get" class="">
<a href="ol.control.Rotate.html#get">get</a>
</li>
<li data-name="ol.control.Rotate#getKeys" class="">
<a href="ol.control.Rotate.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Rotate#getMap" class="">
<a href="ol.control.Rotate.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Rotate#getProperties" class="">
<a href="ol.control.Rotate.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Rotate#getRevision" class="unstable">
<a href="ol.control.Rotate.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Rotate#on" class="">
<a href="ol.control.Rotate.html#on">on</a>
</li>
<li data-name="ol.control.Rotate#once" class="">
<a href="ol.control.Rotate.html#once">once</a>
</li>
<li data-name="ol.control.Rotate#set" class="">
<a href="ol.control.Rotate.html#set">set</a>
</li>
<li data-name="ol.control.Rotate#setMap" class="">
<a href="ol.control.Rotate.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Rotate#setProperties" class="">
<a href="ol.control.Rotate.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Rotate#setTarget" class="unstable">
<a href="ol.control.Rotate.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Rotate#un" class="">
<a href="ol.control.Rotate.html#un">un</a>
</li>
<li data-name="ol.control.Rotate#unByKey" class="">
<a href="ol.control.Rotate.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.Rotate#unset" class="">
<a href="ol.control.Rotate.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.ScaleLine">
<span class="title">
<a href="ol.control.ScaleLine.html">ol.control.ScaleLine</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.ScaleLine.render" class="unstable">
<a href="ol.control.ScaleLine.html#.render">render</a>
</li>
<li data-name="ol.control.ScaleLine#changed" class="unstable">
<a href="ol.control.ScaleLine.html#changed">changed</a>
</li>
<li data-name="ol.control.ScaleLine#dispatchEvent" class="unstable">
<a href="ol.control.ScaleLine.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.ScaleLine#get" class="">
<a href="ol.control.ScaleLine.html#get">get</a>
</li>
<li data-name="ol.control.ScaleLine#getKeys" class="">
<a href="ol.control.ScaleLine.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.ScaleLine#getMap" class="">
<a href="ol.control.ScaleLine.html#getMap">getMap</a>
</li>
<li data-name="ol.control.ScaleLine#getProperties" class="">
<a href="ol.control.ScaleLine.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.ScaleLine#getRevision" class="unstable">
<a href="ol.control.ScaleLine.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.ScaleLine#getUnits" class="">
<a href="ol.control.ScaleLine.html#getUnits">getUnits</a>
</li>
<li data-name="ol.control.ScaleLine#on" class="">
<a href="ol.control.ScaleLine.html#on">on</a>
</li>
<li data-name="ol.control.ScaleLine#once" class="">
<a href="ol.control.ScaleLine.html#once">once</a>
</li>
<li data-name="ol.control.ScaleLine#set" class="">
<a href="ol.control.ScaleLine.html#set">set</a>
</li>
<li data-name="ol.control.ScaleLine#setMap" class="">
<a href="ol.control.ScaleLine.html#setMap">setMap</a>
</li>
<li data-name="ol.control.ScaleLine#setProperties" class="">
<a href="ol.control.ScaleLine.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.ScaleLine#setTarget" class="unstable">
<a href="ol.control.ScaleLine.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.ScaleLine#setUnits" class="">
<a href="ol.control.ScaleLine.html#setUnits">setUnits</a>
</li>
<li data-name="ol.control.ScaleLine#un" class="">
<a href="ol.control.ScaleLine.html#un">un</a>
</li>
<li data-name="ol.control.ScaleLine#unByKey" class="">
<a href="ol.control.ScaleLine.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.ScaleLine#unset" class="">
<a href="ol.control.ScaleLine.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:units" class="unstable">
change:units
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.Zoom">
<span class="title">
<a href="ol.control.Zoom.html">ol.control.Zoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.Zoom#changed" class="unstable">
<a href="ol.control.Zoom.html#changed">changed</a>
</li>
<li data-name="ol.control.Zoom#dispatchEvent" class="unstable">
<a href="ol.control.Zoom.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.Zoom#get" class="">
<a href="ol.control.Zoom.html#get">get</a>
</li>
<li data-name="ol.control.Zoom#getKeys" class="">
<a href="ol.control.Zoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.Zoom#getMap" class="">
<a href="ol.control.Zoom.html#getMap">getMap</a>
</li>
<li data-name="ol.control.Zoom#getProperties" class="">
<a href="ol.control.Zoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.Zoom#getRevision" class="unstable">
<a href="ol.control.Zoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.Zoom#on" class="">
<a href="ol.control.Zoom.html#on">on</a>
</li>
<li data-name="ol.control.Zoom#once" class="">
<a href="ol.control.Zoom.html#once">once</a>
</li>
<li data-name="ol.control.Zoom#set" class="">
<a href="ol.control.Zoom.html#set">set</a>
</li>
<li data-name="ol.control.Zoom#setMap" class="">
<a href="ol.control.Zoom.html#setMap">setMap</a>
</li>
<li data-name="ol.control.Zoom#setProperties" class="">
<a href="ol.control.Zoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.Zoom#setTarget" class="unstable">
<a href="ol.control.Zoom.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.Zoom#un" class="">
<a href="ol.control.Zoom.html#un">un</a>
</li>
<li data-name="ol.control.Zoom#unByKey" class="">
<a href="ol.control.Zoom.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.Zoom#unset" class="">
<a href="ol.control.Zoom.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.ZoomSlider">
<span class="title">
<a href="ol.control.ZoomSlider.html">ol.control.ZoomSlider</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.ZoomSlider.render" class="unstable">
<a href="ol.control.ZoomSlider.html#.render">render</a>
</li>
<li data-name="ol.control.ZoomSlider#changed" class="unstable">
<a href="ol.control.ZoomSlider.html#changed">changed</a>
</li>
<li data-name="ol.control.ZoomSlider#dispatchEvent" class="unstable">
<a href="ol.control.ZoomSlider.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.ZoomSlider#get" class="">
<a href="ol.control.ZoomSlider.html#get">get</a>
</li>
<li data-name="ol.control.ZoomSlider#getKeys" class="">
<a href="ol.control.ZoomSlider.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.ZoomSlider#getMap" class="">
<a href="ol.control.ZoomSlider.html#getMap">getMap</a>
</li>
<li data-name="ol.control.ZoomSlider#getProperties" class="">
<a href="ol.control.ZoomSlider.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.ZoomSlider#getRevision" class="unstable">
<a href="ol.control.ZoomSlider.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.ZoomSlider#on" class="">
<a href="ol.control.ZoomSlider.html#on">on</a>
</li>
<li data-name="ol.control.ZoomSlider#once" class="">
<a href="ol.control.ZoomSlider.html#once">once</a>
</li>
<li data-name="ol.control.ZoomSlider#set" class="">
<a href="ol.control.ZoomSlider.html#set">set</a>
</li>
<li data-name="ol.control.ZoomSlider#setMap" class="">
<a href="ol.control.ZoomSlider.html#setMap">setMap</a>
</li>
<li data-name="ol.control.ZoomSlider#setProperties" class="">
<a href="ol.control.ZoomSlider.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.ZoomSlider#setTarget" class="unstable">
<a href="ol.control.ZoomSlider.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.ZoomSlider#un" class="">
<a href="ol.control.ZoomSlider.html#un">un</a>
</li>
<li data-name="ol.control.ZoomSlider#unByKey" class="">
<a href="ol.control.ZoomSlider.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.ZoomSlider#unset" class="">
<a href="ol.control.ZoomSlider.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.control.ZoomToExtent">
<span class="title">
<a href="ol.control.ZoomToExtent.html">ol.control.ZoomToExtent</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.control.ZoomToExtent#changed" class="unstable">
<a href="ol.control.ZoomToExtent.html#changed">changed</a>
</li>
<li data-name="ol.control.ZoomToExtent#dispatchEvent" class="unstable">
<a href="ol.control.ZoomToExtent.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.control.ZoomToExtent#get" class="">
<a href="ol.control.ZoomToExtent.html#get">get</a>
</li>
<li data-name="ol.control.ZoomToExtent#getKeys" class="">
<a href="ol.control.ZoomToExtent.html#getKeys">getKeys</a>
</li>
<li data-name="ol.control.ZoomToExtent#getMap" class="">
<a href="ol.control.ZoomToExtent.html#getMap">getMap</a>
</li>
<li data-name="ol.control.ZoomToExtent#getProperties" class="">
<a href="ol.control.ZoomToExtent.html#getProperties">getProperties</a>
</li>
<li data-name="ol.control.ZoomToExtent#getRevision" class="unstable">
<a href="ol.control.ZoomToExtent.html#getRevision">getRevision</a>
</li>
<li data-name="ol.control.ZoomToExtent#on" class="">
<a href="ol.control.ZoomToExtent.html#on">on</a>
</li>
<li data-name="ol.control.ZoomToExtent#once" class="">
<a href="ol.control.ZoomToExtent.html#once">once</a>
</li>
<li data-name="ol.control.ZoomToExtent#set" class="">
<a href="ol.control.ZoomToExtent.html#set">set</a>
</li>
<li data-name="ol.control.ZoomToExtent#setMap" class="">
<a href="ol.control.ZoomToExtent.html#setMap">setMap</a>
</li>
<li data-name="ol.control.ZoomToExtent#setProperties" class="">
<a href="ol.control.ZoomToExtent.html#setProperties">setProperties</a>
</li>
<li data-name="ol.control.ZoomToExtent#setTarget" class="unstable">
<a href="ol.control.ZoomToExtent.html#setTarget">setTarget</a>
</li>
<li data-name="ol.control.ZoomToExtent#un" class="">
<a href="ol.control.ZoomToExtent.html#un">un</a>
</li>
<li data-name="ol.control.ZoomToExtent#unByKey" class="">
<a href="ol.control.ZoomToExtent.html#unByKey">unByKey</a>
</li>
<li data-name="ol.control.ZoomToExtent#unset" class="">
<a href="ol.control.ZoomToExtent.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.coordinate">
<span class="title">
<a href="ol.coordinate.html">ol.coordinate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.coordinate.add" class="">
<a href="ol.coordinate.html#.add">add</a>
</li>
<li data-name="ol.coordinate.createStringXY" class="">
<a href="ol.coordinate.html#.createStringXY">createStringXY</a>
</li>
<li data-name="ol.coordinate.format" class="">
<a href="ol.coordinate.html#.format">format</a>
</li>
<li data-name="ol.coordinate.rotate" class="">
<a href="ol.coordinate.html#.rotate">rotate</a>
</li>
<li data-name="ol.coordinate.toStringHDMS" class="">
<a href="ol.coordinate.html#.toStringHDMS">toStringHDMS</a>
</li>
<li data-name="ol.coordinate.toStringXY" class="">
<a href="ol.coordinate.html#.toStringXY">toStringXY</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.easing">
<span class="title">
<a href="ol.easing.html">ol.easing</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.easing.easeIn" class="unstable">
<a href="ol.easing.html#.easeIn">easeIn</a>
</li>
<li data-name="ol.easing.easeOut" class="unstable">
<a href="ol.easing.html#.easeOut">easeOut</a>
</li>
<li data-name="ol.easing.inAndOut" class="unstable">
<a href="ol.easing.html#.inAndOut">inAndOut</a>
</li>
<li data-name="ol.easing.linear" class="unstable">
<a href="ol.easing.html#.linear">linear</a>
</li>
<li data-name="ol.easing.upAndDown" class="unstable">
<a href="ol.easing.html#.upAndDown">upAndDown</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.events">
<span class="title">
<a href="ol.events.html">ol.events</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.events.ConditionType" class="">
<a href="ol.events.html#.ConditionType">ConditionType</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.events.condition">
<span class="title">
<a href="ol.events.condition.html">ol.events.condition</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.events.condition.altKeyOnly" class="">
<a href="ol.events.condition.html#.altKeyOnly">altKeyOnly</a>
</li>
<li data-name="ol.events.condition.altShiftKeysOnly" class="">
<a href="ol.events.condition.html#.altShiftKeysOnly">altShiftKeysOnly</a>
</li>
<li data-name="ol.events.condition.always" class="">
<a href="ol.events.condition.html#.always">always</a>
</li>
<li data-name="ol.events.condition.click" class="">
<a href="ol.events.condition.html#.click">click</a>
</li>
<li data-name="ol.events.condition.doubleClick" class="">
<a href="ol.events.condition.html#.doubleClick">doubleClick</a>
</li>
<li data-name="ol.events.condition.mouseOnly" class="">
<a href="ol.events.condition.html#.mouseOnly">mouseOnly</a>
</li>
<li data-name="ol.events.condition.never" class="">
<a href="ol.events.condition.html#.never">never</a>
</li>
<li data-name="ol.events.condition.noModifierKeys" class="">
<a href="ol.events.condition.html#.noModifierKeys">noModifierKeys</a>
</li>
<li data-name="ol.events.condition.platformModifierKeyOnly" class="">
<a href="ol.events.condition.html#.platformModifierKeyOnly">platformModifierKeyOnly</a>
</li>
<li data-name="ol.events.condition.pointerMove" class="unstable">
<a href="ol.events.condition.html#.pointerMove">pointerMove</a>
</li>
<li data-name="ol.events.condition.shiftKeyOnly" class="">
<a href="ol.events.condition.html#.shiftKeyOnly">shiftKeyOnly</a>
</li>
<li data-name="ol.events.condition.singleClick" class="">
<a href="ol.events.condition.html#.singleClick">singleClick</a>
</li>
<li data-name="ol.events.condition.targetNotEditable" class="unstable">
<a href="ol.events.condition.html#.targetNotEditable">targetNotEditable</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.extent">
<span class="title">
<a href="ol.extent.html">ol.extent</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.extent.applyTransform" class="">
<a href="ol.extent.html#.applyTransform">applyTransform</a>
</li>
<li data-name="ol.extent.boundingExtent" class="">
<a href="ol.extent.html#.boundingExtent">boundingExtent</a>
</li>
<li data-name="ol.extent.buffer" class="">
<a href="ol.extent.html#.buffer">buffer</a>
</li>
<li data-name="ol.extent.containsCoordinate" class="">
<a href="ol.extent.html#.containsCoordinate">containsCoordinate</a>
</li>
<li data-name="ol.extent.containsExtent" class="">
<a href="ol.extent.html#.containsExtent">containsExtent</a>
</li>
<li data-name="ol.extent.containsXY" class="">
<a href="ol.extent.html#.containsXY">containsXY</a>
</li>
<li data-name="ol.extent.createEmpty" class="">
<a href="ol.extent.html#.createEmpty">createEmpty</a>
</li>
<li data-name="ol.extent.equals" class="">
<a href="ol.extent.html#.equals">equals</a>
</li>
<li data-name="ol.extent.extend" class="">
<a href="ol.extent.html#.extend">extend</a>
</li>
<li data-name="ol.extent.getBottomLeft" class="">
<a href="ol.extent.html#.getBottomLeft">getBottomLeft</a>
</li>
<li data-name="ol.extent.getBottomRight" class="">
<a href="ol.extent.html#.getBottomRight">getBottomRight</a>
</li>
<li data-name="ol.extent.getCenter" class="">
<a href="ol.extent.html#.getCenter">getCenter</a>
</li>
<li data-name="ol.extent.getHeight" class="">
<a href="ol.extent.html#.getHeight">getHeight</a>
</li>
<li data-name="ol.extent.getIntersection" class="">
<a href="ol.extent.html#.getIntersection">getIntersection</a>
</li>
<li data-name="ol.extent.getSize" class="">
<a href="ol.extent.html#.getSize">getSize</a>
</li>
<li data-name="ol.extent.getTopLeft" class="">
<a href="ol.extent.html#.getTopLeft">getTopLeft</a>
</li>
<li data-name="ol.extent.getTopRight" class="">
<a href="ol.extent.html#.getTopRight">getTopRight</a>
</li>
<li data-name="ol.extent.getWidth" class="">
<a href="ol.extent.html#.getWidth">getWidth</a>
</li>
<li data-name="ol.extent.intersects" class="">
<a href="ol.extent.html#.intersects">intersects</a>
</li>
<li data-name="ol.extent.isEmpty" class="">
<a href="ol.extent.html#.isEmpty">isEmpty</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.featureloader">
<span class="title">
<a href="ol.featureloader.html">ol.featureloader</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.featureloader.tile" class="unstable">
<a href="ol.featureloader.html#.tile">tile</a>
</li>
<li data-name="ol.featureloader.xhr" class="unstable">
<a href="ol.featureloader.html#.xhr">xhr</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format">
<span class="title">
<a href="ol.format.html">ol.format</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.format.IGCZ" class="unstable">
<a href="ol.format.html#.IGCZ">IGCZ</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.EsriJSON">
<span class="title">
<a href="ol.format.EsriJSON.html">ol.format.EsriJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.EsriJSON#readFeature" class="unstable">
<a href="ol.format.EsriJSON.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.EsriJSON#readFeatures" class="unstable">
<a href="ol.format.EsriJSON.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.EsriJSON#readGeometry" class="unstable">
<a href="ol.format.EsriJSON.html#readGeometry">readGeometry</a>
</li>
<li data-name="ol.format.EsriJSON#readProjection" class="unstable">
<a href="ol.format.EsriJSON.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.EsriJSON#writeFeature" class="unstable">
<a href="ol.format.EsriJSON.html#writeFeature">writeFeature</a>
</li>
<li data-name="ol.format.EsriJSON#writeFeatureObject" class="unstable">
<a href="ol.format.EsriJSON.html#writeFeatureObject">writeFeatureObject</a>
</li>
<li data-name="ol.format.EsriJSON#writeFeatures" class="unstable">
<a href="ol.format.EsriJSON.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.EsriJSON#writeFeaturesObject" class="unstable">
<a href="ol.format.EsriJSON.html#writeFeaturesObject">writeFeaturesObject</a>
</li>
<li data-name="ol.format.EsriJSON#writeGeometry" class="unstable">
<a href="ol.format.EsriJSON.html#writeGeometry">writeGeometry</a>
</li>
<li data-name="ol.format.EsriJSON#writeGeometryObject" class="unstable">
<a href="ol.format.EsriJSON.html#writeGeometryObject">writeGeometryObject</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.Feature">
<span class="title">
<a href="ol.format.Feature.html">ol.format.Feature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GML">
<span class="title">
<a href="ol.format.GML.html">ol.format.GML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GML#readFeatures" class="">
<a href="ol.format.GML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GML#writeFeatures" class="">
<a href="ol.format.GML.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GML#writeFeaturesNode" class="unstable">
<a href="ol.format.GML.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GML2">
<span class="title">
<a href="ol.format.GML2.html">ol.format.GML2</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GML2#readFeatures" class="">
<a href="ol.format.GML2.html#readFeatures">readFeatures</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GML3">
<span class="title">
<a href="ol.format.GML3.html">ol.format.GML3</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GML3#readFeatures" class="">
<a href="ol.format.GML3.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GML3#writeFeatures" class="">
<a href="ol.format.GML3.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GML3#writeFeaturesNode" class="unstable">
<a href="ol.format.GML3.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
<li data-name="ol.format.GML3#writeGeometryNode" class="unstable">
<a href="ol.format.GML3.html#writeGeometryNode">writeGeometryNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GMLBase">
<span class="title">
<a href="ol.format.GMLBase.html">ol.format.GMLBase</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GMLBase#readFeatures" class="">
<a href="ol.format.GMLBase.html#readFeatures">readFeatures</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GPX">
<span class="title">
<a href="ol.format.GPX.html">ol.format.GPX</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GPX#readFeature" class="">
<a href="ol.format.GPX.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.GPX#readFeatures" class="">
<a href="ol.format.GPX.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GPX#readProjection" class="">
<a href="ol.format.GPX.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.GPX#writeFeatures" class="">
<a href="ol.format.GPX.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GPX#writeFeaturesNode" class="unstable">
<a href="ol.format.GPX.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.GeoJSON">
<span class="title">
<a href="ol.format.GeoJSON.html">ol.format.GeoJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.GeoJSON#readFeature" class="">
<a href="ol.format.GeoJSON.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.GeoJSON#readFeatures" class="">
<a href="ol.format.GeoJSON.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.GeoJSON#readGeometry" class="">
<a href="ol.format.GeoJSON.html#readGeometry">readGeometry</a>
</li>
<li data-name="ol.format.GeoJSON#readProjection" class="">
<a href="ol.format.GeoJSON.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeature" class="">
<a href="ol.format.GeoJSON.html#writeFeature">writeFeature</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeatureObject" class="">
<a href="ol.format.GeoJSON.html#writeFeatureObject">writeFeatureObject</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeatures" class="">
<a href="ol.format.GeoJSON.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.GeoJSON#writeFeaturesObject" class="">
<a href="ol.format.GeoJSON.html#writeFeaturesObject">writeFeaturesObject</a>
</li>
<li data-name="ol.format.GeoJSON#writeGeometry" class="">
<a href="ol.format.GeoJSON.html#writeGeometry">writeGeometry</a>
</li>
<li data-name="ol.format.GeoJSON#writeGeometryObject" class="">
<a href="ol.format.GeoJSON.html#writeGeometryObject">writeGeometryObject</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.IGC">
<span class="title">
<a href="ol.format.IGC.html">ol.format.IGC</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.IGC#readFeature" class="unstable">
<a href="ol.format.IGC.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.IGC#readFeatures" class="unstable">
<a href="ol.format.IGC.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.IGC#readProjection" class="unstable">
<a href="ol.format.IGC.html#readProjection">readProjection</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.JSONFeature">
<span class="title">
<a href="ol.format.JSONFeature.html">ol.format.JSONFeature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.KML">
<span class="title">
<a href="ol.format.KML.html">ol.format.KML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.KML#readFeature" class="">
<a href="ol.format.KML.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.KML#readFeatures" class="">
<a href="ol.format.KML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.KML#readName" class="">
<a href="ol.format.KML.html#readName">readName</a>
</li>
<li data-name="ol.format.KML#readNetworkLinks" class="unstable">
<a href="ol.format.KML.html#readNetworkLinks">readNetworkLinks</a>
</li>
<li data-name="ol.format.KML#readProjection" class="">
<a href="ol.format.KML.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.KML#writeFeatures" class="">
<a href="ol.format.KML.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.KML#writeFeaturesNode" class="unstable">
<a href="ol.format.KML.html#writeFeaturesNode">writeFeaturesNode</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.MVT">
<span class="title">
<a href="ol.format.MVT.html">ol.format.MVT</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.MVT#setLayers" class="unstable">
<a href="ol.format.MVT.html#setLayers">setLayers</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.OSMXML">
<span class="title">
<a href="ol.format.OSMXML.html">ol.format.OSMXML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.OSMXML#readFeatures" class="">
<a href="ol.format.OSMXML.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.OSMXML#readProjection" class="">
<a href="ol.format.OSMXML.html#readProjection">readProjection</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.Polyline">
<span class="title">
<a href="ol.format.Polyline.html">ol.format.Polyline</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.Polyline.decodeDeltas" class="unstable">
<a href="ol.format.Polyline.html#.decodeDeltas">decodeDeltas</a>
</li>
<li data-name="ol.format.Polyline.decodeFloats" class="unstable">
<a href="ol.format.Polyline.html#.decodeFloats">decodeFloats</a>
</li>
<li data-name="ol.format.Polyline.encodeDeltas" class="unstable">
<a href="ol.format.Polyline.html#.encodeDeltas">encodeDeltas</a>
</li>
<li data-name="ol.format.Polyline.encodeFloats" class="unstable">
<a href="ol.format.Polyline.html#.encodeFloats">encodeFloats</a>
</li>
<li data-name="ol.format.Polyline#readFeature" class="">
<a href="ol.format.Polyline.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.Polyline#readFeatures" class="">
<a href="ol.format.Polyline.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.Polyline#readGeometry" class="">
<a href="ol.format.Polyline.html#readGeometry">readGeometry</a>
</li>
<li data-name="ol.format.Polyline#readProjection" class="">
<a href="ol.format.Polyline.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.Polyline#writeGeometry" class="">
<a href="ol.format.Polyline.html#writeGeometry">writeGeometry</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.TextFeature">
<span class="title">
<a href="ol.format.TextFeature.html">ol.format.TextFeature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.TopoJSON">
<span class="title">
<a href="ol.format.TopoJSON.html">ol.format.TopoJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.TopoJSON#readFeatures" class="">
<a href="ol.format.TopoJSON.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.TopoJSON#readProjection" class="">
<a href="ol.format.TopoJSON.html#readProjection">readProjection</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WFS">
<span class="title">
<a href="ol.format.WFS.html">ol.format.WFS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.format.WFS.FeatureCollectionMetadata" class="">
<a href="ol.format.WFS.html#.FeatureCollectionMetadata">FeatureCollectionMetadata</a>
</li>
<li data-name="ol.format.WFS.TransactionResponse" class="">
<a href="ol.format.WFS.html#.TransactionResponse">TransactionResponse</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WFS#readFeatureCollectionMetadata" class="">
<a href="ol.format.WFS.html#readFeatureCollectionMetadata">readFeatureCollectionMetadata</a>
</li>
<li data-name="ol.format.WFS#readFeatures" class="">
<a href="ol.format.WFS.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.WFS#readProjection" class="">
<a href="ol.format.WFS.html#readProjection">readProjection</a>
</li>
<li data-name="ol.format.WFS#readTransactionResponse" class="">
<a href="ol.format.WFS.html#readTransactionResponse">readTransactionResponse</a>
</li>
<li data-name="ol.format.WFS#writeGetFeature" class="">
<a href="ol.format.WFS.html#writeGetFeature">writeGetFeature</a>
</li>
<li data-name="ol.format.WFS#writeTransaction" class="">
<a href="ol.format.WFS.html#writeTransaction">writeTransaction</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WKT">
<span class="title">
<a href="ol.format.WKT.html">ol.format.WKT</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WKT#readFeature" class="">
<a href="ol.format.WKT.html#readFeature">readFeature</a>
</li>
<li data-name="ol.format.WKT#readFeatures" class="">
<a href="ol.format.WKT.html#readFeatures">readFeatures</a>
</li>
<li data-name="ol.format.WKT#readGeometry" class="">
<a href="ol.format.WKT.html#readGeometry">readGeometry</a>
</li>
<li data-name="ol.format.WKT#writeFeature" class="">
<a href="ol.format.WKT.html#writeFeature">writeFeature</a>
</li>
<li data-name="ol.format.WKT#writeFeatures" class="">
<a href="ol.format.WKT.html#writeFeatures">writeFeatures</a>
</li>
<li data-name="ol.format.WKT#writeGeometry" class="">
<a href="ol.format.WKT.html#writeGeometry">writeGeometry</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WMSCapabilities">
<span class="title">
<a href="ol.format.WMSCapabilities.html">ol.format.WMSCapabilities</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WMSCapabilities#read" class="unstable">
<a href="ol.format.WMSCapabilities.html#read">read</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WMSGetFeatureInfo">
<span class="title">
<a href="ol.format.WMSGetFeatureInfo.html">ol.format.WMSGetFeatureInfo</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WMSGetFeatureInfo#readFeatures" class="">
<a href="ol.format.WMSGetFeatureInfo.html#readFeatures">readFeatures</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.WMTSCapabilities">
<span class="title">
<a href="ol.format.WMTSCapabilities.html">ol.format.WMTSCapabilities</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.format.WMTSCapabilities#read" class="unstable">
<a href="ol.format.WMTSCapabilities.html#read">read</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.XML">
<span class="title">
<a href="ol.format.XML.html">ol.format.XML</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.format.XMLFeature">
<span class="title">
<a href="ol.format.XMLFeature.html">ol.format.XMLFeature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.geom">
<span class="title">
<a href="ol.geom.html">ol.geom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.geom.GeometryLayout" class="">
<a href="ol.geom.html#.GeometryLayout">GeometryLayout</a>
</li>
<li data-name="ol.geom.GeometryType" class="">
<a href="ol.geom.html#.GeometryType">GeometryType</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.geom.Circle">
<span class="title">
<a href="ol.geom.Circle.html">ol.geom.Circle</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Circle#applyTransform" class="">
<a href="ol.geom.Circle.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.Circle#changed" class="unstable">
<a href="ol.geom.Circle.html#changed">changed</a>
</li>
<li data-name="ol.geom.Circle#clone" class="unstable">
<a href="ol.geom.Circle.html#clone">clone</a>
</li>
<li data-name="ol.geom.Circle#dispatchEvent" class="unstable">
<a href="ol.geom.Circle.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.Circle#get" class="">
<a href="ol.geom.Circle.html#get">get</a>
</li>
<li data-name="ol.geom.Circle#getCenter" class="unstable">
<a href="ol.geom.Circle.html#getCenter">getCenter</a>
</li>
<li data-name="ol.geom.Circle#getClosestPoint" class="">
<a href="ol.geom.Circle.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Circle#getExtent" class="">
<a href="ol.geom.Circle.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Circle#getFirstCoordinate" class="">
<a href="ol.geom.Circle.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.Circle#getKeys" class="">
<a href="ol.geom.Circle.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.Circle#getLastCoordinate" class="">
<a href="ol.geom.Circle.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.Circle#getLayout" class="">
<a href="ol.geom.Circle.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.Circle#getProperties" class="">
<a href="ol.geom.Circle.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.Circle#getRadius" class="unstable">
<a href="ol.geom.Circle.html#getRadius">getRadius</a>
</li>
<li data-name="ol.geom.Circle#getRevision" class="unstable">
<a href="ol.geom.Circle.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Circle#getType" class="unstable">
<a href="ol.geom.Circle.html#getType">getType</a>
</li>
<li data-name="ol.geom.Circle#intersectsExtent" class="">
<a href="ol.geom.Circle.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.Circle#on" class="">
<a href="ol.geom.Circle.html#on">on</a>
</li>
<li data-name="ol.geom.Circle#once" class="">
<a href="ol.geom.Circle.html#once">once</a>
</li>
<li data-name="ol.geom.Circle#set" class="">
<a href="ol.geom.Circle.html#set">set</a>
</li>
<li data-name="ol.geom.Circle#setCenter" class="unstable">
<a href="ol.geom.Circle.html#setCenter">setCenter</a>
</li>
<li data-name="ol.geom.Circle#setCenterAndRadius" class="unstable">
<a href="ol.geom.Circle.html#setCenterAndRadius">setCenterAndRadius</a>
</li>
<li data-name="ol.geom.Circle#setProperties" class="">
<a href="ol.geom.Circle.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.Circle#setRadius" class="unstable">
<a href="ol.geom.Circle.html#setRadius">setRadius</a>
</li>
<li data-name="ol.geom.Circle#simplify" class="unstable">
<a href="ol.geom.Circle.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.Circle#transform" class="">
<a href="ol.geom.Circle.html#transform">transform</a>
</li>
<li data-name="ol.geom.Circle#translate" class="">
<a href="ol.geom.Circle.html#translate">translate</a>
</li>
<li data-name="ol.geom.Circle#un" class="">
<a href="ol.geom.Circle.html#un">un</a>
</li>
<li data-name="ol.geom.Circle#unByKey" class="">
<a href="ol.geom.Circle.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.Circle#unset" class="">
<a href="ol.geom.Circle.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.Geometry">
<span class="title">
<a href="ol.geom.Geometry.html">ol.geom.Geometry</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Geometry#changed" class="unstable">
<a href="ol.geom.Geometry.html#changed">changed</a>
</li>
<li data-name="ol.geom.Geometry#dispatchEvent" class="unstable">
<a href="ol.geom.Geometry.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.Geometry#get" class="">
<a href="ol.geom.Geometry.html#get">get</a>
</li>
<li data-name="ol.geom.Geometry#getClosestPoint" class="">
<a href="ol.geom.Geometry.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Geometry#getExtent" class="">
<a href="ol.geom.Geometry.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Geometry#getKeys" class="">
<a href="ol.geom.Geometry.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.Geometry#getProperties" class="">
<a href="ol.geom.Geometry.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.Geometry#getRevision" class="unstable">
<a href="ol.geom.Geometry.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Geometry#on" class="">
<a href="ol.geom.Geometry.html#on">on</a>
</li>
<li data-name="ol.geom.Geometry#once" class="">
<a href="ol.geom.Geometry.html#once">once</a>
</li>
<li data-name="ol.geom.Geometry#set" class="">
<a href="ol.geom.Geometry.html#set">set</a>
</li>
<li data-name="ol.geom.Geometry#setProperties" class="">
<a href="ol.geom.Geometry.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.Geometry#simplify" class="unstable">
<a href="ol.geom.Geometry.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.Geometry#transform" class="">
<a href="ol.geom.Geometry.html#transform">transform</a>
</li>
<li data-name="ol.geom.Geometry#un" class="">
<a href="ol.geom.Geometry.html#un">un</a>
</li>
<li data-name="ol.geom.Geometry#unByKey" class="">
<a href="ol.geom.Geometry.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.Geometry#unset" class="">
<a href="ol.geom.Geometry.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.GeometryCollection">
<span class="title">
<a href="ol.geom.GeometryCollection.html">ol.geom.GeometryCollection</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.GeometryCollection#applyTransform" class="">
<a href="ol.geom.GeometryCollection.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.GeometryCollection#changed" class="unstable">
<a href="ol.geom.GeometryCollection.html#changed">changed</a>
</li>
<li data-name="ol.geom.GeometryCollection#clone" class="">
<a href="ol.geom.GeometryCollection.html#clone">clone</a>
</li>
<li data-name="ol.geom.GeometryCollection#dispatchEvent" class="unstable">
<a href="ol.geom.GeometryCollection.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.GeometryCollection#get" class="">
<a href="ol.geom.GeometryCollection.html#get">get</a>
</li>
<li data-name="ol.geom.GeometryCollection#getClosestPoint" class="">
<a href="ol.geom.GeometryCollection.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.GeometryCollection#getExtent" class="">
<a href="ol.geom.GeometryCollection.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.GeometryCollection#getGeometries" class="">
<a href="ol.geom.GeometryCollection.html#getGeometries">getGeometries</a>
</li>
<li data-name="ol.geom.GeometryCollection#getKeys" class="">
<a href="ol.geom.GeometryCollection.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.GeometryCollection#getProperties" class="">
<a href="ol.geom.GeometryCollection.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.GeometryCollection#getRevision" class="unstable">
<a href="ol.geom.GeometryCollection.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.GeometryCollection#getType" class="">
<a href="ol.geom.GeometryCollection.html#getType">getType</a>
</li>
<li data-name="ol.geom.GeometryCollection#intersectsExtent" class="">
<a href="ol.geom.GeometryCollection.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.GeometryCollection#on" class="">
<a href="ol.geom.GeometryCollection.html#on">on</a>
</li>
<li data-name="ol.geom.GeometryCollection#once" class="">
<a href="ol.geom.GeometryCollection.html#once">once</a>
</li>
<li data-name="ol.geom.GeometryCollection#set" class="">
<a href="ol.geom.GeometryCollection.html#set">set</a>
</li>
<li data-name="ol.geom.GeometryCollection#setGeometries" class="">
<a href="ol.geom.GeometryCollection.html#setGeometries">setGeometries</a>
</li>
<li data-name="ol.geom.GeometryCollection#setProperties" class="">
<a href="ol.geom.GeometryCollection.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.GeometryCollection#simplify" class="unstable">
<a href="ol.geom.GeometryCollection.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.GeometryCollection#transform" class="">
<a href="ol.geom.GeometryCollection.html#transform">transform</a>
</li>
<li data-name="ol.geom.GeometryCollection#translate" class="unstable">
<a href="ol.geom.GeometryCollection.html#translate">translate</a>
</li>
<li data-name="ol.geom.GeometryCollection#un" class="">
<a href="ol.geom.GeometryCollection.html#un">un</a>
</li>
<li data-name="ol.geom.GeometryCollection#unByKey" class="">
<a href="ol.geom.GeometryCollection.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.GeometryCollection#unset" class="">
<a href="ol.geom.GeometryCollection.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.LineString">
<span class="title">
<a href="ol.geom.LineString.html">ol.geom.LineString</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.LineString#appendCoordinate" class="">
<a href="ol.geom.LineString.html#appendCoordinate">appendCoordinate</a>
</li>
<li data-name="ol.geom.LineString#applyTransform" class="">
<a href="ol.geom.LineString.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.LineString#changed" class="unstable">
<a href="ol.geom.LineString.html#changed">changed</a>
</li>
<li data-name="ol.geom.LineString#clone" class="">
<a href="ol.geom.LineString.html#clone">clone</a>
</li>
<li data-name="ol.geom.LineString#dispatchEvent" class="unstable">
<a href="ol.geom.LineString.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.LineString#forEachSegment" class="unstable">
<a href="ol.geom.LineString.html#forEachSegment">forEachSegment</a>
</li>
<li data-name="ol.geom.LineString#get" class="">
<a href="ol.geom.LineString.html#get">get</a>
</li>
<li data-name="ol.geom.LineString#getClosestPoint" class="">
<a href="ol.geom.LineString.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.LineString#getCoordinateAtM" class="">
<a href="ol.geom.LineString.html#getCoordinateAtM">getCoordinateAtM</a>
</li>
<li data-name="ol.geom.LineString#getCoordinates" class="">
<a href="ol.geom.LineString.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.LineString#getExtent" class="">
<a href="ol.geom.LineString.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.LineString#getFirstCoordinate" class="">
<a href="ol.geom.LineString.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.LineString#getKeys" class="">
<a href="ol.geom.LineString.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.LineString#getLastCoordinate" class="">
<a href="ol.geom.LineString.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.LineString#getLayout" class="">
<a href="ol.geom.LineString.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.LineString#getLength" class="">
<a href="ol.geom.LineString.html#getLength">getLength</a>
</li>
<li data-name="ol.geom.LineString#getProperties" class="">
<a href="ol.geom.LineString.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.LineString#getRevision" class="unstable">
<a href="ol.geom.LineString.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.LineString#getType" class="">
<a href="ol.geom.LineString.html#getType">getType</a>
</li>
<li data-name="ol.geom.LineString#intersectsExtent" class="">
<a href="ol.geom.LineString.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.LineString#on" class="">
<a href="ol.geom.LineString.html#on">on</a>
</li>
<li data-name="ol.geom.LineString#once" class="">
<a href="ol.geom.LineString.html#once">once</a>
</li>
<li data-name="ol.geom.LineString#set" class="">
<a href="ol.geom.LineString.html#set">set</a>
</li>
<li data-name="ol.geom.LineString#setCoordinates" class="">
<a href="ol.geom.LineString.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.LineString#setProperties" class="">
<a href="ol.geom.LineString.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.LineString#simplify" class="unstable">
<a href="ol.geom.LineString.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.LineString#transform" class="">
<a href="ol.geom.LineString.html#transform">transform</a>
</li>
<li data-name="ol.geom.LineString#translate" class="">
<a href="ol.geom.LineString.html#translate">translate</a>
</li>
<li data-name="ol.geom.LineString#un" class="">
<a href="ol.geom.LineString.html#un">un</a>
</li>
<li data-name="ol.geom.LineString#unByKey" class="">
<a href="ol.geom.LineString.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.LineString#unset" class="">
<a href="ol.geom.LineString.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.LinearRing">
<span class="title">
<a href="ol.geom.LinearRing.html">ol.geom.LinearRing</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.LinearRing#applyTransform" class="">
<a href="ol.geom.LinearRing.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.LinearRing#changed" class="unstable">
<a href="ol.geom.LinearRing.html#changed">changed</a>
</li>
<li data-name="ol.geom.LinearRing#clone" class="">
<a href="ol.geom.LinearRing.html#clone">clone</a>
</li>
<li data-name="ol.geom.LinearRing#dispatchEvent" class="unstable">
<a href="ol.geom.LinearRing.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.LinearRing#get" class="">
<a href="ol.geom.LinearRing.html#get">get</a>
</li>
<li data-name="ol.geom.LinearRing#getArea" class="">
<a href="ol.geom.LinearRing.html#getArea">getArea</a>
</li>
<li data-name="ol.geom.LinearRing#getClosestPoint" class="">
<a href="ol.geom.LinearRing.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.LinearRing#getCoordinates" class="">
<a href="ol.geom.LinearRing.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.LinearRing#getExtent" class="">
<a href="ol.geom.LinearRing.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.LinearRing#getFirstCoordinate" class="">
<a href="ol.geom.LinearRing.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.LinearRing#getKeys" class="">
<a href="ol.geom.LinearRing.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.LinearRing#getLastCoordinate" class="">
<a href="ol.geom.LinearRing.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.LinearRing#getLayout" class="">
<a href="ol.geom.LinearRing.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.LinearRing#getProperties" class="">
<a href="ol.geom.LinearRing.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.LinearRing#getRevision" class="unstable">
<a href="ol.geom.LinearRing.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.LinearRing#getType" class="">
<a href="ol.geom.LinearRing.html#getType">getType</a>
</li>
<li data-name="ol.geom.LinearRing#on" class="">
<a href="ol.geom.LinearRing.html#on">on</a>
</li>
<li data-name="ol.geom.LinearRing#once" class="">
<a href="ol.geom.LinearRing.html#once">once</a>
</li>
<li data-name="ol.geom.LinearRing#set" class="">
<a href="ol.geom.LinearRing.html#set">set</a>
</li>
<li data-name="ol.geom.LinearRing#setCoordinates" class="">
<a href="ol.geom.LinearRing.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.LinearRing#setProperties" class="">
<a href="ol.geom.LinearRing.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.LinearRing#simplify" class="unstable">
<a href="ol.geom.LinearRing.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.LinearRing#transform" class="">
<a href="ol.geom.LinearRing.html#transform">transform</a>
</li>
<li data-name="ol.geom.LinearRing#translate" class="">
<a href="ol.geom.LinearRing.html#translate">translate</a>
</li>
<li data-name="ol.geom.LinearRing#un" class="">
<a href="ol.geom.LinearRing.html#un">un</a>
</li>
<li data-name="ol.geom.LinearRing#unByKey" class="">
<a href="ol.geom.LinearRing.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.LinearRing#unset" class="">
<a href="ol.geom.LinearRing.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.MultiLineString">
<span class="title">
<a href="ol.geom.MultiLineString.html">ol.geom.MultiLineString</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.MultiLineString#appendLineString" class="">
<a href="ol.geom.MultiLineString.html#appendLineString">appendLineString</a>
</li>
<li data-name="ol.geom.MultiLineString#applyTransform" class="">
<a href="ol.geom.MultiLineString.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.MultiLineString#changed" class="unstable">
<a href="ol.geom.MultiLineString.html#changed">changed</a>
</li>
<li data-name="ol.geom.MultiLineString#clone" class="">
<a href="ol.geom.MultiLineString.html#clone">clone</a>
</li>
<li data-name="ol.geom.MultiLineString#dispatchEvent" class="unstable">
<a href="ol.geom.MultiLineString.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.MultiLineString#get" class="">
<a href="ol.geom.MultiLineString.html#get">get</a>
</li>
<li data-name="ol.geom.MultiLineString#getClosestPoint" class="">
<a href="ol.geom.MultiLineString.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.MultiLineString#getCoordinateAtM" class="">
<a href="ol.geom.MultiLineString.html#getCoordinateAtM">getCoordinateAtM</a>
</li>
<li data-name="ol.geom.MultiLineString#getCoordinates" class="">
<a href="ol.geom.MultiLineString.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.MultiLineString#getExtent" class="">
<a href="ol.geom.MultiLineString.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.MultiLineString#getFirstCoordinate" class="">
<a href="ol.geom.MultiLineString.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.MultiLineString#getKeys" class="">
<a href="ol.geom.MultiLineString.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.MultiLineString#getLastCoordinate" class="">
<a href="ol.geom.MultiLineString.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.MultiLineString#getLayout" class="">
<a href="ol.geom.MultiLineString.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.MultiLineString#getLineString" class="">
<a href="ol.geom.MultiLineString.html#getLineString">getLineString</a>
</li>
<li data-name="ol.geom.MultiLineString#getLineStrings" class="">
<a href="ol.geom.MultiLineString.html#getLineStrings">getLineStrings</a>
</li>
<li data-name="ol.geom.MultiLineString#getProperties" class="">
<a href="ol.geom.MultiLineString.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.MultiLineString#getRevision" class="unstable">
<a href="ol.geom.MultiLineString.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.MultiLineString#getType" class="">
<a href="ol.geom.MultiLineString.html#getType">getType</a>
</li>
<li data-name="ol.geom.MultiLineString#intersectsExtent" class="">
<a href="ol.geom.MultiLineString.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.MultiLineString#on" class="">
<a href="ol.geom.MultiLineString.html#on">on</a>
</li>
<li data-name="ol.geom.MultiLineString#once" class="">
<a href="ol.geom.MultiLineString.html#once">once</a>
</li>
<li data-name="ol.geom.MultiLineString#set" class="">
<a href="ol.geom.MultiLineString.html#set">set</a>
</li>
<li data-name="ol.geom.MultiLineString#setCoordinates" class="">
<a href="ol.geom.MultiLineString.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.MultiLineString#setProperties" class="">
<a href="ol.geom.MultiLineString.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.MultiLineString#simplify" class="unstable">
<a href="ol.geom.MultiLineString.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.MultiLineString#transform" class="">
<a href="ol.geom.MultiLineString.html#transform">transform</a>
</li>
<li data-name="ol.geom.MultiLineString#translate" class="">
<a href="ol.geom.MultiLineString.html#translate">translate</a>
</li>
<li data-name="ol.geom.MultiLineString#un" class="">
<a href="ol.geom.MultiLineString.html#un">un</a>
</li>
<li data-name="ol.geom.MultiLineString#unByKey" class="">
<a href="ol.geom.MultiLineString.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.MultiLineString#unset" class="">
<a href="ol.geom.MultiLineString.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.MultiPoint">
<span class="title">
<a href="ol.geom.MultiPoint.html">ol.geom.MultiPoint</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.MultiPoint#appendPoint" class="">
<a href="ol.geom.MultiPoint.html#appendPoint">appendPoint</a>
</li>
<li data-name="ol.geom.MultiPoint#applyTransform" class="">
<a href="ol.geom.MultiPoint.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.MultiPoint#changed" class="unstable">
<a href="ol.geom.MultiPoint.html#changed">changed</a>
</li>
<li data-name="ol.geom.MultiPoint#clone" class="">
<a href="ol.geom.MultiPoint.html#clone">clone</a>
</li>
<li data-name="ol.geom.MultiPoint#dispatchEvent" class="unstable">
<a href="ol.geom.MultiPoint.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.MultiPoint#get" class="">
<a href="ol.geom.MultiPoint.html#get">get</a>
</li>
<li data-name="ol.geom.MultiPoint#getClosestPoint" class="">
<a href="ol.geom.MultiPoint.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.MultiPoint#getCoordinates" class="">
<a href="ol.geom.MultiPoint.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.MultiPoint#getExtent" class="">
<a href="ol.geom.MultiPoint.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.MultiPoint#getFirstCoordinate" class="">
<a href="ol.geom.MultiPoint.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.MultiPoint#getKeys" class="">
<a href="ol.geom.MultiPoint.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.MultiPoint#getLastCoordinate" class="">
<a href="ol.geom.MultiPoint.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.MultiPoint#getLayout" class="">
<a href="ol.geom.MultiPoint.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.MultiPoint#getPoint" class="">
<a href="ol.geom.MultiPoint.html#getPoint">getPoint</a>
</li>
<li data-name="ol.geom.MultiPoint#getPoints" class="">
<a href="ol.geom.MultiPoint.html#getPoints">getPoints</a>
</li>
<li data-name="ol.geom.MultiPoint#getProperties" class="">
<a href="ol.geom.MultiPoint.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.MultiPoint#getRevision" class="unstable">
<a href="ol.geom.MultiPoint.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.MultiPoint#getType" class="">
<a href="ol.geom.MultiPoint.html#getType">getType</a>
</li>
<li data-name="ol.geom.MultiPoint#intersectsExtent" class="">
<a href="ol.geom.MultiPoint.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.MultiPoint#on" class="">
<a href="ol.geom.MultiPoint.html#on">on</a>
</li>
<li data-name="ol.geom.MultiPoint#once" class="">
<a href="ol.geom.MultiPoint.html#once">once</a>
</li>
<li data-name="ol.geom.MultiPoint#set" class="">
<a href="ol.geom.MultiPoint.html#set">set</a>
</li>
<li data-name="ol.geom.MultiPoint#setCoordinates" class="">
<a href="ol.geom.MultiPoint.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.MultiPoint#setProperties" class="">
<a href="ol.geom.MultiPoint.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.MultiPoint#simplify" class="unstable">
<a href="ol.geom.MultiPoint.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.MultiPoint#transform" class="">
<a href="ol.geom.MultiPoint.html#transform">transform</a>
</li>
<li data-name="ol.geom.MultiPoint#translate" class="">
<a href="ol.geom.MultiPoint.html#translate">translate</a>
</li>
<li data-name="ol.geom.MultiPoint#un" class="">
<a href="ol.geom.MultiPoint.html#un">un</a>
</li>
<li data-name="ol.geom.MultiPoint#unByKey" class="">
<a href="ol.geom.MultiPoint.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.MultiPoint#unset" class="">
<a href="ol.geom.MultiPoint.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.MultiPolygon">
<span class="title">
<a href="ol.geom.MultiPolygon.html">ol.geom.MultiPolygon</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.MultiPolygon#appendPolygon" class="">
<a href="ol.geom.MultiPolygon.html#appendPolygon">appendPolygon</a>
</li>
<li data-name="ol.geom.MultiPolygon#applyTransform" class="">
<a href="ol.geom.MultiPolygon.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.MultiPolygon#changed" class="unstable">
<a href="ol.geom.MultiPolygon.html#changed">changed</a>
</li>
<li data-name="ol.geom.MultiPolygon#clone" class="">
<a href="ol.geom.MultiPolygon.html#clone">clone</a>
</li>
<li data-name="ol.geom.MultiPolygon#dispatchEvent" class="unstable">
<a href="ol.geom.MultiPolygon.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.MultiPolygon#get" class="">
<a href="ol.geom.MultiPolygon.html#get">get</a>
</li>
<li data-name="ol.geom.MultiPolygon#getArea" class="">
<a href="ol.geom.MultiPolygon.html#getArea">getArea</a>
</li>
<li data-name="ol.geom.MultiPolygon#getClosestPoint" class="">
<a href="ol.geom.MultiPolygon.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.MultiPolygon#getCoordinates" class="">
<a href="ol.geom.MultiPolygon.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.MultiPolygon#getExtent" class="">
<a href="ol.geom.MultiPolygon.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.MultiPolygon#getFirstCoordinate" class="">
<a href="ol.geom.MultiPolygon.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.MultiPolygon#getInteriorPoints" class="">
<a href="ol.geom.MultiPolygon.html#getInteriorPoints">getInteriorPoints</a>
</li>
<li data-name="ol.geom.MultiPolygon#getKeys" class="">
<a href="ol.geom.MultiPolygon.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.MultiPolygon#getLastCoordinate" class="">
<a href="ol.geom.MultiPolygon.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.MultiPolygon#getLayout" class="">
<a href="ol.geom.MultiPolygon.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.MultiPolygon#getPolygon" class="">
<a href="ol.geom.MultiPolygon.html#getPolygon">getPolygon</a>
</li>
<li data-name="ol.geom.MultiPolygon#getPolygons" class="">
<a href="ol.geom.MultiPolygon.html#getPolygons">getPolygons</a>
</li>
<li data-name="ol.geom.MultiPolygon#getProperties" class="">
<a href="ol.geom.MultiPolygon.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.MultiPolygon#getRevision" class="unstable">
<a href="ol.geom.MultiPolygon.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.MultiPolygon#getType" class="">
<a href="ol.geom.MultiPolygon.html#getType">getType</a>
</li>
<li data-name="ol.geom.MultiPolygon#intersectsExtent" class="">
<a href="ol.geom.MultiPolygon.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.MultiPolygon#on" class="">
<a href="ol.geom.MultiPolygon.html#on">on</a>
</li>
<li data-name="ol.geom.MultiPolygon#once" class="">
<a href="ol.geom.MultiPolygon.html#once">once</a>
</li>
<li data-name="ol.geom.MultiPolygon#set" class="">
<a href="ol.geom.MultiPolygon.html#set">set</a>
</li>
<li data-name="ol.geom.MultiPolygon#setCoordinates" class="">
<a href="ol.geom.MultiPolygon.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.MultiPolygon#setProperties" class="">
<a href="ol.geom.MultiPolygon.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.MultiPolygon#simplify" class="unstable">
<a href="ol.geom.MultiPolygon.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.MultiPolygon#transform" class="">
<a href="ol.geom.MultiPolygon.html#transform">transform</a>
</li>
<li data-name="ol.geom.MultiPolygon#translate" class="">
<a href="ol.geom.MultiPolygon.html#translate">translate</a>
</li>
<li data-name="ol.geom.MultiPolygon#un" class="">
<a href="ol.geom.MultiPolygon.html#un">un</a>
</li>
<li data-name="ol.geom.MultiPolygon#unByKey" class="">
<a href="ol.geom.MultiPolygon.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.MultiPolygon#unset" class="">
<a href="ol.geom.MultiPolygon.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.Point">
<span class="title">
<a href="ol.geom.Point.html">ol.geom.Point</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Point#applyTransform" class="">
<a href="ol.geom.Point.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.Point#changed" class="unstable">
<a href="ol.geom.Point.html#changed">changed</a>
</li>
<li data-name="ol.geom.Point#clone" class="">
<a href="ol.geom.Point.html#clone">clone</a>
</li>
<li data-name="ol.geom.Point#dispatchEvent" class="unstable">
<a href="ol.geom.Point.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.Point#get" class="">
<a href="ol.geom.Point.html#get">get</a>
</li>
<li data-name="ol.geom.Point#getClosestPoint" class="">
<a href="ol.geom.Point.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Point#getCoordinates" class="">
<a href="ol.geom.Point.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.Point#getExtent" class="">
<a href="ol.geom.Point.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Point#getFirstCoordinate" class="">
<a href="ol.geom.Point.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.Point#getKeys" class="">
<a href="ol.geom.Point.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.Point#getLastCoordinate" class="">
<a href="ol.geom.Point.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.Point#getLayout" class="">
<a href="ol.geom.Point.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.Point#getProperties" class="">
<a href="ol.geom.Point.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.Point#getRevision" class="unstable">
<a href="ol.geom.Point.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Point#getType" class="">
<a href="ol.geom.Point.html#getType">getType</a>
</li>
<li data-name="ol.geom.Point#intersectsExtent" class="">
<a href="ol.geom.Point.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.Point#on" class="">
<a href="ol.geom.Point.html#on">on</a>
</li>
<li data-name="ol.geom.Point#once" class="">
<a href="ol.geom.Point.html#once">once</a>
</li>
<li data-name="ol.geom.Point#set" class="">
<a href="ol.geom.Point.html#set">set</a>
</li>
<li data-name="ol.geom.Point#setCoordinates" class="">
<a href="ol.geom.Point.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.Point#setProperties" class="">
<a href="ol.geom.Point.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.Point#simplify" class="unstable">
<a href="ol.geom.Point.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.Point#transform" class="">
<a href="ol.geom.Point.html#transform">transform</a>
</li>
<li data-name="ol.geom.Point#translate" class="">
<a href="ol.geom.Point.html#translate">translate</a>
</li>
<li data-name="ol.geom.Point#un" class="">
<a href="ol.geom.Point.html#un">un</a>
</li>
<li data-name="ol.geom.Point#unByKey" class="">
<a href="ol.geom.Point.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.Point#unset" class="">
<a href="ol.geom.Point.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.Polygon">
<span class="title">
<a href="ol.geom.Polygon.html">ol.geom.Polygon</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.Polygon.circular" class="">
<a href="ol.geom.Polygon.html#.circular">circular</a>
</li>
<li data-name="ol.geom.Polygon.fromCircle" class="unstable">
<a href="ol.geom.Polygon.html#.fromCircle">fromCircle</a>
</li>
<li data-name="ol.geom.Polygon.fromExtent" class="unstable">
<a href="ol.geom.Polygon.html#.fromExtent">fromExtent</a>
</li>
<li data-name="ol.geom.Polygon#appendLinearRing" class="">
<a href="ol.geom.Polygon.html#appendLinearRing">appendLinearRing</a>
</li>
<li data-name="ol.geom.Polygon#applyTransform" class="">
<a href="ol.geom.Polygon.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.Polygon#changed" class="unstable">
<a href="ol.geom.Polygon.html#changed">changed</a>
</li>
<li data-name="ol.geom.Polygon#clone" class="">
<a href="ol.geom.Polygon.html#clone">clone</a>
</li>
<li data-name="ol.geom.Polygon#dispatchEvent" class="unstable">
<a href="ol.geom.Polygon.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.Polygon#get" class="">
<a href="ol.geom.Polygon.html#get">get</a>
</li>
<li data-name="ol.geom.Polygon#getArea" class="">
<a href="ol.geom.Polygon.html#getArea">getArea</a>
</li>
<li data-name="ol.geom.Polygon#getClosestPoint" class="">
<a href="ol.geom.Polygon.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.Polygon#getCoordinates" class="">
<a href="ol.geom.Polygon.html#getCoordinates">getCoordinates</a>
</li>
<li data-name="ol.geom.Polygon#getExtent" class="">
<a href="ol.geom.Polygon.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.Polygon#getFirstCoordinate" class="">
<a href="ol.geom.Polygon.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.Polygon#getInteriorPoint" class="">
<a href="ol.geom.Polygon.html#getInteriorPoint">getInteriorPoint</a>
</li>
<li data-name="ol.geom.Polygon#getKeys" class="">
<a href="ol.geom.Polygon.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.Polygon#getLastCoordinate" class="">
<a href="ol.geom.Polygon.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.Polygon#getLayout" class="">
<a href="ol.geom.Polygon.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.Polygon#getLinearRing" class="">
<a href="ol.geom.Polygon.html#getLinearRing">getLinearRing</a>
</li>
<li data-name="ol.geom.Polygon#getLinearRingCount" class="unstable">
<a href="ol.geom.Polygon.html#getLinearRingCount">getLinearRingCount</a>
</li>
<li data-name="ol.geom.Polygon#getLinearRings" class="">
<a href="ol.geom.Polygon.html#getLinearRings">getLinearRings</a>
</li>
<li data-name="ol.geom.Polygon#getProperties" class="">
<a href="ol.geom.Polygon.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.Polygon#getRevision" class="unstable">
<a href="ol.geom.Polygon.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.Polygon#getType" class="">
<a href="ol.geom.Polygon.html#getType">getType</a>
</li>
<li data-name="ol.geom.Polygon#intersectsExtent" class="">
<a href="ol.geom.Polygon.html#intersectsExtent">intersectsExtent</a>
</li>
<li data-name="ol.geom.Polygon#on" class="">
<a href="ol.geom.Polygon.html#on">on</a>
</li>
<li data-name="ol.geom.Polygon#once" class="">
<a href="ol.geom.Polygon.html#once">once</a>
</li>
<li data-name="ol.geom.Polygon#set" class="">
<a href="ol.geom.Polygon.html#set">set</a>
</li>
<li data-name="ol.geom.Polygon#setCoordinates" class="">
<a href="ol.geom.Polygon.html#setCoordinates">setCoordinates</a>
</li>
<li data-name="ol.geom.Polygon#setProperties" class="">
<a href="ol.geom.Polygon.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.Polygon#simplify" class="unstable">
<a href="ol.geom.Polygon.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.Polygon#transform" class="">
<a href="ol.geom.Polygon.html#transform">transform</a>
</li>
<li data-name="ol.geom.Polygon#translate" class="">
<a href="ol.geom.Polygon.html#translate">translate</a>
</li>
<li data-name="ol.geom.Polygon#un" class="">
<a href="ol.geom.Polygon.html#un">un</a>
</li>
<li data-name="ol.geom.Polygon#unByKey" class="">
<a href="ol.geom.Polygon.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.Polygon#unset" class="">
<a href="ol.geom.Polygon.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.geom.SimpleGeometry">
<span class="title">
<a href="ol.geom.SimpleGeometry.html">ol.geom.SimpleGeometry</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.geom.SimpleGeometry#applyTransform" class="">
<a href="ol.geom.SimpleGeometry.html#applyTransform">applyTransform</a>
</li>
<li data-name="ol.geom.SimpleGeometry#changed" class="unstable">
<a href="ol.geom.SimpleGeometry.html#changed">changed</a>
</li>
<li data-name="ol.geom.SimpleGeometry#dispatchEvent" class="unstable">
<a href="ol.geom.SimpleGeometry.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.geom.SimpleGeometry#get" class="">
<a href="ol.geom.SimpleGeometry.html#get">get</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getClosestPoint" class="">
<a href="ol.geom.SimpleGeometry.html#getClosestPoint">getClosestPoint</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getExtent" class="">
<a href="ol.geom.SimpleGeometry.html#getExtent">getExtent</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getFirstCoordinate" class="">
<a href="ol.geom.SimpleGeometry.html#getFirstCoordinate">getFirstCoordinate</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getKeys" class="">
<a href="ol.geom.SimpleGeometry.html#getKeys">getKeys</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getLastCoordinate" class="">
<a href="ol.geom.SimpleGeometry.html#getLastCoordinate">getLastCoordinate</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getLayout" class="">
<a href="ol.geom.SimpleGeometry.html#getLayout">getLayout</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getProperties" class="">
<a href="ol.geom.SimpleGeometry.html#getProperties">getProperties</a>
</li>
<li data-name="ol.geom.SimpleGeometry#getRevision" class="unstable">
<a href="ol.geom.SimpleGeometry.html#getRevision">getRevision</a>
</li>
<li data-name="ol.geom.SimpleGeometry#on" class="">
<a href="ol.geom.SimpleGeometry.html#on">on</a>
</li>
<li data-name="ol.geom.SimpleGeometry#once" class="">
<a href="ol.geom.SimpleGeometry.html#once">once</a>
</li>
<li data-name="ol.geom.SimpleGeometry#set" class="">
<a href="ol.geom.SimpleGeometry.html#set">set</a>
</li>
<li data-name="ol.geom.SimpleGeometry#setProperties" class="">
<a href="ol.geom.SimpleGeometry.html#setProperties">setProperties</a>
</li>
<li data-name="ol.geom.SimpleGeometry#simplify" class="unstable">
<a href="ol.geom.SimpleGeometry.html#simplify">simplify</a>
</li>
<li data-name="ol.geom.SimpleGeometry#transform" class="">
<a href="ol.geom.SimpleGeometry.html#transform">transform</a>
</li>
<li data-name="ol.geom.SimpleGeometry#translate" class="">
<a href="ol.geom.SimpleGeometry.html#translate">translate</a>
</li>
<li data-name="ol.geom.SimpleGeometry#un" class="">
<a href="ol.geom.SimpleGeometry.html#un">un</a>
</li>
<li data-name="ol.geom.SimpleGeometry#unByKey" class="">
<a href="ol.geom.SimpleGeometry.html#unByKey">unByKey</a>
</li>
<li data-name="ol.geom.SimpleGeometry#unset" class="">
<a href="ol.geom.SimpleGeometry.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.has">
<span class="title">
<a href="ol.has.html">ol.has</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.has.CANVAS"><a href="ol.has.html#.CANVAS">CANVAS</a></li>
<li data-name="ol.has.DEVICE_ORIENTATION"><a href="ol.has.html#.DEVICE_ORIENTATION">DEVICE_ORIENTATION</a></li>
<li data-name="ol.has.DEVICE_PIXEL_RATIO"><a href="ol.has.html#.DEVICE_PIXEL_RATIO">DEVICE_PIXEL_RATIO</a></li>
<li data-name="ol.has.GEOLOCATION"><a href="ol.has.html#.GEOLOCATION">GEOLOCATION</a></li>
<li data-name="ol.has.TOUCH"><a href="ol.has.html#.TOUCH">TOUCH</a></li>
<li data-name="ol.has.WEBGL"><a href="ol.has.html#.WEBGL">WEBGL</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction">
<span class="title">
<a href="ol.interaction.html">ol.interaction</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.interaction.DrawGeometryFunctionType" class="unstable">
<a href="ol.interaction.html#.DrawGeometryFunctionType">DrawGeometryFunctionType</a>
</li>
<li data-name="ol.interaction.SelectFilterFunction" class="unstable">
<a href="ol.interaction.html#.SelectFilterFunction">SelectFilterFunction</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.defaults" class="">
<a href="ol.interaction.html#.defaults">defaults</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction.DoubleClickZoom">
<span class="title">
<a href="ol.interaction.DoubleClickZoom.html">ol.interaction.DoubleClickZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DoubleClickZoom.handleEvent" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#changed" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#dispatchEvent" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#get" class="">
<a href="ol.interaction.DoubleClickZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getActive" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getKeys" class="">
<a href="ol.interaction.DoubleClickZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getProperties" class="">
<a href="ol.interaction.DoubleClickZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#getRevision" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#on" class="">
<a href="ol.interaction.DoubleClickZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#once" class="">
<a href="ol.interaction.DoubleClickZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#set" class="">
<a href="ol.interaction.DoubleClickZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#setActive" class="unstable">
<a href="ol.interaction.DoubleClickZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#setProperties" class="">
<a href="ol.interaction.DoubleClickZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#un" class="">
<a href="ol.interaction.DoubleClickZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#unByKey" class="">
<a href="ol.interaction.DoubleClickZoom.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.DoubleClickZoom#unset" class="">
<a href="ol.interaction.DoubleClickZoom.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragAndDrop">
<span class="title">
<a href="ol.interaction.DragAndDrop.html">ol.interaction.DragAndDrop</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.DragAndDrop.handleEvent"><a href="ol.interaction.DragAndDrop.html#.handleEvent">handleEvent</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragAndDrop#changed" class="unstable">
<a href="ol.interaction.DragAndDrop.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragAndDrop#dispatchEvent" class="unstable">
<a href="ol.interaction.DragAndDrop.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.DragAndDrop#get" class="">
<a href="ol.interaction.DragAndDrop.html#get">get</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getActive" class="unstable">
<a href="ol.interaction.DragAndDrop.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getKeys" class="">
<a href="ol.interaction.DragAndDrop.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getProperties" class="">
<a href="ol.interaction.DragAndDrop.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragAndDrop#getRevision" class="unstable">
<a href="ol.interaction.DragAndDrop.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragAndDrop#on" class="">
<a href="ol.interaction.DragAndDrop.html#on">on</a>
</li>
<li data-name="ol.interaction.DragAndDrop#once" class="">
<a href="ol.interaction.DragAndDrop.html#once">once</a>
</li>
<li data-name="ol.interaction.DragAndDrop#set" class="">
<a href="ol.interaction.DragAndDrop.html#set">set</a>
</li>
<li data-name="ol.interaction.DragAndDrop#setActive" class="unstable">
<a href="ol.interaction.DragAndDrop.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragAndDrop#setProperties" class="">
<a href="ol.interaction.DragAndDrop.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragAndDrop#un" class="">
<a href="ol.interaction.DragAndDrop.html#un">un</a>
</li>
<li data-name="ol.interaction.DragAndDrop#unByKey" class="">
<a href="ol.interaction.DragAndDrop.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.DragAndDrop#unset" class="">
<a href="ol.interaction.DragAndDrop.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.interaction.DragAndDropEvent#event:addfeatures" class="">
<a href="ol.interaction.DragAndDropEvent.html#event:addfeatures">addfeatures</a>
</li>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragAndDropEvent">
<span class="title">
<a href="ol.interaction.DragAndDropEvent.html">ol.interaction.DragAndDropEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.DragAndDropEvent#features"><a href="ol.interaction.DragAndDropEvent.html#features">features</a></li>
<li data-name="ol.interaction.DragAndDropEvent#file"><a href="ol.interaction.DragAndDropEvent.html#file">file</a></li>
<li data-name="ol.interaction.DragAndDropEvent#projection"><a href="ol.interaction.DragAndDropEvent.html#projection">projection</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction.DragBox">
<span class="title">
<a href="ol.interaction.DragBox.html">ol.interaction.DragBox</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragBox#changed" class="unstable">
<a href="ol.interaction.DragBox.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragBox#dispatchEvent" class="unstable">
<a href="ol.interaction.DragBox.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.DragBox#get" class="">
<a href="ol.interaction.DragBox.html#get">get</a>
</li>
<li data-name="ol.interaction.DragBox#getActive" class="unstable">
<a href="ol.interaction.DragBox.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragBox#getGeometry" class="">
<a href="ol.interaction.DragBox.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.interaction.DragBox#getKeys" class="">
<a href="ol.interaction.DragBox.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragBox#getProperties" class="">
<a href="ol.interaction.DragBox.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragBox#getRevision" class="unstable">
<a href="ol.interaction.DragBox.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragBox#on" class="">
<a href="ol.interaction.DragBox.html#on">on</a>
</li>
<li data-name="ol.interaction.DragBox#once" class="">
<a href="ol.interaction.DragBox.html#once">once</a>
</li>
<li data-name="ol.interaction.DragBox#set" class="">
<a href="ol.interaction.DragBox.html#set">set</a>
</li>
<li data-name="ol.interaction.DragBox#setActive" class="unstable">
<a href="ol.interaction.DragBox.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragBox#setProperties" class="">
<a href="ol.interaction.DragBox.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragBox#un" class="">
<a href="ol.interaction.DragBox.html#un">un</a>
</li>
<li data-name="ol.interaction.DragBox#unByKey" class="">
<a href="ol.interaction.DragBox.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.DragBox#unset" class="">
<a href="ol.interaction.DragBox.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.DragBoxEvent#event:boxend" class="">
<a href="ol.DragBoxEvent.html#event:boxend">boxend</a>
</li>
<li data-name="ol.DragBoxEvent#event:boxstart" class="">
<a href="ol.DragBoxEvent.html#event:boxstart">boxstart</a>
</li>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragPan">
<span class="title">
<a href="ol.interaction.DragPan.html">ol.interaction.DragPan</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragPan#changed" class="unstable">
<a href="ol.interaction.DragPan.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragPan#dispatchEvent" class="unstable">
<a href="ol.interaction.DragPan.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.DragPan#get" class="">
<a href="ol.interaction.DragPan.html#get">get</a>
</li>
<li data-name="ol.interaction.DragPan#getActive" class="unstable">
<a href="ol.interaction.DragPan.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragPan#getKeys" class="">
<a href="ol.interaction.DragPan.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragPan#getProperties" class="">
<a href="ol.interaction.DragPan.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragPan#getRevision" class="unstable">
<a href="ol.interaction.DragPan.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragPan#on" class="">
<a href="ol.interaction.DragPan.html#on">on</a>
</li>
<li data-name="ol.interaction.DragPan#once" class="">
<a href="ol.interaction.DragPan.html#once">once</a>
</li>
<li data-name="ol.interaction.DragPan#set" class="">
<a href="ol.interaction.DragPan.html#set">set</a>
</li>
<li data-name="ol.interaction.DragPan#setActive" class="unstable">
<a href="ol.interaction.DragPan.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragPan#setProperties" class="">
<a href="ol.interaction.DragPan.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragPan#un" class="">
<a href="ol.interaction.DragPan.html#un">un</a>
</li>
<li data-name="ol.interaction.DragPan#unByKey" class="">
<a href="ol.interaction.DragPan.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.DragPan#unset" class="">
<a href="ol.interaction.DragPan.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragRotate">
<span class="title">
<a href="ol.interaction.DragRotate.html">ol.interaction.DragRotate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragRotate#changed" class="unstable">
<a href="ol.interaction.DragRotate.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragRotate#dispatchEvent" class="unstable">
<a href="ol.interaction.DragRotate.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.DragRotate#get" class="">
<a href="ol.interaction.DragRotate.html#get">get</a>
</li>
<li data-name="ol.interaction.DragRotate#getActive" class="unstable">
<a href="ol.interaction.DragRotate.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragRotate#getKeys" class="">
<a href="ol.interaction.DragRotate.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragRotate#getProperties" class="">
<a href="ol.interaction.DragRotate.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragRotate#getRevision" class="unstable">
<a href="ol.interaction.DragRotate.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragRotate#on" class="">
<a href="ol.interaction.DragRotate.html#on">on</a>
</li>
<li data-name="ol.interaction.DragRotate#once" class="">
<a href="ol.interaction.DragRotate.html#once">once</a>
</li>
<li data-name="ol.interaction.DragRotate#set" class="">
<a href="ol.interaction.DragRotate.html#set">set</a>
</li>
<li data-name="ol.interaction.DragRotate#setActive" class="unstable">
<a href="ol.interaction.DragRotate.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragRotate#setProperties" class="">
<a href="ol.interaction.DragRotate.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragRotate#un" class="">
<a href="ol.interaction.DragRotate.html#un">un</a>
</li>
<li data-name="ol.interaction.DragRotate#unByKey" class="">
<a href="ol.interaction.DragRotate.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.DragRotate#unset" class="">
<a href="ol.interaction.DragRotate.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragRotateAndZoom">
<span class="title">
<a href="ol.interaction.DragRotateAndZoom.html">ol.interaction.DragRotateAndZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragRotateAndZoom#changed" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#dispatchEvent" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#get" class="">
<a href="ol.interaction.DragRotateAndZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getActive" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getKeys" class="">
<a href="ol.interaction.DragRotateAndZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getProperties" class="">
<a href="ol.interaction.DragRotateAndZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#getRevision" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#on" class="">
<a href="ol.interaction.DragRotateAndZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#once" class="">
<a href="ol.interaction.DragRotateAndZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#set" class="">
<a href="ol.interaction.DragRotateAndZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#setActive" class="unstable">
<a href="ol.interaction.DragRotateAndZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#setProperties" class="">
<a href="ol.interaction.DragRotateAndZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#un" class="">
<a href="ol.interaction.DragRotateAndZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#unByKey" class="">
<a href="ol.interaction.DragRotateAndZoom.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.DragRotateAndZoom#unset" class="">
<a href="ol.interaction.DragRotateAndZoom.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DragZoom">
<span class="title">
<a href="ol.interaction.DragZoom.html">ol.interaction.DragZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.DragZoom#changed" class="unstable">
<a href="ol.interaction.DragZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.DragZoom#dispatchEvent" class="unstable">
<a href="ol.interaction.DragZoom.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.DragZoom#get" class="">
<a href="ol.interaction.DragZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.DragZoom#getActive" class="unstable">
<a href="ol.interaction.DragZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.DragZoom#getGeometry" class="">
<a href="ol.interaction.DragZoom.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.interaction.DragZoom#getKeys" class="">
<a href="ol.interaction.DragZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.DragZoom#getProperties" class="">
<a href="ol.interaction.DragZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.DragZoom#getRevision" class="unstable">
<a href="ol.interaction.DragZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.DragZoom#on" class="">
<a href="ol.interaction.DragZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.DragZoom#once" class="">
<a href="ol.interaction.DragZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.DragZoom#set" class="">
<a href="ol.interaction.DragZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.DragZoom#setActive" class="unstable">
<a href="ol.interaction.DragZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.DragZoom#setProperties" class="">
<a href="ol.interaction.DragZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.DragZoom#un" class="">
<a href="ol.interaction.DragZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.DragZoom#unByKey" class="">
<a href="ol.interaction.DragZoom.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.DragZoom#unset" class="">
<a href="ol.interaction.DragZoom.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.DragBoxEvent#event:boxend" class="">
<a href="ol.DragBoxEvent.html#event:boxend">boxend</a>
</li>
<li data-name="ol.DragBoxEvent#event:boxstart" class="">
<a href="ol.DragBoxEvent.html#event:boxstart">boxstart</a>
</li>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Draw">
<span class="title">
<a href="ol.interaction.Draw.html">ol.interaction.Draw</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Draw.createRegularPolygon" class="unstable">
<a href="ol.interaction.Draw.html#.createRegularPolygon">createRegularPolygon</a>
</li>
<li data-name="ol.interaction.Draw.handleEvent" class="unstable">
<a href="ol.interaction.Draw.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Draw#changed" class="unstable">
<a href="ol.interaction.Draw.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Draw#dispatchEvent" class="unstable">
<a href="ol.interaction.Draw.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.Draw#extend" class="unstable">
<a href="ol.interaction.Draw.html#extend">extend</a>
</li>
<li data-name="ol.interaction.Draw#finishDrawing" class="unstable">
<a href="ol.interaction.Draw.html#finishDrawing">finishDrawing</a>
</li>
<li data-name="ol.interaction.Draw#get" class="">
<a href="ol.interaction.Draw.html#get">get</a>
</li>
<li data-name="ol.interaction.Draw#getActive" class="unstable">
<a href="ol.interaction.Draw.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Draw#getKeys" class="">
<a href="ol.interaction.Draw.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Draw#getProperties" class="">
<a href="ol.interaction.Draw.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Draw#getRevision" class="unstable">
<a href="ol.interaction.Draw.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Draw#on" class="">
<a href="ol.interaction.Draw.html#on">on</a>
</li>
<li data-name="ol.interaction.Draw#once" class="">
<a href="ol.interaction.Draw.html#once">once</a>
</li>
<li data-name="ol.interaction.Draw#removeLastPoint" class="unstable">
<a href="ol.interaction.Draw.html#removeLastPoint">removeLastPoint</a>
</li>
<li data-name="ol.interaction.Draw#set" class="">
<a href="ol.interaction.Draw.html#set">set</a>
</li>
<li data-name="ol.interaction.Draw#setActive" class="unstable">
<a href="ol.interaction.Draw.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Draw#setProperties" class="">
<a href="ol.interaction.Draw.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Draw#un" class="">
<a href="ol.interaction.Draw.html#un">un</a>
</li>
<li data-name="ol.interaction.Draw#unByKey" class="">
<a href="ol.interaction.Draw.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.Draw#unset" class="">
<a href="ol.interaction.Draw.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.interaction.DrawEvent#event:drawend" class="">
<a href="ol.interaction.DrawEvent.html#event:drawend">drawend</a>
</li>
<li data-name="ol.interaction.DrawEvent#event:drawstart" class="">
<a href="ol.interaction.DrawEvent.html#event:drawstart">drawstart</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.DrawEvent">
<span class="title">
<a href="ol.interaction.DrawEvent.html">ol.interaction.DrawEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.DrawEvent#feature"><a href="ol.interaction.DrawEvent.html#feature">feature</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction.Interaction">
<span class="title">
<a href="ol.interaction.Interaction.html">ol.interaction.Interaction</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Interaction#changed" class="unstable">
<a href="ol.interaction.Interaction.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Interaction#dispatchEvent" class="unstable">
<a href="ol.interaction.Interaction.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.Interaction#get" class="">
<a href="ol.interaction.Interaction.html#get">get</a>
</li>
<li data-name="ol.interaction.Interaction#getActive" class="unstable">
<a href="ol.interaction.Interaction.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Interaction#getKeys" class="">
<a href="ol.interaction.Interaction.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Interaction#getProperties" class="">
<a href="ol.interaction.Interaction.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Interaction#getRevision" class="unstable">
<a href="ol.interaction.Interaction.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Interaction#on" class="">
<a href="ol.interaction.Interaction.html#on">on</a>
</li>
<li data-name="ol.interaction.Interaction#once" class="">
<a href="ol.interaction.Interaction.html#once">once</a>
</li>
<li data-name="ol.interaction.Interaction#set" class="">
<a href="ol.interaction.Interaction.html#set">set</a>
</li>
<li data-name="ol.interaction.Interaction#setActive" class="unstable">
<a href="ol.interaction.Interaction.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Interaction#setProperties" class="">
<a href="ol.interaction.Interaction.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Interaction#un" class="">
<a href="ol.interaction.Interaction.html#un">un</a>
</li>
<li data-name="ol.interaction.Interaction#unByKey" class="">
<a href="ol.interaction.Interaction.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.Interaction#unset" class="">
<a href="ol.interaction.Interaction.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.KeyboardPan">
<span class="title">
<a href="ol.interaction.KeyboardPan.html">ol.interaction.KeyboardPan</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.KeyboardPan.handleEvent" class="unstable">
<a href="ol.interaction.KeyboardPan.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.KeyboardPan#changed" class="unstable">
<a href="ol.interaction.KeyboardPan.html#changed">changed</a>
</li>
<li data-name="ol.interaction.KeyboardPan#dispatchEvent" class="unstable">
<a href="ol.interaction.KeyboardPan.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.KeyboardPan#get" class="">
<a href="ol.interaction.KeyboardPan.html#get">get</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getActive" class="unstable">
<a href="ol.interaction.KeyboardPan.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getKeys" class="">
<a href="ol.interaction.KeyboardPan.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getProperties" class="">
<a href="ol.interaction.KeyboardPan.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.KeyboardPan#getRevision" class="unstable">
<a href="ol.interaction.KeyboardPan.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.KeyboardPan#on" class="">
<a href="ol.interaction.KeyboardPan.html#on">on</a>
</li>
<li data-name="ol.interaction.KeyboardPan#once" class="">
<a href="ol.interaction.KeyboardPan.html#once">once</a>
</li>
<li data-name="ol.interaction.KeyboardPan#set" class="">
<a href="ol.interaction.KeyboardPan.html#set">set</a>
</li>
<li data-name="ol.interaction.KeyboardPan#setActive" class="unstable">
<a href="ol.interaction.KeyboardPan.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.KeyboardPan#setProperties" class="">
<a href="ol.interaction.KeyboardPan.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.KeyboardPan#un" class="">
<a href="ol.interaction.KeyboardPan.html#un">un</a>
</li>
<li data-name="ol.interaction.KeyboardPan#unByKey" class="">
<a href="ol.interaction.KeyboardPan.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.KeyboardPan#unset" class="">
<a href="ol.interaction.KeyboardPan.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.KeyboardZoom">
<span class="title">
<a href="ol.interaction.KeyboardZoom.html">ol.interaction.KeyboardZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.KeyboardZoom.handleEvent" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#changed" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#dispatchEvent" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#get" class="">
<a href="ol.interaction.KeyboardZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getActive" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getKeys" class="">
<a href="ol.interaction.KeyboardZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getProperties" class="">
<a href="ol.interaction.KeyboardZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#getRevision" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#on" class="">
<a href="ol.interaction.KeyboardZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#once" class="">
<a href="ol.interaction.KeyboardZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#set" class="">
<a href="ol.interaction.KeyboardZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#setActive" class="unstable">
<a href="ol.interaction.KeyboardZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#setProperties" class="">
<a href="ol.interaction.KeyboardZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#un" class="">
<a href="ol.interaction.KeyboardZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#unByKey" class="">
<a href="ol.interaction.KeyboardZoom.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.KeyboardZoom#unset" class="">
<a href="ol.interaction.KeyboardZoom.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Modify">
<span class="title">
<a href="ol.interaction.Modify.html">ol.interaction.Modify</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Modify.handleEvent" class="unstable">
<a href="ol.interaction.Modify.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Modify#changed" class="unstable">
<a href="ol.interaction.Modify.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Modify#dispatchEvent" class="unstable">
<a href="ol.interaction.Modify.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.Modify#get" class="">
<a href="ol.interaction.Modify.html#get">get</a>
</li>
<li data-name="ol.interaction.Modify#getActive" class="unstable">
<a href="ol.interaction.Modify.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Modify#getKeys" class="">
<a href="ol.interaction.Modify.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Modify#getProperties" class="">
<a href="ol.interaction.Modify.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Modify#getRevision" class="unstable">
<a href="ol.interaction.Modify.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Modify#on" class="">
<a href="ol.interaction.Modify.html#on">on</a>
</li>
<li data-name="ol.interaction.Modify#once" class="">
<a href="ol.interaction.Modify.html#once">once</a>
</li>
<li data-name="ol.interaction.Modify#set" class="">
<a href="ol.interaction.Modify.html#set">set</a>
</li>
<li data-name="ol.interaction.Modify#setActive" class="unstable">
<a href="ol.interaction.Modify.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Modify#setProperties" class="">
<a href="ol.interaction.Modify.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Modify#un" class="">
<a href="ol.interaction.Modify.html#un">un</a>
</li>
<li data-name="ol.interaction.Modify#unByKey" class="">
<a href="ol.interaction.Modify.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.Modify#unset" class="">
<a href="ol.interaction.Modify.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.interaction.ModifyEvent#event:modifyend" class="unstable">
<a href="ol.interaction.ModifyEvent.html#event:modifyend">modifyend</a>
</li>
<li data-name="ol.interaction.ModifyEvent#event:modifystart" class="unstable">
<a href="ol.interaction.ModifyEvent.html#event:modifystart">modifystart</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.ModifyEvent">
<span class="title">
<a href="ol.interaction.ModifyEvent.html">ol.interaction.ModifyEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.ModifyEvent#features"><a href="ol.interaction.ModifyEvent.html#features">features</a></li>
<li data-name="ol.interaction.ModifyEvent#mapBrowserPointerEvent"><a href="ol.interaction.ModifyEvent.html#mapBrowserPointerEvent">mapBrowserPointerEvent</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction.MouseWheelZoom">
<span class="title">
<a href="ol.interaction.MouseWheelZoom.html">ol.interaction.MouseWheelZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.MouseWheelZoom.handleEvent" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#changed" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#dispatchEvent" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#get" class="">
<a href="ol.interaction.MouseWheelZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getActive" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getKeys" class="">
<a href="ol.interaction.MouseWheelZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getProperties" class="">
<a href="ol.interaction.MouseWheelZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#getRevision" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#on" class="">
<a href="ol.interaction.MouseWheelZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#once" class="">
<a href="ol.interaction.MouseWheelZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#set" class="">
<a href="ol.interaction.MouseWheelZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#setActive" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#setMouseAnchor" class="unstable">
<a href="ol.interaction.MouseWheelZoom.html#setMouseAnchor">setMouseAnchor</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#setProperties" class="">
<a href="ol.interaction.MouseWheelZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#un" class="">
<a href="ol.interaction.MouseWheelZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#unByKey" class="">
<a href="ol.interaction.MouseWheelZoom.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.MouseWheelZoom#unset" class="">
<a href="ol.interaction.MouseWheelZoom.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.PinchRotate">
<span class="title">
<a href="ol.interaction.PinchRotate.html">ol.interaction.PinchRotate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.PinchRotate#changed" class="unstable">
<a href="ol.interaction.PinchRotate.html#changed">changed</a>
</li>
<li data-name="ol.interaction.PinchRotate#dispatchEvent" class="unstable">
<a href="ol.interaction.PinchRotate.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.PinchRotate#get" class="">
<a href="ol.interaction.PinchRotate.html#get">get</a>
</li>
<li data-name="ol.interaction.PinchRotate#getActive" class="unstable">
<a href="ol.interaction.PinchRotate.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.PinchRotate#getKeys" class="">
<a href="ol.interaction.PinchRotate.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.PinchRotate#getProperties" class="">
<a href="ol.interaction.PinchRotate.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.PinchRotate#getRevision" class="unstable">
<a href="ol.interaction.PinchRotate.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.PinchRotate#on" class="">
<a href="ol.interaction.PinchRotate.html#on">on</a>
</li>
<li data-name="ol.interaction.PinchRotate#once" class="">
<a href="ol.interaction.PinchRotate.html#once">once</a>
</li>
<li data-name="ol.interaction.PinchRotate#set" class="">
<a href="ol.interaction.PinchRotate.html#set">set</a>
</li>
<li data-name="ol.interaction.PinchRotate#setActive" class="unstable">
<a href="ol.interaction.PinchRotate.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.PinchRotate#setProperties" class="">
<a href="ol.interaction.PinchRotate.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.PinchRotate#un" class="">
<a href="ol.interaction.PinchRotate.html#un">un</a>
</li>
<li data-name="ol.interaction.PinchRotate#unByKey" class="">
<a href="ol.interaction.PinchRotate.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.PinchRotate#unset" class="">
<a href="ol.interaction.PinchRotate.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.PinchZoom">
<span class="title">
<a href="ol.interaction.PinchZoom.html">ol.interaction.PinchZoom</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.PinchZoom#changed" class="unstable">
<a href="ol.interaction.PinchZoom.html#changed">changed</a>
</li>
<li data-name="ol.interaction.PinchZoom#dispatchEvent" class="unstable">
<a href="ol.interaction.PinchZoom.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.PinchZoom#get" class="">
<a href="ol.interaction.PinchZoom.html#get">get</a>
</li>
<li data-name="ol.interaction.PinchZoom#getActive" class="unstable">
<a href="ol.interaction.PinchZoom.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.PinchZoom#getKeys" class="">
<a href="ol.interaction.PinchZoom.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.PinchZoom#getProperties" class="">
<a href="ol.interaction.PinchZoom.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.PinchZoom#getRevision" class="unstable">
<a href="ol.interaction.PinchZoom.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.PinchZoom#on" class="">
<a href="ol.interaction.PinchZoom.html#on">on</a>
</li>
<li data-name="ol.interaction.PinchZoom#once" class="">
<a href="ol.interaction.PinchZoom.html#once">once</a>
</li>
<li data-name="ol.interaction.PinchZoom#set" class="">
<a href="ol.interaction.PinchZoom.html#set">set</a>
</li>
<li data-name="ol.interaction.PinchZoom#setActive" class="unstable">
<a href="ol.interaction.PinchZoom.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.PinchZoom#setProperties" class="">
<a href="ol.interaction.PinchZoom.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.PinchZoom#un" class="">
<a href="ol.interaction.PinchZoom.html#un">un</a>
</li>
<li data-name="ol.interaction.PinchZoom#unByKey" class="">
<a href="ol.interaction.PinchZoom.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.PinchZoom#unset" class="">
<a href="ol.interaction.PinchZoom.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Pointer">
<span class="title">
<a href="ol.interaction.Pointer.html">ol.interaction.Pointer</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Pointer.handleEvent" class="unstable">
<a href="ol.interaction.Pointer.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Pointer#changed" class="unstable">
<a href="ol.interaction.Pointer.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Pointer#dispatchEvent" class="unstable">
<a href="ol.interaction.Pointer.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.Pointer#get" class="">
<a href="ol.interaction.Pointer.html#get">get</a>
</li>
<li data-name="ol.interaction.Pointer#getActive" class="unstable">
<a href="ol.interaction.Pointer.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Pointer#getKeys" class="">
<a href="ol.interaction.Pointer.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Pointer#getProperties" class="">
<a href="ol.interaction.Pointer.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Pointer#getRevision" class="unstable">
<a href="ol.interaction.Pointer.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Pointer#on" class="">
<a href="ol.interaction.Pointer.html#on">on</a>
</li>
<li data-name="ol.interaction.Pointer#once" class="">
<a href="ol.interaction.Pointer.html#once">once</a>
</li>
<li data-name="ol.interaction.Pointer#set" class="">
<a href="ol.interaction.Pointer.html#set">set</a>
</li>
<li data-name="ol.interaction.Pointer#setActive" class="unstable">
<a href="ol.interaction.Pointer.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Pointer#setProperties" class="">
<a href="ol.interaction.Pointer.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Pointer#un" class="">
<a href="ol.interaction.Pointer.html#un">un</a>
</li>
<li data-name="ol.interaction.Pointer#unByKey" class="">
<a href="ol.interaction.Pointer.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.Pointer#unset" class="">
<a href="ol.interaction.Pointer.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Select">
<span class="title">
<a href="ol.interaction.Select.html">ol.interaction.Select</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Select.handleEvent" class="unstable">
<a href="ol.interaction.Select.html#.handleEvent">handleEvent</a>
</li>
<li data-name="ol.interaction.Select#changed" class="unstable">
<a href="ol.interaction.Select.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Select#dispatchEvent" class="unstable">
<a href="ol.interaction.Select.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.Select#get" class="">
<a href="ol.interaction.Select.html#get">get</a>
</li>
<li data-name="ol.interaction.Select#getActive" class="unstable">
<a href="ol.interaction.Select.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Select#getFeatures" class="">
<a href="ol.interaction.Select.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.interaction.Select#getKeys" class="">
<a href="ol.interaction.Select.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Select#getLayer" class="unstable">
<a href="ol.interaction.Select.html#getLayer">getLayer</a>
</li>
<li data-name="ol.interaction.Select#getProperties" class="">
<a href="ol.interaction.Select.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Select#getRevision" class="unstable">
<a href="ol.interaction.Select.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Select#on" class="">
<a href="ol.interaction.Select.html#on">on</a>
</li>
<li data-name="ol.interaction.Select#once" class="">
<a href="ol.interaction.Select.html#once">once</a>
</li>
<li data-name="ol.interaction.Select#set" class="">
<a href="ol.interaction.Select.html#set">set</a>
</li>
<li data-name="ol.interaction.Select#setActive" class="unstable">
<a href="ol.interaction.Select.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Select#setMap" class="">
<a href="ol.interaction.Select.html#setMap">setMap</a>
</li>
<li data-name="ol.interaction.Select#setProperties" class="">
<a href="ol.interaction.Select.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Select#un" class="">
<a href="ol.interaction.Select.html#un">un</a>
</li>
<li data-name="ol.interaction.Select#unByKey" class="">
<a href="ol.interaction.Select.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.Select#unset" class="">
<a href="ol.interaction.Select.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.interaction.SelectEvent#event:select" class="unstable">
<a href="ol.interaction.SelectEvent.html#event:select">select</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.SelectEvent">
<span class="title">
<a href="ol.interaction.SelectEvent.html">ol.interaction.SelectEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.SelectEvent#deselected"><a href="ol.interaction.SelectEvent.html#deselected">deselected</a></li>
<li data-name="ol.interaction.SelectEvent#mapBrowserEvent"><a href="ol.interaction.SelectEvent.html#mapBrowserEvent">mapBrowserEvent</a></li>
<li data-name="ol.interaction.SelectEvent#selected"><a href="ol.interaction.SelectEvent.html#selected">selected</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.interaction.Snap">
<span class="title">
<a href="ol.interaction.Snap.html">ol.interaction.Snap</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Snap#addFeature" class="unstable">
<a href="ol.interaction.Snap.html#addFeature">addFeature</a>
</li>
<li data-name="ol.interaction.Snap#changed" class="unstable">
<a href="ol.interaction.Snap.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Snap#dispatchEvent" class="unstable">
<a href="ol.interaction.Snap.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.Snap#get" class="">
<a href="ol.interaction.Snap.html#get">get</a>
</li>
<li data-name="ol.interaction.Snap#getActive" class="unstable">
<a href="ol.interaction.Snap.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Snap#getKeys" class="">
<a href="ol.interaction.Snap.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Snap#getProperties" class="">
<a href="ol.interaction.Snap.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Snap#getRevision" class="unstable">
<a href="ol.interaction.Snap.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Snap#on" class="">
<a href="ol.interaction.Snap.html#on">on</a>
</li>
<li data-name="ol.interaction.Snap#once" class="">
<a href="ol.interaction.Snap.html#once">once</a>
</li>
<li data-name="ol.interaction.Snap#removeFeature" class="unstable">
<a href="ol.interaction.Snap.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.interaction.Snap#set" class="">
<a href="ol.interaction.Snap.html#set">set</a>
</li>
<li data-name="ol.interaction.Snap#setActive" class="unstable">
<a href="ol.interaction.Snap.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Snap#setProperties" class="">
<a href="ol.interaction.Snap.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Snap#un" class="">
<a href="ol.interaction.Snap.html#un">un</a>
</li>
<li data-name="ol.interaction.Snap#unByKey" class="">
<a href="ol.interaction.Snap.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.Snap#unset" class="">
<a href="ol.interaction.Snap.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.Translate">
<span class="title">
<a href="ol.interaction.Translate.html">ol.interaction.Translate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.interaction.Translate#changed" class="unstable">
<a href="ol.interaction.Translate.html#changed">changed</a>
</li>
<li data-name="ol.interaction.Translate#dispatchEvent" class="unstable">
<a href="ol.interaction.Translate.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.interaction.Translate#get" class="">
<a href="ol.interaction.Translate.html#get">get</a>
</li>
<li data-name="ol.interaction.Translate#getActive" class="unstable">
<a href="ol.interaction.Translate.html#getActive">getActive</a>
</li>
<li data-name="ol.interaction.Translate#getKeys" class="">
<a href="ol.interaction.Translate.html#getKeys">getKeys</a>
</li>
<li data-name="ol.interaction.Translate#getProperties" class="">
<a href="ol.interaction.Translate.html#getProperties">getProperties</a>
</li>
<li data-name="ol.interaction.Translate#getRevision" class="unstable">
<a href="ol.interaction.Translate.html#getRevision">getRevision</a>
</li>
<li data-name="ol.interaction.Translate#on" class="">
<a href="ol.interaction.Translate.html#on">on</a>
</li>
<li data-name="ol.interaction.Translate#once" class="">
<a href="ol.interaction.Translate.html#once">once</a>
</li>
<li data-name="ol.interaction.Translate#set" class="">
<a href="ol.interaction.Translate.html#set">set</a>
</li>
<li data-name="ol.interaction.Translate#setActive" class="unstable">
<a href="ol.interaction.Translate.html#setActive">setActive</a>
</li>
<li data-name="ol.interaction.Translate#setProperties" class="">
<a href="ol.interaction.Translate.html#setProperties">setProperties</a>
</li>
<li data-name="ol.interaction.Translate#un" class="">
<a href="ol.interaction.Translate.html#un">un</a>
</li>
<li data-name="ol.interaction.Translate#unByKey" class="">
<a href="ol.interaction.Translate.html#unByKey">unByKey</a>
</li>
<li data-name="ol.interaction.Translate#unset" class="">
<a href="ol.interaction.Translate.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:active" class="unstable">
change:active
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.interaction.TranslateEvent#event:translateend" class="unstable">
<a href="ol.interaction.TranslateEvent.html#event:translateend">translateend</a>
</li>
<li data-name="ol.interaction.TranslateEvent#event:translatestart" class="unstable">
<a href="ol.interaction.TranslateEvent.html#event:translatestart">translatestart</a>
</li>
<li data-name="ol.interaction.TranslateEvent#event:translating" class="unstable">
<a href="ol.interaction.TranslateEvent.html#event:translating">translating</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.interaction.TranslateEvent">
<span class="title">
<a href="ol.interaction.TranslateEvent.html">ol.interaction.TranslateEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.interaction.TranslateEvent#coordinate"><a href="ol.interaction.TranslateEvent.html#coordinate">coordinate</a></li>
<li data-name="ol.interaction.TranslateEvent#features"><a href="ol.interaction.TranslateEvent.html#features">features</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.layer">
<span class="title">
<a href="ol.layer.html">ol.layer</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.layer.Base">
<span class="title">
<a href="ol.layer.Base.html">ol.layer.Base</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Base#changed" class="unstable">
<a href="ol.layer.Base.html#changed">changed</a>
</li>
<li data-name="ol.layer.Base#dispatchEvent" class="unstable">
<a href="ol.layer.Base.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.Base#get" class="">
<a href="ol.layer.Base.html#get">get</a>
</li>
<li data-name="ol.layer.Base#getExtent" class="">
<a href="ol.layer.Base.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Base#getKeys" class="">
<a href="ol.layer.Base.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Base#getMaxResolution" class="">
<a href="ol.layer.Base.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Base#getMinResolution" class="">
<a href="ol.layer.Base.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Base#getOpacity" class="">
<a href="ol.layer.Base.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Base#getProperties" class="">
<a href="ol.layer.Base.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Base#getRevision" class="unstable">
<a href="ol.layer.Base.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Base#getVisible" class="">
<a href="ol.layer.Base.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Base#getZIndex" class="unstable">
<a href="ol.layer.Base.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.Base#on" class="">
<a href="ol.layer.Base.html#on">on</a>
</li>
<li data-name="ol.layer.Base#once" class="">
<a href="ol.layer.Base.html#once">once</a>
</li>
<li data-name="ol.layer.Base#set" class="">
<a href="ol.layer.Base.html#set">set</a>
</li>
<li data-name="ol.layer.Base#setExtent" class="">
<a href="ol.layer.Base.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Base#setMaxResolution" class="">
<a href="ol.layer.Base.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Base#setMinResolution" class="">
<a href="ol.layer.Base.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Base#setOpacity" class="">
<a href="ol.layer.Base.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Base#setProperties" class="">
<a href="ol.layer.Base.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Base#setVisible" class="">
<a href="ol.layer.Base.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Base#setZIndex" class="unstable">
<a href="ol.layer.Base.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.Base#un" class="">
<a href="ol.layer.Base.html#un">un</a>
</li>
<li data-name="ol.layer.Base#unByKey" class="">
<a href="ol.layer.Base.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.Base#unset" class="">
<a href="ol.layer.Base.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Group">
<span class="title">
<a href="ol.layer.Group.html">ol.layer.Group</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Group#changed" class="unstable">
<a href="ol.layer.Group.html#changed">changed</a>
</li>
<li data-name="ol.layer.Group#dispatchEvent" class="unstable">
<a href="ol.layer.Group.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.Group#get" class="">
<a href="ol.layer.Group.html#get">get</a>
</li>
<li data-name="ol.layer.Group#getExtent" class="">
<a href="ol.layer.Group.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Group#getKeys" class="">
<a href="ol.layer.Group.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Group#getLayers" class="">
<a href="ol.layer.Group.html#getLayers">getLayers</a>
</li>
<li data-name="ol.layer.Group#getMaxResolution" class="">
<a href="ol.layer.Group.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Group#getMinResolution" class="">
<a href="ol.layer.Group.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Group#getOpacity" class="">
<a href="ol.layer.Group.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Group#getProperties" class="">
<a href="ol.layer.Group.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Group#getRevision" class="unstable">
<a href="ol.layer.Group.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Group#getVisible" class="">
<a href="ol.layer.Group.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Group#getZIndex" class="unstable">
<a href="ol.layer.Group.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.Group#on" class="">
<a href="ol.layer.Group.html#on">on</a>
</li>
<li data-name="ol.layer.Group#once" class="">
<a href="ol.layer.Group.html#once">once</a>
</li>
<li data-name="ol.layer.Group#set" class="">
<a href="ol.layer.Group.html#set">set</a>
</li>
<li data-name="ol.layer.Group#setExtent" class="">
<a href="ol.layer.Group.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Group#setLayers" class="">
<a href="ol.layer.Group.html#setLayers">setLayers</a>
</li>
<li data-name="ol.layer.Group#setMaxResolution" class="">
<a href="ol.layer.Group.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Group#setMinResolution" class="">
<a href="ol.layer.Group.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Group#setOpacity" class="">
<a href="ol.layer.Group.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Group#setProperties" class="">
<a href="ol.layer.Group.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Group#setVisible" class="">
<a href="ol.layer.Group.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Group#setZIndex" class="unstable">
<a href="ol.layer.Group.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.Group#un" class="">
<a href="ol.layer.Group.html#un">un</a>
</li>
<li data-name="ol.layer.Group#unByKey" class="">
<a href="ol.layer.Group.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.Group#unset" class="">
<a href="ol.layer.Group.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:layers" class="unstable">
change:layers
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Heatmap">
<span class="title">
<a href="ol.layer.Heatmap.html">ol.layer.Heatmap</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Heatmap#changed" class="unstable">
<a href="ol.layer.Heatmap.html#changed">changed</a>
</li>
<li data-name="ol.layer.Heatmap#dispatchEvent" class="unstable">
<a href="ol.layer.Heatmap.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.Heatmap#get" class="">
<a href="ol.layer.Heatmap.html#get">get</a>
</li>
<li data-name="ol.layer.Heatmap#getBlur" class="unstable">
<a href="ol.layer.Heatmap.html#getBlur">getBlur</a>
</li>
<li data-name="ol.layer.Heatmap#getExtent" class="">
<a href="ol.layer.Heatmap.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Heatmap#getGradient" class="unstable">
<a href="ol.layer.Heatmap.html#getGradient">getGradient</a>
</li>
<li data-name="ol.layer.Heatmap#getKeys" class="">
<a href="ol.layer.Heatmap.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Heatmap#getMaxResolution" class="">
<a href="ol.layer.Heatmap.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Heatmap#getMinResolution" class="">
<a href="ol.layer.Heatmap.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Heatmap#getOpacity" class="">
<a href="ol.layer.Heatmap.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Heatmap#getProperties" class="">
<a href="ol.layer.Heatmap.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Heatmap#getRadius" class="unstable">
<a href="ol.layer.Heatmap.html#getRadius">getRadius</a>
</li>
<li data-name="ol.layer.Heatmap#getRevision" class="unstable">
<a href="ol.layer.Heatmap.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Heatmap#getSource" class="">
<a href="ol.layer.Heatmap.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Heatmap#getStyle" class="">
<a href="ol.layer.Heatmap.html#getStyle">getStyle</a>
</li>
<li data-name="ol.layer.Heatmap#getStyleFunction" class="">
<a href="ol.layer.Heatmap.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.layer.Heatmap#getVisible" class="">
<a href="ol.layer.Heatmap.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Heatmap#getZIndex" class="unstable">
<a href="ol.layer.Heatmap.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.Heatmap#on" class="">
<a href="ol.layer.Heatmap.html#on">on</a>
</li>
<li data-name="ol.layer.Heatmap#once" class="">
<a href="ol.layer.Heatmap.html#once">once</a>
</li>
<li data-name="ol.layer.Heatmap#set" class="">
<a href="ol.layer.Heatmap.html#set">set</a>
</li>
<li data-name="ol.layer.Heatmap#setBlur" class="unstable">
<a href="ol.layer.Heatmap.html#setBlur">setBlur</a>
</li>
<li data-name="ol.layer.Heatmap#setExtent" class="">
<a href="ol.layer.Heatmap.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Heatmap#setGradient" class="unstable">
<a href="ol.layer.Heatmap.html#setGradient">setGradient</a>
</li>
<li data-name="ol.layer.Heatmap#setMap" class="unstable">
<a href="ol.layer.Heatmap.html#setMap">setMap</a>
</li>
<li data-name="ol.layer.Heatmap#setMaxResolution" class="">
<a href="ol.layer.Heatmap.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Heatmap#setMinResolution" class="">
<a href="ol.layer.Heatmap.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Heatmap#setOpacity" class="">
<a href="ol.layer.Heatmap.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Heatmap#setProperties" class="">
<a href="ol.layer.Heatmap.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Heatmap#setRadius" class="unstable">
<a href="ol.layer.Heatmap.html#setRadius">setRadius</a>
</li>
<li data-name="ol.layer.Heatmap#setSource" class="">
<a href="ol.layer.Heatmap.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Heatmap#setStyle" class="">
<a href="ol.layer.Heatmap.html#setStyle">setStyle</a>
</li>
<li data-name="ol.layer.Heatmap#setVisible" class="">
<a href="ol.layer.Heatmap.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Heatmap#setZIndex" class="unstable">
<a href="ol.layer.Heatmap.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.Heatmap#un" class="">
<a href="ol.layer.Heatmap.html#un">un</a>
</li>
<li data-name="ol.layer.Heatmap#unByKey" class="">
<a href="ol.layer.Heatmap.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.Heatmap#unset" class="">
<a href="ol.layer.Heatmap.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:blur" class="unstable">
change:blur
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:gradient" class="unstable">
change:gradient
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:radius" class="unstable">
change:radius
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Image">
<span class="title">
<a href="ol.layer.Image.html">ol.layer.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Image#changed" class="unstable">
<a href="ol.layer.Image.html#changed">changed</a>
</li>
<li data-name="ol.layer.Image#dispatchEvent" class="unstable">
<a href="ol.layer.Image.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.Image#get" class="">
<a href="ol.layer.Image.html#get">get</a>
</li>
<li data-name="ol.layer.Image#getExtent" class="">
<a href="ol.layer.Image.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Image#getKeys" class="">
<a href="ol.layer.Image.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Image#getMaxResolution" class="">
<a href="ol.layer.Image.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Image#getMinResolution" class="">
<a href="ol.layer.Image.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Image#getOpacity" class="">
<a href="ol.layer.Image.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Image#getProperties" class="">
<a href="ol.layer.Image.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Image#getRevision" class="unstable">
<a href="ol.layer.Image.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Image#getSource" class="">
<a href="ol.layer.Image.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Image#getVisible" class="">
<a href="ol.layer.Image.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Image#getZIndex" class="unstable">
<a href="ol.layer.Image.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.Image#on" class="">
<a href="ol.layer.Image.html#on">on</a>
</li>
<li data-name="ol.layer.Image#once" class="">
<a href="ol.layer.Image.html#once">once</a>
</li>
<li data-name="ol.layer.Image#set" class="">
<a href="ol.layer.Image.html#set">set</a>
</li>
<li data-name="ol.layer.Image#setExtent" class="">
<a href="ol.layer.Image.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Image#setMap" class="unstable">
<a href="ol.layer.Image.html#setMap">setMap</a>
</li>
<li data-name="ol.layer.Image#setMaxResolution" class="">
<a href="ol.layer.Image.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Image#setMinResolution" class="">
<a href="ol.layer.Image.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Image#setOpacity" class="">
<a href="ol.layer.Image.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Image#setProperties" class="">
<a href="ol.layer.Image.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Image#setSource" class="">
<a href="ol.layer.Image.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Image#setVisible" class="">
<a href="ol.layer.Image.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Image#setZIndex" class="unstable">
<a href="ol.layer.Image.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.Image#un" class="">
<a href="ol.layer.Image.html#un">un</a>
</li>
<li data-name="ol.layer.Image#unByKey" class="">
<a href="ol.layer.Image.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.Image#unset" class="">
<a href="ol.layer.Image.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Layer">
<span class="title">
<a href="ol.layer.Layer.html">ol.layer.Layer</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Layer#changed" class="unstable">
<a href="ol.layer.Layer.html#changed">changed</a>
</li>
<li data-name="ol.layer.Layer#dispatchEvent" class="unstable">
<a href="ol.layer.Layer.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.Layer#get" class="">
<a href="ol.layer.Layer.html#get">get</a>
</li>
<li data-name="ol.layer.Layer#getExtent" class="">
<a href="ol.layer.Layer.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Layer#getKeys" class="">
<a href="ol.layer.Layer.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Layer#getMaxResolution" class="">
<a href="ol.layer.Layer.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Layer#getMinResolution" class="">
<a href="ol.layer.Layer.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Layer#getOpacity" class="">
<a href="ol.layer.Layer.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Layer#getProperties" class="">
<a href="ol.layer.Layer.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Layer#getRevision" class="unstable">
<a href="ol.layer.Layer.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Layer#getSource" class="">
<a href="ol.layer.Layer.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Layer#getVisible" class="">
<a href="ol.layer.Layer.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Layer#getZIndex" class="unstable">
<a href="ol.layer.Layer.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.Layer#on" class="">
<a href="ol.layer.Layer.html#on">on</a>
</li>
<li data-name="ol.layer.Layer#once" class="">
<a href="ol.layer.Layer.html#once">once</a>
</li>
<li data-name="ol.layer.Layer#set" class="">
<a href="ol.layer.Layer.html#set">set</a>
</li>
<li data-name="ol.layer.Layer#setExtent" class="">
<a href="ol.layer.Layer.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Layer#setMap" class="unstable">
<a href="ol.layer.Layer.html#setMap">setMap</a>
</li>
<li data-name="ol.layer.Layer#setMaxResolution" class="">
<a href="ol.layer.Layer.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Layer#setMinResolution" class="">
<a href="ol.layer.Layer.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Layer#setOpacity" class="">
<a href="ol.layer.Layer.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Layer#setProperties" class="">
<a href="ol.layer.Layer.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Layer#setSource" class="">
<a href="ol.layer.Layer.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Layer#setVisible" class="">
<a href="ol.layer.Layer.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Layer#setZIndex" class="unstable">
<a href="ol.layer.Layer.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.Layer#un" class="">
<a href="ol.layer.Layer.html#un">un</a>
</li>
<li data-name="ol.layer.Layer#unByKey" class="">
<a href="ol.layer.Layer.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.Layer#unset" class="">
<a href="ol.layer.Layer.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Tile">
<span class="title">
<a href="ol.layer.Tile.html">ol.layer.Tile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Tile#changed" class="unstable">
<a href="ol.layer.Tile.html#changed">changed</a>
</li>
<li data-name="ol.layer.Tile#dispatchEvent" class="unstable">
<a href="ol.layer.Tile.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.Tile#get" class="">
<a href="ol.layer.Tile.html#get">get</a>
</li>
<li data-name="ol.layer.Tile#getExtent" class="">
<a href="ol.layer.Tile.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Tile#getKeys" class="">
<a href="ol.layer.Tile.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Tile#getMaxResolution" class="">
<a href="ol.layer.Tile.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Tile#getMinResolution" class="">
<a href="ol.layer.Tile.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Tile#getOpacity" class="">
<a href="ol.layer.Tile.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Tile#getPreload" class="unstable">
<a href="ol.layer.Tile.html#getPreload">getPreload</a>
</li>
<li data-name="ol.layer.Tile#getProperties" class="">
<a href="ol.layer.Tile.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Tile#getRevision" class="unstable">
<a href="ol.layer.Tile.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Tile#getSource" class="">
<a href="ol.layer.Tile.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Tile#getUseInterimTilesOnError" class="unstable">
<a href="ol.layer.Tile.html#getUseInterimTilesOnError">getUseInterimTilesOnError</a>
</li>
<li data-name="ol.layer.Tile#getVisible" class="">
<a href="ol.layer.Tile.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Tile#getZIndex" class="unstable">
<a href="ol.layer.Tile.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.Tile#on" class="">
<a href="ol.layer.Tile.html#on">on</a>
</li>
<li data-name="ol.layer.Tile#once" class="">
<a href="ol.layer.Tile.html#once">once</a>
</li>
<li data-name="ol.layer.Tile#set" class="">
<a href="ol.layer.Tile.html#set">set</a>
</li>
<li data-name="ol.layer.Tile#setExtent" class="">
<a href="ol.layer.Tile.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Tile#setMap" class="unstable">
<a href="ol.layer.Tile.html#setMap">setMap</a>
</li>
<li data-name="ol.layer.Tile#setMaxResolution" class="">
<a href="ol.layer.Tile.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Tile#setMinResolution" class="">
<a href="ol.layer.Tile.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Tile#setOpacity" class="">
<a href="ol.layer.Tile.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Tile#setPreload" class="unstable">
<a href="ol.layer.Tile.html#setPreload">setPreload</a>
</li>
<li data-name="ol.layer.Tile#setProperties" class="">
<a href="ol.layer.Tile.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Tile#setSource" class="">
<a href="ol.layer.Tile.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Tile#setUseInterimTilesOnError" class="unstable">
<a href="ol.layer.Tile.html#setUseInterimTilesOnError">setUseInterimTilesOnError</a>
</li>
<li data-name="ol.layer.Tile#setVisible" class="">
<a href="ol.layer.Tile.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Tile#setZIndex" class="unstable">
<a href="ol.layer.Tile.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.Tile#un" class="">
<a href="ol.layer.Tile.html#un">un</a>
</li>
<li data-name="ol.layer.Tile#unByKey" class="">
<a href="ol.layer.Tile.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.Tile#unset" class="">
<a href="ol.layer.Tile.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:preload" class="unstable">
change:preload
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:useInterimTilesOnError" class="unstable">
change:useInterimTilesOnError
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.Vector">
<span class="title">
<a href="ol.layer.Vector.html">ol.layer.Vector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.Vector#changed" class="unstable">
<a href="ol.layer.Vector.html#changed">changed</a>
</li>
<li data-name="ol.layer.Vector#dispatchEvent" class="unstable">
<a href="ol.layer.Vector.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.Vector#get" class="">
<a href="ol.layer.Vector.html#get">get</a>
</li>
<li data-name="ol.layer.Vector#getExtent" class="">
<a href="ol.layer.Vector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.Vector#getKeys" class="">
<a href="ol.layer.Vector.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.Vector#getMaxResolution" class="">
<a href="ol.layer.Vector.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.Vector#getMinResolution" class="">
<a href="ol.layer.Vector.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.Vector#getOpacity" class="">
<a href="ol.layer.Vector.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.Vector#getProperties" class="">
<a href="ol.layer.Vector.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.Vector#getRevision" class="unstable">
<a href="ol.layer.Vector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.Vector#getSource" class="">
<a href="ol.layer.Vector.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.Vector#getStyle" class="">
<a href="ol.layer.Vector.html#getStyle">getStyle</a>
</li>
<li data-name="ol.layer.Vector#getStyleFunction" class="">
<a href="ol.layer.Vector.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.layer.Vector#getVisible" class="">
<a href="ol.layer.Vector.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.Vector#getZIndex" class="unstable">
<a href="ol.layer.Vector.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.Vector#on" class="">
<a href="ol.layer.Vector.html#on">on</a>
</li>
<li data-name="ol.layer.Vector#once" class="">
<a href="ol.layer.Vector.html#once">once</a>
</li>
<li data-name="ol.layer.Vector#set" class="">
<a href="ol.layer.Vector.html#set">set</a>
</li>
<li data-name="ol.layer.Vector#setExtent" class="">
<a href="ol.layer.Vector.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.Vector#setMap" class="unstable">
<a href="ol.layer.Vector.html#setMap">setMap</a>
</li>
<li data-name="ol.layer.Vector#setMaxResolution" class="">
<a href="ol.layer.Vector.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.Vector#setMinResolution" class="">
<a href="ol.layer.Vector.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.Vector#setOpacity" class="">
<a href="ol.layer.Vector.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.Vector#setProperties" class="">
<a href="ol.layer.Vector.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.Vector#setSource" class="">
<a href="ol.layer.Vector.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.Vector#setStyle" class="">
<a href="ol.layer.Vector.html#setStyle">setStyle</a>
</li>
<li data-name="ol.layer.Vector#setVisible" class="">
<a href="ol.layer.Vector.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.Vector#setZIndex" class="unstable">
<a href="ol.layer.Vector.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.Vector#un" class="">
<a href="ol.layer.Vector.html#un">un</a>
</li>
<li data-name="ol.layer.Vector#unByKey" class="">
<a href="ol.layer.Vector.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.Vector#unset" class="">
<a href="ol.layer.Vector.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.layer.VectorTile">
<span class="title">
<a href="ol.layer.VectorTile.html">ol.layer.VectorTile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.layer.VectorTile#changed" class="unstable">
<a href="ol.layer.VectorTile.html#changed">changed</a>
</li>
<li data-name="ol.layer.VectorTile#dispatchEvent" class="unstable">
<a href="ol.layer.VectorTile.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.layer.VectorTile#get" class="">
<a href="ol.layer.VectorTile.html#get">get</a>
</li>
<li data-name="ol.layer.VectorTile#getExtent" class="">
<a href="ol.layer.VectorTile.html#getExtent">getExtent</a>
</li>
<li data-name="ol.layer.VectorTile#getKeys" class="">
<a href="ol.layer.VectorTile.html#getKeys">getKeys</a>
</li>
<li data-name="ol.layer.VectorTile#getMaxResolution" class="">
<a href="ol.layer.VectorTile.html#getMaxResolution">getMaxResolution</a>
</li>
<li data-name="ol.layer.VectorTile#getMinResolution" class="">
<a href="ol.layer.VectorTile.html#getMinResolution">getMinResolution</a>
</li>
<li data-name="ol.layer.VectorTile#getOpacity" class="">
<a href="ol.layer.VectorTile.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.layer.VectorTile#getPreload" class="unstable">
<a href="ol.layer.VectorTile.html#getPreload">getPreload</a>
</li>
<li data-name="ol.layer.VectorTile#getProperties" class="">
<a href="ol.layer.VectorTile.html#getProperties">getProperties</a>
</li>
<li data-name="ol.layer.VectorTile#getRevision" class="unstable">
<a href="ol.layer.VectorTile.html#getRevision">getRevision</a>
</li>
<li data-name="ol.layer.VectorTile#getSource" class="unstable">
<a href="ol.layer.VectorTile.html#getSource">getSource</a>
</li>
<li data-name="ol.layer.VectorTile#getStyle" class="">
<a href="ol.layer.VectorTile.html#getStyle">getStyle</a>
</li>
<li data-name="ol.layer.VectorTile#getStyleFunction" class="">
<a href="ol.layer.VectorTile.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.layer.VectorTile#getUseInterimTilesOnError" class="unstable">
<a href="ol.layer.VectorTile.html#getUseInterimTilesOnError">getUseInterimTilesOnError</a>
</li>
<li data-name="ol.layer.VectorTile#getVisible" class="">
<a href="ol.layer.VectorTile.html#getVisible">getVisible</a>
</li>
<li data-name="ol.layer.VectorTile#getZIndex" class="unstable">
<a href="ol.layer.VectorTile.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.layer.VectorTile#on" class="">
<a href="ol.layer.VectorTile.html#on">on</a>
</li>
<li data-name="ol.layer.VectorTile#once" class="">
<a href="ol.layer.VectorTile.html#once">once</a>
</li>
<li data-name="ol.layer.VectorTile#set" class="">
<a href="ol.layer.VectorTile.html#set">set</a>
</li>
<li data-name="ol.layer.VectorTile#setExtent" class="">
<a href="ol.layer.VectorTile.html#setExtent">setExtent</a>
</li>
<li data-name="ol.layer.VectorTile#setMap" class="unstable">
<a href="ol.layer.VectorTile.html#setMap">setMap</a>
</li>
<li data-name="ol.layer.VectorTile#setMaxResolution" class="">
<a href="ol.layer.VectorTile.html#setMaxResolution">setMaxResolution</a>
</li>
<li data-name="ol.layer.VectorTile#setMinResolution" class="">
<a href="ol.layer.VectorTile.html#setMinResolution">setMinResolution</a>
</li>
<li data-name="ol.layer.VectorTile#setOpacity" class="">
<a href="ol.layer.VectorTile.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.layer.VectorTile#setPreload" class="unstable">
<a href="ol.layer.VectorTile.html#setPreload">setPreload</a>
</li>
<li data-name="ol.layer.VectorTile#setProperties" class="">
<a href="ol.layer.VectorTile.html#setProperties">setProperties</a>
</li>
<li data-name="ol.layer.VectorTile#setSource" class="">
<a href="ol.layer.VectorTile.html#setSource">setSource</a>
</li>
<li data-name="ol.layer.VectorTile#setStyle" class="">
<a href="ol.layer.VectorTile.html#setStyle">setStyle</a>
</li>
<li data-name="ol.layer.VectorTile#setUseInterimTilesOnError" class="unstable">
<a href="ol.layer.VectorTile.html#setUseInterimTilesOnError">setUseInterimTilesOnError</a>
</li>
<li data-name="ol.layer.VectorTile#setVisible" class="">
<a href="ol.layer.VectorTile.html#setVisible">setVisible</a>
</li>
<li data-name="ol.layer.VectorTile#setZIndex" class="unstable">
<a href="ol.layer.VectorTile.html#setZIndex">setZIndex</a>
</li>
<li data-name="ol.layer.VectorTile#un" class="">
<a href="ol.layer.VectorTile.html#un">un</a>
</li>
<li data-name="ol.layer.VectorTile#unByKey" class="">
<a href="ol.layer.VectorTile.html#unByKey">unByKey</a>
</li>
<li data-name="ol.layer.VectorTile#unset" class="">
<a href="ol.layer.VectorTile.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:change:extent" class="unstable">
change:extent
</li>
<li data-name="ol.ObjectEvent#event:change:maxResolution" class="unstable">
change:maxResolution
</li>
<li data-name="ol.ObjectEvent#event:change:minResolution" class="unstable">
change:minResolution
</li>
<li data-name="ol.ObjectEvent#event:change:opacity" class="unstable">
change:opacity
</li>
<li data-name="ol.ObjectEvent#event:change:preload" class="unstable">
change:preload
</li>
<li data-name="ol.ObjectEvent#event:change:source" class="unstable">
change:source
</li>
<li data-name="ol.ObjectEvent#event:change:useInterimTilesOnError" class="unstable">
change:useInterimTilesOnError
</li>
<li data-name="ol.ObjectEvent#event:change:visible" class="unstable">
change:visible
</li>
<li data-name="ol.ObjectEvent#event:change:zIndex" class="unstable">
change:zIndex
</li>
<li data-name="ol.render.Event#event:postcompose" class="unstable">
<a href="ol.render.Event.html#event:postcompose">postcompose</a>
</li>
<li data-name="ol.render.Event#event:precompose" class="unstable">
<a href="ol.render.Event.html#event:precompose">precompose</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.render.Event#event:render" class="unstable">
<a href="ol.render.Event.html#event:render">render</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.loadingstrategy">
<span class="title">
<a href="ol.loadingstrategy.html">ol.loadingstrategy</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.loadingstrategy.all" class="unstable">
<a href="ol.loadingstrategy.html#.all">all</a>
</li>
<li data-name="ol.loadingstrategy.bbox" class="unstable">
<a href="ol.loadingstrategy.html#.bbox">bbox</a>
</li>
<li data-name="ol.loadingstrategy.tile" class="unstable">
<a href="ol.loadingstrategy.html#.tile">tile</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.proj">
<span class="title">
<a href="ol.proj.html">ol.proj</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.proj.METERS_PER_UNIT"><a href="ol.proj.html#.METERS_PER_UNIT">METERS_PER_UNIT</a></li>
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.proj.ProjectionLike" class="">
<a href="ol.proj.html#.ProjectionLike">ProjectionLike</a>
</li>
<li data-name="ol.proj.Units" class="">
<a href="ol.proj.html#.Units">Units</a>
</li>
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.proj.addCoordinateTransforms" class="">
<a href="ol.proj.html#.addCoordinateTransforms">addCoordinateTransforms</a>
</li>
<li data-name="ol.proj.addEquivalentProjections" class="unstable">
<a href="ol.proj.html#.addEquivalentProjections">addEquivalentProjections</a>
</li>
<li data-name="ol.proj.addProjection" class="">
<a href="ol.proj.html#.addProjection">addProjection</a>
</li>
<li data-name="ol.proj.fromLonLat" class="">
<a href="ol.proj.html#.fromLonLat">fromLonLat</a>
</li>
<li data-name="ol.proj.get" class="">
<a href="ol.proj.html#.get">get</a>
</li>
<li data-name="ol.proj.getTransform" class="">
<a href="ol.proj.html#.getTransform">getTransform</a>
</li>
<li data-name="ol.proj.toLonLat" class="">
<a href="ol.proj.html#.toLonLat">toLonLat</a>
</li>
<li data-name="ol.proj.transform" class="">
<a href="ol.proj.html#.transform">transform</a>
</li>
<li data-name="ol.proj.transformExtent" class="">
<a href="ol.proj.html#.transformExtent">transformExtent</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.proj.Projection">
<span class="title">
<a href="ol.proj.Projection.html">ol.proj.Projection</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.proj.Projection#getCode" class="">
<a href="ol.proj.Projection.html#getCode">getCode</a>
</li>
<li data-name="ol.proj.Projection#getExtent" class="">
<a href="ol.proj.Projection.html#getExtent">getExtent</a>
</li>
<li data-name="ol.proj.Projection#getMetersPerUnit" class="">
<a href="ol.proj.Projection.html#getMetersPerUnit">getMetersPerUnit</a>
</li>
<li data-name="ol.proj.Projection#getPointResolution" class="unstable">
<a href="ol.proj.Projection.html#getPointResolution">getPointResolution</a>
</li>
<li data-name="ol.proj.Projection#getUnits" class="">
<a href="ol.proj.Projection.html#getUnits">getUnits</a>
</li>
<li data-name="ol.proj.Projection#getWorldExtent" class="unstable">
<a href="ol.proj.Projection.html#getWorldExtent">getWorldExtent</a>
</li>
<li data-name="ol.proj.Projection#isGlobal" class="">
<a href="ol.proj.Projection.html#isGlobal">isGlobal</a>
</li>
<li data-name="ol.proj.Projection#setExtent" class="">
<a href="ol.proj.Projection.html#setExtent">setExtent</a>
</li>
<li data-name="ol.proj.Projection#setGetPointResolution" class="unstable">
<a href="ol.proj.Projection.html#setGetPointResolution">setGetPointResolution</a>
</li>
<li data-name="ol.proj.Projection#setGlobal" class="">
<a href="ol.proj.Projection.html#setGlobal">setGlobal</a>
</li>
<li data-name="ol.proj.Projection#setWorldExtent" class="unstable">
<a href="ol.proj.Projection.html#setWorldExtent">setWorldExtent</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render">
<span class="title">
<a href="ol.render.html">ol.render</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.Event">
<span class="title">
<a href="ol.render.Event.html">ol.render.Event</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.render.Event#context"><a href="ol.render.Event.html#context">context</a></li>
<li data-name="ol.render.Event#frameState"><a href="ol.render.Event.html#frameState">frameState</a></li>
<li data-name="ol.render.Event#glContext"><a href="ol.render.Event.html#glContext">glContext</a></li>
<li data-name="ol.render.Event#vectorContext"><a href="ol.render.Event.html#vectorContext">vectorContext</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.Feature">
<span class="title">
<a href="ol.render.Feature.html">ol.render.Feature</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.render.Feature#get" class="unstable">
<a href="ol.render.Feature.html#get">get</a>
</li>
<li data-name="ol.render.Feature#getExtent" class="unstable">
<a href="ol.render.Feature.html#getExtent">getExtent</a>
</li>
<li data-name="ol.render.Feature#getGeometry" class="unstable">
<a href="ol.render.Feature.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.render.Feature#getProperties" class="unstable">
<a href="ol.render.Feature.html#getProperties">getProperties</a>
</li>
<li data-name="ol.render.Feature#getType" class="unstable">
<a href="ol.render.Feature.html#getType">getType</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.VectorContext">
<span class="title">
<a href="ol.render.VectorContext.html">ol.render.VectorContext</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.canvas">
<span class="title">
<a href="ol.render.canvas.html">ol.render.canvas</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.canvas.Immediate">
<span class="title">
<a href="ol.render.canvas.Immediate.html">ol.render.canvas.Immediate</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.render.canvas.Immediate#drawAsync" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawAsync">drawAsync</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawCircleGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawCircleGeometry">drawCircleGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawFeature" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawFeature">drawFeature</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawLineStringGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawLineStringGeometry">drawLineStringGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawMultiLineStringGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawMultiLineStringGeometry">drawMultiLineStringGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawMultiPointGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawMultiPointGeometry">drawMultiPointGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawMultiPolygonGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawMultiPolygonGeometry">drawMultiPolygonGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawPointGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawPointGeometry">drawPointGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#drawPolygonGeometry" class="unstable">
<a href="ol.render.canvas.Immediate.html#drawPolygonGeometry">drawPolygonGeometry</a>
</li>
<li data-name="ol.render.canvas.Immediate#setFillStrokeStyle" class="unstable">
<a href="ol.render.canvas.Immediate.html#setFillStrokeStyle">setFillStrokeStyle</a>
</li>
<li data-name="ol.render.canvas.Immediate#setImageStyle" class="unstable">
<a href="ol.render.canvas.Immediate.html#setImageStyle">setImageStyle</a>
</li>
<li data-name="ol.render.canvas.Immediate#setTextStyle" class="unstable">
<a href="ol.render.canvas.Immediate.html#setTextStyle">setTextStyle</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.render.webgl.Immediate">
<span class="title">
<a href="ol.render.webgl.Immediate.html">ol.render.webgl.Immediate</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.render.webgl.Immediate#drawCircleGeometry"><a href="ol.render.webgl.Immediate.html#drawCircleGeometry">drawCircleGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawFeature"><a href="ol.render.webgl.Immediate.html#drawFeature">drawFeature</a></li>
<li data-name="ol.render.webgl.Immediate#drawGeometryCollectionGeometry"><a href="ol.render.webgl.Immediate.html#drawGeometryCollectionGeometry">drawGeometryCollectionGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawLineStringGeometry"><a href="ol.render.webgl.Immediate.html#drawLineStringGeometry">drawLineStringGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawMultiLineStringGeometry"><a href="ol.render.webgl.Immediate.html#drawMultiLineStringGeometry">drawMultiLineStringGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawMultiPointGeometry"><a href="ol.render.webgl.Immediate.html#drawMultiPointGeometry">drawMultiPointGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawMultiPolygonGeometry"><a href="ol.render.webgl.Immediate.html#drawMultiPolygonGeometry">drawMultiPolygonGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawPointGeometry"><a href="ol.render.webgl.Immediate.html#drawPointGeometry">drawPointGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawPolygonGeometry"><a href="ol.render.webgl.Immediate.html#drawPolygonGeometry">drawPolygonGeometry</a></li>
<li data-name="ol.render.webgl.Immediate#drawText"><a href="ol.render.webgl.Immediate.html#drawText">drawText</a></li>
<li data-name="ol.render.webgl.Immediate#setFillStrokeStyle"><a href="ol.render.webgl.Immediate.html#setFillStrokeStyle">setFillStrokeStyle</a></li>
<li data-name="ol.render.webgl.Immediate#setImageStyle"><a href="ol.render.webgl.Immediate.html#setImageStyle">setImageStyle</a></li>
<li data-name="ol.render.webgl.Immediate#setTextStyle"><a href="ol.render.webgl.Immediate.html#setTextStyle">setTextStyle</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.render.webgl.Immediate#drawAsync" class="unstable">
<a href="ol.render.webgl.Immediate.html#drawAsync">drawAsync</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source">
<span class="title">
<a href="ol.source.html">ol.source</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.source.State" class="unstable">
<a href="ol.source.html#.State">State</a>
</li>
<li data-name="ol.source.WMTSRequestEncoding" class="unstable">
<a href="ol.source.html#.WMTSRequestEncoding">WMTSRequestEncoding</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source.BingMaps">
<span class="title">
<a href="ol.source.BingMaps.html">ol.source.BingMaps</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.BingMaps.TOS_ATTRIBUTION"><a href="ol.source.BingMaps.html#.TOS_ATTRIBUTION">TOS_ATTRIBUTION</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.BingMaps#changed" class="unstable">
<a href="ol.source.BingMaps.html#changed">changed</a>
</li>
<li data-name="ol.source.BingMaps#dispatchEvent" class="unstable">
<a href="ol.source.BingMaps.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.BingMaps#get" class="">
<a href="ol.source.BingMaps.html#get">get</a>
</li>
<li data-name="ol.source.BingMaps#getAttributions" class="">
<a href="ol.source.BingMaps.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.BingMaps#getKeys" class="">
<a href="ol.source.BingMaps.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.BingMaps#getLogo" class="">
<a href="ol.source.BingMaps.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.BingMaps#getProjection" class="unstable">
<a href="ol.source.BingMaps.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.BingMaps#getProperties" class="">
<a href="ol.source.BingMaps.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.BingMaps#getRevision" class="unstable">
<a href="ol.source.BingMaps.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.BingMaps#getState" class="unstable">
<a href="ol.source.BingMaps.html#getState">getState</a>
</li>
<li data-name="ol.source.BingMaps#getTileGrid" class="">
<a href="ol.source.BingMaps.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.BingMaps#getTileLoadFunction" class="unstable">
<a href="ol.source.BingMaps.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.BingMaps#getTileUrlFunction" class="unstable">
<a href="ol.source.BingMaps.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.BingMaps#getUrls" class="unstable">
<a href="ol.source.BingMaps.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.BingMaps#on" class="">
<a href="ol.source.BingMaps.html#on">on</a>
</li>
<li data-name="ol.source.BingMaps#once" class="">
<a href="ol.source.BingMaps.html#once">once</a>
</li>
<li data-name="ol.source.BingMaps#set" class="">
<a href="ol.source.BingMaps.html#set">set</a>
</li>
<li data-name="ol.source.BingMaps#setAttributions" class="unstable">
<a href="ol.source.BingMaps.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.BingMaps#setProperties" class="">
<a href="ol.source.BingMaps.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.BingMaps#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.BingMaps.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.BingMaps#setTileGridForProjection" class="unstable">
<a href="ol.source.BingMaps.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.BingMaps#setTileLoadFunction" class="unstable">
<a href="ol.source.BingMaps.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.BingMaps#setTileUrlFunction" class="unstable">
<a href="ol.source.BingMaps.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.BingMaps#setUrl" class="">
<a href="ol.source.BingMaps.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.BingMaps#setUrls" class="">
<a href="ol.source.BingMaps.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.BingMaps#un" class="">
<a href="ol.source.BingMaps.html#un">un</a>
</li>
<li data-name="ol.source.BingMaps#unByKey" class="">
<a href="ol.source.BingMaps.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.BingMaps#unset" class="">
<a href="ol.source.BingMaps.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Cluster">
<span class="title">
<a href="ol.source.Cluster.html">ol.source.Cluster</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Cluster#addFeature" class="">
<a href="ol.source.Cluster.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.Cluster#addFeatures" class="">
<a href="ol.source.Cluster.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.Cluster#changed" class="unstable">
<a href="ol.source.Cluster.html#changed">changed</a>
</li>
<li data-name="ol.source.Cluster#clear" class="">
<a href="ol.source.Cluster.html#clear">clear</a>
</li>
<li data-name="ol.source.Cluster#dispatchEvent" class="unstable">
<a href="ol.source.Cluster.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Cluster#forEachFeature" class="">
<a href="ol.source.Cluster.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.Cluster#forEachFeatureInExtent" class="unstable">
<a href="ol.source.Cluster.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.Cluster#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.Cluster.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.Cluster#get" class="">
<a href="ol.source.Cluster.html#get">get</a>
</li>
<li data-name="ol.source.Cluster#getAttributions" class="">
<a href="ol.source.Cluster.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Cluster#getClosestFeatureToCoordinate" class="">
<a href="ol.source.Cluster.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.Cluster#getExtent" class="">
<a href="ol.source.Cluster.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.Cluster#getFeatureById" class="">
<a href="ol.source.Cluster.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.Cluster#getFeatures" class="">
<a href="ol.source.Cluster.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.Cluster#getFeaturesAtCoordinate" class="">
<a href="ol.source.Cluster.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.Cluster#getFeaturesCollection" class="unstable">
<a href="ol.source.Cluster.html#getFeaturesCollection">getFeaturesCollection</a>
</li>
<li data-name="ol.source.Cluster#getFeaturesInExtent" class="unstable">
<a href="ol.source.Cluster.html#getFeaturesInExtent">getFeaturesInExtent</a>
</li>
<li data-name="ol.source.Cluster#getKeys" class="">
<a href="ol.source.Cluster.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Cluster#getLogo" class="">
<a href="ol.source.Cluster.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Cluster#getProjection" class="unstable">
<a href="ol.source.Cluster.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Cluster#getProperties" class="">
<a href="ol.source.Cluster.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Cluster#getRevision" class="unstable">
<a href="ol.source.Cluster.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Cluster#getSource" class="unstable">
<a href="ol.source.Cluster.html#getSource">getSource</a>
</li>
<li data-name="ol.source.Cluster#getState" class="unstable">
<a href="ol.source.Cluster.html#getState">getState</a>
</li>
<li data-name="ol.source.Cluster#on" class="">
<a href="ol.source.Cluster.html#on">on</a>
</li>
<li data-name="ol.source.Cluster#once" class="">
<a href="ol.source.Cluster.html#once">once</a>
</li>
<li data-name="ol.source.Cluster#removeFeature" class="">
<a href="ol.source.Cluster.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.Cluster#set" class="">
<a href="ol.source.Cluster.html#set">set</a>
</li>
<li data-name="ol.source.Cluster#setAttributions" class="unstable">
<a href="ol.source.Cluster.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Cluster#setProperties" class="">
<a href="ol.source.Cluster.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Cluster#un" class="">
<a href="ol.source.Cluster.html#un">un</a>
</li>
<li data-name="ol.source.Cluster#unByKey" class="">
<a href="ol.source.Cluster.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Cluster#unset" class="">
<a href="ol.source.Cluster.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Image">
<span class="title">
<a href="ol.source.Image.html">ol.source.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Image#changed" class="unstable">
<a href="ol.source.Image.html#changed">changed</a>
</li>
<li data-name="ol.source.Image#dispatchEvent" class="unstable">
<a href="ol.source.Image.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Image#get" class="">
<a href="ol.source.Image.html#get">get</a>
</li>
<li data-name="ol.source.Image#getAttributions" class="">
<a href="ol.source.Image.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Image#getKeys" class="">
<a href="ol.source.Image.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Image#getLogo" class="">
<a href="ol.source.Image.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Image#getProjection" class="unstable">
<a href="ol.source.Image.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Image#getProperties" class="">
<a href="ol.source.Image.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Image#getRevision" class="unstable">
<a href="ol.source.Image.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Image#getState" class="unstable">
<a href="ol.source.Image.html#getState">getState</a>
</li>
<li data-name="ol.source.Image#on" class="">
<a href="ol.source.Image.html#on">on</a>
</li>
<li data-name="ol.source.Image#once" class="">
<a href="ol.source.Image.html#once">once</a>
</li>
<li data-name="ol.source.Image#set" class="">
<a href="ol.source.Image.html#set">set</a>
</li>
<li data-name="ol.source.Image#setAttributions" class="unstable">
<a href="ol.source.Image.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Image#setProperties" class="">
<a href="ol.source.Image.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Image#un" class="">
<a href="ol.source.Image.html#un">un</a>
</li>
<li data-name="ol.source.Image#unByKey" class="">
<a href="ol.source.Image.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Image#unset" class="">
<a href="ol.source.Image.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageCanvas">
<span class="title">
<a href="ol.source.ImageCanvas.html">ol.source.ImageCanvas</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageCanvas#changed" class="unstable">
<a href="ol.source.ImageCanvas.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageCanvas#dispatchEvent" class="unstable">
<a href="ol.source.ImageCanvas.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.ImageCanvas#get" class="">
<a href="ol.source.ImageCanvas.html#get">get</a>
</li>
<li data-name="ol.source.ImageCanvas#getAttributions" class="">
<a href="ol.source.ImageCanvas.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageCanvas#getKeys" class="">
<a href="ol.source.ImageCanvas.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.ImageCanvas#getLogo" class="">
<a href="ol.source.ImageCanvas.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageCanvas#getProjection" class="unstable">
<a href="ol.source.ImageCanvas.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageCanvas#getProperties" class="">
<a href="ol.source.ImageCanvas.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.ImageCanvas#getRevision" class="unstable">
<a href="ol.source.ImageCanvas.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageCanvas#getState" class="unstable">
<a href="ol.source.ImageCanvas.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageCanvas#on" class="">
<a href="ol.source.ImageCanvas.html#on">on</a>
</li>
<li data-name="ol.source.ImageCanvas#once" class="">
<a href="ol.source.ImageCanvas.html#once">once</a>
</li>
<li data-name="ol.source.ImageCanvas#set" class="">
<a href="ol.source.ImageCanvas.html#set">set</a>
</li>
<li data-name="ol.source.ImageCanvas#setAttributions" class="unstable">
<a href="ol.source.ImageCanvas.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.ImageCanvas#setProperties" class="">
<a href="ol.source.ImageCanvas.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.ImageCanvas#un" class="">
<a href="ol.source.ImageCanvas.html#un">un</a>
</li>
<li data-name="ol.source.ImageCanvas#unByKey" class="">
<a href="ol.source.ImageCanvas.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.ImageCanvas#unset" class="">
<a href="ol.source.ImageCanvas.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageEvent">
<span class="title">
<a href="ol.source.ImageEvent.html">ol.source.ImageEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.ImageEvent#image"><a href="ol.source.ImageEvent.html#image">image</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source.ImageMapGuide">
<span class="title">
<a href="ol.source.ImageMapGuide.html">ol.source.ImageMapGuide</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageMapGuide#changed" class="unstable">
<a href="ol.source.ImageMapGuide.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageMapGuide#dispatchEvent" class="unstable">
<a href="ol.source.ImageMapGuide.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.ImageMapGuide#get" class="">
<a href="ol.source.ImageMapGuide.html#get">get</a>
</li>
<li data-name="ol.source.ImageMapGuide#getAttributions" class="">
<a href="ol.source.ImageMapGuide.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageMapGuide#getImageLoadFunction" class="unstable">
<a href="ol.source.ImageMapGuide.html#getImageLoadFunction">getImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageMapGuide#getKeys" class="">
<a href="ol.source.ImageMapGuide.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.ImageMapGuide#getLogo" class="">
<a href="ol.source.ImageMapGuide.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageMapGuide#getParams" class="">
<a href="ol.source.ImageMapGuide.html#getParams">getParams</a>
</li>
<li data-name="ol.source.ImageMapGuide#getProjection" class="unstable">
<a href="ol.source.ImageMapGuide.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageMapGuide#getProperties" class="">
<a href="ol.source.ImageMapGuide.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.ImageMapGuide#getRevision" class="unstable">
<a href="ol.source.ImageMapGuide.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageMapGuide#getState" class="unstable">
<a href="ol.source.ImageMapGuide.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageMapGuide#on" class="">
<a href="ol.source.ImageMapGuide.html#on">on</a>
</li>
<li data-name="ol.source.ImageMapGuide#once" class="">
<a href="ol.source.ImageMapGuide.html#once">once</a>
</li>
<li data-name="ol.source.ImageMapGuide#set" class="">
<a href="ol.source.ImageMapGuide.html#set">set</a>
</li>
<li data-name="ol.source.ImageMapGuide#setAttributions" class="unstable">
<a href="ol.source.ImageMapGuide.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.ImageMapGuide#setImageLoadFunction" class="unstable">
<a href="ol.source.ImageMapGuide.html#setImageLoadFunction">setImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageMapGuide#setProperties" class="">
<a href="ol.source.ImageMapGuide.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.ImageMapGuide#un" class="">
<a href="ol.source.ImageMapGuide.html#un">un</a>
</li>
<li data-name="ol.source.ImageMapGuide#unByKey" class="">
<a href="ol.source.ImageMapGuide.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.ImageMapGuide#unset" class="">
<a href="ol.source.ImageMapGuide.html#unset">unset</a>
</li>
<li data-name="ol.source.ImageMapGuide#updateParams" class="">
<a href="ol.source.ImageMapGuide.html#updateParams">updateParams</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.source.ImageEvent#event:imageloadend" class="unstable">
<a href="ol.source.ImageEvent.html#event:imageloadend">imageloadend</a>
</li>
<li data-name="ol.source.ImageEvent#event:imageloaderror" class="unstable">
<a href="ol.source.ImageEvent.html#event:imageloaderror">imageloaderror</a>
</li>
<li data-name="ol.source.ImageEvent#event:imageloadstart" class="unstable">
<a href="ol.source.ImageEvent.html#event:imageloadstart">imageloadstart</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageStatic">
<span class="title">
<a href="ol.source.ImageStatic.html">ol.source.ImageStatic</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageStatic#changed" class="unstable">
<a href="ol.source.ImageStatic.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageStatic#dispatchEvent" class="unstable">
<a href="ol.source.ImageStatic.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.ImageStatic#get" class="">
<a href="ol.source.ImageStatic.html#get">get</a>
</li>
<li data-name="ol.source.ImageStatic#getAttributions" class="">
<a href="ol.source.ImageStatic.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageStatic#getKeys" class="">
<a href="ol.source.ImageStatic.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.ImageStatic#getLogo" class="">
<a href="ol.source.ImageStatic.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageStatic#getProjection" class="unstable">
<a href="ol.source.ImageStatic.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageStatic#getProperties" class="">
<a href="ol.source.ImageStatic.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.ImageStatic#getRevision" class="unstable">
<a href="ol.source.ImageStatic.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageStatic#getState" class="unstable">
<a href="ol.source.ImageStatic.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageStatic#on" class="">
<a href="ol.source.ImageStatic.html#on">on</a>
</li>
<li data-name="ol.source.ImageStatic#once" class="">
<a href="ol.source.ImageStatic.html#once">once</a>
</li>
<li data-name="ol.source.ImageStatic#set" class="">
<a href="ol.source.ImageStatic.html#set">set</a>
</li>
<li data-name="ol.source.ImageStatic#setAttributions" class="unstable">
<a href="ol.source.ImageStatic.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.ImageStatic#setProperties" class="">
<a href="ol.source.ImageStatic.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.ImageStatic#un" class="">
<a href="ol.source.ImageStatic.html#un">un</a>
</li>
<li data-name="ol.source.ImageStatic#unByKey" class="">
<a href="ol.source.ImageStatic.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.ImageStatic#unset" class="">
<a href="ol.source.ImageStatic.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageVector">
<span class="title">
<a href="ol.source.ImageVector.html">ol.source.ImageVector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageVector#changed" class="unstable">
<a href="ol.source.ImageVector.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageVector#dispatchEvent" class="unstable">
<a href="ol.source.ImageVector.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.ImageVector#get" class="">
<a href="ol.source.ImageVector.html#get">get</a>
</li>
<li data-name="ol.source.ImageVector#getAttributions" class="">
<a href="ol.source.ImageVector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageVector#getKeys" class="">
<a href="ol.source.ImageVector.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.ImageVector#getLogo" class="">
<a href="ol.source.ImageVector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageVector#getProjection" class="unstable">
<a href="ol.source.ImageVector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageVector#getProperties" class="">
<a href="ol.source.ImageVector.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.ImageVector#getRevision" class="unstable">
<a href="ol.source.ImageVector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageVector#getSource" class="unstable">
<a href="ol.source.ImageVector.html#getSource">getSource</a>
</li>
<li data-name="ol.source.ImageVector#getState" class="unstable">
<a href="ol.source.ImageVector.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageVector#getStyle" class="">
<a href="ol.source.ImageVector.html#getStyle">getStyle</a>
</li>
<li data-name="ol.source.ImageVector#getStyleFunction" class="">
<a href="ol.source.ImageVector.html#getStyleFunction">getStyleFunction</a>
</li>
<li data-name="ol.source.ImageVector#on" class="">
<a href="ol.source.ImageVector.html#on">on</a>
</li>
<li data-name="ol.source.ImageVector#once" class="">
<a href="ol.source.ImageVector.html#once">once</a>
</li>
<li data-name="ol.source.ImageVector#set" class="">
<a href="ol.source.ImageVector.html#set">set</a>
</li>
<li data-name="ol.source.ImageVector#setAttributions" class="unstable">
<a href="ol.source.ImageVector.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.ImageVector#setProperties" class="">
<a href="ol.source.ImageVector.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.ImageVector#setStyle" class="">
<a href="ol.source.ImageVector.html#setStyle">setStyle</a>
</li>
<li data-name="ol.source.ImageVector#un" class="">
<a href="ol.source.ImageVector.html#un">un</a>
</li>
<li data-name="ol.source.ImageVector#unByKey" class="">
<a href="ol.source.ImageVector.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.ImageVector#unset" class="">
<a href="ol.source.ImageVector.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.ImageWMS">
<span class="title">
<a href="ol.source.ImageWMS.html">ol.source.ImageWMS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.ImageWMS#changed" class="unstable">
<a href="ol.source.ImageWMS.html#changed">changed</a>
</li>
<li data-name="ol.source.ImageWMS#dispatchEvent" class="unstable">
<a href="ol.source.ImageWMS.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.ImageWMS#get" class="">
<a href="ol.source.ImageWMS.html#get">get</a>
</li>
<li data-name="ol.source.ImageWMS#getAttributions" class="">
<a href="ol.source.ImageWMS.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.ImageWMS#getGetFeatureInfoUrl" class="">
<a href="ol.source.ImageWMS.html#getGetFeatureInfoUrl">getGetFeatureInfoUrl</a>
</li>
<li data-name="ol.source.ImageWMS#getImageLoadFunction" class="unstable">
<a href="ol.source.ImageWMS.html#getImageLoadFunction">getImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageWMS#getKeys" class="">
<a href="ol.source.ImageWMS.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.ImageWMS#getLogo" class="">
<a href="ol.source.ImageWMS.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.ImageWMS#getParams" class="">
<a href="ol.source.ImageWMS.html#getParams">getParams</a>
</li>
<li data-name="ol.source.ImageWMS#getProjection" class="unstable">
<a href="ol.source.ImageWMS.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.ImageWMS#getProperties" class="">
<a href="ol.source.ImageWMS.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.ImageWMS#getRevision" class="unstable">
<a href="ol.source.ImageWMS.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.ImageWMS#getState" class="unstable">
<a href="ol.source.ImageWMS.html#getState">getState</a>
</li>
<li data-name="ol.source.ImageWMS#getUrl" class="">
<a href="ol.source.ImageWMS.html#getUrl">getUrl</a>
</li>
<li data-name="ol.source.ImageWMS#on" class="">
<a href="ol.source.ImageWMS.html#on">on</a>
</li>
<li data-name="ol.source.ImageWMS#once" class="">
<a href="ol.source.ImageWMS.html#once">once</a>
</li>
<li data-name="ol.source.ImageWMS#set" class="">
<a href="ol.source.ImageWMS.html#set">set</a>
</li>
<li data-name="ol.source.ImageWMS#setAttributions" class="unstable">
<a href="ol.source.ImageWMS.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.ImageWMS#setImageLoadFunction" class="unstable">
<a href="ol.source.ImageWMS.html#setImageLoadFunction">setImageLoadFunction</a>
</li>
<li data-name="ol.source.ImageWMS#setProperties" class="">
<a href="ol.source.ImageWMS.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.ImageWMS#setUrl" class="">
<a href="ol.source.ImageWMS.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.ImageWMS#un" class="">
<a href="ol.source.ImageWMS.html#un">un</a>
</li>
<li data-name="ol.source.ImageWMS#unByKey" class="">
<a href="ol.source.ImageWMS.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.ImageWMS#unset" class="">
<a href="ol.source.ImageWMS.html#unset">unset</a>
</li>
<li data-name="ol.source.ImageWMS#updateParams" class="">
<a href="ol.source.ImageWMS.html#updateParams">updateParams</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.source.ImageEvent#event:imageloadend" class="unstable">
<a href="ol.source.ImageEvent.html#event:imageloadend">imageloadend</a>
</li>
<li data-name="ol.source.ImageEvent#event:imageloaderror" class="unstable">
<a href="ol.source.ImageEvent.html#event:imageloaderror">imageloaderror</a>
</li>
<li data-name="ol.source.ImageEvent#event:imageloadstart" class="unstable">
<a href="ol.source.ImageEvent.html#event:imageloadstart">imageloadstart</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.MapQuest">
<span class="title">
<a href="ol.source.MapQuest.html">ol.source.MapQuest</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.MapQuest#changed" class="unstable">
<a href="ol.source.MapQuest.html#changed">changed</a>
</li>
<li data-name="ol.source.MapQuest#dispatchEvent" class="unstable">
<a href="ol.source.MapQuest.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.MapQuest#get" class="">
<a href="ol.source.MapQuest.html#get">get</a>
</li>
<li data-name="ol.source.MapQuest#getAttributions" class="">
<a href="ol.source.MapQuest.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.MapQuest#getKeys" class="">
<a href="ol.source.MapQuest.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.MapQuest#getLayer" class="unstable">
<a href="ol.source.MapQuest.html#getLayer">getLayer</a>
</li>
<li data-name="ol.source.MapQuest#getLogo" class="">
<a href="ol.source.MapQuest.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.MapQuest#getProjection" class="unstable">
<a href="ol.source.MapQuest.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.MapQuest#getProperties" class="">
<a href="ol.source.MapQuest.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.MapQuest#getRevision" class="unstable">
<a href="ol.source.MapQuest.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.MapQuest#getState" class="unstable">
<a href="ol.source.MapQuest.html#getState">getState</a>
</li>
<li data-name="ol.source.MapQuest#getTileGrid" class="">
<a href="ol.source.MapQuest.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.MapQuest#getTileLoadFunction" class="unstable">
<a href="ol.source.MapQuest.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.MapQuest#getTileUrlFunction" class="unstable">
<a href="ol.source.MapQuest.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.MapQuest#getUrls" class="unstable">
<a href="ol.source.MapQuest.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.MapQuest#on" class="">
<a href="ol.source.MapQuest.html#on">on</a>
</li>
<li data-name="ol.source.MapQuest#once" class="">
<a href="ol.source.MapQuest.html#once">once</a>
</li>
<li data-name="ol.source.MapQuest#set" class="">
<a href="ol.source.MapQuest.html#set">set</a>
</li>
<li data-name="ol.source.MapQuest#setAttributions" class="unstable">
<a href="ol.source.MapQuest.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.MapQuest#setProperties" class="">
<a href="ol.source.MapQuest.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.MapQuest#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.MapQuest.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.MapQuest#setTileGridForProjection" class="unstable">
<a href="ol.source.MapQuest.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.MapQuest#setTileLoadFunction" class="unstable">
<a href="ol.source.MapQuest.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.MapQuest#setTileUrlFunction" class="unstable">
<a href="ol.source.MapQuest.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.MapQuest#setUrl" class="">
<a href="ol.source.MapQuest.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.MapQuest#setUrls" class="">
<a href="ol.source.MapQuest.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.MapQuest#un" class="">
<a href="ol.source.MapQuest.html#un">un</a>
</li>
<li data-name="ol.source.MapQuest#unByKey" class="">
<a href="ol.source.MapQuest.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.MapQuest#unset" class="">
<a href="ol.source.MapQuest.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.OSM">
<span class="title">
<a href="ol.source.OSM.html">ol.source.OSM</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.OSM.ATTRIBUTION"><a href="ol.source.OSM.html#.ATTRIBUTION">ATTRIBUTION</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.OSM#changed" class="unstable">
<a href="ol.source.OSM.html#changed">changed</a>
</li>
<li data-name="ol.source.OSM#dispatchEvent" class="unstable">
<a href="ol.source.OSM.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.OSM#get" class="">
<a href="ol.source.OSM.html#get">get</a>
</li>
<li data-name="ol.source.OSM#getAttributions" class="">
<a href="ol.source.OSM.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.OSM#getKeys" class="">
<a href="ol.source.OSM.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.OSM#getLogo" class="">
<a href="ol.source.OSM.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.OSM#getProjection" class="unstable">
<a href="ol.source.OSM.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.OSM#getProperties" class="">
<a href="ol.source.OSM.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.OSM#getRevision" class="unstable">
<a href="ol.source.OSM.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.OSM#getState" class="unstable">
<a href="ol.source.OSM.html#getState">getState</a>
</li>
<li data-name="ol.source.OSM#getTileGrid" class="">
<a href="ol.source.OSM.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.OSM#getTileLoadFunction" class="unstable">
<a href="ol.source.OSM.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.OSM#getTileUrlFunction" class="unstable">
<a href="ol.source.OSM.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.OSM#getUrls" class="unstable">
<a href="ol.source.OSM.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.OSM#on" class="">
<a href="ol.source.OSM.html#on">on</a>
</li>
<li data-name="ol.source.OSM#once" class="">
<a href="ol.source.OSM.html#once">once</a>
</li>
<li data-name="ol.source.OSM#set" class="">
<a href="ol.source.OSM.html#set">set</a>
</li>
<li data-name="ol.source.OSM#setAttributions" class="unstable">
<a href="ol.source.OSM.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.OSM#setProperties" class="">
<a href="ol.source.OSM.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.OSM#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.OSM.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.OSM#setTileGridForProjection" class="unstable">
<a href="ol.source.OSM.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.OSM#setTileLoadFunction" class="unstable">
<a href="ol.source.OSM.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.OSM#setTileUrlFunction" class="unstable">
<a href="ol.source.OSM.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.OSM#setUrl" class="">
<a href="ol.source.OSM.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.OSM#setUrls" class="">
<a href="ol.source.OSM.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.OSM#un" class="">
<a href="ol.source.OSM.html#un">un</a>
</li>
<li data-name="ol.source.OSM#unByKey" class="">
<a href="ol.source.OSM.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.OSM#unset" class="">
<a href="ol.source.OSM.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Raster">
<span class="title">
<a href="ol.source.Raster.html">ol.source.Raster</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Raster#changed" class="unstable">
<a href="ol.source.Raster.html#changed">changed</a>
</li>
<li data-name="ol.source.Raster#dispatchEvent" class="unstable">
<a href="ol.source.Raster.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Raster#get" class="">
<a href="ol.source.Raster.html#get">get</a>
</li>
<li data-name="ol.source.Raster#getAttributions" class="">
<a href="ol.source.Raster.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Raster#getKeys" class="">
<a href="ol.source.Raster.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Raster#getLogo" class="">
<a href="ol.source.Raster.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Raster#getProjection" class="unstable">
<a href="ol.source.Raster.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Raster#getProperties" class="">
<a href="ol.source.Raster.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Raster#getRevision" class="unstable">
<a href="ol.source.Raster.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Raster#getState" class="unstable">
<a href="ol.source.Raster.html#getState">getState</a>
</li>
<li data-name="ol.source.Raster#on" class="">
<a href="ol.source.Raster.html#on">on</a>
</li>
<li data-name="ol.source.Raster#once" class="">
<a href="ol.source.Raster.html#once">once</a>
</li>
<li data-name="ol.source.Raster#set" class="">
<a href="ol.source.Raster.html#set">set</a>
</li>
<li data-name="ol.source.Raster#setAttributions" class="unstable">
<a href="ol.source.Raster.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Raster#setOperation" class="unstable">
<a href="ol.source.Raster.html#setOperation">setOperation</a>
</li>
<li data-name="ol.source.Raster#setProperties" class="">
<a href="ol.source.Raster.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Raster#un" class="">
<a href="ol.source.Raster.html#un">un</a>
</li>
<li data-name="ol.source.Raster#unByKey" class="">
<a href="ol.source.Raster.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Raster#unset" class="">
<a href="ol.source.Raster.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.RasterEvent">
<span class="title">
<a href="ol.source.RasterEvent.html">ol.source.RasterEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.RasterEvent#data"><a href="ol.source.RasterEvent.html#data">data</a></li>
<li data-name="ol.source.RasterEvent#extent"><a href="ol.source.RasterEvent.html#extent">extent</a></li>
<li data-name="ol.source.RasterEvent#resolution"><a href="ol.source.RasterEvent.html#resolution">resolution</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source.Source">
<span class="title">
<a href="ol.source.Source.html">ol.source.Source</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Source#changed" class="unstable">
<a href="ol.source.Source.html#changed">changed</a>
</li>
<li data-name="ol.source.Source#dispatchEvent" class="unstable">
<a href="ol.source.Source.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Source#get" class="">
<a href="ol.source.Source.html#get">get</a>
</li>
<li data-name="ol.source.Source#getAttributions" class="">
<a href="ol.source.Source.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Source#getKeys" class="">
<a href="ol.source.Source.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Source#getLogo" class="">
<a href="ol.source.Source.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Source#getProjection" class="unstable">
<a href="ol.source.Source.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Source#getProperties" class="">
<a href="ol.source.Source.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Source#getRevision" class="unstable">
<a href="ol.source.Source.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Source#getState" class="unstable">
<a href="ol.source.Source.html#getState">getState</a>
</li>
<li data-name="ol.source.Source#on" class="">
<a href="ol.source.Source.html#on">on</a>
</li>
<li data-name="ol.source.Source#once" class="">
<a href="ol.source.Source.html#once">once</a>
</li>
<li data-name="ol.source.Source#set" class="">
<a href="ol.source.Source.html#set">set</a>
</li>
<li data-name="ol.source.Source#setAttributions" class="unstable">
<a href="ol.source.Source.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Source#setProperties" class="">
<a href="ol.source.Source.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Source#un" class="">
<a href="ol.source.Source.html#un">un</a>
</li>
<li data-name="ol.source.Source#unByKey" class="">
<a href="ol.source.Source.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Source#unset" class="">
<a href="ol.source.Source.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Stamen">
<span class="title">
<a href="ol.source.Stamen.html">ol.source.Stamen</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Stamen#changed" class="unstable">
<a href="ol.source.Stamen.html#changed">changed</a>
</li>
<li data-name="ol.source.Stamen#dispatchEvent" class="unstable">
<a href="ol.source.Stamen.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Stamen#get" class="">
<a href="ol.source.Stamen.html#get">get</a>
</li>
<li data-name="ol.source.Stamen#getAttributions" class="">
<a href="ol.source.Stamen.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Stamen#getKeys" class="">
<a href="ol.source.Stamen.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Stamen#getLogo" class="">
<a href="ol.source.Stamen.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Stamen#getProjection" class="unstable">
<a href="ol.source.Stamen.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Stamen#getProperties" class="">
<a href="ol.source.Stamen.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Stamen#getRevision" class="unstable">
<a href="ol.source.Stamen.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Stamen#getState" class="unstable">
<a href="ol.source.Stamen.html#getState">getState</a>
</li>
<li data-name="ol.source.Stamen#getTileGrid" class="">
<a href="ol.source.Stamen.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.Stamen#getTileLoadFunction" class="unstable">
<a href="ol.source.Stamen.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.Stamen#getTileUrlFunction" class="unstable">
<a href="ol.source.Stamen.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.Stamen#getUrls" class="unstable">
<a href="ol.source.Stamen.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.Stamen#on" class="">
<a href="ol.source.Stamen.html#on">on</a>
</li>
<li data-name="ol.source.Stamen#once" class="">
<a href="ol.source.Stamen.html#once">once</a>
</li>
<li data-name="ol.source.Stamen#set" class="">
<a href="ol.source.Stamen.html#set">set</a>
</li>
<li data-name="ol.source.Stamen#setAttributions" class="unstable">
<a href="ol.source.Stamen.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Stamen#setProperties" class="">
<a href="ol.source.Stamen.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Stamen#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.Stamen.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.Stamen#setTileGridForProjection" class="unstable">
<a href="ol.source.Stamen.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.Stamen#setTileLoadFunction" class="unstable">
<a href="ol.source.Stamen.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.Stamen#setTileUrlFunction" class="unstable">
<a href="ol.source.Stamen.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.Stamen#setUrl" class="">
<a href="ol.source.Stamen.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.Stamen#setUrls" class="">
<a href="ol.source.Stamen.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.Stamen#un" class="">
<a href="ol.source.Stamen.html#un">un</a>
</li>
<li data-name="ol.source.Stamen#unByKey" class="">
<a href="ol.source.Stamen.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Stamen#unset" class="">
<a href="ol.source.Stamen.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Tile">
<span class="title">
<a href="ol.source.Tile.html">ol.source.Tile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Tile#changed" class="unstable">
<a href="ol.source.Tile.html#changed">changed</a>
</li>
<li data-name="ol.source.Tile#dispatchEvent" class="unstable">
<a href="ol.source.Tile.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Tile#get" class="">
<a href="ol.source.Tile.html#get">get</a>
</li>
<li data-name="ol.source.Tile#getAttributions" class="">
<a href="ol.source.Tile.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Tile#getKeys" class="">
<a href="ol.source.Tile.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Tile#getLogo" class="">
<a href="ol.source.Tile.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Tile#getProjection" class="unstable">
<a href="ol.source.Tile.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Tile#getProperties" class="">
<a href="ol.source.Tile.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Tile#getRevision" class="unstable">
<a href="ol.source.Tile.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Tile#getState" class="unstable">
<a href="ol.source.Tile.html#getState">getState</a>
</li>
<li data-name="ol.source.Tile#getTileGrid" class="">
<a href="ol.source.Tile.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.Tile#on" class="">
<a href="ol.source.Tile.html#on">on</a>
</li>
<li data-name="ol.source.Tile#once" class="">
<a href="ol.source.Tile.html#once">once</a>
</li>
<li data-name="ol.source.Tile#set" class="">
<a href="ol.source.Tile.html#set">set</a>
</li>
<li data-name="ol.source.Tile#setAttributions" class="unstable">
<a href="ol.source.Tile.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Tile#setProperties" class="">
<a href="ol.source.Tile.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Tile#un" class="">
<a href="ol.source.Tile.html#un">un</a>
</li>
<li data-name="ol.source.Tile#unByKey" class="">
<a href="ol.source.Tile.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Tile#unset" class="">
<a href="ol.source.Tile.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileArcGISRest">
<span class="title">
<a href="ol.source.TileArcGISRest.html">ol.source.TileArcGISRest</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileArcGISRest#changed" class="unstable">
<a href="ol.source.TileArcGISRest.html#changed">changed</a>
</li>
<li data-name="ol.source.TileArcGISRest#dispatchEvent" class="unstable">
<a href="ol.source.TileArcGISRest.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.TileArcGISRest#get" class="">
<a href="ol.source.TileArcGISRest.html#get">get</a>
</li>
<li data-name="ol.source.TileArcGISRest#getAttributions" class="">
<a href="ol.source.TileArcGISRest.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileArcGISRest#getKeys" class="">
<a href="ol.source.TileArcGISRest.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.TileArcGISRest#getLogo" class="">
<a href="ol.source.TileArcGISRest.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileArcGISRest#getParams" class="unstable">
<a href="ol.source.TileArcGISRest.html#getParams">getParams</a>
</li>
<li data-name="ol.source.TileArcGISRest#getProjection" class="unstable">
<a href="ol.source.TileArcGISRest.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileArcGISRest#getProperties" class="">
<a href="ol.source.TileArcGISRest.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.TileArcGISRest#getRevision" class="unstable">
<a href="ol.source.TileArcGISRest.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileArcGISRest#getState" class="unstable">
<a href="ol.source.TileArcGISRest.html#getState">getState</a>
</li>
<li data-name="ol.source.TileArcGISRest#getTileGrid" class="">
<a href="ol.source.TileArcGISRest.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileArcGISRest#getTileLoadFunction" class="unstable">
<a href="ol.source.TileArcGISRest.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.TileArcGISRest#getTileUrlFunction" class="unstable">
<a href="ol.source.TileArcGISRest.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.TileArcGISRest#getUrls" class="unstable">
<a href="ol.source.TileArcGISRest.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.TileArcGISRest#on" class="">
<a href="ol.source.TileArcGISRest.html#on">on</a>
</li>
<li data-name="ol.source.TileArcGISRest#once" class="">
<a href="ol.source.TileArcGISRest.html#once">once</a>
</li>
<li data-name="ol.source.TileArcGISRest#set" class="">
<a href="ol.source.TileArcGISRest.html#set">set</a>
</li>
<li data-name="ol.source.TileArcGISRest#setAttributions" class="unstable">
<a href="ol.source.TileArcGISRest.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.TileArcGISRest#setProperties" class="">
<a href="ol.source.TileArcGISRest.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.TileArcGISRest#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.TileArcGISRest.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.TileArcGISRest#setTileGridForProjection" class="unstable">
<a href="ol.source.TileArcGISRest.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.TileArcGISRest#setTileLoadFunction" class="unstable">
<a href="ol.source.TileArcGISRest.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.TileArcGISRest#setTileUrlFunction" class="unstable">
<a href="ol.source.TileArcGISRest.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.TileArcGISRest#setUrl" class="">
<a href="ol.source.TileArcGISRest.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.TileArcGISRest#setUrls" class="">
<a href="ol.source.TileArcGISRest.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.TileArcGISRest#un" class="">
<a href="ol.source.TileArcGISRest.html#un">un</a>
</li>
<li data-name="ol.source.TileArcGISRest#unByKey" class="">
<a href="ol.source.TileArcGISRest.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.TileArcGISRest#unset" class="">
<a href="ol.source.TileArcGISRest.html#unset">unset</a>
</li>
<li data-name="ol.source.TileArcGISRest#updateParams" class="">
<a href="ol.source.TileArcGISRest.html#updateParams">updateParams</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileDebug">
<span class="title">
<a href="ol.source.TileDebug.html">ol.source.TileDebug</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileDebug#changed" class="unstable">
<a href="ol.source.TileDebug.html#changed">changed</a>
</li>
<li data-name="ol.source.TileDebug#dispatchEvent" class="unstable">
<a href="ol.source.TileDebug.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.TileDebug#get" class="">
<a href="ol.source.TileDebug.html#get">get</a>
</li>
<li data-name="ol.source.TileDebug#getAttributions" class="">
<a href="ol.source.TileDebug.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileDebug#getKeys" class="">
<a href="ol.source.TileDebug.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.TileDebug#getLogo" class="">
<a href="ol.source.TileDebug.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileDebug#getProjection" class="unstable">
<a href="ol.source.TileDebug.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileDebug#getProperties" class="">
<a href="ol.source.TileDebug.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.TileDebug#getRevision" class="unstable">
<a href="ol.source.TileDebug.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileDebug#getState" class="unstable">
<a href="ol.source.TileDebug.html#getState">getState</a>
</li>
<li data-name="ol.source.TileDebug#getTileGrid" class="">
<a href="ol.source.TileDebug.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileDebug#on" class="">
<a href="ol.source.TileDebug.html#on">on</a>
</li>
<li data-name="ol.source.TileDebug#once" class="">
<a href="ol.source.TileDebug.html#once">once</a>
</li>
<li data-name="ol.source.TileDebug#set" class="">
<a href="ol.source.TileDebug.html#set">set</a>
</li>
<li data-name="ol.source.TileDebug#setAttributions" class="unstable">
<a href="ol.source.TileDebug.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.TileDebug#setProperties" class="">
<a href="ol.source.TileDebug.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.TileDebug#un" class="">
<a href="ol.source.TileDebug.html#un">un</a>
</li>
<li data-name="ol.source.TileDebug#unByKey" class="">
<a href="ol.source.TileDebug.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.TileDebug#unset" class="">
<a href="ol.source.TileDebug.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileEvent">
<span class="title">
<a href="ol.source.TileEvent.html">ol.source.TileEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.TileEvent#tile"><a href="ol.source.TileEvent.html#tile">tile</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source.TileImage">
<span class="title">
<a href="ol.source.TileImage.html">ol.source.TileImage</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileImage#changed" class="unstable">
<a href="ol.source.TileImage.html#changed">changed</a>
</li>
<li data-name="ol.source.TileImage#dispatchEvent" class="unstable">
<a href="ol.source.TileImage.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.TileImage#get" class="">
<a href="ol.source.TileImage.html#get">get</a>
</li>
<li data-name="ol.source.TileImage#getAttributions" class="">
<a href="ol.source.TileImage.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileImage#getKeys" class="">
<a href="ol.source.TileImage.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.TileImage#getLogo" class="">
<a href="ol.source.TileImage.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileImage#getProjection" class="unstable">
<a href="ol.source.TileImage.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileImage#getProperties" class="">
<a href="ol.source.TileImage.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.TileImage#getRevision" class="unstable">
<a href="ol.source.TileImage.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileImage#getState" class="unstable">
<a href="ol.source.TileImage.html#getState">getState</a>
</li>
<li data-name="ol.source.TileImage#getTileGrid" class="">
<a href="ol.source.TileImage.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileImage#getTileLoadFunction" class="unstable">
<a href="ol.source.TileImage.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.TileImage#getTileUrlFunction" class="unstable">
<a href="ol.source.TileImage.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.TileImage#getUrls" class="unstable">
<a href="ol.source.TileImage.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.TileImage#on" class="">
<a href="ol.source.TileImage.html#on">on</a>
</li>
<li data-name="ol.source.TileImage#once" class="">
<a href="ol.source.TileImage.html#once">once</a>
</li>
<li data-name="ol.source.TileImage#set" class="">
<a href="ol.source.TileImage.html#set">set</a>
</li>
<li data-name="ol.source.TileImage#setAttributions" class="unstable">
<a href="ol.source.TileImage.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.TileImage#setProperties" class="">
<a href="ol.source.TileImage.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.TileImage#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.TileImage.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.TileImage#setTileGridForProjection" class="unstable">
<a href="ol.source.TileImage.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.TileImage#setTileLoadFunction" class="unstable">
<a href="ol.source.TileImage.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.TileImage#setTileUrlFunction" class="unstable">
<a href="ol.source.TileImage.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.TileImage#setUrl" class="">
<a href="ol.source.TileImage.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.TileImage#setUrls" class="">
<a href="ol.source.TileImage.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.TileImage#un" class="">
<a href="ol.source.TileImage.html#un">un</a>
</li>
<li data-name="ol.source.TileImage#unByKey" class="">
<a href="ol.source.TileImage.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.TileImage#unset" class="">
<a href="ol.source.TileImage.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileJSON">
<span class="title">
<a href="ol.source.TileJSON.html">ol.source.TileJSON</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileJSON#changed" class="unstable">
<a href="ol.source.TileJSON.html#changed">changed</a>
</li>
<li data-name="ol.source.TileJSON#dispatchEvent" class="unstable">
<a href="ol.source.TileJSON.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.TileJSON#get" class="">
<a href="ol.source.TileJSON.html#get">get</a>
</li>
<li data-name="ol.source.TileJSON#getAttributions" class="">
<a href="ol.source.TileJSON.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileJSON#getKeys" class="">
<a href="ol.source.TileJSON.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.TileJSON#getLogo" class="">
<a href="ol.source.TileJSON.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileJSON#getProjection" class="unstable">
<a href="ol.source.TileJSON.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileJSON#getProperties" class="">
<a href="ol.source.TileJSON.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.TileJSON#getRevision" class="unstable">
<a href="ol.source.TileJSON.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileJSON#getState" class="unstable">
<a href="ol.source.TileJSON.html#getState">getState</a>
</li>
<li data-name="ol.source.TileJSON#getTileGrid" class="">
<a href="ol.source.TileJSON.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileJSON#getTileLoadFunction" class="unstable">
<a href="ol.source.TileJSON.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.TileJSON#getTileUrlFunction" class="unstable">
<a href="ol.source.TileJSON.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.TileJSON#getUrls" class="unstable">
<a href="ol.source.TileJSON.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.TileJSON#on" class="">
<a href="ol.source.TileJSON.html#on">on</a>
</li>
<li data-name="ol.source.TileJSON#once" class="">
<a href="ol.source.TileJSON.html#once">once</a>
</li>
<li data-name="ol.source.TileJSON#set" class="">
<a href="ol.source.TileJSON.html#set">set</a>
</li>
<li data-name="ol.source.TileJSON#setAttributions" class="unstable">
<a href="ol.source.TileJSON.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.TileJSON#setProperties" class="">
<a href="ol.source.TileJSON.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.TileJSON#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.TileJSON.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.TileJSON#setTileGridForProjection" class="unstable">
<a href="ol.source.TileJSON.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.TileJSON#setTileLoadFunction" class="unstable">
<a href="ol.source.TileJSON.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.TileJSON#setTileUrlFunction" class="unstable">
<a href="ol.source.TileJSON.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.TileJSON#setUrl" class="">
<a href="ol.source.TileJSON.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.TileJSON#setUrls" class="">
<a href="ol.source.TileJSON.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.TileJSON#un" class="">
<a href="ol.source.TileJSON.html#un">un</a>
</li>
<li data-name="ol.source.TileJSON#unByKey" class="">
<a href="ol.source.TileJSON.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.TileJSON#unset" class="">
<a href="ol.source.TileJSON.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileUTFGrid">
<span class="title">
<a href="ol.source.TileUTFGrid.html">ol.source.TileUTFGrid</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileUTFGrid#changed" class="unstable">
<a href="ol.source.TileUTFGrid.html#changed">changed</a>
</li>
<li data-name="ol.source.TileUTFGrid#dispatchEvent" class="unstable">
<a href="ol.source.TileUTFGrid.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.TileUTFGrid#forDataAtCoordinateAndResolution" class="unstable">
<a href="ol.source.TileUTFGrid.html#forDataAtCoordinateAndResolution">forDataAtCoordinateAndResolution</a>
</li>
<li data-name="ol.source.TileUTFGrid#get" class="">
<a href="ol.source.TileUTFGrid.html#get">get</a>
</li>
<li data-name="ol.source.TileUTFGrid#getAttributions" class="">
<a href="ol.source.TileUTFGrid.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileUTFGrid#getKeys" class="">
<a href="ol.source.TileUTFGrid.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.TileUTFGrid#getLogo" class="">
<a href="ol.source.TileUTFGrid.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileUTFGrid#getProjection" class="unstable">
<a href="ol.source.TileUTFGrid.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileUTFGrid#getProperties" class="">
<a href="ol.source.TileUTFGrid.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.TileUTFGrid#getRevision" class="unstable">
<a href="ol.source.TileUTFGrid.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileUTFGrid#getState" class="unstable">
<a href="ol.source.TileUTFGrid.html#getState">getState</a>
</li>
<li data-name="ol.source.TileUTFGrid#getTemplate" class="unstable">
<a href="ol.source.TileUTFGrid.html#getTemplate">getTemplate</a>
</li>
<li data-name="ol.source.TileUTFGrid#getTileGrid" class="">
<a href="ol.source.TileUTFGrid.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileUTFGrid#on" class="">
<a href="ol.source.TileUTFGrid.html#on">on</a>
</li>
<li data-name="ol.source.TileUTFGrid#once" class="">
<a href="ol.source.TileUTFGrid.html#once">once</a>
</li>
<li data-name="ol.source.TileUTFGrid#set" class="">
<a href="ol.source.TileUTFGrid.html#set">set</a>
</li>
<li data-name="ol.source.TileUTFGrid#setAttributions" class="unstable">
<a href="ol.source.TileUTFGrid.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.TileUTFGrid#setProperties" class="">
<a href="ol.source.TileUTFGrid.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.TileUTFGrid#un" class="">
<a href="ol.source.TileUTFGrid.html#un">un</a>
</li>
<li data-name="ol.source.TileUTFGrid#unByKey" class="">
<a href="ol.source.TileUTFGrid.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.TileUTFGrid#unset" class="">
<a href="ol.source.TileUTFGrid.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.TileWMS">
<span class="title">
<a href="ol.source.TileWMS.html">ol.source.TileWMS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.TileWMS#changed" class="unstable">
<a href="ol.source.TileWMS.html#changed">changed</a>
</li>
<li data-name="ol.source.TileWMS#dispatchEvent" class="unstable">
<a href="ol.source.TileWMS.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.TileWMS#get" class="">
<a href="ol.source.TileWMS.html#get">get</a>
</li>
<li data-name="ol.source.TileWMS#getAttributions" class="">
<a href="ol.source.TileWMS.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.TileWMS#getGetFeatureInfoUrl" class="">
<a href="ol.source.TileWMS.html#getGetFeatureInfoUrl">getGetFeatureInfoUrl</a>
</li>
<li data-name="ol.source.TileWMS#getKeys" class="">
<a href="ol.source.TileWMS.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.TileWMS#getLogo" class="">
<a href="ol.source.TileWMS.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.TileWMS#getParams" class="">
<a href="ol.source.TileWMS.html#getParams">getParams</a>
</li>
<li data-name="ol.source.TileWMS#getProjection" class="unstable">
<a href="ol.source.TileWMS.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.TileWMS#getProperties" class="">
<a href="ol.source.TileWMS.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.TileWMS#getRevision" class="unstable">
<a href="ol.source.TileWMS.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.TileWMS#getState" class="unstable">
<a href="ol.source.TileWMS.html#getState">getState</a>
</li>
<li data-name="ol.source.TileWMS#getTileGrid" class="">
<a href="ol.source.TileWMS.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.TileWMS#getTileLoadFunction" class="unstable">
<a href="ol.source.TileWMS.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.TileWMS#getTileUrlFunction" class="unstable">
<a href="ol.source.TileWMS.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.TileWMS#getUrls" class="unstable">
<a href="ol.source.TileWMS.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.TileWMS#on" class="">
<a href="ol.source.TileWMS.html#on">on</a>
</li>
<li data-name="ol.source.TileWMS#once" class="">
<a href="ol.source.TileWMS.html#once">once</a>
</li>
<li data-name="ol.source.TileWMS#set" class="">
<a href="ol.source.TileWMS.html#set">set</a>
</li>
<li data-name="ol.source.TileWMS#setAttributions" class="unstable">
<a href="ol.source.TileWMS.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.TileWMS#setProperties" class="">
<a href="ol.source.TileWMS.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.TileWMS#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.TileWMS.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.TileWMS#setTileGridForProjection" class="unstable">
<a href="ol.source.TileWMS.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.TileWMS#setTileLoadFunction" class="unstable">
<a href="ol.source.TileWMS.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.TileWMS#setTileUrlFunction" class="unstable">
<a href="ol.source.TileWMS.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.TileWMS#setUrl" class="">
<a href="ol.source.TileWMS.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.TileWMS#setUrls" class="">
<a href="ol.source.TileWMS.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.TileWMS#un" class="">
<a href="ol.source.TileWMS.html#un">un</a>
</li>
<li data-name="ol.source.TileWMS#unByKey" class="">
<a href="ol.source.TileWMS.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.TileWMS#unset" class="">
<a href="ol.source.TileWMS.html#unset">unset</a>
</li>
<li data-name="ol.source.TileWMS#updateParams" class="">
<a href="ol.source.TileWMS.html#updateParams">updateParams</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.UrlTile">
<span class="title">
<a href="ol.source.UrlTile.html">ol.source.UrlTile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.UrlTile#changed" class="unstable">
<a href="ol.source.UrlTile.html#changed">changed</a>
</li>
<li data-name="ol.source.UrlTile#dispatchEvent" class="unstable">
<a href="ol.source.UrlTile.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.UrlTile#get" class="">
<a href="ol.source.UrlTile.html#get">get</a>
</li>
<li data-name="ol.source.UrlTile#getAttributions" class="">
<a href="ol.source.UrlTile.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.UrlTile#getKeys" class="">
<a href="ol.source.UrlTile.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.UrlTile#getLogo" class="">
<a href="ol.source.UrlTile.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.UrlTile#getProjection" class="unstable">
<a href="ol.source.UrlTile.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.UrlTile#getProperties" class="">
<a href="ol.source.UrlTile.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.UrlTile#getRevision" class="unstable">
<a href="ol.source.UrlTile.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.UrlTile#getState" class="unstable">
<a href="ol.source.UrlTile.html#getState">getState</a>
</li>
<li data-name="ol.source.UrlTile#getTileGrid" class="">
<a href="ol.source.UrlTile.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.UrlTile#getTileLoadFunction" class="unstable">
<a href="ol.source.UrlTile.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.UrlTile#getTileUrlFunction" class="unstable">
<a href="ol.source.UrlTile.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.UrlTile#getUrls" class="unstable">
<a href="ol.source.UrlTile.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.UrlTile#on" class="">
<a href="ol.source.UrlTile.html#on">on</a>
</li>
<li data-name="ol.source.UrlTile#once" class="">
<a href="ol.source.UrlTile.html#once">once</a>
</li>
<li data-name="ol.source.UrlTile#set" class="">
<a href="ol.source.UrlTile.html#set">set</a>
</li>
<li data-name="ol.source.UrlTile#setAttributions" class="unstable">
<a href="ol.source.UrlTile.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.UrlTile#setProperties" class="">
<a href="ol.source.UrlTile.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.UrlTile#setTileLoadFunction" class="unstable">
<a href="ol.source.UrlTile.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.UrlTile#setTileUrlFunction" class="unstable">
<a href="ol.source.UrlTile.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.UrlTile#setUrl" class="">
<a href="ol.source.UrlTile.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.UrlTile#setUrls" class="">
<a href="ol.source.UrlTile.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.UrlTile#un" class="">
<a href="ol.source.UrlTile.html#un">un</a>
</li>
<li data-name="ol.source.UrlTile#unByKey" class="">
<a href="ol.source.UrlTile.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.UrlTile#unset" class="">
<a href="ol.source.UrlTile.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Vector">
<span class="title">
<a href="ol.source.Vector.html">ol.source.Vector</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Vector#addFeature" class="">
<a href="ol.source.Vector.html#addFeature">addFeature</a>
</li>
<li data-name="ol.source.Vector#addFeatures" class="">
<a href="ol.source.Vector.html#addFeatures">addFeatures</a>
</li>
<li data-name="ol.source.Vector#changed" class="unstable">
<a href="ol.source.Vector.html#changed">changed</a>
</li>
<li data-name="ol.source.Vector#clear" class="">
<a href="ol.source.Vector.html#clear">clear</a>
</li>
<li data-name="ol.source.Vector#dispatchEvent" class="unstable">
<a href="ol.source.Vector.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Vector#forEachFeature" class="">
<a href="ol.source.Vector.html#forEachFeature">forEachFeature</a>
</li>
<li data-name="ol.source.Vector#forEachFeatureInExtent" class="unstable">
<a href="ol.source.Vector.html#forEachFeatureInExtent">forEachFeatureInExtent</a>
</li>
<li data-name="ol.source.Vector#forEachFeatureIntersectingExtent" class="unstable">
<a href="ol.source.Vector.html#forEachFeatureIntersectingExtent">forEachFeatureIntersectingExtent</a>
</li>
<li data-name="ol.source.Vector#get" class="">
<a href="ol.source.Vector.html#get">get</a>
</li>
<li data-name="ol.source.Vector#getAttributions" class="">
<a href="ol.source.Vector.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Vector#getClosestFeatureToCoordinate" class="">
<a href="ol.source.Vector.html#getClosestFeatureToCoordinate">getClosestFeatureToCoordinate</a>
</li>
<li data-name="ol.source.Vector#getExtent" class="">
<a href="ol.source.Vector.html#getExtent">getExtent</a>
</li>
<li data-name="ol.source.Vector#getFeatureById" class="">
<a href="ol.source.Vector.html#getFeatureById">getFeatureById</a>
</li>
<li data-name="ol.source.Vector#getFeatures" class="">
<a href="ol.source.Vector.html#getFeatures">getFeatures</a>
</li>
<li data-name="ol.source.Vector#getFeaturesAtCoordinate" class="">
<a href="ol.source.Vector.html#getFeaturesAtCoordinate">getFeaturesAtCoordinate</a>
</li>
<li data-name="ol.source.Vector#getFeaturesCollection" class="unstable">
<a href="ol.source.Vector.html#getFeaturesCollection">getFeaturesCollection</a>
</li>
<li data-name="ol.source.Vector#getFeaturesInExtent" class="unstable">
<a href="ol.source.Vector.html#getFeaturesInExtent">getFeaturesInExtent</a>
</li>
<li data-name="ol.source.Vector#getKeys" class="">
<a href="ol.source.Vector.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Vector#getLogo" class="">
<a href="ol.source.Vector.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Vector#getProjection" class="unstable">
<a href="ol.source.Vector.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Vector#getProperties" class="">
<a href="ol.source.Vector.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Vector#getRevision" class="unstable">
<a href="ol.source.Vector.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Vector#getState" class="unstable">
<a href="ol.source.Vector.html#getState">getState</a>
</li>
<li data-name="ol.source.Vector#on" class="">
<a href="ol.source.Vector.html#on">on</a>
</li>
<li data-name="ol.source.Vector#once" class="">
<a href="ol.source.Vector.html#once">once</a>
</li>
<li data-name="ol.source.Vector#removeFeature" class="">
<a href="ol.source.Vector.html#removeFeature">removeFeature</a>
</li>
<li data-name="ol.source.Vector#set" class="">
<a href="ol.source.Vector.html#set">set</a>
</li>
<li data-name="ol.source.Vector#setAttributions" class="unstable">
<a href="ol.source.Vector.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Vector#setProperties" class="">
<a href="ol.source.Vector.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Vector#un" class="">
<a href="ol.source.Vector.html#un">un</a>
</li>
<li data-name="ol.source.Vector#unByKey" class="">
<a href="ol.source.Vector.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Vector#unset" class="">
<a href="ol.source.Vector.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="ol.source.VectorEvent#event:addfeature" class="">
<a href="ol.source.VectorEvent.html#event:addfeature">addfeature</a>
</li>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.source.VectorEvent#event:changefeature" class="unstable">
<a href="ol.source.VectorEvent.html#event:changefeature">changefeature</a>
</li>
<li data-name="ol.source.VectorEvent#event:clear" class="unstable">
<a href="ol.source.VectorEvent.html#event:clear">clear</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.VectorEvent#event:removefeature" class="">
<a href="ol.source.VectorEvent.html#event:removefeature">removefeature</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.VectorEvent">
<span class="title">
<a href="ol.source.VectorEvent.html">ol.source.VectorEvent</a>
</span>
<ul class="members itemMembers">
<span class="subtitle">Members</span>
<li data-name="ol.source.VectorEvent#feature"><a href="ol.source.VectorEvent.html#feature">feature</a></li>
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.source.VectorTile">
<span class="title">
<a href="ol.source.VectorTile.html">ol.source.VectorTile</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.VectorTile#changed" class="unstable">
<a href="ol.source.VectorTile.html#changed">changed</a>
</li>
<li data-name="ol.source.VectorTile#dispatchEvent" class="unstable">
<a href="ol.source.VectorTile.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.VectorTile#get" class="">
<a href="ol.source.VectorTile.html#get">get</a>
</li>
<li data-name="ol.source.VectorTile#getAttributions" class="">
<a href="ol.source.VectorTile.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.VectorTile#getKeys" class="">
<a href="ol.source.VectorTile.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.VectorTile#getLogo" class="">
<a href="ol.source.VectorTile.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.VectorTile#getProjection" class="unstable">
<a href="ol.source.VectorTile.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.VectorTile#getProperties" class="">
<a href="ol.source.VectorTile.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.VectorTile#getRevision" class="unstable">
<a href="ol.source.VectorTile.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.VectorTile#getState" class="unstable">
<a href="ol.source.VectorTile.html#getState">getState</a>
</li>
<li data-name="ol.source.VectorTile#getTileGrid" class="">
<a href="ol.source.VectorTile.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.VectorTile#getTileLoadFunction" class="unstable">
<a href="ol.source.VectorTile.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.VectorTile#getTileUrlFunction" class="unstable">
<a href="ol.source.VectorTile.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.VectorTile#getUrls" class="unstable">
<a href="ol.source.VectorTile.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.VectorTile#on" class="">
<a href="ol.source.VectorTile.html#on">on</a>
</li>
<li data-name="ol.source.VectorTile#once" class="">
<a href="ol.source.VectorTile.html#once">once</a>
</li>
<li data-name="ol.source.VectorTile#set" class="">
<a href="ol.source.VectorTile.html#set">set</a>
</li>
<li data-name="ol.source.VectorTile#setAttributions" class="unstable">
<a href="ol.source.VectorTile.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.VectorTile#setProperties" class="">
<a href="ol.source.VectorTile.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.VectorTile#setTileLoadFunction" class="unstable">
<a href="ol.source.VectorTile.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.VectorTile#setTileUrlFunction" class="unstable">
<a href="ol.source.VectorTile.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.VectorTile#setUrl" class="">
<a href="ol.source.VectorTile.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.VectorTile#setUrls" class="">
<a href="ol.source.VectorTile.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.VectorTile#un" class="">
<a href="ol.source.VectorTile.html#un">un</a>
</li>
<li data-name="ol.source.VectorTile#unByKey" class="">
<a href="ol.source.VectorTile.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.VectorTile#unset" class="">
<a href="ol.source.VectorTile.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.WMTS">
<span class="title">
<a href="ol.source.WMTS.html">ol.source.WMTS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.WMTS.optionsFromCapabilities" class="unstable">
<a href="ol.source.WMTS.html#.optionsFromCapabilities">optionsFromCapabilities</a>
</li>
<li data-name="ol.source.WMTS#changed" class="unstable">
<a href="ol.source.WMTS.html#changed">changed</a>
</li>
<li data-name="ol.source.WMTS#dispatchEvent" class="unstable">
<a href="ol.source.WMTS.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.WMTS#get" class="">
<a href="ol.source.WMTS.html#get">get</a>
</li>
<li data-name="ol.source.WMTS#getAttributions" class="">
<a href="ol.source.WMTS.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.WMTS#getDimensions" class="unstable">
<a href="ol.source.WMTS.html#getDimensions">getDimensions</a>
</li>
<li data-name="ol.source.WMTS#getFormat" class="unstable">
<a href="ol.source.WMTS.html#getFormat">getFormat</a>
</li>
<li data-name="ol.source.WMTS#getKeys" class="">
<a href="ol.source.WMTS.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.WMTS#getLayer" class="unstable">
<a href="ol.source.WMTS.html#getLayer">getLayer</a>
</li>
<li data-name="ol.source.WMTS#getLogo" class="">
<a href="ol.source.WMTS.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.WMTS#getMatrixSet" class="unstable">
<a href="ol.source.WMTS.html#getMatrixSet">getMatrixSet</a>
</li>
<li data-name="ol.source.WMTS#getProjection" class="unstable">
<a href="ol.source.WMTS.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.WMTS#getProperties" class="">
<a href="ol.source.WMTS.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.WMTS#getRequestEncoding" class="unstable">
<a href="ol.source.WMTS.html#getRequestEncoding">getRequestEncoding</a>
</li>
<li data-name="ol.source.WMTS#getRevision" class="unstable">
<a href="ol.source.WMTS.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.WMTS#getState" class="unstable">
<a href="ol.source.WMTS.html#getState">getState</a>
</li>
<li data-name="ol.source.WMTS#getStyle" class="unstable">
<a href="ol.source.WMTS.html#getStyle">getStyle</a>
</li>
<li data-name="ol.source.WMTS#getTileGrid" class="">
<a href="ol.source.WMTS.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.WMTS#getTileLoadFunction" class="unstable">
<a href="ol.source.WMTS.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.WMTS#getTileUrlFunction" class="unstable">
<a href="ol.source.WMTS.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.WMTS#getUrls" class="unstable">
<a href="ol.source.WMTS.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.WMTS#getVersion" class="unstable">
<a href="ol.source.WMTS.html#getVersion">getVersion</a>
</li>
<li data-name="ol.source.WMTS#on" class="">
<a href="ol.source.WMTS.html#on">on</a>
</li>
<li data-name="ol.source.WMTS#once" class="">
<a href="ol.source.WMTS.html#once">once</a>
</li>
<li data-name="ol.source.WMTS#set" class="">
<a href="ol.source.WMTS.html#set">set</a>
</li>
<li data-name="ol.source.WMTS#setAttributions" class="unstable">
<a href="ol.source.WMTS.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.WMTS#setProperties" class="">
<a href="ol.source.WMTS.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.WMTS#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.WMTS.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.WMTS#setTileGridForProjection" class="unstable">
<a href="ol.source.WMTS.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.WMTS#setTileLoadFunction" class="unstable">
<a href="ol.source.WMTS.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.WMTS#setTileUrlFunction" class="unstable">
<a href="ol.source.WMTS.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.WMTS#setUrl" class="">
<a href="ol.source.WMTS.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.WMTS#setUrls" class="">
<a href="ol.source.WMTS.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.WMTS#un" class="">
<a href="ol.source.WMTS.html#un">un</a>
</li>
<li data-name="ol.source.WMTS#unByKey" class="">
<a href="ol.source.WMTS.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.WMTS#unset" class="">
<a href="ol.source.WMTS.html#unset">unset</a>
</li>
<li data-name="ol.source.WMTS#updateDimensions" class="unstable">
<a href="ol.source.WMTS.html#updateDimensions">updateDimensions</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.XYZ">
<span class="title">
<a href="ol.source.XYZ.html">ol.source.XYZ</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.XYZ#changed" class="unstable">
<a href="ol.source.XYZ.html#changed">changed</a>
</li>
<li data-name="ol.source.XYZ#dispatchEvent" class="unstable">
<a href="ol.source.XYZ.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.XYZ#get" class="">
<a href="ol.source.XYZ.html#get">get</a>
</li>
<li data-name="ol.source.XYZ#getAttributions" class="">
<a href="ol.source.XYZ.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.XYZ#getKeys" class="">
<a href="ol.source.XYZ.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.XYZ#getLogo" class="">
<a href="ol.source.XYZ.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.XYZ#getProjection" class="unstable">
<a href="ol.source.XYZ.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.XYZ#getProperties" class="">
<a href="ol.source.XYZ.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.XYZ#getRevision" class="unstable">
<a href="ol.source.XYZ.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.XYZ#getState" class="unstable">
<a href="ol.source.XYZ.html#getState">getState</a>
</li>
<li data-name="ol.source.XYZ#getTileGrid" class="">
<a href="ol.source.XYZ.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.XYZ#getTileLoadFunction" class="unstable">
<a href="ol.source.XYZ.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.XYZ#getTileUrlFunction" class="unstable">
<a href="ol.source.XYZ.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.XYZ#getUrls" class="unstable">
<a href="ol.source.XYZ.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.XYZ#on" class="">
<a href="ol.source.XYZ.html#on">on</a>
</li>
<li data-name="ol.source.XYZ#once" class="">
<a href="ol.source.XYZ.html#once">once</a>
</li>
<li data-name="ol.source.XYZ#set" class="">
<a href="ol.source.XYZ.html#set">set</a>
</li>
<li data-name="ol.source.XYZ#setAttributions" class="unstable">
<a href="ol.source.XYZ.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.XYZ#setProperties" class="">
<a href="ol.source.XYZ.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.XYZ#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.XYZ.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.XYZ#setTileGridForProjection" class="unstable">
<a href="ol.source.XYZ.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.XYZ#setTileLoadFunction" class="unstable">
<a href="ol.source.XYZ.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.XYZ#setTileUrlFunction" class="unstable">
<a href="ol.source.XYZ.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.XYZ#setUrl" class="">
<a href="ol.source.XYZ.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.XYZ#setUrls" class="">
<a href="ol.source.XYZ.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.XYZ#un" class="">
<a href="ol.source.XYZ.html#un">un</a>
</li>
<li data-name="ol.source.XYZ#unByKey" class="">
<a href="ol.source.XYZ.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.XYZ#unset" class="">
<a href="ol.source.XYZ.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.Zoomify">
<span class="title">
<a href="ol.source.Zoomify.html">ol.source.Zoomify</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.source.Zoomify#changed" class="unstable">
<a href="ol.source.Zoomify.html#changed">changed</a>
</li>
<li data-name="ol.source.Zoomify#dispatchEvent" class="unstable">
<a href="ol.source.Zoomify.html#dispatchEvent">dispatchEvent</a>
</li>
<li data-name="ol.source.Zoomify#get" class="">
<a href="ol.source.Zoomify.html#get">get</a>
</li>
<li data-name="ol.source.Zoomify#getAttributions" class="">
<a href="ol.source.Zoomify.html#getAttributions">getAttributions</a>
</li>
<li data-name="ol.source.Zoomify#getKeys" class="">
<a href="ol.source.Zoomify.html#getKeys">getKeys</a>
</li>
<li data-name="ol.source.Zoomify#getLogo" class="">
<a href="ol.source.Zoomify.html#getLogo">getLogo</a>
</li>
<li data-name="ol.source.Zoomify#getProjection" class="unstable">
<a href="ol.source.Zoomify.html#getProjection">getProjection</a>
</li>
<li data-name="ol.source.Zoomify#getProperties" class="">
<a href="ol.source.Zoomify.html#getProperties">getProperties</a>
</li>
<li data-name="ol.source.Zoomify#getRevision" class="unstable">
<a href="ol.source.Zoomify.html#getRevision">getRevision</a>
</li>
<li data-name="ol.source.Zoomify#getState" class="unstable">
<a href="ol.source.Zoomify.html#getState">getState</a>
</li>
<li data-name="ol.source.Zoomify#getTileGrid" class="">
<a href="ol.source.Zoomify.html#getTileGrid">getTileGrid</a>
</li>
<li data-name="ol.source.Zoomify#getTileLoadFunction" class="unstable">
<a href="ol.source.Zoomify.html#getTileLoadFunction">getTileLoadFunction</a>
</li>
<li data-name="ol.source.Zoomify#getTileUrlFunction" class="unstable">
<a href="ol.source.Zoomify.html#getTileUrlFunction">getTileUrlFunction</a>
</li>
<li data-name="ol.source.Zoomify#getUrls" class="unstable">
<a href="ol.source.Zoomify.html#getUrls">getUrls</a>
</li>
<li data-name="ol.source.Zoomify#on" class="">
<a href="ol.source.Zoomify.html#on">on</a>
</li>
<li data-name="ol.source.Zoomify#once" class="">
<a href="ol.source.Zoomify.html#once">once</a>
</li>
<li data-name="ol.source.Zoomify#set" class="">
<a href="ol.source.Zoomify.html#set">set</a>
</li>
<li data-name="ol.source.Zoomify#setAttributions" class="unstable">
<a href="ol.source.Zoomify.html#setAttributions">setAttributions</a>
</li>
<li data-name="ol.source.Zoomify#setProperties" class="">
<a href="ol.source.Zoomify.html#setProperties">setProperties</a>
</li>
<li data-name="ol.source.Zoomify#setRenderReprojectionEdges" class="unstable">
<a href="ol.source.Zoomify.html#setRenderReprojectionEdges">setRenderReprojectionEdges</a>
</li>
<li data-name="ol.source.Zoomify#setTileGridForProjection" class="unstable">
<a href="ol.source.Zoomify.html#setTileGridForProjection">setTileGridForProjection</a>
</li>
<li data-name="ol.source.Zoomify#setTileLoadFunction" class="unstable">
<a href="ol.source.Zoomify.html#setTileLoadFunction">setTileLoadFunction</a>
</li>
<li data-name="ol.source.Zoomify#setTileUrlFunction" class="unstable">
<a href="ol.source.Zoomify.html#setTileUrlFunction">setTileUrlFunction</a>
</li>
<li data-name="ol.source.Zoomify#setUrl" class="">
<a href="ol.source.Zoomify.html#setUrl">setUrl</a>
</li>
<li data-name="ol.source.Zoomify#setUrls" class="">
<a href="ol.source.Zoomify.html#setUrls">setUrls</a>
</li>
<li data-name="ol.source.Zoomify#un" class="">
<a href="ol.source.Zoomify.html#un">un</a>
</li>
<li data-name="ol.source.Zoomify#unByKey" class="">
<a href="ol.source.Zoomify.html#unByKey">unByKey</a>
</li>
<li data-name="ol.source.Zoomify#unset" class="">
<a href="ol.source.Zoomify.html#unset">unset</a>
</li>
</ul>
<ul class="fires itemMembers">
<span class="subtitle">Fires</span>
<li data-name="event:change" class="unstable">
<a href="global.html#event:change">change</a>
</li>
<li data-name="ol.ObjectEvent#event:propertychange" class="">
<a href="ol.ObjectEvent.html#event:propertychange">propertychange</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadend" class="">
<a href="ol.source.TileEvent.html#event:tileloadend">tileloadend</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloaderror" class="">
<a href="ol.source.TileEvent.html#event:tileloaderror">tileloaderror</a>
</li>
<li data-name="ol.source.TileEvent#event:tileloadstart" class="">
<a href="ol.source.TileEvent.html#event:tileloadstart">tileloadstart</a>
</li>
</ul>
</li>
<li class="item" data-name="ol.source.wms">
<span class="title">
<a href="ol.source.wms.html">ol.source.wms</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.source.wms.ServerType" class="unstable">
<a href="ol.source.wms.html#.ServerType">ServerType</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style">
<span class="title">
<a href="ol.style.html">ol.style</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
<span class="subtitle">Typedefs</span>
<li data-name="ol.style.GeometryFunction" class="unstable">
<a href="ol.style.html#.GeometryFunction">GeometryFunction</a>
</li>
<li data-name="ol.style.IconAnchorUnits" class="unstable">
<a href="ol.style.html#.IconAnchorUnits">IconAnchorUnits</a>
</li>
<li data-name="ol.style.IconOrigin" class="unstable">
<a href="ol.style.html#.IconOrigin">IconOrigin</a>
</li>
<li data-name="ol.style.StyleFunction" class="unstable">
<a href="ol.style.html#.StyleFunction">StyleFunction</a>
</li>
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.AtlasManager">
<span class="title">
<a href="ol.style.AtlasManager.html">ol.style.AtlasManager</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Circle">
<span class="title">
<a href="ol.style.Circle.html">ol.style.Circle</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Circle#getFill" class="unstable">
<a href="ol.style.Circle.html#getFill">getFill</a>
</li>
<li data-name="ol.style.Circle#getImage" class="unstable">
<a href="ol.style.Circle.html#getImage">getImage</a>
</li>
<li data-name="ol.style.Circle#getOpacity" class="unstable">
<a href="ol.style.Circle.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.Circle#getRadius" class="unstable">
<a href="ol.style.Circle.html#getRadius">getRadius</a>
</li>
<li data-name="ol.style.Circle#getRotateWithView" class="unstable">
<a href="ol.style.Circle.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.Circle#getRotation" class="unstable">
<a href="ol.style.Circle.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Circle#getScale" class="unstable">
<a href="ol.style.Circle.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Circle#getSnapToPixel" class="unstable">
<a href="ol.style.Circle.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.Circle#getStroke" class="unstable">
<a href="ol.style.Circle.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.Circle#setOpacity" class="unstable">
<a href="ol.style.Circle.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.style.Circle#setRotation" class="unstable">
<a href="ol.style.Circle.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Circle#setScale" class="unstable">
<a href="ol.style.Circle.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Fill">
<span class="title">
<a href="ol.style.Fill.html">ol.style.Fill</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Fill#getColor" class="unstable">
<a href="ol.style.Fill.html#getColor">getColor</a>
</li>
<li data-name="ol.style.Fill#setColor" class="unstable">
<a href="ol.style.Fill.html#setColor">setColor</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Icon">
<span class="title">
<a href="ol.style.Icon.html">ol.style.Icon</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Icon#getAnchor" class="unstable">
<a href="ol.style.Icon.html#getAnchor">getAnchor</a>
</li>
<li data-name="ol.style.Icon#getImage" class="unstable">
<a href="ol.style.Icon.html#getImage">getImage</a>
</li>
<li data-name="ol.style.Icon#getOpacity" class="unstable">
<a href="ol.style.Icon.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.Icon#getOrigin" class="unstable">
<a href="ol.style.Icon.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.style.Icon#getRotateWithView" class="unstable">
<a href="ol.style.Icon.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.Icon#getRotation" class="unstable">
<a href="ol.style.Icon.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Icon#getScale" class="unstable">
<a href="ol.style.Icon.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Icon#getSize" class="unstable">
<a href="ol.style.Icon.html#getSize">getSize</a>
</li>
<li data-name="ol.style.Icon#getSnapToPixel" class="unstable">
<a href="ol.style.Icon.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.Icon#getSrc" class="unstable">
<a href="ol.style.Icon.html#getSrc">getSrc</a>
</li>
<li data-name="ol.style.Icon#load" class="unstable">
<a href="ol.style.Icon.html#load">load</a>
</li>
<li data-name="ol.style.Icon#setOpacity" class="unstable">
<a href="ol.style.Icon.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.style.Icon#setRotation" class="unstable">
<a href="ol.style.Icon.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Icon#setScale" class="unstable">
<a href="ol.style.Icon.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Image">
<span class="title">
<a href="ol.style.Image.html">ol.style.Image</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Image#getOpacity" class="unstable">
<a href="ol.style.Image.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.Image#getRotateWithView" class="unstable">
<a href="ol.style.Image.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.Image#getRotation" class="unstable">
<a href="ol.style.Image.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Image#getScale" class="unstable">
<a href="ol.style.Image.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Image#getSnapToPixel" class="unstable">
<a href="ol.style.Image.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.Image#setOpacity" class="unstable">
<a href="ol.style.Image.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.style.Image#setRotation" class="unstable">
<a href="ol.style.Image.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Image#setScale" class="unstable">
<a href="ol.style.Image.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.RegularShape">
<span class="title">
<a href="ol.style.RegularShape.html">ol.style.RegularShape</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.RegularShape#getAnchor" class="unstable">
<a href="ol.style.RegularShape.html#getAnchor">getAnchor</a>
</li>
<li data-name="ol.style.RegularShape#getAngle" class="unstable">
<a href="ol.style.RegularShape.html#getAngle">getAngle</a>
</li>
<li data-name="ol.style.RegularShape#getFill" class="unstable">
<a href="ol.style.RegularShape.html#getFill">getFill</a>
</li>
<li data-name="ol.style.RegularShape#getImage" class="unstable">
<a href="ol.style.RegularShape.html#getImage">getImage</a>
</li>
<li data-name="ol.style.RegularShape#getOpacity" class="unstable">
<a href="ol.style.RegularShape.html#getOpacity">getOpacity</a>
</li>
<li data-name="ol.style.RegularShape#getOrigin" class="unstable">
<a href="ol.style.RegularShape.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.style.RegularShape#getPoints" class="unstable">
<a href="ol.style.RegularShape.html#getPoints">getPoints</a>
</li>
<li data-name="ol.style.RegularShape#getRadius" class="unstable">
<a href="ol.style.RegularShape.html#getRadius">getRadius</a>
</li>
<li data-name="ol.style.RegularShape#getRadius2" class="unstable">
<a href="ol.style.RegularShape.html#getRadius2">getRadius2</a>
</li>
<li data-name="ol.style.RegularShape#getRotateWithView" class="unstable">
<a href="ol.style.RegularShape.html#getRotateWithView">getRotateWithView</a>
</li>
<li data-name="ol.style.RegularShape#getRotation" class="unstable">
<a href="ol.style.RegularShape.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.RegularShape#getScale" class="unstable">
<a href="ol.style.RegularShape.html#getScale">getScale</a>
</li>
<li data-name="ol.style.RegularShape#getSize" class="unstable">
<a href="ol.style.RegularShape.html#getSize">getSize</a>
</li>
<li data-name="ol.style.RegularShape#getSnapToPixel" class="unstable">
<a href="ol.style.RegularShape.html#getSnapToPixel">getSnapToPixel</a>
</li>
<li data-name="ol.style.RegularShape#getStroke" class="unstable">
<a href="ol.style.RegularShape.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.RegularShape#setOpacity" class="unstable">
<a href="ol.style.RegularShape.html#setOpacity">setOpacity</a>
</li>
<li data-name="ol.style.RegularShape#setRotation" class="unstable">
<a href="ol.style.RegularShape.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.RegularShape#setScale" class="unstable">
<a href="ol.style.RegularShape.html#setScale">setScale</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Stroke">
<span class="title">
<a href="ol.style.Stroke.html">ol.style.Stroke</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Stroke#getColor" class="unstable">
<a href="ol.style.Stroke.html#getColor">getColor</a>
</li>
<li data-name="ol.style.Stroke#getLineCap" class="unstable">
<a href="ol.style.Stroke.html#getLineCap">getLineCap</a>
</li>
<li data-name="ol.style.Stroke#getLineDash" class="unstable">
<a href="ol.style.Stroke.html#getLineDash">getLineDash</a>
</li>
<li data-name="ol.style.Stroke#getLineJoin" class="unstable">
<a href="ol.style.Stroke.html#getLineJoin">getLineJoin</a>
</li>
<li data-name="ol.style.Stroke#getMiterLimit" class="unstable">
<a href="ol.style.Stroke.html#getMiterLimit">getMiterLimit</a>
</li>
<li data-name="ol.style.Stroke#getWidth" class="unstable">
<a href="ol.style.Stroke.html#getWidth">getWidth</a>
</li>
<li data-name="ol.style.Stroke#setColor" class="unstable">
<a href="ol.style.Stroke.html#setColor">setColor</a>
</li>
<li data-name="ol.style.Stroke#setLineCap" class="unstable">
<a href="ol.style.Stroke.html#setLineCap">setLineCap</a>
</li>
<li data-name="ol.style.Stroke#setLineDash" class="unstable">
<a href="ol.style.Stroke.html#setLineDash">setLineDash</a>
</li>
<li data-name="ol.style.Stroke#setLineJoin" class="unstable">
<a href="ol.style.Stroke.html#setLineJoin">setLineJoin</a>
</li>
<li data-name="ol.style.Stroke#setMiterLimit" class="unstable">
<a href="ol.style.Stroke.html#setMiterLimit">setMiterLimit</a>
</li>
<li data-name="ol.style.Stroke#setWidth" class="unstable">
<a href="ol.style.Stroke.html#setWidth">setWidth</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Style">
<span class="title">
<a href="ol.style.Style.html">ol.style.Style</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Style#getFill" class="unstable">
<a href="ol.style.Style.html#getFill">getFill</a>
</li>
<li data-name="ol.style.Style#getGeometry" class="unstable">
<a href="ol.style.Style.html#getGeometry">getGeometry</a>
</li>
<li data-name="ol.style.Style#getGeometryFunction" class="unstable">
<a href="ol.style.Style.html#getGeometryFunction">getGeometryFunction</a>
</li>
<li data-name="ol.style.Style#getImage" class="unstable">
<a href="ol.style.Style.html#getImage">getImage</a>
</li>
<li data-name="ol.style.Style#getStroke" class="unstable">
<a href="ol.style.Style.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.Style#getText" class="unstable">
<a href="ol.style.Style.html#getText">getText</a>
</li>
<li data-name="ol.style.Style#getZIndex" class="unstable">
<a href="ol.style.Style.html#getZIndex">getZIndex</a>
</li>
<li data-name="ol.style.Style#setGeometry" class="unstable">
<a href="ol.style.Style.html#setGeometry">setGeometry</a>
</li>
<li data-name="ol.style.Style#setZIndex" class="unstable">
<a href="ol.style.Style.html#setZIndex">setZIndex</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.style.Text">
<span class="title">
<a href="ol.style.Text.html">ol.style.Text</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.style.Text#getFill" class="unstable">
<a href="ol.style.Text.html#getFill">getFill</a>
</li>
<li data-name="ol.style.Text#getFont" class="unstable">
<a href="ol.style.Text.html#getFont">getFont</a>
</li>
<li data-name="ol.style.Text#getOffsetX" class="unstable">
<a href="ol.style.Text.html#getOffsetX">getOffsetX</a>
</li>
<li data-name="ol.style.Text#getOffsetY" class="unstable">
<a href="ol.style.Text.html#getOffsetY">getOffsetY</a>
</li>
<li data-name="ol.style.Text#getRotation" class="unstable">
<a href="ol.style.Text.html#getRotation">getRotation</a>
</li>
<li data-name="ol.style.Text#getScale" class="unstable">
<a href="ol.style.Text.html#getScale">getScale</a>
</li>
<li data-name="ol.style.Text#getStroke" class="unstable">
<a href="ol.style.Text.html#getStroke">getStroke</a>
</li>
<li data-name="ol.style.Text#getText" class="unstable">
<a href="ol.style.Text.html#getText">getText</a>
</li>
<li data-name="ol.style.Text#getTextAlign" class="unstable">
<a href="ol.style.Text.html#getTextAlign">getTextAlign</a>
</li>
<li data-name="ol.style.Text#getTextBaseline" class="unstable">
<a href="ol.style.Text.html#getTextBaseline">getTextBaseline</a>
</li>
<li data-name="ol.style.Text#setFill" class="unstable">
<a href="ol.style.Text.html#setFill">setFill</a>
</li>
<li data-name="ol.style.Text#setFont" class="unstable">
<a href="ol.style.Text.html#setFont">setFont</a>
</li>
<li data-name="ol.style.Text#setOffsetX" class="unstable">
<a href="ol.style.Text.html#setOffsetX">setOffsetX</a>
</li>
<li data-name="ol.style.Text#setOffsetY" class="unstable">
<a href="ol.style.Text.html#setOffsetY">setOffsetY</a>
</li>
<li data-name="ol.style.Text#setRotation" class="unstable">
<a href="ol.style.Text.html#setRotation">setRotation</a>
</li>
<li data-name="ol.style.Text#setScale" class="unstable">
<a href="ol.style.Text.html#setScale">setScale</a>
</li>
<li data-name="ol.style.Text#setStroke" class="unstable">
<a href="ol.style.Text.html#setStroke">setStroke</a>
</li>
<li data-name="ol.style.Text#setText" class="unstable">
<a href="ol.style.Text.html#setText">setText</a>
</li>
<li data-name="ol.style.Text#setTextAlign" class="unstable">
<a href="ol.style.Text.html#setTextAlign">setTextAlign</a>
</li>
<li data-name="ol.style.Text#setTextBaseline" class="unstable">
<a href="ol.style.Text.html#setTextBaseline">setTextBaseline</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid">
<span class="title">
<a href="ol.tilegrid.html">ol.tilegrid</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.tilegrid.createXYZ" class="unstable">
<a href="ol.tilegrid.html#.createXYZ">createXYZ</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid.TileGrid">
<span class="title">
<a href="ol.tilegrid.TileGrid.html">ol.tilegrid.TileGrid</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.tilegrid.TileGrid#getMaxZoom" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getMaxZoom">getMaxZoom</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getMinZoom" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getMinZoom">getMinZoom</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getOrigin" class="">
<a href="ol.tilegrid.TileGrid.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getResolution" class="">
<a href="ol.tilegrid.TileGrid.html#getResolution">getResolution</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getResolutions" class="">
<a href="ol.tilegrid.TileGrid.html#getResolutions">getResolutions</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getTileCoordExtent" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getTileCoordExtent">getTileCoordExtent</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getTileCoordForCoordAndResolution" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getTileCoordForCoordAndResolution">getTileCoordForCoordAndResolution</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getTileCoordForCoordAndZ" class="unstable">
<a href="ol.tilegrid.TileGrid.html#getTileCoordForCoordAndZ">getTileCoordForCoordAndZ</a>
</li>
<li data-name="ol.tilegrid.TileGrid#getTileSize" class="">
<a href="ol.tilegrid.TileGrid.html#getTileSize">getTileSize</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.tilegrid.WMTS">
<span class="title">
<a href="ol.tilegrid.WMTS.html">ol.tilegrid.WMTS</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet" class="unstable">
<a href="ol.tilegrid.WMTS.html#.createFromCapabilitiesMatrixSet">createFromCapabilitiesMatrixSet</a>
</li>
<li data-name="ol.tilegrid.WMTS#getMatrixIds" class="unstable">
<a href="ol.tilegrid.WMTS.html#getMatrixIds">getMatrixIds</a>
</li>
<li data-name="ol.tilegrid.WMTS#getMaxZoom" class="unstable">
<a href="ol.tilegrid.WMTS.html#getMaxZoom">getMaxZoom</a>
</li>
<li data-name="ol.tilegrid.WMTS#getMinZoom" class="unstable">
<a href="ol.tilegrid.WMTS.html#getMinZoom">getMinZoom</a>
</li>
<li data-name="ol.tilegrid.WMTS#getOrigin" class="">
<a href="ol.tilegrid.WMTS.html#getOrigin">getOrigin</a>
</li>
<li data-name="ol.tilegrid.WMTS#getResolution" class="">
<a href="ol.tilegrid.WMTS.html#getResolution">getResolution</a>
</li>
<li data-name="ol.tilegrid.WMTS#getResolutions" class="">
<a href="ol.tilegrid.WMTS.html#getResolutions">getResolutions</a>
</li>
<li data-name="ol.tilegrid.WMTS#getTileCoordExtent" class="unstable">
<a href="ol.tilegrid.WMTS.html#getTileCoordExtent">getTileCoordExtent</a>
</li>
<li data-name="ol.tilegrid.WMTS#getTileCoordForCoordAndResolution" class="unstable">
<a href="ol.tilegrid.WMTS.html#getTileCoordForCoordAndResolution">getTileCoordForCoordAndResolution</a>
</li>
<li data-name="ol.tilegrid.WMTS#getTileCoordForCoordAndZ" class="unstable">
<a href="ol.tilegrid.WMTS.html#getTileCoordForCoordAndZ">getTileCoordForCoordAndZ</a>
</li>
<li data-name="ol.tilegrid.WMTS#getTileSize" class="">
<a href="ol.tilegrid.WMTS.html#getTileSize">getTileSize</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
<li class="item" data-name="ol.webgl.Context">
<span class="title">
<a href="ol.webgl.Context.html">ol.webgl.Context</a>
</span>
<ul class="members itemMembers">
</ul>
<ul class="typedefs itemMembers">
</ul>
<ul class="methods itemMembers">
<span class="subtitle">Methods</span>
<li data-name="ol.webgl.Context#getGL" class="unstable">
<a href="ol.webgl.Context.html#getGL">getGL</a>
</li>
<li data-name="ol.webgl.Context#useProgram" class="unstable">
<a href="ol.webgl.Context.html#useProgram">useProgram</a>
</li>
</ul>
<ul class="fires itemMembers">
</ul>
</li>
</ul>
</div>
<div class="main">
<h1 class="page-title" data-filename="ol.proj.Projection.html">Class: Projection</h1>
<section>
<header>
<h2>
<span class="ancestors"><a href="ol.html">ol</a><a href="ol.proj.html">.proj</a>.</span>Projection
</h2>
<div class="class-description"><p>Projection definition class. One of these is created for each projection
supported in the application and stored in the <a href="ol.proj.html"><code>ol.proj</code></a> namespace.
You can use these in applications, but this is not required, as API params
and options use <a href="ol.proj.html#.ProjectionLike"><code>ol.proj.ProjectionLike</code></a> which means the simple string
code will suffice.</p>
<p>You can use <a href="ol.proj.html#.get"><code>ol.proj.get</code></a> to retrieve the object for a particular
projection.</p>
<p>The library includes definitions for <code>EPSG:4326</code> and <code>EPSG:3857</code>, together
with the following aliases:</p>
<ul>
<li><code>EPSG:4326</code>: CRS:84, urn:ogc:def:crs:EPSG:6.6:4326,
urn:ogc:def:crs:OGC:1.3:CRS84, urn:ogc:def:crs:OGC:2:84,
http://www.opengis.net/gml/srs/epsg.xml#4326,
urn:x-ogc:def:crs:EPSG:4326</li>
<li><code>EPSG:3857</code>: EPSG:102100, EPSG:102113, EPSG:900913,
urn:ogc:def:crs:EPSG:6.18:3:3857,
http://www.opengis.net/gml/srs/epsg.xml#3857</li>
</ul>
<p>If you use proj4js, aliases can be added using <code>proj4.defs()</code>; see
<a href="https://github.com/proj4js/proj4js">documentation</a>.</p></div>
</header>
<article>
<div class="container-overview">
<dt class="">
<div class="nameContainer">
<h4 class="name" id="Projection">
new ol.proj.Projection<span class="signature">(options)</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 85
</div>
</div>
</dt>
<dd class="">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>options</code></td>
<td colspan=2 class="description last">
<p>Projection options.</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>code</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">
<p>The SRS identifier code, e.g. <code>EPSG:4326</code>. <span class="required-option">Required.</span></p></td>
</tr>
<tr class="">
<td class="name"><code>units</code></td>
<td class="type">
<span class="param-type"><a href="ol.proj.html#.Units">ol.proj.Units</a></span>
|
<span class="param-type">string</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<p>Units. Required unless a proj4 projection is defined for <code>code</code>.</p></td>
</tr>
<tr class="">
<td class="name"><code>extent</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#.Extent">ol.Extent</a></span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<p>The validity extent for the SRS.</p></td>
</tr>
<tr class="">
<td class="name"><code>axisOrientation</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<p>The axis orientation as specified in Proj4. The default is <code>enu</code>.</p></td>
</tr>
<tr class="">
<td class="name"><code>global</code></td>
<td class="type">
<span class="param-type">boolean</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<p>Whether the projection is valid for the whole globe. Default is <code>false</code>.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>worldExtent</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#.Extent">ol.Extent</a></span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>The world extent for the SRS.</p></td>
</tr>
<tr class="unstable">
<td class="name"><code>getPointResolution</code></td>
<td class="type">
<span class="param-type">function</span>
|
<span class="param-type">undefined</span>
</td>
<td class="description last">
<span class="stability experimental">experimental</span>
<p>Function to determine resolution at a point. The function is called with a
<code>{number}</code> view resolution and an <code>{ol.Coordinate}</code> as arguments, and returns
the <code>{number}</code> resolution at the passed coordinate.</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
</div>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt class="">
<div class="nameContainer">
<h4 class="name" id="getCode">
getCode<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{string}</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 200
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Get the code for this projection, e.g. 'EPSG:4326'.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Code.
<br />
</dd>
<dt class="">
<div class="nameContainer">
<h4 class="name" id="getExtent">
getExtent<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.html#.Extent">ol.Extent</a>}</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 210
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Get the validity extent for this projection.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Extent.
<br />
</dd>
<dt class="">
<div class="nameContainer">
<h4 class="name" id="getMetersPerUnit">
getMetersPerUnit<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number|undefined}</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 231
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Get the amount of meters per unit of this projection. If the projection is
not configured with a units identifier, the return is <code>undefined</code>.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Meters.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer">
<h4 class="name" id="getPointResolution">
getPointResolution<span class="signature">(resolution, point)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{number}</span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 389
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Get the resolution of the point in degrees or distance units.
For projections with degrees as the unit this will simply return the
provided resolution. The default for other projections is to estimate
the point resolution by transforming the 'point' pixel to EPSG:4326,
measuring its width and height on the normal sphere,
and taking the average of the width and height.
An alternative implementation may be given when constructing a
projection. For many local projections,
such a custom function will return the resolution unchanged.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>resolution</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">
<p>Resolution in projection units.</p></td>
</tr>
<tr class="">
<td class="name"><code>point</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#.Coordinate">ol.Coordinate</a></span>
</td>
<td class="description last">
<p>Point.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
Point resolution in projection units.
<br />
</dd>
<dt class="">
<div class="nameContainer">
<h4 class="name" id="getUnits">
getUnits<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.proj.html#.Units">ol.proj.Units</a>}</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 220
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Get the units of this projection.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Units.
<br />
</dd>
<dt class="unstable">
<div class="nameContainer">
<h4 class="name" id="getWorldExtent">
getWorldExtent<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="ol.html#.Extent">ol.Extent</a>}</span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 241
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Get the world extent for this projection.</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Extent.
<br />
</dd>
<dt class="">
<div class="nameContainer">
<h4 class="name" id="isGlobal">
isGlobal<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 266
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Is this projection a global projection which spans the whole world?</p>
</div>
<dl class="details">
</dl>
<h5>Returns:</h5>
Whether the projection is global.
<br />
</dd>
<dt class="">
<div class="nameContainer">
<h4 class="name" id="setExtent">
setExtent<span class="signature">(extent)</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 303
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Set the validity extent for this projection.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>extent</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#.Extent">ol.Extent</a></span>
</td>
<td class="description last">
<p>Extent.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer">
<h4 class="name" id="setGetPointResolution">
setGetPointResolution<span class="signature">(func)</span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 325
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Set the getPointResolution function for this projection.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>func</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<p>Function</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="">
<div class="nameContainer">
<h4 class="name" id="setGlobal">
setGlobal<span class="signature">(global)</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 276
</div>
</div>
</dt>
<dd class="">
<div class="description">
<p>Set if the projection is a global projection which spans the whole world</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>global</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last">
<p>Whether the projection is global.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
<dt class="unstable">
<div class="nameContainer">
<h4 class="name" id="setWorldExtent">
setWorldExtent<span class="signature">(worldExtent)</span>
<span class="stability experimental">experimental</span>
</h4>
<div class="tag-source">
src/ol/proj/proj.js, line 315
</div>
</div>
</dt>
<dd class="unstable">
<div class="description">
<p>Set the world extent for this projection.</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr class="">
<td class="name"><code>worldExtent</code></td>
<td class="type">
<span class="param-type"><a href="ol.html#.Extent">ol.Extent</a></span>
</td>
<td class="description last">
<p>World extent
[minlon, minlat, maxlon, maxlat].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
</dl>
</article>
</section>
</div>
</div>
<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
<script src="scripts/main.js"></script>
</body>
</html> | NROER/drupal-intranet | sites/all/libraries/openlayers3/apidoc/ol.proj.Projection.html | HTML | gpl-2.0 | 624,594 | [
30522,
1026,
999,
9986,
13874,
16129,
1028,
1026,
16129,
11374,
1027,
1000,
4372,
1000,
1028,
1026,
2132,
1028,
1026,
18804,
25869,
13462,
1027,
1000,
21183,
2546,
1011,
1022,
1000,
1028,
1026,
2516,
1028,
2330,
24314,
2015,
1017,
17928,
44... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# -*- coding: utf-8 -*-
#
# Copyright © 2013-2014 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2, or (at your option) any later
# version. This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY expressed or implied, including the
# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details. You
# should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Any Red Hat trademarks that are incorporated in the source
# code or documentation are not subject to the GNU General Public
# License and may only be used or replicated with the express permission
# of Red Hat, Inc.
#
'''
pkgdb tests for the Collection object.
'''
__requires__ = ['SQLAlchemy >= 0.7']
import pkg_resources
import json
import unittest
import sys
import os
from mock import patch
sys.path.insert(0, os.path.join(os.path.dirname(
os.path.abspath(__file__)), '..'))
import pkgdb2
import pkgdb2.lib.model as model
from tests import (Modeltests, FakeFasUser,
FakeFasGroupValid, create_package_acl,
create_package_acl2, user_set)
class PkgdbGrouptests(Modeltests):
""" PkgdbGroup tests. """
def setUp(self):
""" Set up the environnment, ran before every tests. """
super(PkgdbGrouptests, self).setUp()
pkgdb2.APP.config['TESTING'] = True
pkgdb2.SESSION = self.session
pkgdb2.api.extras.SESSION = self.session
pkgdb2.ui.SESSION = self.session
pkgdb2.ui.acls.SESSION = self.session
pkgdb2.ui.admin.SESSION = self.session
pkgdb2.ui.collections.SESSION = self.session
pkgdb2.ui.packagers.SESSION = self.session
pkgdb2.ui.packages.SESSION = self.session
self.app = pkgdb2.APP.test_client()
# Let's make sure the cache is empty for the tests
pkgdb2.CACHE.invalidate()
def set_group_acls(self):
''' Create some Group ACLs. '''
fedocal_pkg = model.Package.by_name(self.session, 'rpms', 'fedocal')
devel_collec = model.Collection.by_name(self.session, 'master')
f18_collec = model.Collection.by_name(self.session, 'f18')
pklist_fedocal_f18 = model.PackageListing.by_pkgid_collectionid(
self.session, fedocal_pkg.id, f18_collec.id)
pklist_fedocal_devel = model.PackageListing.by_pkgid_collectionid(
self.session, fedocal_pkg.id, devel_collec.id)
packager = model.PackageListingAcl(
fas_name='group::infra-sig',
packagelisting_id=pklist_fedocal_f18.id,
acl='commit',
status='Approved',
)
self.session.add(packager)
packager = model.PackageListingAcl(
fas_name='group::infra-sig',
packagelisting_id=pklist_fedocal_devel.id,
acl='commit',
status='Approved',
)
self.session.add(packager)
packager = model.PackageListingAcl(
fas_name='group::infra-sig',
packagelisting_id=pklist_fedocal_f18.id,
acl='watchbugzilla',
status='Approved',
)
self.session.add(packager)
packager = model.PackageListingAcl(
fas_name='group::infra-sig',
packagelisting_id=pklist_fedocal_devel.id,
acl='watchbugzilla',
status='Approved',
)
self.session.add(packager)
self.session.commit()
def test_api_bugzilla_group(self):
""" Test the api_bugzilla function. """
create_package_acl2(self.session)
self.set_group_acls()
output = self.app.get('/api/bugzilla/')
self.assertEqual(output.status_code, 200)
expected = """# Package Database VCS Acls
# Text Format
# Collection|Package|Description|Owner|Initial QA|Initial CCList
# Backslashes (\) are escaped as \u005c Pipes (|) are escaped as \u007c
Fedora|fedocal|A web-based calendar for Fedora|pingou||group::infra-sig,pingou
Fedora|geany|A fast and lightweight IDE using GTK2|group::gtk-sig||
Fedora|guake|Top down terminal for GNOME|pingou||spot"""
self.assertEqual(output.data, expected)
output = self.app.get('/api/bugzilla/?format=json')
self.assertEqual(output.status_code, 200)
expected = {
u'bugzillaAcls': {
'Fedora': {
"fedocal": {
"owner": "pingou",
"cclist": {
"groups": ["@infra-sig"],
"people": ["pingou"]
},
"qacontact": None,
"summary": "A web-based calendar for Fedora"
},
'geany': {
'owner': '@gtk-sig',
'cclist': {
'groups': [],
'people': []
},
'qacontact': None,
'summary': 'A fast and lightweight IDE using '
'GTK2'
},
'guake': {
'owner': 'pingou',
'cclist': {
'groups': [],
'people': ['spot']
},
'qacontact': None,
'summary': 'Top down terminal for GNOME'
}
}
},
'title': 'Fedora Package Database -- Bugzilla ACLs'
}
data = json.loads(output.data)
self.assertEqual(data, expected)
@patch('pkgdb2.lib.utils')
@patch('pkgdb2.packager_login_required')
def test_package_give_group(self, login_func, mock_func):
""" Test the package_give function to a group. """
login_func.return_value = None
create_package_acl(self.session)
mock_func.get_packagers.return_value = ['spot']
group = FakeFasGroupValid()
group.name = 'gtk-sig'
mock_func.get_fas_group.return_value = group
mock_func.log.return_value = ''
user = FakeFasUser()
with user_set(pkgdb2.APP, user):
output = self.app.get('/package/rpms/guake/give')
self.assertEqual(output.status_code, 200)
self.assertTrue(
'<h1>Give Point of Contact of package: guake</h1>'
in output.data)
self.assertTrue(
'<input id="csrf_token" name="csrf_token"' in output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
data = {
'branches': 'master',
'poc': 'spot',
'csrf_token': csrf_token,
}
output = self.app.post('/package/rpms/guake/give', data=data,
follow_redirects=True)
self.assertEqual(output.status_code, 200)
self.assertTrue(
'rpms/<span property="doap:name">guake</span>'
in output.data)
self.assertEqual(
output.data.count('<a href="/packager/spot/">'), 2)
user.username = 'spot'
user.groups.append('gtk-sig')
with user_set(pkgdb2.APP, user):
output = self.app.get('/package/rpms/guake/give')
self.assertEqual(output.status_code, 200)
self.assertTrue(
'<h1>Give Point of Contact of package: guake</h1>'
in output.data)
self.assertTrue(
'<input id="csrf_token" name="csrf_token"' in output.data)
csrf_token = output.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
data = {
'branches': 'master',
'poc': 'group::gtk-sig',
'csrf_token': csrf_token,
}
output = self.app.post('/package/rpms/guake/give', data=data,
follow_redirects=True)
self.assertEqual(output.status_code, 200)
self.assertEqual(
output.data.count('<a href="/packager/spot/">'), 2)
self.assertEqual(
output.data.count('<a href="/packager/group::gtk-sig/">'),
1)
output = self.app.get('/package/rpms/guake/give')
self.assertEqual(output.status_code, 200)
self.assertTrue(
'<h1>Give Point of Contact of package: guake</h1>'
in output.data)
self.assertTrue(
'<td><select id="branches" multiple name="branches">'
'</select></td>'
in output.data)
if __name__ == '__main__':
SUITE = unittest.TestLoader().loadTestsFromTestCase(PkgdbGrouptests)
unittest.TextTestRunner(verbosity=2).run(SUITE)
| mizdebsk/pkgdb2 | tests/test_groups.py | Python | gpl-2.0 | 9,297 | [
30522,
1001,
1011,
1008,
1011,
16861,
1024,
21183,
2546,
1011,
1022,
1011,
1008,
1011,
1001,
1001,
9385,
1075,
2286,
1011,
2297,
2417,
6045,
1010,
4297,
1012,
1001,
1001,
2023,
9385,
2098,
3430,
2003,
2081,
2800,
2000,
3087,
10261,
2000,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import { createTest } from 'tests/test-utils'
import moment from 'moment'
import { EventTypes, Disciplines } from 'client/calendar/events/types'
import _ from 'lodash'
import ncnca2017 from '../2017-ncnca-events'
import usac2017 from '../2017-usac-events'
const events = _.concat(
// does not inlcude older events that do not comply with this requirements
ncnca2017,
usac2017
)
//TODO: make this tests event centric or test-case centric?
const test = createTest('Common events tests')
const parseDate = date => moment(date, 'MMMM DD YYYY')
const getKeyByValue = (obj, value) => Object.keys(obj).filter(key => obj[key] === value)
const getFirstKeyByValue = (obj, value) => getKeyByValue(obj, value)[0]
test('Event must have short id as part of long id and separately as "_shortId" property', t => {
events.forEach((event, i) => {
const eventId = event.id
const shortIdFromId = eventId.match(/[a-zA-Z0-9_$]+$/gm)[0] //matches part after last '-'
t.equal(event._shortId, shortIdFromId,
`#${event.name} "${event._shortId}" => "${shortIdFromId}"`)
})
t.end()
})
test('Event must have unique id across all events', t => {
const eventsById = _.groupBy(events, 'id')
_.map(eventsById, (value, key) => {
if (value.length !== 1) {
t.fail(`There are "${value.length}" events with id: "${key}", id must be unique.`)
}
})
t.end()
})
test('Event must have _shortId that only contains predefined characters', t => {
events.forEach((event, i) => {
const matches = event._shortId.match(/[a-zA-Z0-9_$]+$/gm) //matches part after last '-'
if (matches && matches.length === 1) {
t.pass(`#${event._shortId} for event "${event.name}"`)
} else {
t.fail(`Problematic _shortId: "#${event._shortId}" for event "${event.name}"`)
}
})
t.end()
})
test('Event must have id starting from "evt-"', t => {
events.forEach((event, i) => {
t.ok(event.id.startsWith(('evt-')),
`${event.name}`)
})
t.end()
})
test('Event must have date in a format "MMMM DD YYYY"', t => {
events.forEach((event, i) => {
const date = moment(event.date, 'MMMM DD YYYY')
t.ok(date.isValid(),
`${event.name}`)
})
t.end()
})
test('Event with USAC permit should have permit starting from events year', t => {
events
.filter(x => x.usacPermit)
.forEach((event, i) => {
const date = parseDate(event.date)
t.ok(event.usacPermit.startsWith(date.year() + '-'), `${event.name}`)
})
t.end()
})
test('Event with promoters', t => {
events.forEach((event, i) => {
t.comment(`${event.name}`)
if (event.promoters) {
t.ok(Array.isArray(event.promoters), 'promoters should be an array')
if (event.promoters.length >= 1) {
t.ok(event.promoters.every(x => x.id),
'each promoter should have an id')
t.ok(event.promoters.every(x => x.id && x.id.startsWith('prm-')),
'each promoter\'s id should start from "prm-"')
}
}
})
t.end()
})
test('Each Event must have at least city and state set in Location', t => {
events.forEach((event, i) => {
t.comment(`${event.name}`)
t.ok(event.location, 'has location set')
t.ok(event.location.city, 'has city set')
t.ok(event.location.state, 'has state set')
})
t.end()
})
test('Each Event must have Type and Discipline set to one of the pre-defined ones', t => {
const allDisciplines = _.values(Disciplines)
const getEventTypesForDiscipline = discipline => {
const disciplineKey = getFirstKeyByValue(Disciplines, discipline)
return _.values(EventTypes[disciplineKey])
}
events.forEach((event, i) => {
t.comment(`${event.id}`)
t.ok(allDisciplines.includes(event.discipline),
'should have discipline equal to one of the pre-defined ones')
t.ok(getEventTypesForDiscipline(event.discipline).includes(event.type),
'should have type set to one that corresponds to event\'s discipline'
+ `, current one is set to: "${event.type}" which is not part of "${event.discipline}" discipline`)
})
t.end()
})
test('Event that is moved, when have "movedToEventId" should point to existing event', t => {
const eventsById = _.keyBy(events, 'id')
events
.filter(x => x.movedToEventId)
.forEach((event, i) => {
t.comment(`${event.name}`)
const movedToEvent = eventsById[event.movedToEventId]
t.ok(movedToEvent, 'moved to event id should point to existing event')
t.comment(`Provided evnet id: ${event.movedToEventId}`)
t.ok(event.movedToEventId !== event.id, 'moved to event id should point to a different event')
t.comment(`Provided evnet id: ${event.movedToEventId}`)
t.ok(parseDate(movedToEvent.date) > parseDate(event.date),
'moved to event should be later than the event it is moved from')
})
t.end()
})
| Restuta/rcn.io | src/client/temp/data/tests/common-tests.js | JavaScript | mit | 4,852 | [
30522,
12324,
1063,
3443,
22199,
1065,
2013,
1005,
5852,
1013,
3231,
1011,
21183,
12146,
1005,
12324,
2617,
2013,
1005,
2617,
1005,
12324,
1063,
2724,
13874,
2015,
1010,
12736,
1065,
2013,
1005,
7396,
1013,
8094,
1013,
2824,
1013,
4127,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System.Threading.Tasks;
namespace AppZen.Mvvm.Core.Interfaces
{
public interface IViewFactory
{
void CloseView(string id);
Task ShowViewModel<T>(object argumentsAsAnonymousType) where T : IViewModel;
Task ShowViewModel<T>() where T : IViewModel;
}
} | jodendaal/AppZen.Mvvm | src/AppZen.MVVM.Core/Interfaces/IViewFactory.cs | C# | mit | 292 | [
30522,
2478,
2291,
1012,
11689,
2075,
1012,
8518,
1025,
3415,
15327,
10439,
10431,
1012,
19842,
2615,
2213,
1012,
4563,
1012,
19706,
1063,
2270,
8278,
4921,
2666,
2860,
21450,
1063,
11675,
2485,
8584,
1006,
5164,
8909,
1007,
1025,
4708,
226... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ADBKUSER_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ADBK_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ADMINIST_WORD_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ADMIN_CODE_OPERT', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ANN_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('BACKUP_OPERT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('BACKUP_RESULT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('BANNER_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('BATCH_OPERT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('BATCH_RESULT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('BATCH_SCHDUL_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('BBS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CLB_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CMMNTY_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CNSLT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CNTC_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CNTC_MESSAGE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CNTNTS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('COMTECOPSEQ', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CPYRHT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('CTSNN_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('DAM_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('DB_MNTRNG_LOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('DEPT_JOB_BX_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('DEPT_JOB_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('DIARY_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('DUS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('EVENTINFO_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('EVENT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('EXTRLHRINFO_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('FAQ_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('FILESYS_LOGID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('FILESYS_MNTRNG', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('FILE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('GROUP_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('HPCM_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('HTTL_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('HTTP_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('INDVDL_INFO_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('INFRML_SANCTN', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('INSTT_CODE_OPERT', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('INSTT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ISG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ITEM_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('KNO_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('KNO_ID2', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('LEADER_SCHDUL_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('LOGINLOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('LSI_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('MAILMSG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('MEMO_REPRT', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('MEMO_TODO_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('MSI_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('MTG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('MTG_PLACE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NCRD_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NEWS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NOTE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NOTE_RECPTN_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NOTE_TRNSMIT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NTWRKSVC_LOGID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NTWRK_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ONLINE_MUL_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('POLL_IEM_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('POLL_MGR_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('POLL_RUT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('POPUP_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('PROC_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('PROL_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('PROXYLOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('PROXYSVC_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('QA_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('QESITM_', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('QESRSPNS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('QESTNR_QESITM_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('QESTNR_RPD_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('QUSTNRQESTN_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('QUSTNRTMPLA_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('RECOMEND_SITE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('RESTDE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('RESVE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ROLE_ID', 20);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('RSS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('RS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('RWARD_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SCHDUL_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SCRAP_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SERVER_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SEVEQ_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SITE_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SMS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SRCHWRD_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SRCHWRD_MANAGEID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SRCHWRD_MANAGE_I', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SVCRESMONTLOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SVC_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SYNCHRNSERVER_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SYSLOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('SYS_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('TEST1', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('TMPLAT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('TROBL_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('TRSMRCVLOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('TR_MNTRNG_LOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('UNITY_LINK_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('USE_STPLAT_ID', 3);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('USRCNFRM_ID', 3);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('WEBLOG_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('WIKI_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('WIKMNTHNG_REPRT', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('WORD_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('NTT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ORGNZT_ID', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('ANSWER_NO', 1);
INSERT INTO COMTECOPSEQ ( TABLE_NAME, NEXT_ID ) VALUES ('STSFDG_NO', 1);
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM001', '등록구분', '게시판, 커뮤니티, 동호회 등록구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM002', '이력구분', '시스템이력등록구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM003', '업무구분', '업무구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM004', '게시판유형', '게시판유형구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM005', '템플릿유형', '템플릿유형구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM006', '승인유형', '동호회, 커뮤니티 승인 유형', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM007', '승인상태', '동호회, 커뮤니티 승인 상태', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM008', '처리상태', '송수신 요청의 처리상태', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM009', '게시판속성', '게시판 속성', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM010', '권한유형', '시스템을 사용하기 위한 권한 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM011', '롤유형', '시스템의 기능을 사용하기 위한 롤 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM012', '회원유형', '일반/기업/업무담당자를 구현하기 위한 사용자 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM013', '회원상태', '회원 가입 신청/승인/삭제를 위한 상태 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM014', '성별구분', '남녀 성별 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM015', '인증방식유형', '주민등록번호 인증, Gpin 인증과 같은 사용자 인증 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM016', '변경요청처리 상태', '프로그램 변경의 요청/처리 등의 변경요청 상태 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM017', '휴일구분', '휴일의 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM018', '질문유형', '질문유형 객관식/주관식 상태구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM019', '일정중요도', '일정중요도 낮음/보통/높음 상태구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM020', '일정구분', '일정구분 부서일지정보/일지정보 상태구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM021', '도움말구분', '도움말 설명 구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM022', '비밀번호 힌트', '비밀번호 힌트 구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM023', '사이트주제분류', '사이트주제분류 설명 구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM024', '발송결과구분', '발송메일 수신결과 구분 코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM025', '소속기관', '소속기관정보를 관리할때 사용하는 구분코드(시스템별로 재정의)', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM026', '기업구분', '기업구분정보를 관리할때 사용하는 구분코드(시스템별로 재정의)', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM027', '업종', '대표업종코드(시스템별로 재정의)', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM028', '질의응답처리상태', 'Q/A 처리상태코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM029', '롤유형코드', '', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM030', '일정구분', '일정구분 코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM031', '반복구분', '일정 반복구분 코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM032', '작업유형', '승인이력 작업유형', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM033', '시스템로그구분', '', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM034', '직업유형', '직업유형코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM035', '행사유형', '행사/이벤트/캠페인 구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM036', '보고서 진행상태코드', '보고서의 진행상태를 코드화 하여 관리한다.', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM038', '온라인POLL페기유무', '온라인POLL-온라인POLL페기유무', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM039', '온라인POLL구분', '온라인POLL-온온라인POLL구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM040', '보고서 종류코드', '보고서 종류코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM041', '온라인메뉴얼구분', '온라인메누얼-온라인메뉴얼구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM042', '보고서통계기간구분', '보고서통계기간구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM043', '기관코드변경구분', '기관코드변경구분', 'Y', SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM044', '기관코드수신처리구분', '기관코드수신처리구분', 'Y', SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM045', '사용여부', '사용여부', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM046', '모니터링상태구분', '모니터링상태구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM047', '실행주기구분', '실행주기구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM048', 'DBMS종류', 'DBMS종류', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM049', '압축구분', '압축구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM050', '수신구분', '쪽지관리', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM051', '승인여부', '승인여부구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM052', '달력구분', '달력구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM053', '행사구분', '행사구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM054', '경조구분', '경조구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM055', '포상구분', '포상구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM056', '휴가구분', '휴가구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM057', '일정구분', '일정구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM058', '반복구분코드', '반복구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM059', '우선순위', '우선순위', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM060', '보고서구분', '보고서구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM061', '간부상태', '간부상태', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM062', ' HTTP상태코드', 'HTTP상태코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM063', '상태관리', '상태관리', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM064', '서버종류코드', '서버종류코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM065', '장애종류코드', '장애종류코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM066', '서버자원종류', '서버자원종류', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM067', '네트워크관리항목', '네트워크관리항목', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM068', '처리상태코드', '처리상태코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM069', '기념일구분', '기념일구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM070', '위치구분', '회의실 위치구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM071', '당직체크구분', '당직체크구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM072', '서비스상태', '서비스상태', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM073', '가족관계', '가족관계', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM074', '요일구분', '요일구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM075', '업무구분코드', '업무구분코드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNCODE(CL_CODE, CODE_ID, CODE_ID_NM, CODE_ID_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID,LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('EFC', 'COM076', '실행상태구분', '실행상태구분', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM001', 'REGC01', '단일 게시판 이용등록', '단일 게시판 이용등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM001', 'REGC02', '커뮤니티 등록', '커뮤니티 등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM001', 'REGC03', '동호회 등록', '동호회 등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM001', 'REGC04', '명함등록', '명함등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM001', 'REGC05', '동호회 게시판 등록', '동호회 게시판 등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM001', 'REGC06', '커뮤니티 게시판 등록', '커뮤니티 게시판 등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM001', 'REGC07', '게시판사용자등록', '게시판사용자등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM002', 'HIST01', '소프트웨어패치', '소프트웨어패치', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM002', 'HIST02', '소프트웨어설치', '소프트웨어설치', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM002', 'HIST03', '소프트웨어삭제', '소프트웨어삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM002', 'HIST04', '하드웨어업그레이드', '하드웨어업그레이드', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM002', 'HIST05', '하드웨어삭제', '하드웨어삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM003', 'BBS', '게시판', '게시판', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM003', 'CMY', '커뮤니티', '커뮤니티', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM003', 'CLB', '동호회', '동호회', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM003', 'NCD', '명함', '명함', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM004', 'BBST01', '일반게시판', '일반게시판', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM004', 'BBST02', '익명게시판', '익명게시판', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM004', 'BBST03', '공지게시판', '공지게시판', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM004', 'BBST04', '방명록', '방명록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM005', 'TMPT01', '게시판템플릿', '게시판템플릿', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM005', 'TMPT02', '커뮤니티템플릿', '커뮤니티템플릿', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM005', 'TMPT03', '동호회템플릿', '동호회템플릿', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF01', '커뮤니티등록', '커뮤니티등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF02', '커뮤니티삭제', '커뮤니티삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF03', '동호회등록', '동호회등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF04', '동호회삭제', '동호회삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF05', '커뮤니티운영자등록', '커뮤니티운영자등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF06', '커뮤니티운영자삭제', '커뮤니티운영자삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF07', '동호회운영자등록', '동호회운영자등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF08', '동호회운영자삭제', '동호회운영자삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF09', '게시판이용등록', '게시판이용등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF10', '게시판삭제', '게시판삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF11', '커뮤니티사용자등록', '커뮤니티사용자등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF12', '커뮤니티사용자탈퇴', '커뮤니티사용자탈퇴', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF13', '동호회사용자등록', '동호회사용자등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM006', 'CF14', '동호회사용자탈퇴', '동호회사용자탈퇴', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM007', 'AP01', '승인요청', '승인요청', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM007', 'AP02', '승인허가', '승인허가', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM007', 'AP03', '승인반려', '승인반려', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM008', 'S01', '전송요청', '전송요청', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM008', 'S02', '전송완료', '전송완료', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM008', 'S03', '전송실패', '전송실패', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM008', 'S04', '수신요청', '수신요청', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM008', 'S05', '수신완료', '수신완료', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM008', 'S06', '수신실패', '수신실패', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM009', 'BBSA01', '유효게시판', '유효게시판', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM009', 'BBSA02', '갤러리', '갤러리', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM009', 'BBSA03', '일반게시판', '일반게시판', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM010', 'PRVS001', '시스템 관련 권한(최상위 권한)', '시스템 관련 권한(최상위 권한)', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM010', 'PRVD001', '데이터베이스 관련 권한', '데이터베이스 관련 권한', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM010', 'PRVU001', '사용자 관련 권한', '사용자 관련 권한', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM010', 'PRVA001', '어플리케이션 관련 권한', '어플리케이션 관련 권한', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM010', 'PRVB001', '게시판 관련 권한', '게시판 관련 권한', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM010', 'PRVC001', '커뮤니티 관련 권한', '커뮤니티 관련 권한', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLS001', '시스템 관리 최상위 롤', '시스템 관리 최상위 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLS002', '시스템 접근(view) 롤', '시스템 접근(view) 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLS003', '시스템 설정 등록/변경 롤', '시스템 설정 등록/변경 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLS004', '시스템 파일 등록/변경 롤', '시스템 파일 등록/변경 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLD001', '데이터베이스 관련 최상위 롤', '데이터베이스 관련 최상위 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLD002', '데이터베이스 스키마 등록/변경 롤', '데이터베이스 스키마 등록/변경 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLD003', '데이터 조회 롤', '데이터 조회 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLD004', '데이터 등록/변경 롤', '데이터 등록/변경 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLU001', '사용자 관련 최상위 롤', '사용자 관련 최상위 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLU002', '업무 시스템 사용자 관리 롤', '업무 시스템 사용자 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLU003', '기업회원 시스템 사용자 관리 롤', '기업회원 시스템 사용자 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLU004', '일반회원 시스템 사용자 관리 롤', '일반회원 시스템 사용자 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLU005', '게시판 사용자 관리 롤', '게시판 사용자 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLU006', '커뮤니티 사용자 관리 롤', '커뮤니티 사용자 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA001', '어플리케이션 관련 최상위 롤', '어플리케이션 관련 최상위 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA002', '업무 어플리케이션 접근 롤', '업무 어플리케이션 접근 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA003', '업무 어플리케이션 관리 롤', '업무 어플리케이션 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA004', '일반 어플리케이션 접근 롤', '일반 어플리케이션 접근 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA005', '일반 어프리케이션 관리 롤', '일반 어프리케이션 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA006', '어플리케이션 약관 관리 롤', '어플리케이션 약관 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA007', '어플리케이션 저작권 관리 롤', '어플리케이션 저작권 관리 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLA008', '통계 및 보고서 접근 롤', '통계 및 보고서 접근 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLB001', '게시판 관련 최상위 롤', '게시판 관련 최상위 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLB002', '게시판 생성 롤', '게시판 생성 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLB003', '게시판 접근 롤', '게시판 접근 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLB004', '게시판 글쓰기 롤', '게시판 글쓰기 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLB005', '게시판 글 수정/삭제 롤', '게시판 글 수정/삭제 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLC001', '커뮤니티 관련 최상위 롤', '커뮤니티 관련 최상위 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLC002', '커뮤니티 생성 롤', '커뮤니티 생성 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLC003', '커뮤니티 접근 롤', '커뮤니티 접근 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLC004', '커뮤니티 글쓰기 롤', '커뮤니티 글쓰기 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLC005', '커뮤니티 글 수정/삭제 롤', '커뮤니티 글 수정/삭제 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM011', 'ROLC006', '파일 업로드 롤', '파일 업로드 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM012', 'USR01', '일반 회원 유형', '일반 회원 유형', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM012', 'USR02', '기업 회원 유형', '기업 회원 유형', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM012', 'USR03', '업무 담당자(사용자) 유형', '업무 담당자(사용자) 유형', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM012', 'USR99', '사용자 유형 최상위 롤', '사용자 유형 최상위 롤', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM013', 'A', '회원 가입 신청 상태', '회원 가입 신청 상태', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM013', 'P', '회원 가입 승인 상태', '회원 가입 승인 상태', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM013', 'D', '회원 가입 삭제 상태', '회원 가입 삭제 상태', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM014', 'M', '남자', '남자', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM014', 'F', '여자', '여자', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM015', 'ATH01', '주민등록번호 인증', '주민등록번호 인증', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM015', 'ATH02', 'GPIN 인증', 'GPIN 인증', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM016', 'PUR01', '프로그램 변경 요청 신청', '프로그램 변경 요청 신청', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM016', 'PUR02', '프로그램 변경 요청 수락', '프로그램 변경 요청 수락', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM016', 'PUR03', '프로그램 변경 진행', '프로그램 변경 진행', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM016', 'PUR04', '프로그램 변경 완료', '프로그램 변경 완료', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM016', 'PUR05', '프로그램 변경 이관', '프로그램 변경 이관', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM017', '01', '법정휴일', '법정휴일', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM017', '02', '법정공휴일', '법정공휴일', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM017', '03', '임시공휴일', '임시공휴일', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM018', '1', '객관식', '객관식', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM018', '2', '주관식', '주관식', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM019', 'A', '높음', '높음', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM019', 'B', '보통', '보통', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM019', 'C', '낮음', '낮음', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM020', '1', '부서일정관리', '부서일정관리', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM020', '2', '일정관리', '일정관리', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM021', '1', '기능설명', '기능설명', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM021', '2', '절차설명', '절차설명', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P01', '가장 기억에 남는 장소는?', '가장 기억에 남는 장소는?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P02', '나의 좌우명은?', '나의 좌우명은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P03', '나의 보물 제1호는?', '나의 보물 제1호는?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P04', '가장 기억에 남는 선생님 성함은?', '가장 기억에 남는 선생님 성함은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P05', '다른 사람은 모르는 나만의 신체비밀은?', '다른 사람은 모르는 나만의 신체비밀은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P06', '오래도록 기억하고 싶은 날짜는?', '오래도록 기억하고 싶은 날짜는?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P07', '받았던 선물 중 기억에 남는 독특한 선물은?', '받았던 선물 중 기억에 남는 독특한 선물은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P08', '가장 생각나는 친구 이름은?', '가장 생각나는 친구 이름은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P09', '인상 깊게 읽은 책 이름은?', '인상 깊게 읽은 책 이름은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P10', '내가 존경하는 인물은?', '내가 존경하는 인물은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P11', '나의 노래방 애창곡은?', '나의 노래방 애창곡은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P12', '가장 감명깊게 본 영화는?', '가장 감명깊게 본 영화는?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM022', ' P13', '좋아하는 스포츠팀 이름은?', '좋아하는 스포츠팀 이름은?', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM023', '01', '경제', '경제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM023', '02', '전산', '전산', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM023', '03', '행정', '행정', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM024', 'R', '요청', '요청', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM024', 'F', '실패', '실패', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM024', 'C', '완료', '완료', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM025', '00000001', '공공기관', '공공기관', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM025', '00000002', '금융기관', '금융기관', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM025', '00000003', '교육기관', '교육기관', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM025', '00000004', '의료기관', '의료기관', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM026', 'C0000001', '대기업', '대기업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM026', 'C0000002', '중소기업', '중소기업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM026', 'C0000003', '다국적기업', '다국적기업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'A', '축산업', '축산업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'B', '어업', '어업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'C', '광업', '광업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'D', '제조업', '제조업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'E', '전기,가스및수도사업', '전기,가스및수도사업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'F', '건설업', '건설업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'G', '도소매 및 소비자용품수리업', '도소매 및 소비자용품수리업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'H', '숙박및음식점', '숙박및음식점', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'I', '운수창고및통신업', '운수창고및통신업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'J', '금융및보험업', '금융및보험업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'K', '부동산,임대및사업서비스업', '부동산,임대및사업서비스업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'M', '교육서비스업', '교육서비스업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'N', '보건업', '보건업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'O', '기타공공,사회및개인서비스업', '기타공공,사회및개인서비스업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM027', 'P', '가사서비스업', '가사서비스업', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM028', '1', '접수대기', '접수대기', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM028', '2', '접수', '접수', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM028', '3', '완료', '완료', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM029', 'method', 'METHOD', 'METHOD', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM029', 'pointcut', 'POINTCUT', 'POINTCUT', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM029', 'url', 'URL', 'URL', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM030', '1', '회의', '회의', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM030', '2', '세미나', '세미나', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM030', '3', '강의', '강의', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM030', '4', '교육', '교육', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM030', '5', '기타', '기타', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM031', '1', '당일', '당일', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM031', '2', '반복', '반복', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM031', '3', '연속', '연속', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM031', '4', '요일반복', '요일반복', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC01', '회원가입', '회원가입', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC02', '사용자등록', '사용자등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC03', '회원탈퇴', '회원탈퇴', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC04', '사용자삭제', '사용자삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC05', '커뮤니티등록', '커뮤니티등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC06', '동호회등록', '동호회등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC07', '커뮤니티폐쇄', '커뮤니티폐쇄', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC08', '동호회폐쇄', '동호회폐쇄', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC09', '게시판등록', '게시판등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM032', 'WC10', '게시판폐쇄', '게시판폐쇄', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM033', 'C', '생성', '생성', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM033', 'R', '조회', '조회', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM033', 'U', '수정', '수정', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM033', 'D', '삭제', '삭제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM034', '1', '학생', '학생', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM034', '2', '대학생', '대학생', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM034', '3', '군인', '군인', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM034', '4', '교사', '교사', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM034', '5', '기타', '기타', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM035', '1', '행사', '행사', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM035', '2', '이벤트', '이벤트', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM035', '3', '캠페인', '캠페인', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM036', '01', '작성', '작성', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM036', '02', '상신', '상신', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM036', '03', '반려', '반려', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM036', '04', '결재완료', '결재완료', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM038', 'N', 'N', '아니오', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM038', 'Y', 'Y', '예', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM039', '001', '사회', '사회', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM039', '002', '정치', '정치', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM039', '003', '경제', '경제', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM039', '004', '문화', '문화', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM039', '005', '인문', '인문', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM039', '006', '공학', '공학', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM039', '007', '기타', '기타', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM040', '01', '휴가계획서', '휴가계획서', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM040', '02', '출장보고서', '출장보고서', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM040', '03', '교육보고서', '교육보고서', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM040', '04', '판품요청서', '판품요청서', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM040', '05', '지원요청서', '지원요청서', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM041', '001', '절차설명', '절차설명', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM041', '002', '기능설명', '기능설명', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM041', '003', '기타설명', '기타설명', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM042', '%Y', '연도별', '연도별', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM042', '%Y-%m', '월별', '월별', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM042', '%Y-%m-%d', '일별', '일별', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM043', '01', '생성', '생성', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM043', '02', '변경', '변경', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM043', '03', '말소', '말소', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM044', '00', '수신처리', '수신처리', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM044', '01', '처리완료', '처리완료', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM044', '10', '기등록', '기등록', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM044', '11', '생성오류', '생성오류', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM044', '12', '변경오류', '변경오류', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM044', '13', '말소오류', '말소오류', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM046', '01', '정상', '정상', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM046', '02', '비정상', '비정상', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM047', '01', '매일', '매일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM047', '02', '매주', '매주', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM047', '03', '매월', '매월', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM047', '04', '매년', '매년', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM047', '05', '한번만', '한번만', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM048', '01', 'Oracle', 'Oracle', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM048', '02', 'Mysql', 'Mysql', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM048', '03', 'Tibero', 'Tibero', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM048', '04', 'Altibase', 'Altibase', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM049', '01', 'Tar', 'Tar', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM049', '02', 'ZIP', 'ZIP', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM050', '1', '수신', '수신', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM050', '2', '참조', '참조', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM051', '01', '신청중', '신청중', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM051', '02', '승인', '승인', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM051', '03', '반려', '반려', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM052', '01', '양력', '양력', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM052', '02', '음력', '음력', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM053', '01', '교육', '교육', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM053', '02', '세미나', '세미나', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM053', '03', '홍보', '홍보', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM053', '04', '단합', '단합', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM053', '05', '간담회', '간담회', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM053', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM054', '01', '결혼', '결혼', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM054', '02', '출생', '출생', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM054', '03', '회갑', '회갑', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM054', '04', '사망', '사망', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM054', '05', '출산', '출산', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM054', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM055', '01', '우수사원', '우수사원', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM055', '02', '우수팀', '우수팀', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM055', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM056', '01', '연차휴가', '연차휴가', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM056', '02', '반차휴가', '반차휴가', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM056', '03', '무급휴가', '무급휴가', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM056', '04', '유급휴가', '유급휴가', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM056', '05', '대체휴가', '대체휴가', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM056', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM057', '1', '회의', '회의', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM057', '2', '방문', '방문', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM057', '3', '세미나', '세미나', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM057', '4', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM058', '1', '반복없음', '당일', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM058', '2', '매일', '매일', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM058', '3', '매주', '매주', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM058', '4', '매월', '매월', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM059', '1', '높음', '높음', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM059', '2', '보통', '보통', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM059', '3', '낮음', '낮음', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM060', '1', '주간보고', '주간보고', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM060', '2', '월간보고', '월간보고', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM061', '1', '재실', '재실', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM061', '2', '자리비움', '자리비움', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM061', '3', '회의중', '회의중', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM061', '4', '출장중', '출장중', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM061', '5', '휴가중', '휴가중', 'Y', SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '100', 'Continue ', 'Continue ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '101', 'Switching Protocols ', 'Switching Protocols ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '200', 'OK ', 'OK ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '201', 'Created ', 'Created ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '202', 'Accepted ', 'Accepted ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '203', 'Non-Authoritative Information ', 'Non-Authoritative Information ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '204', 'No Content ', 'No Content ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '205', 'Reset Content ', 'Reset Content ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '206', 'Partial Content ', 'Partial Content ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '300', 'Multiple Choices ', 'Multiple Choices ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '301', 'Moved Permanently ', 'Moved Permanently ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '302', 'Found ', 'Found ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '303', 'See Other ', 'See Other ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '304', 'Not Modified ', 'Not Modified ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '305', 'Use Proxy ', 'Use Proxy ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '307', 'Temporary Redirect ', 'Temporary Redirect ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '400', 'Bad Request ', 'Bad Request ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '401', 'Unauthorized ', 'Unauthorized ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '403', 'Forbidden ', 'Forbidden ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '404', 'Not Found ', 'Not Found ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '405', 'Method Not Allowed ', 'Method Not Allowed ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '406', 'Not Acceptable ', 'Not Acceptable ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '407', 'Proxy Authentication Required ', 'Proxy Authentication Required ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '408', 'Request Timeout ', 'Request Timeout ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '409', 'Conflict ', 'Conflict ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '410', 'Gone ', 'Gone ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '411', 'Length Required ', 'Length Required ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '412', 'Precondition Failed ', 'Precondition Failed ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '413', 'Request Entity Too Large ', 'Request Entity Too Large ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '414', 'Request URI Too Long ', 'Request URI Too Long ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '415', 'Unsupported Media Type ', 'Unsupported Media Type ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '416', 'Requested Range Not Satisfiable ', 'Requested Range Not Satisfiable ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '417', 'Expectation Failed ', 'Expectation Failed ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '500', 'Internal Server Error ', 'Internal Server Error ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '501', 'Not Implemented ', 'Not Implemented ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '502', 'Bad Gateway ', 'Bad Gateway ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '503', 'Service Unavailable ', 'Service Unavailable ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '504', 'Gateway Timeout ', 'Gateway Timeout ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM062', '505', 'HTTP Version Not Supported ', 'HTTP Version Not Supported ', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM063', '100', 'Runnable', 'Runnable', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM063', '200', 'Sleeping', 'Sleeping', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM063', '300', 'Swapped', 'Swapped', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM063', '400', 'Zombie', 'Zombie', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM063', '500', 'Stopped', 'Stopped', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM064', '01', '웹 서버', '웹 서버', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM064', '02', 'WAS', 'WAS', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM064', '03', 'DB 서버', 'DB 서버', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM064', '04', 'Mail 서버', 'Mail 서버', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM064', '05', 'DNS 서버', 'DNS 서버', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM064', '99', '기타 서버', '기타 서버', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '01', '네트워크 장애', '네트워크 장애', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '02', '하드웨어 장애', '하드웨어 장애', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '03', '어플리케이션 장애', '어플리케이션 장애', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '04', '서비스 장애', '서비스 장애', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '05', '모니터링 장애', '모니터링 장애', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '06', '정전', '정전', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '07', '화재', '화재', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '08', '홍수', '홍수', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM065', '99', '기타 장애', '기타 장애', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM066', '01', 'CPU', 'CPU', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM066', '02', '메모리', '메모리', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM067', '01', '서버', '서버', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM067', '02', '라우터', '라우터', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM067', '03', '스위치', '스위치', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM067', '04', 'PC', 'PC', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM067', '05', '프린터', '프린터', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM067', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM068', 'A', '접수', '접수', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM068', 'C', '완료', '완료', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM068', 'R', '요청', '요청', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '01', '생일', '생일', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '02', '기념', '기념', 'N',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '03', '결혼', '결혼', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '04', '탄생', '탄생', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '05', '축하', '축하', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '06', '출장', '출장', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '07', '퇴원', '퇴원', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM069', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '01', '본관1층', '본관1층', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '02', '본관2층', '본관2층', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '03', '본관3층', '본관3층', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '04', '본관4층', '본관4층', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '05', '본관5층', '본관5층', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '06', '별관1층', '별관1층', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '07', '별관2층', '별관2층', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM070', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM', SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM071', '01', '전기시설', '전기시설', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM071', '02', '소등상태', '소등상태', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM071', '03', '방화요소', '방화요소', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM071', '04', '소방시설', '소방시설', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM071', '05', '비상 KEY', '비상 KEY', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM071', '06', '시건장치', '시건장치', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM071', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM072', '01', '정상', '정상', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM072', '02', '오류', '오류', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM072', '03', '중지', '중지', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM072', '09', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '01', '본인', '본인', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '02', '배우자', '배우자', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '03', '자녀', '자녀', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '04', '부친', '부친', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '05', '모친', '모친', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '06', '배우자부친', '배우자부친', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '07', '배우자모친', '배우자모친', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '08', '조부', '조부', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '09', '조모', '조모', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '10', '형제자매(본인)', '형제자매(본인)', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '11', '외조부', '외조부', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '12', '외조모', '외조모', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '13', '백숙부', '백숙부', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '14', '백숙모', '백숙모', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '15', '형제자매(배우자)', '형제자매(배우자)', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM073', '99', '기타', '기타', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM074', '1', '일요일', '일요일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM074', '2', '월요일', '월요일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM074', '3', '화요일', '화요일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM074', '4', '수요일', '수요일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM074', '5', '목요일', '목요일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM074', '6', '금요일', '금요일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM074', '7', '토요일', '토요일', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM075', '001', '경조신청', '경조신청', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM075', '002', '포상신청', '포상신청', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM075', '003', '휴가신청', '휴가신청', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM075', '004', '행사신청', '행사신청', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM076', '01', '정상', '정상', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM076', '02', '비정상', '비정상', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTCCMMNDETAILCODE(CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGIST_PNTTM, FRST_REGISTER_ID, LAST_UPDT_PNTTM, LAST_UPDUSR_ID) VALUES ('COM076', '03', '수행중', '수행중', 'Y',SYSDATE(), 'SYSTEM',SYSDATE(), 'SYSTEM');
INSERT INTO COMTNAUTHORGROUPINFO ( GROUP_ID, GROUP_NM, GROUP_CREAT_DE,GROUP_DC ) VALUES ( 'GROUP_00000000000000', '0번 그룹입니다', SYSDATE(), '0번 그룹입니다');
INSERT INTO COMTNGNRLMBER (MBER_ID,PASSWORD,PASSWORD_HINT,PASSWORD_CNSR,IHIDNUM,MBER_NM,ZIP,ADRES,AREA_NO,MBER_STTUS,DETAIL_ADRES,END_TELNO,MBTLNUM,GROUP_ID,MBER_FXNUM,MBER_EMAIL_ADRES,MIDDLE_TELNO,SBSCRB_DE,SEXDSTN_CODE,ESNTL_ID) values ('USER','6TAJYwhKCgkgzPXDb83ZUiHi2/TKHhD7t5Ba6RN2qoo=','P01','전자정부표준프레임워크센터',null,'일반회원','100775','서울 중구 무교동 한국정보화진흥원','02','P','전자정부표준프레임워크센터','2059','1566-2059','GROUP_00000000000000','1566-2059','egovframesupport@gmail.com','1566',SYSDATE(),'F','USRCNFRM_00000000001');
INSERT INTO COMTNORGNZTINFO ( ORGNZT_ID, ORGNZT_NM, ORGNZT_DC ) VALUES ( 'ORGNZT_0000000000000', '기본조직', '기본조직');
INSERT INTO COMTNEMPLYRINFO (EMPLYR_ID, ORGNZT_ID, USER_NM, PASSWORD, EMPL_NO, IHIDNUM, SEXDSTN_CODE, BRTHDY, FXNUM, HOUSE_ADRES, PASSWORD_HINT, PASSWORD_CNSR, HOUSE_END_TELNO, AREA_NO, DETAIL_ADRES, ZIP, OFFM_TELNO, MBTLNUM, EMAIL_ADRES, OFCPS_NM, HOUSE_MIDDLE_TELNO, GROUP_ID, PSTINST_CODE, EMPLYR_STTUS_CODE, ESNTL_ID, CRTFC_DN_VALUE, SBSCRB_DE) VALUES ('TEST1','ORGNZT_0000000000000','테스트1', 'raHLBnHFcunwNzcDcfad4PhD11hHgXSUr7fc1Jk9uoQ=','20112059',null,'F','20111130','1566-2059','서울 중구 무교동 한국정보화진흥원','P01','전자정부표준프레임워크센터','2059','02','전자정부표준프레임워크센터','100775','1566-2059','1566-2059','egovframesupport@gmail.com','관리자','1566','GROUP_00000000000000','00000001','P','USRCNFRM_00000000000','',SYSDATE());
INSERT INTO COMTNEMPLYRINFO (EMPLYR_ID, ORGNZT_ID, USER_NM, PASSWORD, EMPL_NO, IHIDNUM, SEXDSTN_CODE, BRTHDY, FXNUM, HOUSE_ADRES, PASSWORD_HINT, PASSWORD_CNSR, HOUSE_END_TELNO, AREA_NO, DETAIL_ADRES, ZIP, OFFM_TELNO, MBTLNUM, EMAIL_ADRES, OFCPS_NM, HOUSE_MIDDLE_TELNO, GROUP_ID, PSTINST_CODE, EMPLYR_STTUS_CODE, ESNTL_ID, CRTFC_DN_VALUE, SBSCRB_DE) VALUES ('webmaster','ORGNZT_0000000000000','웹마스터','78gXjfDDMzepOP4QTiFMRFOT/msFgKkHIgGOU95PT94=','20112060',null,'F','20111130','1566-2059','서울특별시 중구 청계천로 14 - 0 한국정보사회진흥원','P01','전자정부표준프레임워크센터','2059','02','전자정부표준프레임워크센터','100775','1566-2059','1566-2059','egovframesupport@gmail.com','웹관리자','1566','GROUP_00000000000000','00000001','P','USRCNFRM_99999999999','',SYSDATE());
INSERT INTO COMTNENTRPRSMBER (ENTRPRS_MBER_ID,ENTRPRS_SE_CODE,BIZRNO,JURIRNO,CMPNY_NM,CXFC,ZIP,ADRES,ENTRPRS_MIDDLE_TELNO,FXNUM,INDUTY_CODE,APPLCNT_NM,APPLCNT_IHIDNUM,SBSCRB_DE,ENTRPRS_MBER_STTUS,ENTRPRS_MBER_PASSWORD,ENTRPRS_MBER_PASSWORD_HINT,ENTRPRS_MBER_PASSWORD_CNSR,GROUP_ID,DETAIL_ADRES,ENTRPRS_END_TELNO,AREA_NO,APPLCNT_EMAIL_ADRES,ESNTL_ID) values ('ENTERPRISE','C0000001','1008360001','1000310000011','NIA','이가브','100775','서울특별시 중구 청계천로 14 - 0 한국정보사회진흥원','1566','1566-2059','O','관리자',null,SYSDATE(),'P','ZQhr3oB5QWjBnBO0kbFF7bvQDLkk+Em0ExjTq5JtVTo=','P01','전자정부표준프레임워크센터','GROUP_00000000000000','표준프레임워크센터','2059','02','egovframesupport@gmail.com','USRCNFRM_00000000002');
| dasomel/egovframework | common-component/v3.6.2/src/script/mysql/dml/uss.ion.mtg_insert_mysql.sql | SQL | apache-2.0 | 137,027 | [
30522,
19274,
2046,
19758,
3597,
29251,
4160,
1006,
2795,
1035,
2171,
1010,
2279,
1035,
8909,
1007,
5300,
1006,
1005,
4748,
2497,
22332,
2121,
1035,
8909,
1005,
1010,
1015,
1007,
1025,
19274,
2046,
19758,
3597,
29251,
4160,
1006,
2795,
1035... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package buckyclient
import (
// "errors"
"bytes"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/httptest"
"os"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
// mockBuckyServer echoes out the contents it receives in its request body
func mockBuckyServer(code int) *httptest.Server {
return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(code)
if code > 299 {
w.Write([]byte(http.StatusText(code)))
return
}
written, err := io.Copy(w, r.Body)
if err != nil {
log.Printf("Error: %s", err.Error())
return
}
log.Printf("Wrote %d bytes", written)
}))
}
func TestClient_Client_NewClient(t *testing.T) {
cl, err := NewClient("", 20)
defer func() {
close(cl.stop)
close(cl.stopped)
close(cl.input)
}()
assert.NoError(t, err)
assert.Equal(t, cl.interval, 60*time.Second)
}
func TestClient_Client_NewClient_Error(t *testing.T) {
cl, err := NewClient("", 1<<48) // Cause an integer overflow in time.ParseDuration
assert.Error(t, err)
assert.Nil(t, cl)
}
func TestClient_Client_Count(t *testing.T) {
name := "myapp.facet"
value := 1
cl := &Client{
http: &http.Client{},
logger: log.New(ioutil.Discard, "", log.Ldate|log.Ltime|log.Lshortfile),
interval: 3 * time.Second,
input: make(chan MetricWithAmount, 10),
stop: make(chan bool, 1),
stopped: make(chan bool, 1),
metrics: make(map[Metric]Value),
bufferPool: newBufferPool(),
}
defer func() {
close(cl.stop)
close(cl.stopped)
close(cl.input)
}()
cl.Count(name, value)
time.Sleep(time.Millisecond * 20) // Give the goroutine a chance to run
assert.Equal(t, len(cl.input), 1)
metric := <-cl.input
assert.Equal(t, metric.name, name)
assert.Equal(t, metric.unit, "c")
assert.Equal(t, metric.Amount.Value, value)
}
func TestClient_Client_Timer(t *testing.T) {
name := "myapp.facet"
value := 1
cl := &Client{
http: &http.Client{},
logger: log.New(ioutil.Discard, "", log.Ldate|log.Ltime|log.Lshortfile),
interval: 3 * time.Second,
input: make(chan MetricWithAmount, 10),
stop: make(chan bool, 1),
stopped: make(chan bool, 1),
metrics: make(map[Metric]Value),
bufferPool: newBufferPool(),
}
defer func() {
close(cl.stop)
close(cl.stopped)
close(cl.input)
}()
cl.Timer(name, value)
time.Sleep(time.Millisecond * 20) // Give the goroutine a chance to run
assert.Equal(t, len(cl.input), 1)
metric := <-cl.input
assert.Equal(t, metric.name, name)
assert.Equal(t, metric.unit, "ms")
assert.Equal(t, metric.Amount.Value, value)
}
func TestClient_Client_AverageTimer(t *testing.T) {
name := "myapp.facet"
value := 1
cl := &Client{
http: &http.Client{},
logger: log.New(ioutil.Discard, "", log.Ldate|log.Ltime|log.Lshortfile),
interval: 3 * time.Second,
input: make(chan MetricWithAmount, 10),
stop: make(chan bool, 1),
stopped: make(chan bool, 1),
metrics: make(map[Metric]Value),
bufferPool: newBufferPool(),
}
defer func() {
close(cl.stop)
close(cl.stopped)
close(cl.input)
}()
cl.AverageTimer(name, value)
cl.AverageTimer(name, 3)
time.Sleep(time.Millisecond * 20)
metric := <-cl.input
assert.Equal(t, metric.name, name)
assert.Equal(t, metric.unit, "ms")
assert.Equal(t, metric.Amount.Value, 3)
}
func TestClient_Client_SetLogger(t *testing.T) {
logMessage := "Bucky bucky bucky!"
cl := &Client{logger: log.New(os.Stderr, "", log.Ldate|log.Ltime|log.Lshortfile)}
buf := &bytes.Buffer{}
newLogger := log.New(buf, "", log.Ldate|log.Ltime|log.Lshortfile)
cl.SetLogger(newLogger)
cl.logger.Println(logMessage)
assert.Contains(t, buf.String(), logMessage)
}
func TestClient_Client_formatMetricsForFlush(t *testing.T) {
buf := &bytes.Buffer{}
cl := &Client{metrics: make(map[Metric]Value)}
cl.metrics[Metric{name: "myapp.facet.test1", unit: "ms"}] = Value{
Avg: &Average{
Count: 123,
Total: 456,
Avg: 2,
},
}
cl.metrics[Metric{name: "myapp.facet.test2", unit: "c"}] = Value{
Sum: &Sum{
Value: 987,
},
}
cl.formatMetricsForFlush(buf)
// Order is non-determenistic!
assert.Contains(t, buf.String(), "myapp.facet.test1:2|ms\n")
assert.Contains(t, buf.String(), "myapp.facet.test2:987|c\n")
}
func TestClient_Client_flush(t *testing.T) {
buf := &bytes.Buffer{}
logger := log.New(buf, "", log.Ldate|log.Ltime|log.Lshortfile)
mockBucky := mockBuckyServer(http.StatusOK)
defer mockBucky.Close()
cl := &Client{
hostURL: mockBucky.URL,
metrics: make(map[Metric]Value),
bufferPool: newBufferPool(),
http: &http.Client{},
logger: logger,
}
cl.metrics[Metric{name: "myapp.facet.test1", unit: "ms"}] = Value{
Avg: &Average{
Count: 123,
Total: 456,
Avg: 2,
},
}
cl.metrics[Metric{name: "myapp.facet.test2", unit: "c"}] = Value{
Sum: &Sum{
Value: 987,
},
}
err := cl.flush()
assert.NoError(t, err)
}
func TestClient_Client_flush_NoMetricsError(t *testing.T) {
cl := &Client{
metrics: make(map[Metric]Value),
}
err := cl.flush()
assert.Error(t, err)
}
func TestClient_Client_flush_HttpPostError(t *testing.T) {
buf := &bytes.Buffer{}
logger := log.New(buf, "", log.Ldate|log.Ltime|log.Lshortfile)
cl := &Client{
metrics: make(map[Metric]Value),
bufferPool: newBufferPool(),
http: &http.Client{},
logger: logger,
}
cl.metrics[Metric{name: "myapp.facet.test1", unit: "ms"}] = Value{
Avg: &Average{
Count: 123,
Total: 456,
Avg: 2,
},
}
cl.metrics[Metric{name: "myapp.facet.test2", unit: "c"}] = Value{
Sum: &Sum{
Value: 987,
},
}
err := cl.flush()
assert.Error(t, err)
}
func TestClient_Client_flush_NonSuccessfulStatusCode(t *testing.T) { // Non 2XX
buf := &bytes.Buffer{}
logger := log.New(buf, "", log.Ldate|log.Ltime|log.Lshortfile)
mockBucky := mockBuckyServer(http.StatusTeapot)
defer mockBucky.Close()
cl := &Client{
hostURL: mockBucky.URL,
metrics: make(map[Metric]Value),
bufferPool: newBufferPool(),
http: &http.Client{},
logger: logger,
}
cl.metrics[Metric{name: "myapp.facet.test1", unit: "ms"}] = Value{
Avg: &Average{
Count: 123,
Total: 456,
Avg: 2,
},
}
cl.metrics[Metric{name: "myapp.facet.test2", unit: "c"}] = Value{
Sum: &Sum{
Value: 987,
},
}
err := cl.flush()
assert.Error(t, err)
}
func TestClient_Client_flushInputChannel(t *testing.T) {
cl := &Client{
metrics: make(map[Metric]Value),
input: make(chan MetricWithAmount, 1),
}
cl.input <- MetricWithAmount{Metric{name: "myapp.test"}, Amount{}, "sum"}
cl.flushInputChannel()
assert.Equal(t, len(cl.metrics), 1)
}
func TestClient_Client_Reset(t *testing.T) {
cl := &Client{
metrics: map[Metric]Value{
Metric{name: "first"}: Value{},
Metric{name: "second"}: Value{},
},
}
assert.Equal(t, len(cl.metrics), 2)
cl.Reset()
assert.Equal(t, len(cl.metrics), 0)
}
func TestClient_Client_handleMetricWithValue_Average(t *testing.T) {
cl := &Client{
metrics: make(map[Metric]Value),
}
metric := Metric{name: "m.et.ric"}
amount := Amount{Value: 3}
metricValue := MetricWithAmount{metric, amount, "avg"}
cl.handleMetricWithValue(metricValue)
cl.handleMetricWithValue(metricValue)
assert.Equal(t, len(cl.metrics), 1)
assert.Equal(t, cl.metrics[metric].Avg, &Average{
Count: 2,
Total: 6,
Avg: 3,
})
assert.Nil(t, cl.metrics[metric].Sum)
}
func TestClient_Client_handleMetricWithValue_Sum(t *testing.T) {
cl := &Client{
metrics: make(map[Metric]Value),
}
metric := Metric{name: "m.et.ric"}
amount := Amount{Value: 3}
metricValue := MetricWithAmount{metric, amount, "sum"}
cl.handleMetricWithValue(metricValue)
assert.Equal(t, len(cl.metrics), 1)
assert.Equal(t, cl.metrics[metric].Sum, &Sum{Value: 3})
assert.Nil(t, cl.metrics[metric].Avg)
}
func TestClient_Client_inputProcessor(t *testing.T) {
cl := &Client{
metrics: make(map[Metric]Value),
input: make(chan MetricWithAmount, 5),
}
for i := 0; i < 5; i++ {
cl.input <- MetricWithAmount{Metric{name: fmt.Sprintf("%d", i)}, Amount{}, "sum"}
}
close(cl.input) // Close or this will hang!
cl.inputProcessor()
assert.Equal(t, len(cl.metrics), 5)
}
func TestClient_Client_sender(t *testing.T) {
cl := &Client{
http: &http.Client{},
logger: log.New(ioutil.Discard, "", log.Ldate|log.Ltime|log.Lshortfile),
interval: 10 * time.Millisecond,
input: make(chan MetricWithAmount, 10),
stop: make(chan bool, 1),
stopped: make(chan bool, 1),
metrics: make(map[Metric]Value),
bufferPool: newBufferPool(),
}
err := cl.sender()
time.Sleep(time.Millisecond * 100) // Allow sender to actually execute
assert.NoError(t, err)
}
func TestClient_Client_Stop(t *testing.T) {
buf := &bytes.Buffer{}
cl := &Client{
logger: log.New(buf, "", log.Ldate|log.Ltime|log.Lshortfile),
stop: make(chan bool, 1),
stopped: make(chan bool, 1),
}
go func() {
time.Sleep(time.Millisecond * 100)
close(cl.stopped)
}()
cl.Stop()
assert.Contains(t, buf.String(), "Stopping bucky client")
assert.Contains(t, buf.String(), "Client stopped")
}
| matzhouse/go-bucky-client | client_test.go | GO | mit | 9,173 | [
30522,
7427,
10131,
2100,
20464,
11638,
12324,
1006,
1013,
1013,
1000,
10697,
1000,
1000,
27507,
1000,
1000,
4718,
2102,
1000,
1000,
22834,
1000,
1000,
22834,
1013,
22834,
21823,
2140,
1000,
1000,
8833,
1000,
1000,
5658,
1013,
8299,
1000,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
using System.Collections.Generic;
using Zenject;
using NUnit.Framework;
using System.Linq;
using ModestTree;
using Assert=ModestTree.Assert;
namespace Zenject.Tests.Conditions
{
[TestFixture]
public class TestConditionsIdentifier : ZenjectUnitTestFixture
{
class Test0
{
}
class Test1
{
public Test1(
[Inject(Id ="foo")]
Test0 name1)
{
}
}
class Test2
{
[Inject(Id ="foo")]
public Test0 name2 = null;
}
[Test]
public void TestUnspecifiedNameConstructorInjection()
{
Container.Bind<Test1>().AsTransient().NonLazy();
Container.Bind<Test0>().AsTransient().NonLazy();
Assert.Throws(() => Container.Validate());
Assert.Throws(
delegate { Container.Resolve<Test1>(); });
}
[Test]
public void TestUnspecifiedNameFieldInjection()
{
Container.Bind<Test1>().AsTransient().NonLazy();
Container.Bind<Test2>().AsTransient().NonLazy();
Container.Bind<Test0>().AsTransient().NonLazy();
Assert.Throws(() => Container.Validate());
Assert.Throws(
delegate { Container.Resolve<Test2>(); });
}
[Test]
public void TestSuccessConstructorInjectionString()
{
Container.Bind<Test1>().AsTransient().NonLazy();
Container.Bind<Test2>().AsTransient().NonLazy();
Container.Bind<Test0>().FromInstance(new Test0()).NonLazy();
Container.Bind<Test0>().WithId("foo").FromInstance(new Test0()).NonLazy();
Container.Validate();
// Should not throw exceptions
Container.Resolve<Test1>();
Assert.IsNotNull(Container.Resolve<Test1>());
}
[Test]
public void TestSuccessFieldInjectionString()
{
Container.Bind<Test1>().AsTransient().NonLazy();
Container.Bind<Test2>().AsTransient().NonLazy();
Container.Bind<Test0>().FromInstance(new Test0()).NonLazy();
Container.Bind<Test0>().WithId("foo").FromInstance(new Test0()).NonLazy();
Container.Validate();
Assert.IsNotNull(Container.Resolve<Test2>());
}
class Test3
{
public Test3(
[Inject(Id ="TestValue2")]
Test0 test0)
{
}
}
class Test4
{
}
[Test]
public void TestFailConstructorInjectionEnum()
{
Container.Bind<Test1>().AsTransient().NonLazy();
Container.Bind<Test2>().AsTransient().NonLazy();
Container.Bind<Test3>().AsTransient().NonLazy();
Container.Bind<Test0>().FromInstance(new Test0()).NonLazy();
Container.Bind<Test0>().WithId("TestValue1").FromInstance(new Test0()).NonLazy();
Assert.Throws(() => Container.Validate());
Assert.Throws(
delegate { Container.Resolve<Test3>(); });
}
[Test]
public void TestSuccessConstructorInjectionEnum()
{
Container.Bind<Test3>().AsTransient().NonLazy();
Container.Bind<Test0>().FromInstance(new Test0()).NonLazy();
Container.Bind<Test0>().WithId("TestValue2").FromInstance(new Test0()).NonLazy();
Container.Validate();
// No exceptions
Container.Resolve<Test3>();
Assert.IsNotNull(Container.Resolve<Test3>());
}
[Test]
public void TestFailFieldInjectionEnum()
{
Container.Bind<Test1>().AsTransient().NonLazy();
Container.Bind<Test2>().AsTransient().NonLazy();
Container.Bind<Test3>().AsTransient().NonLazy();
Container.Bind<Test0>().FromInstance(new Test0()).NonLazy();
Container.Bind<Test0>().WithId("TestValue1").FromInstance(new Test0()).NonLazy();
Assert.Throws(() => Container.Validate());
Assert.Throws(
delegate { Container.Resolve<Test3>(); });
}
[Test]
public void TestSuccessFieldInjectionEnum()
{
Container.Bind<Test4>().AsTransient().NonLazy();
Container.Bind<Test0>().FromInstance(new Test0()).NonLazy();
Container.Bind<Test0>().WithId("TestValue3").FromInstance(new Test0()).NonLazy();
Container.Validate();
Assert.IsNotNull(Container.Resolve<Test4>());
}
}
}
| skahal/Buildron-Classic-Mods | src/Solution/Zenject/OptionalExtras/UnitTests/Editor/Conditions/TestConditionsIdentifier.cs | C# | mit | 4,681 | [
30522,
2478,
2291,
1025,
2478,
2291,
1012,
6407,
1012,
12391,
1025,
2478,
16729,
20614,
1025,
2478,
16634,
4183,
1012,
7705,
1025,
2478,
2291,
1012,
11409,
4160,
1025,
2478,
10754,
13334,
1025,
2478,
20865,
1027,
10754,
13334,
1012,
20865,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* @brief UART/USART Registers and control functions
*
* @note
* Copyright(C) NXP Semiconductors, 2012
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is supplied "AS IS" without any warranties of
* any kind, and NXP Semiconductors and its licensor disclaim any and
* all warranties, express or implied, including all implied warranties of
* merchantability, fitness for a particular purpose and non-infringement of
* intellectual property rights. NXP Semiconductors assumes no responsibility
* or liability for the use of the software, conveys no license or rights under any
* patent, copyright, mask work right, or any other intellectual property rights in
* or to any products. NXP Semiconductors reserves the right to make changes
* in the software without notification. NXP Semiconductors also makes no
* representation or warranty that such application will be suitable for the
* specified use without further testing or modification.
*
* @par
* Permission to use, copy, modify, and distribute this software and its
* documentation is hereby granted, under NXP Semiconductors' and its
* licensor's relevant copyrights in the software, without fee, provided that it
* is used in conjunction with NXP Semiconductors microcontrollers. This
* copyright, permission, and disclaimer notice must appear in all copies of
* this code.
*/
#ifndef __USART_004_H_
#define __USART_004_H_
#include "sys_config.h"
#include "cmsis.h"
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup IP_USART_004 IP: USART register block and driver (004)
* @ingroup IP_Drivers
* @{
*/
/**
* @brief USART register block structure
*/
typedef struct { /*!< USARTn Structure */
union {
__IO uint32_t DLL; /*!< Divisor Latch LSB. Least significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider (DLAB = 1). */
__O uint32_t THR; /*!< Transmit Holding Register. The next character to be transmitted is written here (DLAB = 0). */
__I uint32_t RBR; /*!< Receiver Buffer Register. Contains the next received character to be read (DLAB = 0). */
};
union {
__IO uint32_t IER; /*!< Interrupt Enable Register. Contains individual interrupt enable bits for the 7 potential UART interrupts (DLAB = 0). */
__IO uint32_t DLM; /*!< Divisor Latch MSB. Most significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider (DLAB = 1). */
};
union {
__O uint32_t FCR; /*!< FIFO Control Register. Controls UART FIFO usage and modes. */
__I uint32_t IIR; /*!< Interrupt ID Register. Identifies which interrupt(s) are pending. */
};
__IO uint32_t LCR; /*!< Line Control Register. Contains controls for frame formatting and break generation. */
__IO uint32_t MCR; /*!< Modem Control Register. Only present on USART ports with full modem support. */
__I uint32_t LSR; /*!< Line Status Register. Contains flags for transmit and receive status, including line errors. */
__I uint32_t MSR; /*!< Modem Status Register. Only present on USART ports with full modem support. */
__IO uint32_t SCR; /*!< Scratch Pad Register. Eight-bit temporary storage for software. */
__IO uint32_t ACR; /*!< Auto-baud Control Register. Contains controls for the auto-baud feature. */
__IO uint32_t ICR; /*!< IrDA control register (not all UARTS) */
__IO uint32_t FDR; /*!< Fractional Divider Register. Generates a clock input for the baud rate divider. */
__IO uint32_t OSR; /*!< Oversampling Register. Controls the degree of oversampling during each bit time. Only on some UARTS. */
__IO uint32_t TER1; /*!< Transmit Enable Register. Turns off USART transmitter for use with software flow control. */
uint32_t RESERVED0[3];
__IO uint32_t HDEN; /*!< Half-duplex enable Register- only on some UARTs */
__I uint32_t RESERVED1[1];
__IO uint32_t SCICTRL; /*!< Smart card interface control register- only on some UARTs */
__IO uint32_t RS485CTRL; /*!< RS-485/EIA-485 Control. Contains controls to configure various aspects of RS-485/EIA-485 modes. */
__IO uint32_t RS485ADRMATCH; /*!< RS-485/EIA-485 address match. Contains the address match value for RS-485/EIA-485 mode. */
__IO uint32_t RS485DLY; /*!< RS-485/EIA-485 direction control delay. */
union {
__IO uint32_t SYNCCTRL; /*!< Synchronous mode control register. Only on USARTs. */
__I uint32_t FIFOLVL; /*!< FIFO Level register. Provides the current fill levels of the transmit and receive FIFOs. */
};
__IO uint32_t TER2; /*!< Transmit Enable Register. Only on LPC177X_8X UART4 and LPC18XX/43XX USART0/2/3. */
} IP_USART_001_T;
#define UART_RBR_MASKBIT (0xFF) /*!< UART Received Buffer mask bit (8 bits) */
/**
* @brief Basic UART initialization
* @param pUART : Pointer to selected UART peripheral
* @return Nothing
* @note This function performs very basic UART initialization
*/
void IP_UART_Init(IP_USART_001_T *pUART);
/**
* @brief UART de-initialization
* @param pUART : Pointer to selected UART peripheral
* @return Nothing
*/
STATIC INLINE void IP_UART_DeInit(IP_USART_001_T *pUART) {}
/**
* @brief Transmit a single byte through the UART peripheral
* @param pUART : Pointer to selected UART peripheral
* @param data : Byte to transmit
* @return Nothing
* @note This function attempts to place a byte into the UART transmit
* FIFO or transmit hold register regard regardless of UART state.
*/
STATIC INLINE void IP_UART_SendByte(IP_USART_001_T *pUART, const uint8_t data)
{
pUART->THR = (uint32_t) data;
}
/**
* @brief Get a single data from UART peripheral
* @param pUART : Pointer to selected UART peripheral
* @return A single byte of data read
* @note This function reads a byte from the UART receive FIFO or
* receive hold register regard regardless of UART state.
*/
STATIC INLINE uint8_t IP_UART_ReadByte(IP_USART_001_T *pUART)
{
return (uint8_t) (pUART->RBR & UART_RBR_MASKBIT);
}
/**
* @brief Macro defines for UART interrupt enable register
*/
#define UART_IER_RBRINT (1 << 0) /*!< RBR Interrupt enable*/
#define UART_IER_THREINT (1 << 1) /*!< THR Interrupt enable*/
#define UART_IER_RLSINT (1 << 2) /*!< RX line status interrupt enable*/
#define UART_IER_MSINT (1 << 3) /*!< Modem status interrupt enable */
#define UART_IER_CTSINT (1 << 7) /*!< CTS1 signal transition interrupt enable */
#define UART_IER_ABEOINT (1 << 8) /*!< Enables the end of auto-baud interrupt */
#define UART_IER_ABTOINT (1 << 9) /*!< Enables the auto-baud time-out interrupt */
#define UART_IER_BITMASK (0x307) /*!< UART interrupt enable register bit mask */
#define UART1_IER_BITMASK (0x38F) /*!< UART1 interrupt enable register bit mask */
/**
* @brief Enable UART interrupts
* @param pUART : Pointer to selected UART peripheral
* @param intMask : Or'ed Interrupts to enable in the Interrupt Enable Register (IER)
* @return Nothing
* @note Use an Or'ed value of UART_IER_* definitions with this call
* to enable specific UART interrupts. The Divisor Latch Access Bit
* (DLAB) in LCR must be cleared in order to access the IER register.
* This function doesn't alter the DLAB state.
*/
STATIC INLINE void IP_UART_IntEnable(IP_USART_001_T *pUART, uint32_t intMask)
{
pUART->IER |= intMask;
}
/**
* @brief Disable UART interrupts
* @param pUART : Pointer to selected UART peripheral
* @param intMask : Or'ed Interrupts to disable in the Interrupt Enable Register (IER)
* @return Nothing
* @note Use an Or'ed value of UART_IER_* definitions with this call
* to disable specific UART interrupts. The Divisor Latch Access Bit
* (DLAB) in LCR must be cleared in order to access the IER register.
* This function doesn't alter the DLAB state.
*/
STATIC INLINE void IP_UART_IntDisable(IP_USART_001_T *pUART, uint32_t intMask)
{
pUART->IER &= ~intMask;
}
/**
* @brief Macro defines for UART interrupt identification register
*/
#define UART_IIR_INTSTAT_PEND (1 << 0) /*!<Interrupt Status - Active low */
#define UART_IIR_INTID_RLS (3 << 1) /*!<Interrupt identification: Receive line status*/
#define UART_IIR_INTID_RDA (2 << 1) /*!<Interrupt identification: Receive data available*/
#define UART_IIR_INTID_CTI (6 << 1) /*!<Interrupt identification: Character time-out indicator*/
#define UART_IIR_INTID_THRE (1 << 1) /*!<Interrupt identification: THRE interrupt*/
#define UART_IIR_INTID_MODEM (0 << 1) /*!<Interrupt identification: Modem interrupt*/
#define UART_IIR_INTID_MASK (7 << 1) /*!<Interrupt identification: Interrupt ID mask */
#define UART_IIR_FIFO_EN (3 << 6) /*!<These bits are equivalent to UnFCR[0] */
#define UART_IIR_ABEO_INT (1 << 8) /*!< End of auto-baud interrupt */
#define UART_IIR_ABTO_INT (1 << 9) /*!< Auto-baud time-out interrupt */
#define UART_IIR_BITMASK (0x3CF) /*!< UART interrupt identification register bit mask */
/**
* @brief Read the Interrupt Identification Register (IIR)
* @param pUART : Pointer to selected UART peripheral
* @return Current pending interrupt status per the IIR register
*/
STATIC INLINE uint32_t IP_UART_ReadIntIDReg(IP_USART_001_T *pUART)
{
return pUART->IIR;
}
/**
* @brief Macro defines for UART FIFO control register
*/
#define UART_FCR_FIFO_EN (1 << 0) /*!< UART FIFO enable */
#define UART_FCR_RX_RS (1 << 1) /*!< UART FIFO RX reset */
#define UART_FCR_TX_RS (1 << 2) /*!< UART FIFO TX reset */
#define UART_FCR_DMAMODE_SEL (1 << 3) /*!< UART DMA mode selection */
#define UART_FCR_TRG_LEV0 (0) /*!< UART FIFO trigger level 0: 1 character */
#define UART_FCR_TRG_LEV1 (1 << 6) /*!< UART FIFO trigger level 1: 4 character */
#define UART_FCR_TRG_LEV2 (2 << 6) /*!< UART FIFO trigger level 2: 8 character */
#define UART_FCR_TRG_LEV3 (3 << 6) /*!< UART FIFO trigger level 3: 14 character */
#define UART_FCR_BITMASK (0xCF) /*!< UART FIFO control bit mask */
#define UART_TX_FIFO_SIZE (16)
/**
* @brief Setup the UART FIFOs
* @param pUART : Pointer to selected UART peripheral
* @param fcr : FIFO control register setup OR'ed flags
* @return Nothing
* @note Use an Or'ed value of UART_FCR_* definitions with this call
* to select specific options.
*/
STATIC INLINE void IP_UART_SetupFIFOS(IP_USART_001_T *pUART, uint32_t fcr)
{
pUART->FCR = fcr;
}
/**
* @brief Macro defines for UART line control register
*/
#define UART_LCR_WLEN5 (0) /*!< UART 5 bit data mode */
#define UART_LCR_WLEN6 (1 << 0) /*!< UART 6 bit data mode */
#define UART_LCR_WLEN7 (2 << 0) /*!< UART 7 bit data mode */
#define UART_LCR_WLEN8 (3 << 0) /*!< UART 8 bit data mode */
#define UART_LCR_SBS_1BIT (0 << 2) /*!< UART One Stop Bit Select */
#define UART_LCR_SBS_2BIT (1 << 2) /*!< UART Two Stop Bits Select */
#define UART_LCR_PARITY_EN (1 << 3) /*!< UART Parity Enable */
#define UART_LCR_PARITY_DIS (0 << 3) /*!< UART Parity Disable */
#define UART_LCR_PARITY_ODD (0) /*!< UART Odd Parity Select */
#define UART_LCR_PARITY_EVEN (1 << 4) /*!< UART Even Parity Select */
#define UART_LCR_PARITY_F_1 (2 << 4) /*!< UART force 1 stick parity */
#define UART_LCR_PARITY_F_0 (3 << 4) /*!< UART force 0 stick parity */
#define UART_LCR_BREAK_EN (1 << 6) /*!< UART Transmission Break enable */
#define UART_LCR_DLAB_EN (1 << 7) /*!< UART Divisor Latches Access bit enable */
#define UART_LCR_BITMASK (0xFF) /*!< UART line control bit mask */
/**
* @brief Setup the UART operation mode in the Line Control Register (LCR)
* @param pUART : Pointer to selected UART peripheral
* @param lcr : OR'ed flags
* @return Nothing
* @note Sets up the UART transmit mode (data bits, stop bits, parity,
* and break). Use an Or'ed value of UART_LCR_* definitions with this
* call to select specific options. Unless the UART_LCR_DLAB_EN
* option is passed in lcd, DLAB will be cleared and divisor access
* will be disabled.
*/
STATIC INLINE void IP_UART_SetMode(IP_USART_001_T *pUART, uint32_t lcr)
{
pUART->LCR = lcr;
}
/**
* @brief Enable access to Divisor Latches
* @param pUART : Pointer to selected UART peripheral
* @return Nothing
*/
STATIC INLINE void IP_UART_EnableDivisorAccess(IP_USART_001_T *pUART)
{
pUART->LCR |= UART_LCR_DLAB_EN;
}
/**
* @brief Disable access to Divisor Latches
* @param pUART : Pointer to selected UART peripheral
* @return Nothing
*/
STATIC INLINE void IP_UART_DisableDivisorAccess(IP_USART_001_T *pUART)
{
pUART->LCR &= ~UART_LCR_DLAB_EN;
}
#define UART_DLL_MASKBIT (0xFF) /*!< Divisor latch LSB (DLL) bit mask */
#define UART_DLM_MASKBIT (0xFF) /*!< Divisor latch MSB (DLM) bit mask */
/**
* @brief Set LSB and MSB divisor latch registers
* @param pUART : Pointer to selected UART peripheral
* @param dll : Divisor Latch LSB value
* @param dlm : Divisor Latch MSB value
* @return Nothing
* @note The Divisor Latch Access Bit (DLAB) in LCR must be set in
* order to access the USART Divisor Latches. This function
* doesn't alter the DLAB state.
*/
STATIC INLINE void IP_UART_SetDivisorLatches(IP_USART_001_T *pUART, uint8_t dll, uint8_t dlm)
{
pUART->DLL = (uint32_t) dll;
pUART->DLM = (uint32_t) dlm;
}
/**
* @brief Macro defines for UART Modem control register
*/
#define UART_MCR_DTR_CTRL (1 << 0) /*!< Source for modem output pin DTR */
#define UART_MCR_RTS_CTRL (1 << 1) /*!< Source for modem output pin RTS */
#define UART_MCR_LOOPB_EN (1 << 4) /*!< Loop back mode select */
#define UART_MCR_AUTO_RTS_EN (1 << 6) /*!< Enable Auto RTS flow-control */
#define UART_MCR_AUTO_CTS_EN (1 << 7) /*!< Enable Auto CTS flow-control */
#define UART_MCR_BITMASK (0x0F3) /*!< UART1 bit mask value */
/**
* @brief Return modem control register/status
* @param pUART : Pointer to selected UART peripheral
* @return Modem control register (status)
* @note Mask bits of the returned status value with UART_MCR_*
* definitions for specific statuses.
*/
STATIC INLINE uint32_t IP_UART_ReadModemControl(IP_USART_001_T *pUART)
{
return pUART->MCR;
}
/**
* @brief Set modem control register/status
* @param pUART : Pointer to selected UART peripheral
* @param mcr : Modem control register flags to set
* @return Nothing
* @note Use an Or'ed value of UART_MCR_* definitions with this
* call to set specific options.
*/
STATIC INLINE void IP_UART_SetModemControl(IP_USART_001_T *pUART, uint32_t mcr)
{
pUART->MCR |= mcr;
}
/**
* @brief Clear modem control register/status
* @param pUART : Pointer to selected UART peripheral
* @param mcr : Modem control register flags to clear
* @return Nothing
* @note Use an Or'ed value of UART_MCR_* definitions with this
* call to clear specific options.
*/
STATIC INLINE void IP_UART_ClearModemControl(IP_USART_001_T *pUART, uint32_t mcr)
{
pUART->MCR &= ~mcr;
}
/**
* @brief Macro defines for UART line status register
*/
#define UART_LSR_RDR (1 << 0) /*!< Line status register: Receive data ready */
#define UART_LSR_OE (1 << 1) /*!< Line status register: Overrun error */
#define UART_LSR_PE (1 << 2) /*!< Line status register: Parity error */
#define UART_LSR_FE (1 << 3) /*!< Line status register: Framing error */
#define UART_LSR_BI (1 << 4) /*!< Line status register: Break interrupt */
#define UART_LSR_THRE (1 << 5) /*!< Line status register: Transmit holding register empty */
#define UART_LSR_TEMT (1 << 6) /*!< Line status register: Transmitter empty */
#define UART_LSR_RXFE (1 << 7) /*!< Error in RX FIFO */
#define UART_LSR_BITMASK (0xFF) /*!< UART Line status bit mask */
/**
* @brief Return Line Status register/status (LSR)
* @param pUART : Pointer to selected UART peripheral
* @return Line Status register (status)
* @note Mask bits of the returned status value with UART_LSR_*
* definitions for specific statuses.
*/
STATIC INLINE uint32_t IP_UART_ReadLineStatus(IP_USART_001_T *pUART)
{
return pUART->LSR;
}
/**
* @brief Macro defines for UART Modem status register
*/
#define UART_MSR_DELTA_CTS (1 << 0) /*!< Set upon state change of input CTS */
#define UART_MSR_DELTA_DSR (1 << 1) /*!< Set upon state change of input DSR */
#define UART_MSR_LO2HI_RI (1 << 2) /*!< Set upon low to high transition of input RI */
#define UART_MSR_DELTA_DCD (1 << 3) /*!< Set upon state change of input DCD */
#define UART_MSR_CTS (1 << 4) /*!< Clear To Send State */
#define UART_MSR_DSR (1 << 5) /*!< Data Set Ready State */
#define UART_MSR_RI (1 << 6) /*!< Ring Indicator State */
#define UART_MSR_DCD (1 << 7) /*!< Data Carrier Detect State */
#define UART_MSR_BITMASK (0xFF) /*!< MSR register bit-mask value */
/**
* @brief Return Modem Status register/status (MSR)
* @param pUART : Pointer to selected UART peripheral
* @return Modem Status register (status)
* @note Mask bits of the returned status value with UART_MSR_*
* definitions for specific statuses.
*/
STATIC INLINE uint32_t IP_UART_ReadModemStatus(IP_USART_001_T *pUART)
{
return pUART->MSR;
}
/**
* @brief Write a byte to the scratchpad register
* @param pUART : Pointer to selected UART peripheral
* @param data : Byte value to write
* @return Nothing
*/
STATIC INLINE void IP_UART_SetScratch(IP_USART_001_T *pUART, uint8_t data)
{
pUART->SCR = (uint32_t) data;
}
/**
* @brief Returns current byte value in the scratchpad register
* @param pUART : Pointer to selected UART peripheral
* @return Byte value read from scratchpad register
*/
STATIC INLINE uint8_t IP_UART_ReadScratch(IP_USART_001_T *pUART)
{
return (uint8_t) (pUART->SCR & 0xFF);
}
/**
* @brief Macro defines for UART Auto baudrate control register
*/
#define UART_ACR_START (1 << 0) /*!< UART Auto-baud start */
#define UART_ACR_MODE (1 << 1) /*!< UART Auto baudrate Mode 1 */
#define UART_ACR_AUTO_RESTART (1 << 2) /*!< UART Auto baudrate restart */
#define UART_ACR_ABEOINT_CLR (1 << 8) /*!< UART End of auto-baud interrupt clear */
#define UART_ACR_ABTOINT_CLR (1 << 9) /*!< UART Auto-baud time-out interrupt clear */
#define UART_ACR_BITMASK (0x307) /*!< UART Auto Baudrate register bit mask */
/**
* @brief Set autobaud register options
* @param pUART : Pointer to selected UART peripheral
* @param acr : Or'ed values to set for ACR register
* @return Nothing
* @note Use an Or'ed value of UART_ACR_* definitions with this
* call to set specific options.
*/
STATIC INLINE void IP_UART_SetAutoBaudReg(IP_USART_001_T *pUART, uint32_t acr)
{
pUART->ACR |= acr;
}
/**
* @brief Clear autobaud register options
* @param pUART : Pointer to selected UART peripheral
* @param acr : Or'ed values to clear for ACR register
* @return Nothing
* @note Use an Or'ed value of UART_ACR_* definitions with this
* call to clear specific options.
*/
STATIC INLINE void IP_UART_ClearAutoBaudReg(IP_USART_001_T *pUART, uint32_t acr)
{
pUART->ACR &= ~acr;
}
/**
* @brief Enable transmission on UART TxD pin
* @param pUART : Pointer to selected UART peripheral
* @return Nothing
*/
STATIC INLINE void IP_UART_TXEnable(IP_USART_001_T *pUART)
{
pUART->TER1 = (1 << 7);
}
/**
* @brief Disable transmission on UART TxD pin
* @param pUART : Pointer to selected UART peripheral
* @return Nothing
*/
STATIC INLINE void IP_UART_TXDisable(IP_USART_001_T *pUART)
{
pUART->TER1 = 0;
}
/**
* @brief Macro defines for UART1 RS485 Control register
*/
#define UART_RS485CTRL_NMM_EN (1 << 0) /*!< RS-485/EIA-485 Normal Multi-drop Mode (NMM) is disabled */
#define UART_RS485CTRL_RX_DIS (1 << 1) /*!< The receiver is disabled */
#define UART_RS485CTRL_AADEN (1 << 2) /*!< Auto Address Detect (AAD) is enabled */
#define UART_RS485CTRL_SEL_DTR (1 << 3) /*!< If direction control is enabled (bit DCTRL = 1), pin DTR is
used for direction control */
#define UART_RS485CTRL_DCTRL_EN (1 << 4) /*!< Enable Auto Direction Control */
#define UART_RS485CTRL_OINV_1 (1 << 5) /*!< This bit reverses the polarity of the direction
control signal on the RTS (or DTR) pin. The direction control pin
will be driven to logic "1" when the transmitter has data to be sent */
#define UART_RS485CTRL_BITMASK (0x3F) /*!< RS485 control bit-mask value */
/**
* @brief Set RS485 control register options
* @param pUART : Pointer to selected UART peripheral
* @param ctrl : Or'ed values to set for RS485 control register
* @return Nothing
* @note Use an Or'ed value of UART_RS485CTRL_* definitions with this
* call to set specific options.
*/
STATIC INLINE void IP_UART_SetRS485Flags(IP_USART_001_T *pUART, uint32_t ctrl)
{
pUART->RS485CTRL |= ctrl;
}
/**
* @brief Clear RS485 control register options
* @param pUART : Pointer to selected UART peripheral
* @param ctrl : Or'ed values to clear for RS485 control register
* @return Nothing
* @note Use an Or'ed value of UART_RS485CTRL_* definitions with this
* call to clear specific options.
*/
STATIC INLINE void IP_UART_ClearRS485Flags(IP_USART_001_T *pUART, uint32_t ctrl)
{
pUART->RS485CTRL &= ~ctrl;
}
/**
* @brief Set RS485 address match value
* @param pUART : Pointer to selected UART peripheral
* @param addr : Address match value for RS-485/EIA-485 mode
* @return Nothing
*/
STATIC INLINE void IP_UART_SetRS485Addr(IP_USART_001_T *pUART, uint8_t addr)
{
pUART->RS485ADRMATCH = (uint32_t) addr;
}
/**
* @brief Read RS485 address match value
* @param pUART : Pointer to selected UART peripheral
* @return Address match value for RS-485/EIA-485 mode
*/
STATIC INLINE uint8_t IP_UART_GetRS485Addr(IP_USART_001_T *pUART)
{
return (uint8_t) (pUART->RS485ADRMATCH & 0xFF);
}
/**
* @brief Set RS485 direction control (RTS or DTR) delay value
* @param pUART : Pointer to selected UART peripheral
* @param dly : direction control (RTS or DTR) delay value
* @return Nothing
* @note This delay time is in periods of the baud clock. Any delay
* time from 0 to 255 bit times may be programmed.
*/
STATIC INLINE void IP_UART_SetRS485Delay(IP_USART_001_T *pUART, uint8_t dly)
{
pUART->RS485DLY = (uint32_t) dly;
}
/**
* @brief Read RS485 direction control (RTS or DTR) delay value
* @param pUART : Pointer to selected UART peripheral
* @return direction control (RTS or DTR) delay value
* @note This delay time is in periods of the baud clock. Any delay
* time from 0 to 255 bit times may be programmed.
*/
STATIC INLINE uint8_t IP_UART_GetRS485Delay(IP_USART_001_T *pUART)
{
return (uint8_t) (pUART->RS485DLY & 0xFF);
}
/**
* @brief Determines and sets best dividers to get a target bit rate
* @param pUART : Pointer to selected UART peripheral
* @param baudrate : Target baud rate (baud rate = bit rate)
* @param uClk : Clock rate into UART peripheral
* @return The actual baud rate, or 0 if no rate can be found
* @note Once you've computed your baud rate, you can remove this function
* to make your image smaller.
*/
uint32_t IP_UART_SetBaud(IP_USART_001_T *pUART, uint32_t baudrate, uint32_t uClk);
#if 0 // FIXME
// FIXME
// FDR handled at chip layer
// OSR not ready
// TER1 not ready
// HDEN handled at chip layer
// SCICTRL handled at chip layer
// TER2 handled at chip layer
/**
* @brief Macro defines for UART IrDA control register
*/
#define UART_ICR_IRDAEN ((uint32_t) (1 << 0)) /*!< IrDA mode enable */
#define UART_ICR_IRDAINV ((uint32_t) (1 << 1)) /*!< IrDA serial input inverted */
#define UART_ICR_FIXPULSE_EN ((uint32_t) (1 << 2)) /*!< IrDA fixed pulse width mode */
#define UART_ICR_PULSEDIV(n) ((uint32_t) ((n & 0x07) << 3)) /*!< PulseDiv - Configures the pulse when FixPulseEn = 1 */
#define UART_ICR_BITMASK ((uint32_t) (0x3F)) /*!< UART IRDA bit mask */
/**
* @brief Macro defines for UART half duplex register
*/
#define UART_HDEN_HDEN ((uint32_t) (1 << 0)) /*!< enable half-duplex mode*/
/**
* @brief Macro defines for UART smart card interface control register
*/
#define UART_SCICTRL_SCIEN ((uint32_t) (1 << 0)) /*!< enable asynchronous half-duplex smart card interface*/
#define UART_SCICTRL_NACKDIS ((uint32_t) (1 << 1)) /*!< NACK response is inhibited*/
#define UART_SCICTRL_PROTSEL_T1 ((uint32_t) (1 << 2)) /*!< ISO7816-3 protocol T1 is selected*/
#define UART_SCICTRL_TXRETRY(n) ((uint32_t) ((n & 0x07) << 5)) /*!< number of retransmission*/
#define UART_SCICTRL_GUARDTIME(n) ((uint32_t) ((n & 0xFF) << 8)) /*!< Extra guard time*/
/**
* @brief Macro defines for UART Fractional divider register
*/
#define UART_FDR_DIVADDVAL(n) ((uint32_t) (n & 0x0F)) /*!< Baud-rate generation pre-scaler divisor */
#define UART_FDR_MULVAL(n) ((uint32_t) ((n << 4) & 0xF0)) /*!< Baud-rate pre-scaler multiplier value */
#define UART_FDR_BITMASK ((uint32_t) (0xFF)) /*!< UART Fractional Divider register bit mask */
/**
* @brief Macro defines for UART Tx Enable register
*/
#define UART_TER1_TXEN ((uint8_t) (1 << 7)) /*!< Transmit enable bit */
#define UART_TER1_BITMASK ((uint8_t) (0x80)) /*!< UART Transmit Enable Register bit mask */
#define UART_TER2_TXEN ((uint8_t) (1 << 0)) /*!< Transmit enable bit */
#define UART_TER2_BITMASK ((uint8_t) (0x01)) /*!< UART Transmit Enable Register bit mask */
/**
* @brief Macro defines for UART synchronous control register
*/
#define UART_SYNCCTRL_SYNC ((uint32_t) (1 << 0)) /*!< enable synchronous mode*/
#define UART_SYNCCTRL_CSRC_MASTER ((uint32_t) (1 << 1)) /*!< synchronous master mode*/
#define UART_SYNCCTRL_FES ((uint32_t) (1 << 2)) /*!< sample on falling edge*/
#define UART_SYNCCTRL_TSBYPASS ((uint32_t) (1 << 3)) /*!< to be defined*/
#define UART_SYNCCTRL_CSCEN ((uint32_t) (1 << 4)) /*!< continuous running clock enable (master mode only)*/
#define UART_SYNCCTRL_STARTSTOPDISABLE ((uint32_t) (1 << 5)) /*!< do not send start/stop bit*/
#define UART_SYNCCTRL_CCCLR ((uint32_t) (1 << 6)) /*!< stop continuous clock*/
#endif
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* __USART_004_H_ */
| BrewPi/firmware | platform/spark/firmware/hal/src/photon/wiced/platform/MCU/LPC17xx/peripherals/libraries/inc/usart_004.h | C | agpl-3.0 | 27,218 | [
30522,
1013,
1008,
1008,
1030,
4766,
25423,
5339,
1013,
3915,
5339,
18687,
1998,
2491,
4972,
1008,
1008,
1030,
3602,
1008,
9385,
1006,
1039,
1007,
1050,
2595,
2361,
20681,
2015,
1010,
2262,
1008,
2035,
2916,
9235,
1012,
1008,
1008,
1030,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/********************************************************************************/
/* Projeto: Biblioteca ZeusDFe */
/* Biblioteca C# para auxiliar no desenvolvimento das demais bibliotecas DFe */
/* */
/* */
/* Direitos Autorais Reservados (c) 2014 Adenilton Batista da Silva */
/* Zeusdev Tecnologia LTDA ME */
/* */
/* Você pode obter a última versão desse arquivo no GitHub */
/* localizado em https://github.com/adeniltonbs/Zeus.Net.NFe.NFCe */
/* */
/* */
/* Esta biblioteca é software livre; você pode redistribuí-la e/ou modificá-la */
/* sob os termos da Licença Pública Geral Menor do GNU conforme publicada pela */
/* Free Software Foundation; tanto a versão 2.1 da Licença, ou (a seu critério) */
/* qualquer versão posterior. */
/* */
/* Esta biblioteca é distribuída na expectativa de que seja útil, porém, SEM */
/* NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU */
/* ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral Menor*/
/* do GNU para mais detalhes. (Arquivo LICENÇA.TXT ou LICENSE.TXT) */
/* */
/* Você deve ter recebido uma cópia da Licença Pública Geral Menor do GNU junto*/
/* com esta biblioteca; se não, escreva para a Free Software Foundation, Inc., */
/* no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */
/* Você também pode obter uma copia da licença em: */
/* http://www.opensource.org/licenses/lgpl-license.php */
/* */
/* Zeusdev Tecnologia LTDA ME - adenilton@zeusautomacao.com.br */
/* http://www.zeusautomacao.com.br/ */
/* Rua Comendador Francisco josé da Cunha, 111 - Itabaiana - SE - 49500-000 */
/********************************************************************************/
using System.Xml.Serialization;
namespace DFe.Classes.Assinatura
{
public class Transform
{
/// <summary>
/// XS13 - Atributos válidos Algorithm do Transform:
/// <para>http://www.w3.org/TR/2001/REC-xml-c14n-20010315</para>
/// <para>http://www.w3.org/2000/09/xmldsig#enveloped-signature</para>
/// </summary>
[XmlAttribute]
public string Algorithm { get; set; }
}
} | adrbarros/Zeus.Net.NFe.NFCe | Shared.DFe.Classes/Assinatura/Transform.cs | C# | lgpl-2.1 | 3,142 | [
30522,
1013,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
1008,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
(C)2010-ID-Informatik
Gestionnaire d'upload simplifié
INPUT Values:
id : identificateur du dossier client ('public_upload' par defaut)
multiple : si définit à 1, l'envoie de fichiers multiples est supporté
remove : si définit à 1, la suppression de fichiers est supporté
OUTPUT Values:
...
-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:template="http://www.webframework.fr/last/xmlns/template" xml:lang="fr" lang="fr" dir="ltr">
<head>
<title>Envoyer un fichier...</title>
<meta http-equiv="wfw.page-id" content="client_file_upload" /><!-- page identifier -->
<!-- Includes -->
<script type="text/javascript" language="javascript" src="wfw/javascript/base.js"></script>
<script type="text/javascript" language="javascript" src="wfw/javascript/dom.js"></script>
<script type="text/javascript" language="javascript" src="wfw/javascript/dom-func-compatible.js"></script>
<script type="text/javascript" language="javascript" src="wfw/javascript/wfw.js"></script>
<script type="text/javascript" language="javascript" src="wfw/javascript/wfw-extends.js"></script>
<script name="link" type="text/javascript" language="javascript" src="wfw/javascript/wfw-list.js"></script>
<script name="link" type="text/javascript" language="javascript" src="wfw/javascript/wfw-upload.js"></script>
<!-- Fonctions -->
<script name="head" type="text/javascript" language="javascript">
// <![CDATA[
//options par defaut
var opt = {
id:"", //identificateur du dossier client
multiple:"",//fichiers multiples
remove:"1"//autoriser la suppression des fichiers
};
/*
Initialise le document
*/
wfw.event.SetCallback( // window
"wfw_window",
"load",
"onLoadDoc",
function()
{
//
var preload = new Image;
preload.src = "wfw/css/wfw-extends/loading16.gif";
//
wfw.form.initFromURI("form","form");
// obtient les options
var uri_fields = wfw.utils.getURIFields();
if(uri_fields != null)
{
for(opt_name in opt)
{
if(typeof(uri_fields[opt_name])=="string")
opt[opt_name] = uri_fields[opt_name];
}
}
// pad d'id ?
if(!empty(opt.id))
$value("wfw_id",opt.id);
// obtient les limites de l'upload
var max_file_size = null;
var param = {
"onsuccess" : function(obj,args)
{
max_file_size = args.max_size;
}
};
wfw.request.Add(null,"../req/client/upinfo.php",null,wfw.utils.onCheckRequestResult_XARG,param,false);
// choix du fichier (EVENEMENT)
objSetEvent($doc("file"),"change",
function(e)
{
//vide la liste
var olist = $doc("file_descriptor");
objRemoveChildNode(olist,null,REMOVENODE_ALL);
var fields,template;
//File interface (HTML5 Extension)
if(window.File && window.FileList && window.FileReader)
{
// obtient les infos sur le fichier
var files = e.target.files || e.dataTransfer.files;
if((max_file_size!=null) && (files[0].size>=max_file_size))
{
wfw.ext.document.messageBox("Ce fichier est trop volumineux pour être envoyé, merci de choisir un fichier de taille inférieur à "+byteToSize(max_file_size));
return false;
}
//fabrique le template
fields={
file_id:(uniqid()),
name:(files[0].name),
size:(byteToSize(files[0].size)),
type:(files[0].type),
icon:(wfw.ext.document.extensionToClassName( fileext(files[0].name) ))
};
template = wfw.ext.listElement.insertFields($doc("file_descriptor_template"),olist,fields);
}
//pas d'interface avec les fichiers
else
{
//fabrique le template
fields={
file_id:(uniqid()),
name:(filename(this.value)),
size:("??? octets"),
type:(""),
icon:("file_empty")
};
template = wfw.ext.listElement.insertFields($doc("file_descriptor_template"),olist,fields);
}
objSetAtt(template,"id",fields.file_id);
//initialise l'action
objSetClassName($doc("action_icon_"+fields.file_id),"wfw_icon upload");
objSetClassName($doc("action_btn_"+fields.file_id),"wfw_button_icon");
//objSetEvent($doc("action_btn_"+fields.file_id),"click",function(e,file_id){ return onSubmit(file_id); },fields.file_id);
//objSetEvent($doc("action_icon_"+fields.file_id),"click",function(e,file_id){ return onSubmit(file_id); },fields.file_id);
//[upload!]
objSetEvent($doc("action_icon_"+fields.file_id), "click", function (e,file_id) {
var fileObj = $doc("file");
var client_id = $value("wfw_id");
var upload_options = {
form_id: "form",
callback: onUploadState
};
//upload simple (I.E)
if (typeof (fileObj.files) == "undefined") {
if (empty(fileObj.value)) {
wfw.ext.document.messageBox("Veuillez selectionner un fichier");
return false;
}
wfw.ext.upload.sendAsForm("form", client_id, upload_options);
}
//upload en paquets
else {
if (!fileObj.files.length) {
wfw.ext.document.messageBox("Veuillez selectionner un fichier");
return false;
}
wfw.ext.upload.sendAsPacket(fileObj.files[0], 0, client_id, upload_options);
}
},fields.file_id);
//affiche le bouton "Envoyer tout"
if(opt.multiple)
wfw.style.removeClass($doc("send_btn"),"wfw_hidden");
}
);
//liste les fichiers existants
list();
}
);
var progressDlg_Id=null; // identificateur du dialogue de chargement
//callback upload
function onUploadState(args, upload_state, infos) {
switch (upload_state) {
//depart du transfer
case "begin":
//initialise la barre de progression
$doc("progressDlg_bar").style.width = "0%";
//verouille le dialogue
wfw.ext.document.lockElement($doc("progressDlg"), { title : "Envoie du fichier...", onOK:function (element) { } });
progressDlg_Id = wfw.ext.document.getDialogID();
//desactive le bouton OK
objSetAtt($doc(progressDlg_Id + "_ok"), "disabled", "disabled");
break;
//progression du transfer
case "update":
//actualise la barre de progression
$doc("progressDlg_bar").style.width = parseInt((100 / infos.part_count) * (infos.part_count - infos.part_remaining)) + "%";
break;
//ok le fichier est transféré
case "done":
//actualise la liste
list();
//termine la barre de progression
$doc("progressDlg_bar").style.width = "100%";
//active le bouton OK
objRemoveAtt($doc(progressDlg_Id + "_ok"), "disabled");
break;
//erreur du transfer
case "failed":
case "error":
case "update_failed":
case "update_error":
//active le bouton OK
objRemoveAtt($doc(progressDlg_Id + "_ok"), "disabled");
break;
}
}
//liste les fichiers existants
function list()
{
var param = {
"onsuccess" : function(obj,args)
{
//vide la liste
var olist = $doc("existing_file_descriptor");
objRemoveChildNode(olist,null,REMOVENODE_ALL);
//aucun?
if(empty(args.name))
return false;
//initialise la liste
var nameList = strexplode(args.name,";",true);
var typeList = strexplode(args.type,";",true);
var sizeList = strexplode(args.size,";",true);
for(var i=0; i<nameList.length; i++){
//fabrique le template
var fields={
file_id:(uniqid()),
name:(nameList[i]),
size:(byteToSize(sizeList[i])),
type:(typeList[i]),
icon:(wfw.ext.document.extensionToClassName( fileext(nameList[i]) )),
data_path:(args.path)
};
var template = wfw.ext.listElement.insertFields($doc("file_descriptor_template"),olist,fields);
objSetAtt(template,"id",fields.file_id);
//initialise l'action
if(opt.remove=="1")
{
objSetClassName($doc("action_icon_"+fields.file_id),"wfw_icon delete");
objSetClassName($doc("action_btn_"+fields.file_id),"wfw_button_icon");
//objSetEvent($doc("action_btn_"+fields.file_id),"click",function(e,file_id){ return onRemoveFile(file_id); },fields.file_id);
objSetEvent($doc("action_icon_"+fields.file_id),"click",function(e,file_id){ return onRemoveFile(file_id); },fields.file_id);
}
}
}
};
//envoie la requete
wfw.request.Add(null,"req/client/list.php",{wfw_id:$value("wfw_id")},wfw.utils.onCheckRequestResult_XARG,param,false);
}
//supprime un fichier existant
function onRemoveFile(file_id)
{
var param = {
"onsuccess" : function(obj,args)
{
nodeRemoveNode($doc(file_id));
}
};
var fields={
wfw_id:($value("wfw_id")),
filename:($value("filename_"+file_id)),
};
//envoie la requete
wfw.request.Add(null,"../req/client/remove.php",fields,wfw.utils.onCheckRequestResult_XARG,param,false);
}
// ]]>
</script>
</head>
<!-- Document -->
<body>
<div name="content">
<form id="form" name="form" action="../req/client/up.php" target="result" method="post" enctype="multipart/form-data">
<!-- errors -->
<input type="hidden" id="form_xarg_result_2002_file" value="Aucun fichier n'a été reçu" />
<input type="hidden" id="form_xarg_result_1_UPLOAD_ERR_1" value="La taille du fichier dépasse la limite autorisée par le serveur" />
<input type="hidden" id="form_xarg_result_1_UPLOAD_ERR_2" value="La taille du fichier dépasse la limite autorisée par le formulaire" />
<input type="hidden" id="form_xarg_result_1_UPLOAD_ERR_3" value="L'envoi du fichier a été interrompu pendant le transfert" />
<input type="hidden" id="form_xarg_result_1_UPLOAD_ERR_4" value="Le fichier envoyé est vide" />
<input type="hidden" id="form_xarg_result_1_UPLOAD_ERR_6" value="Une erreur serveur c'est produite (Dossier temporaire manquant)" />
<input type="hidden" id="form_xarg_result_1_UPLOAD_ERR_7" value="Une erreur serveur c'est produite (Echec de l'écriture)" />
<input type="hidden" id="form_xarg_result_1_UPLOAD_ERR_8" value="Une erreur serveur c'est produite (Une extension PHP a arrété l'envoi de fichier)" />
<input type="hidden" id="form_xarg_result_1_invalid_id" value="Le dossier d'upload est inexistant" />
<input type="hidden" id="form_xarg_result_1_invalid_file" value="Le dossier d'upload est corrompue" />
<input type="hidden" id="form_xarg_result_1_invalid_pwd" value="Le dossier d'upload est protégé par mot de passe" />
<input type="hidden" id="form_xarg_result_1_cant_create_folder" value="Une erreur serveur c'est produite (Le dossier d'upload ne peut être créé)" />
<input type="hidden" id="form_xarg_result_1_max_file_count" value="Vous avez atteint le maximum de fichiers uploadable sur ce dossier" />
<input type="hidden" id="form_xarg_result_1_file_copy" value="Une erreur serveur c'est produite (Création/déplacement du fichier uploadé)" />
<!-- fields -->
<input type="hidden" id="wfw_id" name="wfw_id" value="public_upload" />
<center><input type="file" id="file" name="file" style="display:block; width:90%;" /></center>
</form>
<!-- fichier en queue -->
<div id="file_descriptor"></div>
<!-- fichiers existants -->
<div id="send_btn" class="wfw_hidden wfw_bg_frame wfw_button_icon" onclick="onSubmit();" style="display:block; line-height:20px; height:20px; padding:0px 5px 0px 5px; vertical-align:middle;">Envoyer tout</div>
<hr />
<!-- fichiers existants -->
<div id="existing_file_descriptor" style="height:200px; overflow-y:scroll;"></div>
<!-- *******************************************************************
TEMPLATES
******************************************************************** -->
<div template:action="ignore" class="wfw_hidden">
<!-- template fichier -->
<div id="file_descriptor_template" class="wfw_bg_frame" style="vertical-align:middle;">
<!-- nom du fichier -->
<input id="filename_-{file_id}" type="hidden" value="-{name}" />
<!-- upload/delete bouton -->
<div style="vertical-align:middle; display:inline-block;">
<span id="action_btn_-{file_id}" class="wfw_fixed_icon" style="min-height:40px;min-width:40px;"><span id="action_icon_-{file_id}" class="wfw_icon"></span></span>
</div>
<!-- file type icon -->
<div style="vertical-align:middle; display:inline-block;">
<span class="wfw_icon -{icon}"></span>
</div>
<!-- file infos -->
<div style="vertical-align:middle; display:inline-block;">
<div><a href="-{data_path}/-{name}" target="_blank">-{name}</a></div>
<div>[ -{size} ]</div>
</div>
</div>
<!-- upload progress -->
<div id="progressDlg" style="text-align:left;">
<div style="border:1px solid black; height:20px;"><span id="progressDlg_bar" style="width:50%; height:20px; background-color:Blue; display:inline-block;"></span></div>
</div>
</div>
</div><!-- content -->
</body>
</html>
| Ace4teaM/Webframework | wfw/modules/client/private/template/popup/client_file_upload.html | HTML | gpl-3.0 | 15,194 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
1060,
11039,
19968,
1015,
1012,
1014,
17459,
1013,
1013,
4372,
1000,
1000,
8299,
1024,
1013,
1013,
7479,
1012,
1059,
2509,
1012,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* Style for the page footer */
footer.page-footer {
background-color: #333;
color: #fff;
font-size: 1.4rem;
height: 18rem;
}
footer.page-footer .container {
padding: 1rem;
}
/* To stick the footer at the bottom of the page, give the page-section a min-height so it pushes down */
section.page-section {
min-height: calc(100% - 46.6rem); /* 46.6rem is the combined height of the nav, header and footer. */
}
| theglue99/Interface480 | module8/dotNet/ContosoConf/styles/footer.css | CSS | gpl-3.0 | 435 | [
30522,
1013,
1008,
2806,
2005,
1996,
3931,
3329,
2121,
1008,
1013,
3329,
2121,
1012,
3931,
1011,
3329,
2121,
1063,
4281,
1011,
3609,
1024,
1001,
21211,
1025,
3609,
1024,
1001,
21461,
2546,
1025,
15489,
1011,
2946,
1024,
1015,
1012,
1018,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"></meta><link rel="stylesheet" type="text/css" href="v8help://service_book/service_style"></link><meta name="GENERATOR" content="MSHTML 9.00.8112.16421"></meta></head><body>
<p>Предназначен для администрирования регламентных и фоновых заданий.</p>
<p>Ряд действий в программе может выполняться автоматически в фоновом режиме, по определенному расписанию. Такие действия называются регламентными заданиями, например, это ежедневная загрузка курсов валют, регулярная рассылка отчетов, отложенное проведение документов и т.п. Регламентные задания облегчают работу в программе, позволяя перенести выполнение рутинных задач в саму программу, и в то же время они снижают человеческий фактор (например, можно забыть загрузить курсы валют в один из перегруженных другими задачами дней).</p>
<p>Открывается по команде <strong>Регламентные и фоновые задания</strong> в разделе <strong>Администрирование - Поддержка и обслуживание</strong>.</p>
<p>Список предоставляет следующие возможности: </p>
<ul><li><a href="#Работа_с_РЗ">Регламентные задания</a>;
</li><li><a href="#Работа_с_ФЗ">Фоновые задания</a>;
</li><li><a href="#КонтрольРЗ">Контроль выполнения регламентных заданий</a>.</li></ul><h2><a name="#Работа_с_РЗ">Регламентные задания</a></h2>
<p>В списке можно включить (или отключить) то или иное <a href="DataProcessor.РегламентныеИФоновыеЗадания.Form.РегламентноеЗадание/Help">регламентное задание</a> и поменять расписание.</p>
<p>В списке выводится:</p>
<ul><li><img src="StdPicture.ScheduledJob"></img> - флажок в колонке означает, что регламентное задание <strong>Включено</strong> и выполняется в соответствии с заданным расписанием;
</li><li><strong>Наименование</strong> - полное наименование регламентного задания;
</li><li><strong>Состояние</strong> - информация о выполнении регламентного задания;
</li><li><strong>Дата окончания</strong> - дата и время завершения регламентного задания.</li></ul><p>Если в колонках Состояние и Дата окончания проставлено <не определено>, а флажок включен, следует проверить расписание регламентного задания. Возможно, оно некорректное, поэтому регламентное задание не может выполняться.</p>
<h3>Обновление списка</h3>
<ul><li>
<div>С помощью кнопки <strong>Обновить</strong> можно актуализировать информацию в списке регламентных заданий, а также на вкладке <strong>Фоновые задания</strong>, т.к. списки связаны, при этом будет произведен отбор в соответствии с указанными ранее настройками.</div></li></ul><h3>Настройка расписания</h3>
<ul><li>
<div>Для каждого регламентного задания может быть задано <a href="v8help://mngbase/jobschedule.lf">расписание</a>, в соответствии с которым регламентное задание будет автоматически запущено на исполнение. В программе поддерживаются однократные и периодические расписания. </div>
</li><li>
<div>Нажмите <strong>Настроить расписание</strong>.</div></li></ul><h3>Выполнение регламентного задания</h3>
<ul><li>
<div>Для того чтобы начать выполнение регламентного задания сразу же, нажмите <strong>Выполнить сейчас</strong>. </div>
</li><li>
<div>В файловом режиме работы программы оно будет выполнено в текущем сеансе.</div>
</li><li>
<div>В клиент-серверном режиме работы программы выполнение произойдет в фоновом задании на сервере. При выполнении процедуры в фоновом задании на сервере не меняется дата последнего выполнения, используемая для запуска по расписанию.</div>
</li><li>
<div>Одновременное выполнение двух версий одного и того же регламентного задания невозможно. Если запустить то же самое регламентное задание, которое выполняется в данный момент, то программа выведет сообщение о невозможности вторичного запуска регламентного задания.</div></li></ul><h3>Ввод нового регламентного задания</h3>
<ul><li>
<div>В некоторых случаях бывает необходимо задать два разных расписания для одного регламентного задания. Тогда в список можно добавить новое регламентное задание по одному из предопределенных шаблонов, предусмотренных в программе. </div>
</li><li>
<div>Нажмите <strong>Добавить</strong>, выберите из списка шаблон, нажмите кнопку <strong>ОК</strong>. Заполните необходимые <a href="DataProcessor.РегламентныеИФоновыеЗадания.Form.РегламентноеЗадание/Help">поля</a>.</div></li></ul><h3>Включение регламентного задания</h3>
<ul><li>
<div>С помощью соответствующей команды контекстного меню по правой кнопке мыши можно <strong>Включить</strong> или <strong>Выключить</strong> регламентное задание.</div></li></ul><h2><a name="Работа_с_ФЗ">Фоновые задания</a></h2>
<p>Технически, в соответствии с заданным расписанием для выполнения регламентного задания создается фоновое задание, которое выполняет регламентные действия. Например, если задано ежедневное расписание на 9:15, то каждый день в 9:15 будет запускаться новый сеанс фонового задания. После завершения регламентной операции фоновое задание автоматически завершается.</p>
<p>В списке выводится:</p>
<ul><li><strong>Состояние</strong> - выполнение задания;
</li><li><strong>Наименование</strong> - наименование фонового задания;
</li><li><strong>Начало</strong> - дата и время начала выполнения фонового задания;
</li><li><strong>Окончание</strong> - дата и время окончания выполнения фонового задания;
</li><li><strong>Регламентное задание</strong> - наименование регламентного задания.</li></ul><p>Для контроля выполнения регламентных заданий можно воспользоваться отбором фоновых заданий по различным признакам:</p>
<p></p>
<table border="1" width="100%"><tbody><tr><td valign="top"><strong>Отбор</strong></td>
<td valign="top"><strong>Описание</strong></td></tr><tr><td><strong>По состоянию</strong></td>
<td>
<ul><li>Позволяет выполнить отбор по состоянию (дополнительно к отбору по периоду и по регламентному заданию):
<ul><li><strong>Выполнено</strong>;
</li><li><strong>Завершено с ошибками</strong>;
</li><li><strong>Отменено</strong>;
</li><li><strong>Выполняется</strong>.</li></ul></li><li>Включите нужные отборы с помощью флажков.</li></ul></td></tr><tr><td valign="top"><strong>По периоду</strong></td>
<td valign="top">
<ul><li>
<div>Позволяет выполнить отбор по периоду (дополнительно к отбору по состоянию и по регламентному заданию):</div>
<ul><li><strong>произвольный</strong> - можно установить нестандартный период;
</li><li><strong>все время</strong> - отбор по периоду не выполняется;
</li><li><strong>прошлая ночь</strong> - стандартный период 12 часов с 21:00-09:00;
</li><li><strong>вчера</strong> - стандартный период 24 часа с 00:00-23:59 вчерашнего дня;
</li><li><strong>сегодня</strong> - стандартный период 24 часа с 00:00-23:59 сегодняшнего дня.</li></ul></li></ul></td></tr><tr><td><strong>По регламентному заданию</strong></td>
<td>
<ul><li>Позволяет выполнить отбор по регламентному заданию (дополнительно к отбору по состоянию и по периоду).
</li><li>Включите флажок <strong>Отбирать по регламентному заданию</strong>.
</li><li>Выберите наименование регламентного задания из списка.
</li><li>Наименование регламентного задания "<не определено>" используется для отбора фоновых заданий,<br>запущенных для выполнения прочих (не регламентных) заданий.</li></ul></td></tr></tbody></table><p><strong>Внимание!</strong> Для того чтобы отобрать фоновые задания в соответствии с выбранными настройками, нажмите <strong>Обновить</strong>.</p>
<h3>Просмотр информации о фоновом задании</h3>
<ul><li>Для того чтобы просмотреть свойства фонового задания, дважды щелкните мышью по нужной строке. Также можно нажать <strong>Открыть</strong>.</li></ul><h3><a name="#КонтрольРЗ">Контроль выполнения регламентных заданий</a></h3>
<ul><li>Контроль может быть либо простым, либо детальным.
</li><li>Простой контроль - это анализ колонок <strong>Состояние</strong> и <strong>Дата окончания</strong> на вкладке <a href="#Работа_с_РЗ" name="#Работа_с_РЗ">Регламентные задания</a>, а также анализ текста поля <strong>Сообщения пользователю и описание информации об ошибке</strong> в окне редактирования регламентного задания.
</li><li>Детальный контроль - это анализ списка фоновых заданий (на вкладке <strong>Фоновые задания</strong>), которые были созданы и выполнены для выполнения регламентного задания.
</li><li>Детальный контроль производится отбором фоновых заданий по интересующему регламентному заданию, и анализом реквизитов фоновых заданий. Следует учитывать, что сведения о выполнении регламентного задания получаются выборкой части сведений о выполнении последнего фонового задания.
</li><li>Отбор фоновых заданий производится только по команде <strong>Обновить</strong>, поэтому после изменения настройки отбора нужно выполнить эту команду.
</li><li>Для детального анализа хода выполнения регламентных заданий в клиент-серверном режиме см. отчет <strong>Продолжительность работы регламентных заданий</strong> из группы отчетов <a href="Report.АнализЖурналаРегистрации/Help">Анализ журнала регистрации</a>, который открывается по соответствующей команде в разделе <strong>Администрирование - Поддержка и обслуживание - Отчеты администратора</strong>.</li></ul><h3>См. также</h3>
<ul><li><a href="v8help://frame/form_common">Работа с формами</a>.</li></ul></body></html> | oleynikova/final_task | src/cf/DataProcessors/РегламентныеИФоновыеЗадания/Ext/Help/ru.html | HTML | bsd-3-clause | 14,917 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
16129,
1018,
1012,
1014,
17459,
1013,
1013,
4372,
1000,
1028,
1026,
16129,
1028,
1026,
2132,
1028,
1026,
18804,
4180,
1027,
1000,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<!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_14) on Tue Aug 17 01:07:09 EDT 2010 -->
<TITLE>
Uses of Class org.apache.hadoop.mapred.lib.aggregate.LongValueSum (Hadoop-Mapred 0.21.0 API)
</TITLE>
<META NAME="date" CONTENT="2010-08-17">
<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="Uses of Class org.apache.hadoop.mapred.lib.aggregate.LongValueSum (Hadoop-Mapred 0.21.0 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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../org/apache/hadoop/mapred/lib/aggregate/LongValueSum.html" title="class in org.apache.hadoop.mapred.lib.aggregate"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../../index.html?org/apache/hadoop/mapred/lib/aggregate//class-useLongValueSum.html" target="_top"><B>FRAMES</B></A>
<A HREF="LongValueSum.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>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>org.apache.hadoop.mapred.lib.aggregate.LongValueSum</B></H2>
</CENTER>
No usage of org.apache.hadoop.mapred.lib.aggregate.LongValueSum
<P>
<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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../org/apache/hadoop/mapred/lib/aggregate/LongValueSum.html" title="class in org.apache.hadoop.mapred.lib.aggregate"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../../index.html?org/apache/hadoop/mapred/lib/aggregate//class-useLongValueSum.html" target="_top"><B>FRAMES</B></A>
<A HREF="LongValueSum.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>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 2009 The Apache Software Foundation
</BODY>
</HTML>
| jayantgolhar/Hadoop-0.21.0 | mapred/docs/api/org/apache/hadoop/mapred/lib/aggregate/class-use/LongValueSum.html | HTML | apache-2.0 | 6,242 | [
30522,
1026,
999,
9986,
13874,
16129,
2270,
1000,
1011,
1013,
1013,
1059,
2509,
2278,
1013,
1013,
26718,
2094,
16129,
1018,
1012,
5890,
17459,
1013,
1013,
4372,
1000,
1000,
8299,
1024,
1013,
1013,
7479,
1012,
1059,
2509,
1012,
8917,
1013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/* $Id: fileaio.h $ */
/** @file
* IPRT - Internal RTFileAio header.
*/
/*
* Copyright (C) 2009-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
#ifndef ___internal_fileaio_h
#define ___internal_fileaio_h
#include <iprt/file.h>
#include "internal/magics.h"
/*******************************************************************************
* Structures and Typedefs *
*******************************************************************************/
/**
* Defined request states.
*/
typedef enum RTFILEAIOREQSTATE
{
/** Prepared. */
RTFILEAIOREQSTATE_PREPARED = 0,
/** Submitted. */
RTFILEAIOREQSTATE_SUBMITTED,
/** Completed. */
RTFILEAIOREQSTATE_COMPLETED,
/** Omni present 32bit hack. */
RTFILEAIOREQSTATE_32BIT_HACK = 0x7fffffff
} RTFILEAIOREQSTATE;
/*******************************************************************************
* Defined Constants And Macros *
*******************************************************************************/
/** Return true if the specified request is not valid, false otherwise. */
#define RTFILEAIOREQ_IS_NOT_VALID(pReq) \
(RT_UNLIKELY(!VALID_PTR(pReq) || (pReq->u32Magic != RTFILEAIOREQ_MAGIC)))
/** Validates a context handle and returns VERR_INVALID_HANDLE if not valid. */
#define RTFILEAIOREQ_VALID_RETURN_RC(pReq, rc) \
do { \
AssertPtrReturn((pReq), (rc)); \
AssertReturn((pReq)->u32Magic == RTFILEAIOREQ_MAGIC, (rc)); \
} while (0)
/** Validates a context handle and returns VERR_INVALID_HANDLE if not valid. */
#define RTFILEAIOREQ_VALID_RETURN(pReq) RTFILEAIOREQ_VALID_RETURN_RC((pReq), VERR_INVALID_HANDLE)
/** Validates a context handle and returns (void) if not valid. */
#define RTFILEAIOREQ_VALID_RETURN_VOID(pReq) \
do { \
AssertPtrReturnVoid(pReq); \
AssertReturnVoid((pReq)->u32Magic == RTFILEAIOREQ_MAGIC); \
} while (0)
/** Validates a context handle and returns the specified rc if not valid. */
#define RTFILEAIOCTX_VALID_RETURN_RC(pCtx, rc) \
do { \
AssertPtrReturn((pCtx), (rc)); \
AssertReturn((pCtx)->u32Magic == RTFILEAIOCTX_MAGIC, (rc)); \
} while (0)
/** Validates a context handle and returns VERR_INVALID_HANDLE if not valid. */
#define RTFILEAIOCTX_VALID_RETURN(pCtx) RTFILEAIOCTX_VALID_RETURN_RC((pCtx), VERR_INVALID_HANDLE)
/** Checks if a request is in the specified state and returns the specified rc if not. */
#define RTFILEAIOREQ_STATE_RETURN_RC(pReq, State, rc) \
do { \
if (RT_UNLIKELY(pReq->enmState != RTFILEAIOREQSTATE_##State)) \
return rc; \
} while (0)
/** Checks if a request is not in the specified state and returns the specified rc if it is. */
#define RTFILEAIOREQ_NOT_STATE_RETURN_RC(pReq, State, rc) \
do { \
if (RT_UNLIKELY(pReq->enmState == RTFILEAIOREQSTATE_##State)) \
return rc; \
} while (0)
/** Checks if a request in the given states and sserts if not. */
#define RTFIELAIOREQ_ASSERT_STATE(pReq, State) \
do { \
AssertPtr((pReq)); \
Assert((pReq)->u32Magic == RTFILEAIOREQ_MAGIC); \
Assert((pReq)->enmState == RTFILEAIOREQSTATE_##State); \
} while (0)
/** Sets the request into a specific state. */
#define RTFILEAIOREQ_SET_STATE(pReq, State) \
do { \
pReq->enmState = RTFILEAIOREQSTATE_##State; \
} while (0)
RT_C_DECLS_BEGIN
RT_C_DECLS_END
#endif
| sobomax/virtualbox_64bit_edd | src/VBox/Runtime/include/internal/fileaio.h | C | gpl-2.0 | 4,411 | [
30522,
1013,
1008,
1002,
8909,
1024,
5371,
4886,
2080,
1012,
1044,
1002,
1008,
1013,
1013,
1008,
1008,
1030,
5371,
1008,
12997,
5339,
1011,
4722,
19387,
8873,
19738,
3695,
20346,
1012,
1008,
1013,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
# HeeksCAD
This file describes how to build and install HeeksCAD under Unix systems.
## Requirements
To build HeeksCAD, you need to install these requirements (with develoment files):
* OpenCASCADE or OCE (OpenCASCADE Community Edition)
* wxWidgets 2.8 or 3.0
* [libarea](https://github.com/Heeks/heekscad.wiki.git)
## Preparation
Create a build directory (e.g. `build/` in sources root directory):
```shell
mkdir build
cd build
```
## Configure build
If you want a default prefix (/usr/local) and a "Release" type, simply run:
```shell
cmake ..
```
If you want to change install prefix (e.g. /usr):
```shell
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
```
If you want to debug HeeksCAD and its install:
```shell
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$PWD/install ..
```
## Build
After a successful CMake configuration, you can build it using:
```shell
make
``
If you want more output (ie. to debug):
```shell
make VERBOSE=1
```
## Install
Using default or system-wide prefix:
```shell
sudo make install
```
Please note that if you installed it in `/usr/local`, you may need to run:
```shell
sudo ldconfig
```
If you choose a user-writable prefix, superuser privileges are not needed:
```shell
make install
```
## One-liner snippets
### Default
```shell
mkdir build && cd build && cmake .. && make
```
### Debug
```shell
mkdir debug && cd debug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$PWD/install .. && make && make install
LD_LIBRARY_PATH=install/lib install/bin/heekscad
```
## Translation
Merge new strings:
* Generate a .pot file and merge it to your catalog
```shell
sh translations/generate-pot-file.sh translations/xx/HeeksCAD.po
```
Note: this script assumes you have `heekscad` and `heekscnc` in the same parent directory.
* After translating them, you can test catalog compilation using:
```shell
msgfmt -o HeeksCAD.mo HeeksCAD.po
```
Note: if you launch `heekscad` from a folder that contains `HeeksCAD.mo` file, this catalog will be loaded instead of system-wide one.
| danheeks/heekscad | README-Unix.md | Markdown | bsd-3-clause | 2,054 | [
30522,
1001,
18235,
5705,
3540,
2094,
2023,
5371,
5577,
2129,
2000,
3857,
1998,
16500,
18235,
5705,
3540,
2094,
2104,
19998,
3001,
1012,
1001,
1001,
5918,
2000,
3857,
18235,
5705,
3540,
2094,
1010,
2017,
2342,
2000,
16500,
2122,
5918,
1006,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright 2016 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.netty.handler.ssl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.security.PrivateKey;
import io.netty.buffer.UnpooledByteBufAllocator;
import org.junit.Test;
import io.netty.handler.ssl.util.SelfSignedCertificate;
import io.netty.util.ReferenceCountUtil;
public class PemEncodedTest {
@Test
public void testPemEncodedOpenSsl() throws Exception {
testPemEncoded(SslProvider.OPENSSL);
}
@Test
public void testPemEncodedOpenSslRef() throws Exception {
testPemEncoded(SslProvider.OPENSSL_REFCNT);
}
private static void testPemEncoded(SslProvider provider) throws Exception {
assumeTrue(OpenSsl.isAvailable());
assumeFalse(OpenSsl.useKeyManagerFactory());
PemPrivateKey pemKey;
PemX509Certificate pemCert;
SelfSignedCertificate ssc = new SelfSignedCertificate();
try {
pemKey = PemPrivateKey.valueOf(toByteArray(ssc.privateKey()));
pemCert = PemX509Certificate.valueOf(toByteArray(ssc.certificate()));
} finally {
ssc.delete();
}
SslContext context = SslContextBuilder.forServer(pemKey, pemCert)
.sslProvider(provider)
.build();
assertEquals(1, pemKey.refCnt());
assertEquals(1, pemCert.refCnt());
try {
assertTrue(context instanceof ReferenceCountedOpenSslContext);
} finally {
ReferenceCountUtil.release(context);
assertRelease(pemKey);
assertRelease(pemCert);
}
}
@Test(expected = IllegalArgumentException.class)
public void testEncodedReturnsNull() throws Exception {
PemPrivateKey.toPEM(UnpooledByteBufAllocator.DEFAULT, true, new PrivateKey() {
@Override
public String getAlgorithm() {
return null;
}
@Override
public String getFormat() {
return null;
}
@Override
public byte[] getEncoded() {
return null;
}
});
}
private static void assertRelease(PemEncoded encoded) {
assertTrue(encoded.release());
}
private static byte[] toByteArray(File file) throws Exception {
FileInputStream in = new FileInputStream(file);
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) != -1) {
baos.write(buf, 0, len);
}
} finally {
baos.close();
}
return baos.toByteArray();
} finally {
in.close();
}
}
}
| zer0se7en/netty | handler/src/test/java/io/netty/handler/ssl/PemEncodedTest.java | Java | apache-2.0 | 3,656 | [
30522,
1013,
1008,
1008,
9385,
2355,
1996,
5658,
3723,
2622,
1008,
1008,
1996,
5658,
3723,
2622,
15943,
2023,
5371,
2000,
2017,
2104,
1996,
15895,
6105,
1010,
1008,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
2017,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0xEFF3DFB0)]
public class STU_EFF3DFB0 : STU_100002C0 {
[STUField(0x20AE2CCB)]
public STULib.Types.Dump.Enums.STUEnum_1E2FFF3B m_20AE2CCB;
}
}
| kerzyte/OWLib | STULib/Types/Dump/STU_EFF3DFB0.cs | C# | mit | 287 | [
30522,
1013,
1013,
5371,
8285,
7013,
2011,
24646,
14949,
11039,
13669,
2478,
10763,
24646,
29521,
1012,
4127,
1012,
12391,
1012,
2691,
1025,
3415,
15327,
24646,
29521,
1012,
4127,
1012,
15653,
1063,
1031,
24646,
1006,
1014,
2595,
12879,
2546,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
* Copyright (c) 2013 Andre Ricardo Schaffer
*
* 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.
*/
package com.github.wiselenium.elements.component;
import java.util.List;
/**
* Represents a HTML Multiple Select.
*
* @author Andre Ricardo Schaffer
* @since 0.3.0
*/
public interface MultiSelect extends Component<MultiSelect> {
/**
* Deselects all options.
*
* @return This select instance to allow chain calls.
* @since 0.3.0
*/
MultiSelect deselectAll();
/**
* Deselects all options at the given indexes. This is done by examing the "index" attribute of
* an element, and not merely by counting.
*
* @param indexes The option at this index will be selected.
* @return This select element to allow chain calls.
* @since 0.3.0
*/
MultiSelect deselectByIndex(int... indexes);
/**
* Deselects all options that have a value matching the argument. That is, when given "foo" this
* would select an option like: <option value="foo">Bar</option>
*
* @param values The values to match against.
* @return This select element to allow chain calls.
* @since 0.3.0
*/
MultiSelect deselectByValue(String... values);
/**
* Deselects all options that display text matching the argument. That is, when given "Bar" this
* would select an option like: <option value="foo">Bar</option>
*
* @param texts The visible texts to match against.
* @return This select element to allow chain calls.
* @since 0.3.0
*/
MultiSelect deselectByVisibleText(String... texts);
/**
* Deselects some options of this select if not already deselected.
*
* @param options The options to be deselected.
* @return This select instance in order to allow chain calls.
* @since 0.3.0
*/
MultiSelect deselectOptions(Option... options);
/**
* Gets the options of this select.
*
* @return The options of this select.
* @since 0.3.0
*/
List<Option> getOptions();
/**
* Returns the selected options.
*
* @return The selected options.
* @since 0.3.0
*/
List<Option> getSelectedOptions();
/**
* Returns the selected values.
*
* @return The selected values.
* @since 0.3.0
*/
List<String> getSelectedValues();
/**
* Returns the selected visible texts.
*
* @return The selected visible texts.
* @since 0.3.0
*/
List<String> getSelectedVisibleTexts();
/**
* Selects all options.
*
* @return This select instance to allow chain calls.
* @since 0.3.0
*/
MultiSelect selectAll();
/**
* Selects all options at the given indexes. This is done by examing the "index" attribute of an
* element, and not merely by counting.
*
* @param indexes The option at this index will be selected.
* @return This select element to allow chain calls.
* @since 0.3.0
*/
MultiSelect selectByIndex(int... indexes);
/**
* Selects all options that have a value matching the argument. That is, when given "foo" this
* would select an option like: <option value="foo">Bar</option>
*
* @param values The values to match against.
* @return This select element to allow chain calls.
* @since 0.3.0
*/
MultiSelect selectByValue(String... values);
/**
* Selects all options that display text matching the argument. That is, when given "Bar" this
* would select an option like: <option value="foo">Bar</option>
*
* @param texts The visible texts to match against.
* @return This select element to allow chain calls.
* @since 0.3.0
*/
MultiSelect selectByVisibleText(String... texts);
/**
* Selects some options of this select if not already selected.
*
* @param options The options to be selected.
* @return This select instance in order to allow chain calls.
* @since 0.3.0
*/
MultiSelect selectOptions(Option... options);
}
| wiselenium/wiselenium | wiselenium-elements/src/main/java/com/github/wiselenium/elements/component/MultiSelect.java | Java | mit | 4,862 | [
30522,
1013,
1008,
1008,
1008,
9385,
1006,
1039,
1007,
2286,
7213,
13559,
8040,
3270,
12494,
1008,
1008,
6656,
2003,
2182,
3762,
4379,
1010,
2489,
1997,
3715,
1010,
2000,
2151,
2711,
11381,
1037,
6100,
1008,
1997,
2023,
4007,
1998,
3378,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
require 'rake'
require 'rake/tasklib'
require 'logger'
module GeoPattern
# Rake Task
#
# This task can be used to generate pattern files
class RakeTask < ::Rake::TaskLib
include ::Rake::DSL if defined?(::Rake::DSL)
# @!attribute [r] name
# Name of task.
attr_reader :name
# @!attribute [r] description
# A description for the task
attr_reader :description
# @!attribute [r] verbose (true)
# Use verbose output. If this is set to true, the task will print the
# executed spec command to stdout.
attr_reader :verbose
private
attr_reader :task_arguments, :task_block, :logger, :working_directory
# Create task instance
#
# @param [String] description
# A description for the task
#
# @param [String] name
# The name for the task (including namespace), e.g. namespace1:task1
#
# @param [Array] arguments
# Arguments for the task. Look
# [here](http://viget.com/extend/protip-passing-parameters-to-your-rake-tasks)
# for a better description on how to use arguments in rake tasks
#
# @yield
# A block which is called before the "run_task"-method is called. The
# parameters it taskes depends on the number of parameters the block
# can take. If the block is defined which two parameters, it takes two
# parameters from the paramter 'arguments'.
def initialize(opts = {}, &task_block)
@options = {
description: nil,
name: GeoPattern::Helpers.underscore(self.class.to_s.split(/::/).slice(-2..-1).join(':').gsub(/Task$/, '')),
arguments: [],
logger: ::Logger.new($stderr),
working_directory: Dir.getwd
}.merge opts
before_initialize
fail ArgumentError, :description if @options[:description].nil?
@description = @options[:description]
@task_arguments = Array(@options[:arguments])
@task_block = task_block
@logger = @options[:logger]
@working_directory = @options[:working_directory]
@name = @options[:name]
after_initialize
define_task
end
private
# Run code after initialize
def after_initialize; end
# Run code before initialize
def before_initialize; end
# Define task
def define_task
desc description unless ::Rake.application.last_comment
task name, *task_arguments do |_, task_args|
RakeFileUtils.__send__(:verbose, verbose) do
instance_exec(*[self, task_args].slice(0, task_block.arity), &task_block) if task_block.respond_to? :call
run_task verbose
end
end
end
# Run code if task is executed
def run_task(_verbose); end
public
# Binding to instance
def instance_binding
binding
end
# Include module in instance
def include(modules)
modules = Array(modules)
modules.each { |m| self.class.include m }
end
end
end
| webbab/geo_pattern | lib/geo_pattern/rake_task.rb | Ruby | mit | 2,994 | [
30522,
5478,
1005,
26008,
1005,
5478,
1005,
26008,
1013,
4708,
29521,
1005,
5478,
1005,
8833,
4590,
1005,
11336,
20248,
4502,
12079,
2078,
1001,
26008,
4708,
1001,
1001,
2023,
4708,
2064,
2022,
2109,
2000,
9699,
5418,
6764,
2465,
26008,
102... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* Copyright (C) 2005-2008 Team XBMC
* http://www.xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This Program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XBMC; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
* http://www.gnu.org/copyleft/gpl.html
*
*/
#include "DVDInputStreamHTSP.h"
#include "URL.h"
#include "FileItem.h"
#include "utils/log.h"
#include <limits.h>
extern "C" {
#include "lib/libhts/net.h"
#include "lib/libhts/htsmsg.h"
#include "lib/libhts/htsmsg_binary.h"
#include "lib/libhts/sha1.h"
}
using namespace std;
using namespace HTSP;
htsmsg_t* CDVDInputStreamHTSP::ReadStream()
{
htsmsg_t* msg;
/* after anything has started reading, *
* we can guarantee a new stream */
m_startup = false;
while((msg = m_session.ReadMessage(1000)))
{
const char* method;
if((method = htsmsg_get_str(msg, "method")) == NULL)
return msg;
if (strstr(method, "channelAdd"))
CHTSPSession::ParseChannelUpdate(msg, m_channels);
else if(strstr(method, "channelUpdate"))
CHTSPSession::ParseChannelUpdate(msg, m_channels);
else if(strstr(method, "channelRemove"))
CHTSPSession::ParseChannelRemove(msg, m_channels);
uint32_t subs;
if(htsmsg_get_u32(msg, "subscriptionId", &subs) || subs != m_subs)
{
htsmsg_destroy(msg);
continue;
}
return msg;
}
return NULL;
}
CDVDInputStreamHTSP::CDVDInputStreamHTSP()
: CDVDInputStream(DVDSTREAM_TYPE_HTSP)
, m_subs(0)
, m_startup(false)
, m_channel(0)
, m_tag(0)
{
}
CDVDInputStreamHTSP::~CDVDInputStreamHTSP()
{
Close();
}
bool CDVDInputStreamHTSP::Open(const char* file, const std::string& content)
{
if (!CDVDInputStream::Open(file, content))
return false;
CURL url(file);
if(sscanf(url.GetFileName().c_str(), "tags/%d/%d", &m_tag, &m_channel) != 2)
{
CLog::Log(LOGERROR, "CDVDInputStreamHTSP::Open - invalid url (%s)\n", url.GetFileName().c_str());
return false;
}
if(!m_session.Connect(url.GetHostName(), url.GetPort()))
return false;
if(!url.GetUserName().IsEmpty())
m_session.Auth(url.GetUserName(), url.GetPassWord());
m_session.SendEnableAsync();
if(!m_session.SendSubscribe(m_subs, m_channel))
return false;
m_startup = true;
return true;
}
bool CDVDInputStreamHTSP::IsEOF()
{
return false;
}
void CDVDInputStreamHTSP::Close()
{
CDVDInputStream::Close();
m_session.Close();
m_read.Clear();
}
int CDVDInputStreamHTSP::Read(BYTE* buf, int buf_size)
{
size_t count = m_read.Size();
if(count == 0)
{
htsmsg_t* msg = ReadStream();
if(msg == NULL)
return -1;
uint8_t* p;
if(htsmsg_binary_serialize(msg, (void**)&p, &count, INT_MAX) < 0)
{
htsmsg_destroy(msg);
return -1;
}
htsmsg_destroy(msg);
m_read.Clear();
m_read.buf = p;
m_read.cur = p;
m_read.end = p + count;
}
if(count == 0)
return 0;
if(count > (size_t)buf_size)
count = buf_size;
memcpy(buf, m_read.cur, count);
m_read.cur += count;
return count;
}
bool CDVDInputStreamHTSP::SetChannel(int channel)
{
CLog::Log(LOGDEBUG, "CDVDInputStreamHTSP::SetChannel - changing to channel %d", channel);
if(!m_session.SendUnsubscribe(m_subs))
CLog::Log(LOGERROR, "CDVDInputStreamHTSP::SetChannel - failed to unsubscribe from previous channel");
if(!m_session.SendSubscribe(m_subs+1, channel))
{
if(m_session.SendSubscribe(m_subs, m_channel))
CLog::Log(LOGERROR, "CDVDInputStreamHTSP::SetChannel - failed to set channel");
else
CLog::Log(LOGERROR, "CDVDInputStreamHTSP::SetChannel - failed to set channel and restore old channel");
return false;
}
m_channel = channel;
m_subs = m_subs+1;
m_startup = true;
return true;
}
bool CDVDInputStreamHTSP::GetChannels(SChannelV &channels, SChannelV::iterator &it)
{
for(SChannels::iterator it2 = m_channels.begin(); it2 != m_channels.end(); it2++)
{
if(m_tag == 0 || it2->second.MemberOf(m_tag))
channels.push_back(it2->second);
}
sort(channels.begin(), channels.end());
for(it = channels.begin(); it != channels.end(); it++)
if(it->id == m_channel)
return true;
return false;
}
bool CDVDInputStreamHTSP::NextChannel()
{
SChannelV channels;
SChannelV::iterator it;
if(!GetChannels(channels, it))
return false;
SChannelC circ(channels.begin(), channels.end(), it);
if(++circ == it)
return false;
else
return SetChannel(circ->id);
}
bool CDVDInputStreamHTSP::PrevChannel()
{
SChannelV channels;
SChannelV::iterator it;
if(!GetChannels(channels, it))
return false;
SChannelC circ(channels.begin(), channels.end(), it);
if(--circ == it)
return false;
else
return SetChannel(circ->id);
}
bool CDVDInputStreamHTSP::SelectChannel(unsigned int channel)
{
return SetChannel(channel);
}
bool CDVDInputStreamHTSP::UpdateItem(CFileItem& item)
{
SChannels::iterator it = m_channels.find(m_channel);
if(it == m_channels.end())
return false;
SChannel& channel = it->second;
if(channel.event != m_event.id)
{
if(!m_session.GetEvent(m_event, channel.event))
{
m_event.Clear();
m_event.id = channel.event;
}
}
CFileItem current(item);
CHTSPSession::ParseItem(channel, m_tag, m_event, item);
item.SetThumbnailImage(channel.icon);
item.SetCachedVideoThumb();
return current.m_strPath != item.m_strPath
|| current.m_strTitle != item.m_strTitle;
}
int CDVDInputStreamHTSP::GetTotalTime()
{
if(m_event.id == 0)
return 0;
return (m_event.stop - m_event.start) * 1000;
}
int CDVDInputStreamHTSP::GetTime()
{
CDateTimeSpan time;
time = CDateTime::GetUTCDateTime()
- CDateTime((time_t)m_event.start);
return time.GetDays() * 1000 * 60 * 60 * 24
+ time.GetHours() * 1000 * 60 * 60
+ time.GetMinutes() * 1000 * 60
+ time.GetSeconds() * 1000;
}
void CDVDInputStreamHTSP::Abort()
{
m_session.Abort();
}
| chris-magic/xbmc_dualaudio_pvr | xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamHTSP.cpp | C++ | gpl-2.0 | 6,506 | [
30522,
1013,
1008,
1008,
9385,
1006,
1039,
1007,
2384,
1011,
2263,
2136,
1060,
25526,
2278,
1008,
8299,
1024,
1013,
1013,
7479,
1012,
1060,
25526,
2278,
1012,
8917,
1008,
1008,
2023,
2565,
2003,
2489,
4007,
1025,
2017,
2064,
2417,
2923,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Anarian.Interfaces;
using Anarian.Events;
namespace Anarian.DataStructures.Input
{
public class Controller : IUpdatable
{
PlayerIndex m_playerIndex;
GamePadType m_gamePadType;
GamePadCapabilities m_gamePadCapabilities;
GamePadState m_gamePadState;
GamePadState m_prevGamePadState;
bool m_isConnected;
public PlayerIndex PlayerIndex { get { return m_playerIndex; } }
public GamePadType GamePadType { get { return m_gamePadType; } }
public GamePadCapabilities GamePadCapabilities { get { return m_gamePadCapabilities; } }
public GamePadState GamePadState { get { return m_gamePadState; } }
public GamePadState PrevGamePadState { get { return m_prevGamePadState; } }
public bool IsConnected { get { return m_isConnected; } }
public Controller(PlayerIndex playerIndex)
{
m_playerIndex = playerIndex;
Reset();
}
public void Reset()
{
m_gamePadCapabilities = GamePad.GetCapabilities(m_playerIndex);
m_gamePadType = m_gamePadCapabilities.GamePadType;
m_gamePadState = GamePad.GetState(m_playerIndex);
m_prevGamePadState = m_gamePadState;
m_isConnected = m_gamePadState.IsConnected;
}
#region Interface Implimentations
void IUpdatable.Update(GameTime gameTime) { Update(gameTime); }
#endregion
public void Update(GameTime gameTime)
{
//if (!m_isConnected) return;
// Get the States
m_prevGamePadState = m_gamePadState;
m_gamePadState = GamePad.GetState(m_playerIndex);
// Update if it is connected or not
m_isConnected = m_gamePadState.IsConnected;
#region Preform Events
if (GamePadDown != null) {
if (IsButtonDown(Buttons.A)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.A, PlayerIndex)); }
if (IsButtonDown(Buttons.B)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.B, PlayerIndex)); }
if (IsButtonDown(Buttons.X)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.X, PlayerIndex)); }
if (IsButtonDown(Buttons.Y)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.Y, PlayerIndex)); }
if (IsButtonDown(Buttons.LeftShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftShoulder, PlayerIndex)); }
if (IsButtonDown(Buttons.RightShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightShoulder, PlayerIndex)); }
if (IsButtonDown(Buttons.LeftStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftStick, PlayerIndex)); }
if (IsButtonDown(Buttons.RightStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightStick, PlayerIndex)); }
if (IsButtonDown(Buttons.DPadUp)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadUp, PlayerIndex)); }
if (IsButtonDown(Buttons.DPadDown)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadDown, PlayerIndex)); }
if (IsButtonDown(Buttons.DPadLeft)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadLeft, PlayerIndex)); }
if (IsButtonDown(Buttons.DPadRight)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadRight, PlayerIndex)); }
}
if (GamePadClicked != null) {
if (ButtonPressed(Buttons.A)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.A, PlayerIndex)); }
if (ButtonPressed(Buttons.B)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.B, PlayerIndex)); }
if (ButtonPressed(Buttons.X)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.X, PlayerIndex)); }
if (ButtonPressed(Buttons.Y)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.Y, PlayerIndex)); }
if (ButtonPressed(Buttons.LeftShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftShoulder, PlayerIndex)); }
if (ButtonPressed(Buttons.RightShoulder)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightShoulder, PlayerIndex)); }
if (ButtonPressed(Buttons.LeftStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.LeftStick, PlayerIndex)); }
if (ButtonPressed(Buttons.RightStick)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.RightStick, PlayerIndex)); }
if (ButtonPressed(Buttons.DPadUp)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadUp, PlayerIndex)); }
if (ButtonPressed(Buttons.DPadDown)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadDown, PlayerIndex)); }
if (ButtonPressed(Buttons.DPadLeft)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadLeft, PlayerIndex)); }
if (ButtonPressed(Buttons.DPadRight)) { GamePadClicked(this, new GamePadPressedEventArgs(gameTime, Buttons.DPadRight, PlayerIndex)); }
}
if (GamePadMoved != null) {
if (HasLeftThumbstickMoved()) {
GamePadMoved(this,
new GamePadMovedEventsArgs(
gameTime,
Buttons.LeftStick,
PlayerIndex,
m_gamePadState.ThumbSticks.Left,
m_prevGamePadState.ThumbSticks.Left - m_gamePadState.ThumbSticks.Left)
);
}
if (HasRightThumbstickMoved()) {
GamePadMoved(this,
new GamePadMovedEventsArgs(
gameTime,
Buttons.RightStick,
PlayerIndex,
m_gamePadState.ThumbSticks.Right,
m_prevGamePadState.ThumbSticks.Right - m_gamePadState.ThumbSticks.Right)
);
}
if (HasLeftTriggerMoved()) {
GamePadMoved(this,
new GamePadMovedEventsArgs(
gameTime,
Buttons.LeftTrigger,
PlayerIndex,
new Vector2(0.0f, m_gamePadState.Triggers.Left),
new Vector2(0.0f, m_prevGamePadState.Triggers.Left) - new Vector2(0.0f, m_gamePadState.Triggers.Left))
);
}
if (HasRightTriggerMoved()) {
GamePadMoved(this,
new GamePadMovedEventsArgs(
gameTime,
Buttons.RightTrigger,
PlayerIndex,
new Vector2(0.0f, m_gamePadState.Triggers.Right),
new Vector2(0.0f, m_prevGamePadState.Triggers.Right) - new Vector2(0.0f, m_gamePadState.Triggers.Right))
);
}
}
#endregion
}
#region Helper Methods
public bool ButtonPressed(Buttons button)
{
if (m_prevGamePadState.IsButtonDown(button) == true &&
m_gamePadState.IsButtonUp(button) == true)
return true;
return false;
}
public bool IsButtonDown(Buttons button)
{
return m_gamePadState.IsButtonDown(button);
}
public bool IsButtonUp(Buttons button)
{
return m_gamePadState.IsButtonUp(button);
}
public void SetVibration(float leftMotor, float rightMotor)
{
GamePad.SetVibration(m_playerIndex, leftMotor, rightMotor);
}
#region Thumbsticks
public bool HasLeftThumbstickMoved()
{
if (m_gamePadState.ThumbSticks.Left == Vector2.Zero) return false;
return true;
}
public bool HasRightThumbstickMoved()
{
if (m_gamePadState.ThumbSticks.Right == Vector2.Zero) return false;
return true;
}
#endregion
#region Triggers
public bool HasLeftTriggerMoved()
{
if (m_gamePadState.Triggers.Left == 0.0f) return false;
return true;
}
public bool HasRightTriggerMoved()
{
if (m_gamePadState.Triggers.Right == 0.0f) return false;
return true;
}
#endregion
public bool HasInputChanged(bool ignoreThumbsticks)
{
if ((m_gamePadState.IsConnected) && (m_gamePadState.PacketNumber != m_prevGamePadState.PacketNumber))
{
//ignore thumbstick movement
if ((ignoreThumbsticks == true) && ((m_gamePadState.ThumbSticks.Left.Length() != m_prevGamePadState.ThumbSticks.Left.Length()) && (m_gamePadState.ThumbSticks.Right.Length() != m_prevGamePadState.ThumbSticks.Right.Length())))
return false;
return true;
}
return false;
}
#endregion
#region Events
public static event GamePadDownEventHandler GamePadDown;
public static event GamePadPressedEventHandler GamePadClicked;
public static event GamePadMovedEventHandler GamePadMoved;
#endregion
}
}
| KillerrinStudios/Anarian-Game-Engine-MonoGame | Anarian Game Engine.Shared/DataStructures/Input/Controller.cs | C# | mit | 10,322 | [
30522,
2478,
2291,
1025,
2478,
2291,
1012,
6407,
1012,
12391,
1025,
2478,
2291,
1012,
3793,
1025,
2478,
2291,
1012,
16474,
2015,
1025,
2478,
7513,
1012,
1060,
2532,
1012,
7705,
1025,
2478,
7513,
1012,
1060,
2532,
1012,
7705,
1012,
7953,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Generated code. DO NOT EDIT!
namespace Google.Cloud.Channel.V1.Snippets
{
// [START cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_sync]
using Google.Cloud.Channel.V1;
public sealed partial class GeneratedCloudChannelServiceClientSnippets
{
/// <summary>Snippet for DeleteCustomer</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void DeleteCustomerRequestObject()
{
// Create client
CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create();
// Initialize request argument(s)
DeleteCustomerRequest request = new DeleteCustomerRequest
{
CustomerName = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"),
};
// Make the request
cloudChannelServiceClient.DeleteCustomer(request);
}
}
// [END cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_sync]
}
| googleapis/google-cloud-dotnet | apis/Google.Cloud.Channel.V1/Google.Cloud.Channel.V1.GeneratedSnippets/CloudChannelServiceClient.DeleteCustomerRequestObjectSnippet.g.cs | C# | apache-2.0 | 1,748 | [
30522,
1013,
1013,
9385,
16798,
2475,
8224,
11775,
1013,
1013,
1013,
1013,
7000,
2104,
1996,
15895,
6105,
1010,
2544,
1016,
1012,
1014,
1006,
1996,
1000,
6105,
1000,
1007,
1025,
1013,
1013,
2017,
2089,
2025,
2224,
2023,
5371,
3272,
1999,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<?php
/**
* Kunena Component
* @package Kunena.Template.Crypsis
* @subpackage Layout.Announcement
*
* @copyright (C) 2008 - 2016 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.org
**/
defined('_JEXEC') or die;
$row = $this->row;
$announcement = $this->announcement;
?>
<tr>
<td class="nowrap hidden-xs">
<?php echo $announcement->displayField('created', 'date_today'); ?>
</td>
<td class="nowrap">
<div class="overflow">
<?php echo JHtml::_('kunenaforum.link', $announcement->getUri(), $announcement->displayField('title'),
null, 'follow'); ?>
</div>
</td>
<?php if ($this->checkbox) : ?>
<td class="center">
<?php if ($this->canPublish()) echo JHtml::_('kunenagrid.published', $row, $announcement->published, '', true); ?>
</td>
<td class="center">
<?php if ($this->canEdit()) echo JHtml::_('kunenagrid.task', $row, 'tick.png', JText::_('COM_KUNENA_ANN_EDIT'),
'edit', '', true); ?>
</td>
<td class="center">
<?php if ($this->canDelete()) echo JHtml::_('kunenagrid.task', $row, 'publish_x.png',
JText::_('COM_KUNENA_ANN_DELETE'), 'delete', '', true); ?>
</td>
<td>
<?php echo $announcement->getAuthor()->username; ?>
</td>
<?php endif; ?>
<td class="center hidden-xs">
<?php echo $announcement->displayField('id'); ?>
</td>
<?php if ($this->checkbox) : ?>
<td class="center">
<?php echo JHtml::_('kunenagrid.id', $row, $announcement->id); ?>
</td>
<?php endif; ?>
</tr>
| fxstein/Kunena-Forum | components/com_kunena/site/template/crypsisb3/layouts/announcement/list/row/default.php | PHP | gpl-3.0 | 1,524 | [
30522,
1026,
1029,
25718,
1013,
1008,
1008,
1008,
28919,
8189,
6922,
1008,
1030,
7427,
28919,
8189,
1012,
23561,
1012,
5390,
18409,
1008,
1030,
4942,
23947,
4270,
9621,
1012,
8874,
1008,
1008,
1030,
9385,
1006,
1039,
1007,
2263,
1011,
2355,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
package com.ctrip.xpipe.redis.core.protocal;
/**
* @author wenchao.meng
*
* 2016年3月24日 下午6:27:48
*/
public interface RedisProtocol {
int REDIS_PORT_DEFAULT = 6379;
int KEEPER_PORT_DEFAULT = 6380;
int RUN_ID_LENGTH = 40;
String CRLF = "\r\n";
String OK = "OK";
String KEEPER_ROLE_PREFIX = "keeperrole";
static String booleanToString(boolean yes){
if(yes){
return "yes";
}
return "no";
}
}
| ctripcorp/x-pipe | redis/redis-core/src/main/java/com/ctrip/xpipe/redis/core/protocal/RedisProtocol.java | Java | apache-2.0 | 432 | [
30522,
7427,
4012,
1012,
14931,
29443,
1012,
26726,
15457,
1012,
2417,
2483,
1012,
4563,
1012,
15053,
9289,
1025,
1013,
1008,
1008,
1008,
1030,
3166,
19181,
7507,
2080,
1012,
27955,
1008,
1008,
2355,
1840,
1017,
1872,
2484,
1864,
1743,
100,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.