aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/IO/FileUploadRequest.pb-c.h
blob: d8eabb4ee7c8fed729aedff89c957a45eaf2f08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: FileUploadRequest.proto */

#ifndef PROTOBUF_C_FileUploadRequest_2eproto__INCLUDED
#define PROTOBUF_C_FileUploadRequest_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif


typedef struct _FileUploadRequest FileUploadRequest;


/* --- enums --- */


/* --- messages --- */

struct  _FileUploadRequest
{
  ProtobufCMessage base;
  char *path;
  protobuf_c_boolean has_length;
  int64_t length;
};
#define FILE_UPLOAD_REQUEST__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&file_upload_request__descriptor) \
    , NULL, 0, 0 }


/* FileUploadRequest methods */
void   file_upload_request__init
                     (FileUploadRequest         *message);
size_t file_upload_request__get_packed_size
                     (const FileUploadRequest   *message);
size_t file_upload_request__pack
                     (const FileUploadRequest   *message,
                      uint8_t             *out);
size_t file_upload_request__pack_to_buffer
                     (const FileUploadRequest   *message,
                      ProtobufCBuffer     *buffer);
FileUploadRequest *
       file_upload_request__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   file_upload_request__free_unpacked
                     (FileUploadRequest *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*FileUploadRequest_Closure)
                 (const FileUploadRequest *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor file_upload_request__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_FileUploadRequest_2eproto__INCLUDED */
class="w"> _techController = value; RaisePropertyChangedAuto(); TechName = _techController != null ? _techController.Description : null; ItemGuid = value != null ? value.Guid : null; if (_techController != null && !IsSetToDefault) { OptimalRangeMinimum = _techController.Min; OptimalRangeMaximum = _techController.Min + ((_techController.Max - _techController.Min) * 0.7d); IsSetToDefault = true; } } } private double _value; /// <summary> /// Gets or sets the component value. /// </summary> [XmlIgnore] public double Value { get { return _value; } set { _value = value; RaisePropertyChangedAuto(); ValueChanged?.Invoke(this, _value); } } private int _updateInterval; /// <summary> /// Gets or sets the update interval. /// </summary> public int UpdateInterval { get { return _updateInterval; } set { _updateInterval = value; RaisePropertyChangedAuto(); } } /// <summary> /// Gets or sets the last update time. /// </summary> [XmlIgnore] public DateTime LastUpdateTime { get; set; } private double _effectiveValue; /// <summary> /// Gets or sets the effective value received from the embedded device. /// </summary> [XmlIgnore] public double EffectiveValue { get { return _effectiveValue; } set { LastUpdateTime = DateTime.Now; if (_effectiveValue != value) { _effectiveValue = value; RaisePropertyChangedAuto(); } } } private double _optimalRangeMinimum; /// <summary> /// Gets or sets the optimal range. /// </summary> public double OptimalRangeMinimum { get { return _optimalRangeMinimum; } set { _optimalRangeMinimum = value; RaisePropertyChangedAuto(); } } private double _optimalRangeMaximum; public double OptimalRangeMaximum { get { return _optimalRangeMaximum; } set { _optimalRangeMaximum = value; RaisePropertyChangedAuto(); } } public bool IsSetToDefault { get; set; } /// <summary> /// Initializes a new instance of the <see cref="ControllerItem"/> class. /// </summary> public ControllerItem() : base() { Name = "Value Controller"; Description = "Single component value controller"; Image = ResourceHelper.GetImageFromResources("Images/controller.png"); Color = Colors.DodgerBlue; LastUpdateTime = DateTime.Now; UpdateInterval = 10; } /// <summary> /// Initializes a new instance of the <see cref="ControllerItem"/> class. /// </summary> /// <param name="techController">The db tech controller.</param> public ControllerItem(TechController techController) : this() { TechController = techController; } /// <summary> /// Clones this instance. /// </summary> /// <returns></returns> public override TechItem Clone() { ControllerItem cloned = base.Clone() as ControllerItem; cloned.TechController = TechController; cloned.OptimalRangeMinimum = OptimalRangeMinimum; cloned.OptimalRangeMaximum = OptimalRangeMaximum; cloned.IsSetToDefault = IsSetToDefault; return cloned; } } }