$treeview $search $mathjax
StdAir Logo  1.00.2
$projectbrief
$projectbrief
$searchbox

stdair/bom/BreakPointStruct.cpp

Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // STL
00005 #include <cassert>
00006 #include <sstream>
00007 // StdAir
00008 #include <stdair/basic/BasConst_General.hpp>
00009 #include <stdair/bom/BreakPointStruct.hpp>
00010 
00011 namespace stdair {
00012   
00013   // //////////////////////////////////////////////////////////////////////
00014   BreakPointStruct::BreakPointStruct() {
00015     assert (false);
00016   }
00017     
00018   // //////////////////////////////////////////////////////////////////////
00019   BreakPointStruct::
00020   BreakPointStruct (const BreakPointStruct& iBreakPoint)
00021     : _breakPointTime (iBreakPoint._breakPointTime) {
00022   }
00023   
00024   // //////////////////////////////////////////////////////////////////////
00025   BreakPointStruct::
00026   BreakPointStruct (const DateTime_T& iBreakPointTime)
00027     : _breakPointTime (iBreakPointTime) {
00028   }  
00029 
00030   // //////////////////////////////////////////////////////////////////////
00031   BreakPointStruct::
00032   BreakPointStruct (const Date_T& iBreakPointDate)
00033     : _breakPointTime (iBreakPointDate, DEFAULT_NULL_DURATION) {
00034   }
00035   
00036   // //////////////////////////////////////////////////////////////////////
00037   BreakPointStruct::~BreakPointStruct() {
00038   }
00039   
00040   // //////////////////////////////////////////////////////////////////////
00041   void BreakPointStruct::toStream (std::ostream& ioOut) const {
00042     ioOut << describe();
00043   }
00044 
00045   // //////////////////////////////////////////////////////////////////////
00046   void BreakPointStruct::fromStream (std::istream& ioIn) {
00047   }
00048   
00049   // //////////////////////////////////////////////////////////////////////
00050   const std::string BreakPointStruct::describe() const {
00051     std::ostringstream oStr;
00052     oStr << _breakPointTime;
00053     return oStr.str();
00054   }
00055 
00056 }