~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to RANet/Record.cpp

  • Committer: Viktor Bursian at blin-ubuntu
  • Date: 2015-11-10 12:14:40 UTC
  • mto: (4.43.2 import)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: vbursian@gmail.com-20151110121440-982cwrehp0spu630
new constructors for sArrayTypeDependence and its ancestors (necessary for import); also sTime evolution

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
namespace RA {
15
15
//------------------------------------------------------------------------------
16
16
 
 
17
/*!@todo{UI++} Implement using sRecord::cDateSeparator and
 
18
sRecord::cNumberSeparator.
 
19
Check whether they are different or not (another parsing algorithm),
 
20
and possible conflicts with expressions.
 
21
 
 
22
Suitable formats: #2015.11.02.1  #2015~11~02.1  #2015_11_02.57  #2015~11~02`57
 
23
                  #11.02.1       #11~02.1       #11_02.57       #11~02`57
 
24
                  #02.1          #02.1          #02.57          #02`57
 
25
*/
 
26
const char                    sRecord::cDateSeparator   = '.';
 
27
const char                    sRecord::cNumberSeparator = '.';
 
28
 
17
29
sRecord::fNewRecordNumber *   sRecord::NewRecordNumber = NULL;
18
30
sPtr<sFolderNode>             sRecord::RecordNumberingData;
19
31
sPtr<sFolderNode>             sRecord::ChronologicalStorage;
33
45
}
34
46
 
35
47
 
 
48
sRecord::sRecord (int  record_no)
 
49
    :sFolderNode()
 
50
    ,TheStartTime(sTime::FromMillisecondsSinceEpoch(0))
 
51
    ,TheDuration(0.0)
 
52
    ,TheRecordNo(record_no)
 
53
{
 
54
}
 
55
 
 
56
 
36
57
sRecord::sRecord (std::istream & a_stream ,rcsVersion  version)
37
58
    :sFolderNode(a_stream,version)
38
59
    ,TheStartTime(a_stream,version)
203
224
  sString                     T("#");
204
225
  if( StartTime().Year() != Now.Year() ){
205
226
    T << StartTime().Year();
 
227
    T += '.';
206
228
  }
207
229
  if( StartTime().Month() != Now.Month() ){
208
230
    if( StartTime().Month() <= 9 )