<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation                                    //
//                                                                          //
// 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.                                           //
// ======================================================================== //

#pragma once

#include "sg/SceneGraphExports.h"
#include "sg/common/TimeStamp.h"
#include "sg/common/Serialization.h"
#include "sg/common/RenderContext.h"
#include "sg/common/RuntimeError.h"
// stl
#include <map>
#include <memory>
// xml
#include "../../../common/xml/XML.h"
// ospcommon
#include "ospcommon/vec.h"

#include "sg/common/OSPVariant.h"

#include <mutex>

namespace ospray {
  namespace sg {

    using SGVar = OSPVariant;

    /*! forward decl of entity that nodes can write to when writing XML files */
    struct XMLWriter;

    /*! helper macro that adds a new member to a scene graph node, and
      automatically defines all accessor functions for said
      member.  */
#define SG_NODE_DECLARE_MEMBER(type,name,capName)       \
  public:                                               \
    inline type get##capName() const { return name; }   \
    inline void set##capName(const type &name) {        \
      this->name = name;                                \
      this->properties.lastModified = TimeStamp();      \
    };                                                  \
  protected:                                            \
  type name                                             \

    /*! \brief a parameter to a node (is not in itself a node).
<commit_msg>try out OSPAny, seems to work<commit_after>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation                                    //
//                                                                          //
// 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.                                           //
// ======================================================================== //

#pragma once

#include "sg/SceneGraphExports.h"
#include "sg/common/TimeStamp.h"
#include "sg/common/Serialization.h"
#include "sg/common/RenderContext.h"
#include "sg/common/RuntimeError.h"
// stl
#include <map>
#include <memory>
// xml
#include "../../../common/xml/XML.h"
// ospcommon
#include "ospcommon/vec.h"

#define USE_OSPANY 1

#if USE_OSPANY
#  include "sg/common/OSPAny.h"
#else
#  include "sg/common/OSPVariant.h"
#endif

#include <mutex>

namespace ospray {
  namespace sg {

#if USE_OSPANY
    using SGVar = OSPAny;
#else
    using SGVar = OSPVariant;
#endif

    /*! forward decl of entity that nodes can write to when writing XML files */
    struct XMLWriter;

    /*! helper macro that adds a new member to a scene graph node, and
      automatically defines all accessor functions for said
      member.  */
#define SG_NODE_DECLARE_MEMBER(type,name,capName)       \
  public:                                               \
    inline type get##capName() const { return name; }   \
    inline void set##capName(const type &name) {        \
      this->name = name;                                \
      this->properties.lastModified = TimeStamp();      \
    };                                                  \
  protected:                                            \
  type name                                             \

    /*! \brief a parameter to a node (is not in itself a node).

{'fraction_non_alphanumeric': 0.1468640436306973, 'fraction_numerical': 0.004869497467861317, 'mean_word_length': 1.3544245758826226, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 42, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5741036', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1113, 'n_words': 393}