// genDElement - An abstract data element library
// Copyright (C) 2013-2026 Eric Bechet, Frederic Duboeuf
//
// See the LICENSE file for license information.
// Please report all bugs and problems to <bechet@cadxfem.org> or <duboeuf@outlook.com>.
//
// Initial design: Frederic Duboeuf (rev.1511)


#ifndef _GEN_DATA_TRAITS_H_
#define _GEN_DATA_TRAITS_H_

#include "genData.h"
#include "genDataConnectivity.h"
#include "genDataEntity.h"


// Traits
template<class E> struct DataTraits
{
  typedef DataTest Test;
  typedef DataConnectivity<E> Connectivity;
  typedef DataEntity Entity;
};


// Traits
template<class D> struct DataPolicies
{
};

template<> struct DataPolicies<DataTest>
{
  static const char* DefaultName() {return "Test";}
};

template<> struct DataPolicies<DataConnectivity>
{
  static const char* DefaultName() {return "Connectivity";}
};

#endif // _GEN_DATA_TRAITS_H_