// Filename: dataRelation.h
// Created by:  drose (08Jun00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license.  You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////

#ifndef DATARELATION_H
#define DATARELATION_H

#include <pandabase.h>

#include <nodeRelation.h>

///////////////////////////////////////////////////////////////////
//       Class : DataRelation
// Description : The arc type specific to data graphs.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA DataRelation : public NodeRelation {
public:
  INLINE DataRelation(Node *from, Node *to, int sort = 0);

protected:
  // Normally, this should only be used for passing to the factory.
  // Don't attempt to create an unattached arc directly.
  INLINE DataRelation();

public:
  // This is just to be called at initialization time; don't try to
  // call this directly.
  INLINE static void register_with_factory();

private:
  static NodeRelation *make_arc(const FactoryParams &params);

PUBLISHED:
  static TypeHandle get_class_type() {
    return _type_handle;
  }

public:
  static void init_type() {
    NodeRelation::init_type();
    register_type(_type_handle, "DataRelation",
                 NodeRelation::get_class_type());
  }
  virtual TypeHandle get_type() const {
    return get_class_type();
  }
  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}

private:
  static TypeHandle _type_handle;
};

#include "dataRelation.I"

#endif
