20 lines
412 B
C++
20 lines
412 B
C++
#pragma once
|
|
#include "ContractCondition.h"
|
|
|
|
class TWSAPIDLLEXP VolumeCondition : public ContractCondition {
|
|
friend OrderCondition;
|
|
|
|
int m_volume;
|
|
|
|
protected:
|
|
VolumeCondition() { }
|
|
|
|
virtual std::string valueToString() const;
|
|
virtual void valueFromString(const std::string &v);
|
|
|
|
public:
|
|
static const OrderConditionType conditionType = OrderConditionType::Volume;
|
|
|
|
int volume();
|
|
void volume(int volume);
|
|
}; |