Login Page - Create Account

Support Board


Date/Time: Sun, 23 Feb 2025 21:40:43 +0000



Post From: scope of sc.GetPersistenInt(*)

[2021-02-20 16:28:28]
norvik_ - Posts: 106
enum PesistentIntVarKey :std::int32_t
{
  LAST_POSITION_STATE_POINTER_KEY = 1,
  LAST_REPLAY_STATUS_POINTER_KEY,
  MENU_ID_POINTER_KEY,
  ATTACHED_STOP_ORDER_POINTER_KEY,
  ATTACHED_TARGET_ORDER_POINTER_KEY,
  ENTRY_ORDER_POINTER_KEY,
  LAST_INTRADAY_RECORD_POINTER_KEY
};

Than can be used in separate *h/*cpp in your own class:

header.h

class myclass
{
public:
myclass();

void myfunc(SCStudyInterfaceRef sc);
...
...

};

Source.cpp

...
myclass::myfunc(SCStudyInterfaceRef sc)
{
if(sc.PersistentInt(LAST_REPLAY_STATUS_POINTER_KEY) == 0)
{
...
//do something..
}
}