/* Distributed under the Apache License, Version 2.0.
   See accompanying NOTICE file for details.*/

#pragma once
#include "properties/SEScalar.h"
CDM_BIND_DECL(ScalarForceData)

class CDM_DECL ForceUnit : public CCompoundUnit
{
public:
  ForceUnit(const std::string& u) : CCompoundUnit(u) {}
  virtual ~ForceUnit() {}

  static bool IsValidUnit(const std::string& unit);
  static const ForceUnit& GetCompoundUnit(const std::string& unit);

  static const ForceUnit N;
  static const ForceUnit lbf;
  static const ForceUnit dyn;
};

class CDM_DECL SEScalarForce : public SEScalarQuantity<ForceUnit>
{
public:
  SEScalarForce() {}
  virtual ~SEScalarForce() {}

  static void Load(const cdm::ScalarForceData& src, SEScalarForce& dst);
  static cdm::ScalarForceData* Unload(const SEScalarForce& src);
protected:
  static void Serialize(const cdm::ScalarForceData& src, SEScalarForce& dst);
  static void Serialize(const SEScalarForce& src, cdm::ScalarForceData& dst);
};
