diff options
Diffstat (limited to 'src/core/info.cc')
-rw-r--r-- | src/core/info.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/info.cc b/src/core/info.cc index c331d91..16e68f5 100644 --- a/src/core/info.cc +++ b/src/core/info.cc @@ -67,6 +67,7 @@ Info::Info(const InfoType *type, const char *label) : Label(label) info_model = 0; info_timestamp = 0; info_price = 0; + info_volume = 0; } // client-side constructor, id is passed as param @@ -124,6 +125,10 @@ void Info::set_price(const long price) info_price = price; } +void Info::set_volume(const float volume) +{ + info_volume = volume; +} void Info::set_timestamp(const unsigned long timestamp) { info_timestamp = timestamp; |