/[svn]/libgig/trunk/src/gig.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gig.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3140 by schoenebeck, Wed May 3 16:19:53 2017 UTC revision 3203 by schoenebeck, Tue May 23 14:51:01 2017 UTC
# Line 1817  namespace { Line 1817  namespace {
1817      }      }
1818    
1819      void DimensionRegion::serialize(Serialization::Archive* archive) {      void DimensionRegion::serialize(Serialization::Archive* archive) {
1820            // in case this class will become backward incompatible one day,
1821            // then set a version and minimum version for this class like:
1822            //archive->setVersion(*this, 2);
1823            //archive->setMinVersion(*this, 1);
1824    
1825          SRLZ(VelocityUpperLimit);          SRLZ(VelocityUpperLimit);
1826          SRLZ(EG1PreAttack);          SRLZ(EG1PreAttack);
1827          SRLZ(EG1Attack);          SRLZ(EG1Attack);
# Line 2614  namespace { Line 2619  namespace {
2619    
2620              // unknown controller type              // unknown controller type
2621              default:              default:
2622                  throw gig::Exception("Unknown leverage controller type.");                  decodedcontroller.type = leverage_ctrl_t::type_none;
2623                    decodedcontroller.controller_number = 0;
2624                    printf("Warning: Unknown leverage controller type (0x%x).\n", EncodedController);
2625                    break;
2626          }          }
2627          return decodedcontroller;          return decodedcontroller;
2628      }      }
# Line 6468  namespace { Line 6476  namespace {
6476  // *************** Exception ***************  // *************** Exception ***************
6477  // *  // *
6478    
6479      Exception::Exception(String Message) : DLS::Exception(Message) {      Exception::Exception() : DLS::Exception() {
6480        }
6481    
6482        Exception::Exception(String format, ...) : DLS::Exception() {
6483            va_list arg;
6484            va_start(arg, format);
6485            Message = assemble(format, arg);
6486            va_end(arg);
6487        }
6488    
6489        Exception::Exception(String format, va_list arg) : DLS::Exception() {
6490            Message = assemble(format, arg);
6491      }      }
6492    
6493      void Exception::PrintMessage() {      void Exception::PrintMessage() {

Legend:
Removed from v.3140  
changed lines
  Added in v.3203

  ViewVC Help
Powered by ViewVC