3#ifndef _aspose_system_timers_timer_h_
4#define _aspose_system_timers_timer_h_
6#include <system/eventhandler.h>
7#include <system/component_model/component.h>
8#include <system/threading/timer.h>
10#include "elapsed_event_args.h"
12namespace System {
namespace Timers {
23 typedef BaseTypesInfo<ComponentModel::Component> ThisBaseTypesInfo;
25 RTTI_INFO(
ThisType, ThisBaseTypesInfo)
32 ASPOSECPP_SHARED_API
Timer(
double interval);
60 ASPOSECPP_SHARED_API
void Start();
62 ASPOSECPP_SHARED_API
void Stop();
65 ASPOSECPP_SHARED_API
void Close();
Dummy class to make translated code using Component class compilable. Objects of this class should on...
Definition: component.h:15
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Timer that calls delegate in a loop.
Definition: timer.h:19
void Close()
Stops timer, frees allocated resources.
ElapsedEventHandler Elapsed
Callback function to be called by timer.
Definition: timer.h:70
bool get_IsStopped() const
Checks if timer is stopped.
bool get_AutoReset() const
Checks if timer is in auto-reset mode.
Timer(double interval)
Constructs stopped timer with specified interval.
bool get_Enabled() const
Checks if timer is active.
void Dispose()
Stops timer, frees allocated resources.
void set_Interval(double ms)
Sets timer interval.
double get_Interval() const
Gets timer interval.
void set_Enabled(bool value)
Starts or stops timer. Starting timer doesn't restart time counting if timer is already executing.
void Start()
Starts timer. Doesn't restart time counting if timer is already executing.
void set_AutoReset(bool autoreset)
Sets timer into auto-reset mode or out of it.
EventHandler< SharedPtr< ElapsedEventArgs > > ElapsedEventHandler
Delegate type to handle timer event.
Definition: timer.h:15
Definition: db_command.h:9
MulticastDelegate< void(System::SharedPtr< Object >, TEventArgs)> EventHandler
Represents a method that reacts to and processes an event. This type should be allocated on stack and...
Definition: eventhandler.h:16