forked from kbinani/libvsq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.hpp
More file actions
860 lines (776 loc) · 25.9 KB
/
Event.hpp
File metadata and controls
860 lines (776 loc) · 25.9 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
/**
* Event.h
* Copyright © 2012 kbinani
*
* This file is part of libvsq.
*
* libvsq is free software; you can redistribute it and/or
* modify it under the terms of the BSD License.
*
* libvsq is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef __Event_h__
#define __Event_h__
#include <string>
#include <boost/format.hpp>
#include "vsqglobal.hpp"
#include "EventType.hpp"
#include "Handle.hpp"
#include "EventWriteOption.hpp"
#include "VoiceLanguageEnum.hpp"
VSQ_BEGIN_NAMESPACE
/**
* VSQ ファイルのメタテキスト内に記述されるイベントを表すクラス
* @class table
* @name Event
*/
class Event
{
friend class VSQFileReader; //TODO:Track::Track(TextStream &, ...)の機能がVSQFIleREaderに移動したら、ここは不要になるので消す
public:
class ListIterator;
class ListConstIterator;
/**
* @brief 固有 ID 付きの {@link Event} のリストを取り扱うクラス
*/
class List{
friend class ListIterator;
friend class ListConstIterator;
protected:
/**
* @brief イベントのリスト
*/
std::vector<VSQ_NS::Event *> _events;
/**
* @brief イベントの ID のリスト
*/
std::vector<int> _ids;
public:
List(){}
List( const List &list ){
copy( list );
}
List &operator = ( const List &list ){
copy( list );
return *this;
}
~List(){
clear();
}
/**
* @brief イベント ID を基にイベントを検索し、そのインデックスを返す
* @param internalId 検索するイベント ID
* @return 検索結果のインデックス(最初のインデックスは0)。イベントが見つからなければ負の値を返す
*/
int findIndexFromId( int internalId ) const{
int c = _events.size();
for( int i = 0; i < c; i++ ){
const Event *item = _events[i];
if( item->id == internalId ){
return i;
}
}
return -1;
}
/**
* @brief イベント ID を基にイベントを検索し、そのオブジェクトを返す
* @param internalId 検索するイベント ID
* @return 検索結果のイベント。イベントが見つからなければ <code>nil</code> を返す
*/
const VSQ_NS::Event *findFromId( int internalId )const{
int index = findIndexFromId( internalId );
if( 0 <= index && index < _events.size() ){
return _events[index];
}else{
return 0;
}
}
/**
* @brief 指定されたイベント ID をもつイベントのオブジェクトを置き換える。イベントが見つからなければ何もしない
* @param internalId 検索するイベント ID
* @param value 置換するオブジェクト
*/
void setForId( int internalId, const VSQ_NS::Event &value ){
int c = _events.size();
for( int i = 0; i < c; i++ ){
VSQ_NS::Event *item = _events[i];
if( item->id == internalId ){
*item = value;
item->id = internalId;
break;
}
}
}
/**
* @brief イベントを並べ替える
*/
void sort(){
qsort( _events.data(), _events.size(), sizeof( VSQ_NS::Event * ), Event::comp );
updateIdList();
}
/**
* @brief 全てのイベントを削除する
*/
void clear(){
std::vector<VSQ_NS::Event *>::iterator i = _events.begin();
for( ; i != _events.end(); ++i ){
Event *item = *i;
delete item;
}
_events.clear();
_ids.clear();
}
/**
* @brief リスト内のイベントを順に返す反復子を取得する
* @return 反復子
*/
ListIterator iterator(){
updateIdList();
return ListIterator( this );
}
const ListConstIterator iterator()const {
return ListConstIterator(this);
}
/**
* @brief イベントを追加する
* @param item 追加するオブジェクト
* @return 追加したオブジェクトに割り振られたイベント ID
*/
int add( const VSQ_NS::Event &item ){
int id = _getNextId( 0 );
_addCor( item, id );
qsort( _events.data(), _events.size(), sizeof( VSQ_NS::Event * ), Event::comp );
int count = _events.size();
for( int i = 0; i < count; i++ ){
_ids[i] = _events[i]->id;
}
return id;
}
/**
* @brief イベントを追加する
* @param item 追加するオブジェクト
* @param internalId 追加するオブジェクトに割り振るイベント ID
* @return オブジェクトに割り振られたイベント ID
*/
int add( const VSQ_NS::Event &item, int internalId ){
_addCor( item, internalId );
qsort( _events.data(), _events.size(), sizeof( VSQ_NS::Event * ), Event::comp );
return internalId;
}
/**
* @brief イベントを削除する
* @param index 削除するイベントのインデックス(最初のインデックスは0)
*/
void removeAt( int index ){
updateIdList();
{
std::vector<VSQ_NS::Event *>::iterator i = _events.begin();
std::advance( i, index );
Event *item = *i;
delete item;
_events.erase( i );
}
{
std::vector<int>::iterator i = _ids.begin();
std::advance( i, index );
_ids.erase( i );
}
}
/**
* @brief イベントの個数を返す
* @return データ点の個数
*/
int size() const{
return _events.size();
}
/**
* @brief 指定したインデックスのイベントを取得する
* @param index インデックス(最初のインデックスは0)
* @return イベント
*/
const VSQ_NS::Event *get( int index ) const{
return _events[index];
}
/**
* @brief 指定したインデックスのイベントを設定する
* @param index インデックス(最初のインデックスは0)
* @param value 設定するイベント
*/
void set( int index, const VSQ_NS::Event &value ){
int id = _events[index]->id;
*_events[index] = value;
_events[index]->id = id;
}
/**
* @brief リスト内部のイベント ID のデータを更新する
*/
void updateIdList(){
if( _ids.size() != _events.size() ){
_ids.clear();
}
int count = _events.size();
for( int i = 0; i < count; i++ ){
_ids.push_back( _events[i]->id );
}
}
private:
/**
* @brief イベントを追加する
* @param item 追加するオブジェクト
* @param internal_id 追加するオブジェクトに割り振るイベント ID
*/
void _addCor( const VSQ_NS::Event &item, int internalId ){
updateIdList();
Event *add = new Event();
*add = item;
add->id = internalId;
_events.push_back( add );
_ids.push_back( internalId );
}
/**
* @brief イベントに割り振る ID を取得する
* @param next
* @return
*/
int _getNextId( int next ){
updateIdList();
int max = -1;
for( int i = 0; i < _ids.size(); i++ ){
max = ::max( max, _ids[i] );
}
return max + 1 + next;
}
/**
* @brief Deep copy member fields.
* @param list Copy source.
*/
void copy( const List &list ){
_events.clear();
_ids.clear();
std::vector<VSQ_NS::Event *>::const_iterator i = list._events.begin();
for( ; i != list._events.end(); ++i ){
_addCor( **i, (*i)->id );
}
}
};
/**
* @brief イベントリストのアイテムを順に返す反復子
*/
class ListConstIterator {
protected:
/**
* @brief 反復子の元になるリスト
*/
const List *_list;
/**
* @brief 反復子の現在の位置
*/
int _pos;
public:
/**
* @brief 初期化を行う
* @param list 反復子の元になるリスト
*/
ListConstIterator(const List *list) :
_list(list),
_pos(-1) {
}
/**
* @brief 反復子が次の要素を持つ場合に <code>true</code> を返す
* @return 反復子がさらに要素を持つ場合は <code>true</code> を、そうでなければ <code>false</code> を返す
*/
bool hasNext()
{
if( 0 <= _pos + 1 && _pos + 1 < _list->size() ){
return true;
}
return false;
}
/**
* @brief 反復子の次の要素を返す
* @return 次の要素
*/
VSQ_NS::Event *next() {
_pos++;
return _list->_events[_pos];
}
};
class ListIterator : public ListConstIterator {
private:
List *_nonConstList;
public:
explicit ListIterator(List *list) : ListConstIterator(list) {
_nonConstList = list;
}
/**
* @brief 反復子によって最後に返された要素を削除する
*/
void remove() {
if (0 <= _pos && _pos < _nonConstList->size()) {
_nonConstList->removeAt(_pos);
_pos--;
}
}
};
/**
* @brief Maximum length of note event in milli second.
*/
static const int MAX_NOTE_MILLISEC_LENGTH = 16383;
/**
* @brief Maximum note number.
*/
static const int MAX_NOTE_NUMBER = 127;
/**
* @brief Minimum note number.
*/
static const int MIN_NOTE_NUMBER = 0;
/**
* イベントに付けるタグ文字列
* @var string
*/
std::string tag;
/**
* 内部で使用するオブジェクト固有の ID
* @var int
*/
int id;
/**
* Tick 単位の時刻
* @var int
*/
VSQ_NS::tick_t clock;
/**
* イベントの種類
* @var EventTypeEnum
* @todo private|protectedにするべきでは
*/
VSQ_NS::EventType::EventTypeEnum type;
/**
* @brief 歌手ハンドル
*/
VSQ_NS::Handle singerHandle;
/**
* ノート番号
* @var int
*/
int note;
/**
* ベロシティ
* @var int
*/
int dynamics;
/**
* ベンド深さ
* @var int
*/
int pmBendDepth;
/**
* ベンド長さ
* @var int
*/
int pmBendLength;
/**
* ポルタメント
* @var int
*/
int pmbPortamentoUse;
/**
* ディケイ
* @var int
*/
int demDecGainRate;
/**
* アクセント
* @var int
*/
int demAccent ;
/**
* @brief 歌詞ハンドル
*/
VSQ_NS::Handle lyricHandle;
/**
* @brief ビブラートハンドル
*/
VSQ_NS::Handle vibratoHandle;
/**
* イベント先頭から測った、ビブラートの開始位置(Tick 単位)
* @var int
*/
int vibratoDelay ;
/**
* @brief アタックハンドル
*/
VSQ_NS::Handle noteHeadHandle;
/**
* @var int
*/
int pMeanOnsetFirstNote;
/**
* @var int
*/
int vMeanNoteTransition;
/**
* @var int
*/
int d4mean;
/**
* @var int
*/
int pMeanEndingNote;
/**
* @brief 強弱記号ハンドル
* @todo 型をHandle*に変える
*/
VSQ_NS::Handle iconDynamicsHandle;
protected:
/**
* @brief EOSイベントかどうか
*/
bool isEos;
private:
/**
* Tick 単位のイベント長さ
* @var int
* @access private
*/
VSQ_NS::tick_t _length;
/**
* @todo 未実装
* @var UstEvent
VSQ_NS::UstEvent ustEvent = nil;
*/
public:
/**
* @brief 初期化を行う
* @param line (string) VSQ メタテキスト中の [EventList] セクション内のイベント宣言文字列(ex."480=ID#0001")
*/
explicit Event( const std::string &line ) :
vibratoHandle()
{
init();
vector<string> spl = StringUtil::explode( "=", line );
clock = StringUtil::parseInt<tick_t>( spl[0] );
isEos = (spl[1] == "EOS");
}
/**
* @brief 初期化を行う。この初期化メソッドは末尾のイベントリストを表すインスタンスを初期化する
*/
explicit Event(){
init();
clock = 0;
isEos = true;
id = 0;
}
/**
* @brief 初期化を行う
* @param clock (int) Tick 単位の時刻
* @param eventType (EventTypeEnum) イベントの種類
*/
explicit Event( VSQ_NS::tick_t clock, VSQ_NS::EventType::EventTypeEnum eventType ){
init();
this->clock = clock;
this->type = eventType;
if( eventType == EventType::SINGER ){
singerHandle = Handle( HandleType::SINGER );
}else if( eventType == EventType::NOTE ){
lyricHandle = Handle( HandleType::LYRIC );
lyricHandle.setLyricAt( 0, Lyric( "a", "a" ) );
}
id = 0;
}
/**
* @brief 長さを取得する
* @return (int) 長さ
*/
VSQ_NS::tick_t getLength() const{
return _length;
}
/**
* @brief 長さを設定する
* @param value (int) 長さ
*/
void setLength( VSQ_NS::tick_t value ){
_length = value;
}
/**
* @brief コピーを作成する
* @return (Event) このインスタンスのコピー
*/
Event clone() const{
Event result( clock, type );
result.type = type;
result.singerHandle = singerHandle.clone();
result.setLength( getLength() );
result.note = note;
result.dynamics = dynamics;
result.pmBendDepth = pmBendDepth;
result.pmBendLength = pmBendLength;
result.pmbPortamentoUse = pmbPortamentoUse;
result.demDecGainRate = demDecGainRate;
result.demAccent = demAccent;
result.d4mean = d4mean;
result.pMeanOnsetFirstNote = pMeanOnsetFirstNote;
result.vMeanNoteTransition = vMeanNoteTransition;
result.pMeanEndingNote = pMeanEndingNote;
result.lyricHandle = lyricHandle.clone();
result.vibratoHandle = vibratoHandle.clone();
result.vibratoDelay = vibratoDelay;
result.noteHeadHandle = noteHeadHandle.clone();
result.iconDynamicsHandle = iconDynamicsHandle.clone();
result.isEos = isEos;
result.id = id;
result.tag = tag;
return result;
}
/**
* このオブジェクトがイベントリストの末尾の要素( EOS )かどうかを取得する
* @return (boolean) このオブジェクトが EOS 要素であれば <code>true</code> を、そうでなければ <code>false</code> を返す
*/
bool isEOS() const{
return isEos;
}
/**
* @brief 順序を比較する
* @param item (Event) 比較対象のアイテム
* @return (int) このインスタンスが比較対象よりも小さい場合は負の整数、等しい場合は 0、大きい場合は正の整数を返す
*/
int compareTo( const VSQ_NS::Event &item ) const{
tick_t ret = clock - item.clock;
if( ret == 0 ){
return type - item.type;
}else{
return (int)ret;
}
}
/**
* @brief 2 つの {@link Event} を比較する
* @param a (Event) 比較対象のオブジェクト
* @param b (Event) 比較対象のオブジェクト
* @return (boolean) <code>a</code> が <code>b</code> よりも小さい場合は <code>true</code>、そうでない場合は <code>false</code> を返す
*/
static bool compare( const VSQ_NS::Event &a, const VSQ_NS::Event &b ){
return (a.compareTo( b ) < 0);
}
/**
* @brief Compare 2 Event objects.
* @param a Compare target.
* @param b Compare target.
*/
static int comp( const void *a, const void *b ){
const VSQ_NS::Event *castedA = *(VSQ_NS::Event **)a;
const VSQ_NS::Event *castedB = *(VSQ_NS::Event **)b;
return castedA->compareTo( *castedB );
}
/**
* @brief イベントリストの末尾の要素を表すオブジェクトを取得する
* @return (Event) オブジェクト
*/
static const VSQ_NS::Event getEOS(){
return Event();
}
/**
-- @param item [VsqEvent]
-- @return [bool]
-- @todo 実装できたら、TrackTest::testGetIndexIteratorNote, testGetIndexIteratorDynamics
の中のequals使うassertionを復活させること
function this:equals( item )
if( self.clock ~= item.clock )then
return false;
end
if( self.type ~= item.type )then
return false;
end
if( self.type == idType.Anote )then
if( self.note ~= item.note )then
return false;
end
if( self:getLength() ~= item:getLength() )then
return false;
end
if( self.d4mean ~= item.d4mean )then
return false;
end
if( self.demAccent ~= item.demAccent )then
return false;
end
if( self.demDecGainRate ~= item.demDecGainRate )then
return false;
end
if( self.dynamics ~= item.dynamics )then
return false;
end
if( self.lyricHandle ~= nil and item.lyricHandle ~= nil )then
return false;
end
if( self.lyricHandle ~= nil and item.lyricHandle == nil )then
return false;
end
if( self.lyricHandle ~= nil and item.lyricHandle ~= nil )then
if( self.lyricHandle:size() ~= item.lyricHandle:size() )then
return false;
end
local count = self.lyricHandle:size();
local k;
for k = 0, count - 1, 1 do
if( not self.lyricHandle:getLyricAt( k ):equalsForSynth( item.lyricHandle:getLyricAt( k ) ) )then
return false;
end
end
end
if( self.noteHeadHandle == nil and item.noteHeadHandle ~= nil )then
return false;
end
if( self.noteHeadHandle ~= nil and item.noteHeadHandle == nil )then
return false;
end
if( self.noteHeadHandle ~= nil and item.noteHeadHandle ~= nil )then
if( self.NoteHeadHandle.iconId ~= item.noteHeadHandle.iconId )then
return false;
end
if( self.noteHeadHandle:getDepth() ~= item.noteHeadHandle:getDepth() )then
return false;
end
if( self.noteHeadHandle:getDuration() ~= item.noteHeadHandle:getDuration() )then
return false;
end
if( self.noteHeadHandle:getLength() ~= item.noteHeadHandle:getLength() )then
return false;
end
end
if( self.pmBendDepth ~= item.pmBendDepth )then
return false;
end
if( self.pmBendLength ~= item.pmBendLength )then
return false;
end
if( self.pmbPortamentoUse ~= item.pmbPortamentoUse )then
return false;
end
if( self.pMeanEndingNote ~= item.pMeanEndingNote )then
return false;
end
if( self.pMeanOnsetFirstNote ~= item.pMeanOnsetFirstNote )then
return false;
end
local hVibratoThis = self.vibratoHandle;
local hVibratoItem = item.vibratoHandle;
if( hVibratoThis == nil and hVibratoItem ~= nil )then
return false;
end
if( hVibratoThis ~= nil and hVibratoItem == nil )then
return false;
end
if( hVibratoThis ~= nil and hVibratoItem ~= nil )then
if( self.vibratoDelay ~= item.vibratoDelay )then
return false;
end
if( hVibratoThis.iconId ~= hVibratoItem.iconId )then
return false;
end
if( hVibratoThis:getStartDepth() ~= hVibratoItem:getStartDepth() )then
return false;
end
if( hVibratoThis:getStartRate() ~= hVibratoItem:getStartRate() )then
return false;
end
local vibRateThis = hVibratoThis:getRateBP();
local vibRateItem = hVibratoItem:getRateBP();
if( vibRateThis == nil and vibRateItem ~= nil )then
return false;
end
if( vibRateThis ~= nil and vibRateItem == nil )then
return false;
end
if( vibRateThis ~= nil and vibRateItem ~= nil )then
local numRateCount = vibRateThis:size();
if( numRateCount ~= vibRateItem:size() )then
return false;
end
local k;
for k = 0, numRateCount - 1, 1 do
local pThis = vibRateThis:getElement( k );
local pItem = vibRateItem:getElement( k );
if( pThis.x ~= pItem.x )then
return false;
end
if( pThis.y ~= pItem.y )then
return false;
end
end
end
local vibDepthThis = hVibratoThis:getDepthBP();
local vibDepthItem = hVibratoItem:getDepthBP();
if( vibDepthThis == nil and vibDepthItem ~= nil )then
return false;
end
if( vibDepthThis ~= nil and vibDepthItem == nil )then
return false;
end
if( vibDepthThis ~= nil and vibDepthItem ~= nil )then
local numDepthCount = vibDepthThis:size();
if( numDepthCount ~= vibDepthItem:size() )then
return false;
end
local k;
for k = 0, numDepthCount - 1, 1 do
local pThis = vibDepthThis:getElement( k );
local pItem = vibDepthItem:getElement( k );
if( pThis.x ~= pItem.x )then
return false;
end
if( pThis.y ~= pItem.y )then
return false;
end
end
end
end
if( self.vMeanNoteTransition ~= item.vMeanNoteTransition )then
return false;
end
elseif( self.type == EventTypeEnum.SINGER )then
-- シンガーイベントの比較
if( self.singerHandle.program ~= item.singerHandle.program )then
return false;
end
elseif( self.type == EventTypeEnum.ICON )then
if( self.iconDynamicsHandle.iconId ~= item.iconDynamicsHandle.iconId )then
return false;
end
if( self.iconDynamicsHandle:isDynaffType() )then
-- 強弱記号
else
-- クレッシェンド・デクレッシェンド
if( self:getLength() ~= item:getLength() )then
return false;
end
end
end
return true;
end*/
private:
void init(){
tag = "";
id = -1;
clock = 0;
isEos = false;
type = EventType::NOTE;
_length = 0;
note = 0;
dynamics = 0;
pmBendDepth = 0;
pmBendLength = 0;
pmbPortamentoUse = 0;
demDecGainRate = 0;
demAccent = 0;
vibratoDelay = 0;
pMeanOnsetFirstNote = 10;
vMeanNoteTransition = 12;
d4mean = 24;
pMeanEndingNote = 12;
// ustEvent = nil;
}
};
VSQ_END_NAMESPACE
#endif