cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
prmForceCartesianSet.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5  Author(s): Rajesh Kumar, Anton Deguet
6  Created on: 2008-03-12
7 
8  (C) Copyright 2009 Johns Hopkins University (JHU), All Rights
9  Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 
27 #ifndef _prmForceCartesianSet_h
28 #define _prmForceCartesianSet_h
29 
32 
33 // Always include last
35 
40 {
42 public:
43 
47 
48  protected:
54 
55  public:
58  ForceMember(0.0),
59  MaskMember(true)
60  {}
61 
64  const MaskType & mask):
65  ForceMember(force),
66  MaskMember(mask)
67  {}
68 
69  inline void SetAll(double forceSet, bool mask)
70  {
71  ForceMember.SetAll(forceSet);
72  MaskMember.SetAll(mask);
73  }
74 
77  virtual ~prmForceCartesianSet();
78 
80  void ToStream(std::ostream & outputStream) const;
81 
83  void ToStreamRaw(std::ostream & outputStream, const char delimiter = ' ',
84  bool headerOnly = false, const std::string & headerPrefix = "") const;
85 
87  void SerializeRaw(std::ostream & outputStream) const;
88 
90  void DeSerializeRaw(std::istream & inputStream);
91 
92 }; // _prmForceCartesianSet_h
93 
94 
96 
97 
98 #endif // _prmForceCartesianSet_h
99 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
CMN_DECLARE_SERVICES_INSTANTIATION(prmForceCartesianSet)
vctFixedSizeVector< bool, 6 > MaskType
Definition: prmForceCartesianSet.h:46
Definition: prmMotionBase.h:36
virtual void ToStream(std::ostream &outputStream) const
prmForceCartesianSet()
Definition: prmForceCartesianSet.h:57
vctFixedSizeVector< double, 6 > ForceType
Definition: prmForceCartesianSet.h:45
void SetAll(double forceSet, bool mask)
Definition: prmForceCartesianSet.h:69
prmMotionBase BaseType
Definition: prmForceCartesianSet.h:44
Declaration of vctFixedSizeVector.
Definition: prmForceCartesianSet.h:39
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
CMN_DECLARE_MEMBER_AND_ACCESSORS(prmBlocking, BlockingFlag)
prmForceCartesianSet(const ForceType &force, const MaskType &mask)
Definition: prmForceCartesianSet.h:63
void SerializeRaw(std::ostream &outputStream) const
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
virtual void ToStreamRaw(std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
void DeSerializeRaw(std::istream &inputStream)