SeExpr
SeContext.cpp
Go to the documentation of this file.
1 /*
2 * Copyright Disney Enterprises, Inc. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License
6 * and the following modification to it: Section 6 Trademarks.
7 * deleted and replaced with:
8 *
9 * 6. Trademarks. This License does not grant permission to use the
10 * trade names, trademarks, service marks, or product names of the
11 * Licensor and its affiliates, except as required for reproducing
12 * the content of the NOTICE file.
13 *
14 * You may obtain a copy of the License at
15 * http://www.apache.org/licenses/LICENSE-2.0
16 */
17 #include "SeContext.h"
18 
19 SeContext::SeContext(const SeContext* parent) : _parent(parent) {}
20 
21 void SeContext::setParameter(const std::string& parameterName, const std::string& value) {
22  _parameters[parameterName] = value;
23 }
24 
25 SeContext* SeContext::createChildContext() const { return new SeContext(this); }
26 
28  static SeContext context(0);
29  return context;
30 }
SeContext::createChildContext
SeContext * createChildContext() const
Create a context that is a child of this context.
Definition: SeContext.cpp:25
value
For any rgb or hsl value(except for negative s values)
SeContext::setParameter
void setParameter(const std::string &parameterName, const std::string &value)
Set a parameter. NOTE: this must be done when no threads are accessing lookupParameter for safety.
Definition: SeContext.cpp:21
SeContext
Definition: SeContext.h:22
SeContext::_parameters
ParameterMap _parameters
Attribute/value pairs.
Definition: SeContext.h:66
SeContext.h
SeContext::global
static SeContext & global()
The global default context of the seexpr.
Definition: SeContext.cpp:27
SeContext::SeContext
SeContext(const SeContext &)
context
If a scalar is used in a vector context
Definition: userdoc.txt:436