Esempio n. 1
0
  public static Object create() {
    PointerStruct self;
    self = new PointerStruct();

    self.clear();

    return self;
  }
Esempio n. 2
0
  /**
   * This is the implementation of the <code>Copyable</code> interface. This method will perform a
   * deep copy of <code>src</code> This method could be placed into <code>PointerStructTypeSupport
   * </code> rather than here by using the <code>-noCopyable</code> option to rtiddsgen.
   *
   * @param src The Object which contains the data to be copied.
   * @return Returns <code>this</code>.
   * @exception NullPointerException If <code>src</code> is null.
   * @exception ClassCastException If <code>src</code> is not the same type as <code>this</code>.
   * @see com.rti.dds.infrastructure.Copyable#copy_from(java.lang.Object)
   */
  public Object copy_from(Object src) {

    PointerStruct typedSrc = (PointerStruct) src;
    PointerStruct typedDst = this;

    typedDst.member = typedSrc.member;

    return this;
  }