Packages

A high-performance Elixir library for decoding Garmin .fit files using a C++ NIF.

Current section

Files

Jump to
fit_decoder c_src fit_sdk cpp fit_field_definition.hpp
Raw

c_src/fit_sdk/cpp/fit_field_definition.hpp

/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2025 Garmin International, Inc.
// Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you
// may not use this file except in compliance with the Flexible and Interoperable Data
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.171.0Release
// Tag = production/release/21.171.0-0-g57fed75
/////////////////////////////////////////////////////////////////////////////////////////////
#if !defined(FIT_FIELD_DEFINITION_HPP)
#define FIT_FIELD_DEFINITION_HPP
#include <iosfwd>
#include "fit.hpp"
#include "fit_field.hpp"
namespace fit
{
class FieldDefinition
{
public:
FieldDefinition();
FieldDefinition(const Field& field);
FieldDefinition(const Field* field);
FIT_UINT8 GetNum() const;
FIT_UINT8 GetSize() const;
FIT_UINT8 GetType() const;
void SetNum(const FIT_UINT8 newNum);
void SetSize(const FIT_UINT8 newSize);
void SetType(const FIT_UINT8 newType);
FIT_BOOL operator==(const FieldDefinition& field) const;
FIT_BOOL operator!=(const FieldDefinition& field) const;
FIT_UINT8 Write(std::ostream &file) const;
private:
FIT_UINT8 num;
FIT_UINT8 size;
FIT_UINT8 type;
};
} // namespace fit
#endif // defined(FIT_FIELD_DEFINITION_HPP)