C++ problem displaying parameters using dOxygen


 
Thread Tools Search this Thread
Top Forums Programming C++ problem displaying parameters using dOxygen
# 1  
Old 07-15-2012
C++ problem displaying parameters using dOxygen

I have
written some C++ code with documentation code for dOxygen as below. However the parameters are not showing up.

Code:
/// \file
///
///

#ifndef __VECT2_HH__
#define __VECT2_HH__

#include <iostream>
#include <assert.h>
#include <cmath>

#include "common.hh"

////////////////////////////////////////////////////////////////////////////////////////////////////

///
/// \class Vect2 vect2.hh
/// \brief
///

struct Vect2 {

// -- Attributes -----------------------------------------------------------------------------------

public:

  Real  X;    ///< The x-component of a cartesian vector
  Real  Z;    ///< The z-component of a cartesian vector

// -- Operations -----------------------------------------------------------------------------------

public:

  // Constructors:

  ///
  /// \fn Vect2
  /// \brief Initializes a new instance of a cartesian vector, setting its component to zero.
  ///

  Vect2():
    X(0.0),
    Z(0.0) { }

  ///
  /// \fn Vect2
  /// \brief Initializes a new instance of a cartesian vector, using the specified x- and z-components.
  ///
  /// \param x
  /// \param z
  ///
  Vect2(
    const Real  x,
    const Real  z ):
    X(x),
    Z(z) { }

  ///
  /// \fn Vect2
  /// \brief Initializes a new instance of a cartesian vector, using two scalar values.
  ///
  /// \param r
  ///
  Vect2(
    const Real*  r ):
    X(r[0]),
    Z(r[1]) { }

  ///
  /// \fn Vect2
  /// \brief Initializes a new instance of a cartesian vector, using the specified cartesian vector.
  ///
  /// \param V
  ///
  Vect2(
    const Vect2&  V );

  ///
  /// \fn Mod
  /// \brief Return the modulus (absolute value) of a cartesian vector.
  ///
  /// \return Real
  ///
  Real  Mod() const;

//  Vect2  Vers() const;

  ///
  /// \fn Normalize
  /// \brief Normalize a cartesian vector.
  ///
  /// \return Vect2
  ///
  Vect2  Normalize() const;

  ///
  /// \fn operator []
  /// \brief
  ///
  /// \param i
  /// \return Real &operator
  ///
  Real&  operator [] (
    const int  i );

  ///
  /// \fn operator =
  /// \brief Assignment to a cartesian vector.
  ///
  /// \param V
  /// \return Vect2 &operator
  ///
  Vect2&  operator = (
    const Vect2&  V );

  ///
  /// \fn operator =
  /// \brief Assignment to a scalar.
  ///
  /// \param r
  /// \return Vect2 &operator
  ///
  Vect2&  operator = (
    const Real  r );

  // Compound assignments:

  ///
  /// \fn operator +=
  /// \brief Compound addition assignment with a cartesian vector.
  ///
  /// \param V
  /// \return Vect2 &operator
  ///
  Vect2&  operator += (
    const Vect2&  V );

  ///
  /// \fn operator -=
  /// \brief Compound subtraction assignment with a cartesian vector.
  ///
  /// \param V
  /// \return Vect2 &operator
  ///
  Vect2&  operator -= (
    const Vect2&  V );

  ///
  /// \fn operator *=
  /// \brief Compound multiplication assignment with a scalar.
  ///
  /// \param r
  /// \return Vect2 &operator
  ///
  Vect2&  operator *= (
    const Real  r );

  ///
  /// \fn operator /=
  /// \brief Compound division assignment with a scalar.
  ///
  /// \param r
  /// \return Vect2 &operator
  ///
  Vect2&  operator /= (
    const Real  r );

  ///
  /// \fn operator ^
  /// \brief
  ///
  /// \param V
  /// \return Real operator
  ///
  Real  operator ^ (
    const Vect2&  V ) const;

  ///
  /// \fn Mod
  /// \brief Return the modulus (absolute value) of a cartesian vector.
  ///
  /// \param V
  /// \return Real
  ///
  friend Real  Mod(
    const Vect2&  V );

//  friend Vect2  Vers(
//    const Vect2&  V );

  ///
  /// \fn Normalize
  /// \brief Normalize a cartesian vector.
  ///
  /// \param V Cartesian vector
  /// \return Vect2
  ///
  friend Vect2  Normalize(
    const Vect2&  V );

  ///
  /// \fn operator -
  /// \brief Unary minus.
  ///
  /// \param V Cartesian vector
  /// \return Vect2 operator
  ///
  friend Vect2  operator  - (
    const Vect2&  V );

  ///
  /// \fn operator +
  /// \brief Add two cartesian vectors.
  ///
  /// \param V Cartesian vector
  /// \param W Cartesian vector
  /// \return Vect2 operator
  ///
  friend Vect2  operator  + (
    const Vect2&  V,
    const Vect2&  W );

  ///
  /// \fn operator -
  /// \brief Subtract two cartesian vectors.
  ///
  /// \param V Cartesian vector
  /// \param W Cartesian vector
  /// \return Vect2 operator
  ///
  friend Vect2  operator  - (
    const Vect2&  V,
    const Vect2&  W );

  ///
  /// \fn operator *
  /// \brief Multiply cartesian vector with a scalar.
  ///
  /// \param V Cartesian vector
  /// \param r Scalar
  /// \return Vect2 operator
  ///
  friend Vect2  operator  * (
    const Vect2&  V,
    const Real  r );

  ///
  /// \fn operator *
  /// \brief Multiply a scalar with a cartesian vector.
  ///
  /// \param r Scalar
  /// \param V Cartesian vector
  /// \return Vect2 operator
  ///
  friend Vect2  operator  * (
    const Real  r,
    const Vect2&  V );

  ///
  /// \fn operator *
  /// \brief Multiply two cartesian vectors.
  ///
  /// \param V Cartesian vector
  /// \param W Cartesian vector
  /// \return Real operator
  ///
  friend Real  operator  * (
    const Vect2&  V,
    const Vect2&  W );

  ///
  /// \fn operator /
  /// \brief Divide a cartesian vector by a scalar.
  ///
  /// \param V Cartesian vector
  /// \param r
  /// \return Vect2 operator
  ///
  friend Vect2  operator  / (
    const Vect2&  V,
    const Real  r );

  ///
  /// \fn operator ==
  /// \brief Compares two cartesian vectors for equality.
  ///
  /// \param V Cartesian vector
  /// \param W Cartesian vector
  /// \return bool operator
  ///
  friend bool  operator  == (
    const Vect2&  V,
    const Vect2&  W );

  ///
  /// \fn operator !=
  /// \brief Compares two cartesian vectors for inequality.
  ///
  /// \param V Cartesian vector
  /// \param W Cartesian vector
  /// \return bool operator
  ///
  friend bool  operator  != (
    const Vect2&  V,
    const Vect2&  W );

  ///
  /// \fn operator >>
  /// \brief
  ///
  /// \param is
  /// \param V Cartesian vector
  /// \return istream &operator >>
  ///
  friend istream&  operator  >> (
    istream&  is,
    Vect2&  V );

  ///
  /// \fn operator <<
  /// \brief
  ///
  /// \param os output stream
  /// \param V Cartesian vector
  /// \return ostream &operator
  ///
  friend ostream&  operator  << (
    ostream&  os,
    const Vect2&  V );

};

////////////////////////////////////////////////////////////////////////////////////////////////////

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem while displaying(cat) file content inside telnet loop .

Hi Team, Not getting the file output inside my email which i am sending from unix box. . Please refer the below code : #!/bin/sh { sleep 5 echo ehlo 10.56.185.13 sleep 3 echo mail from: oraairtel@CNDBMUREAPZP02.localdomain sleep 3 echo rcpt to: saurabhtripathi@anniksystems.com... (1 Reply)
Discussion started by: tripathi1990
1 Replies

2. Linux

Problem in displaying message on RHEL6 on EFI during PXE boot

Hi, I am doing PXE boot for RHEL6.4 on EFI and want to display custom messsage before loading vmlinuz and initrd.img, which is not working. boot server side (In case of BIOS client): In /var/lib/tftpboot/default file I am putting the message in below format: SAY hello world boot... (0 Replies)
Discussion started by: indus123
0 Replies

3. UNIX for Dummies Questions & Answers

Trouble displaying parameters passed into a for loop

#!/bin/bash function check_num_args() { if ; then echo "Please provide a file name" else treat_as_file $* fi } function treat_as_file() { numFiles=$# for((i=1;i<=$numFiles;i++));do echo $i ... (3 Replies)
Discussion started by: kikilahooch
3 Replies

4. Shell Programming and Scripting

Displaying Files Problem

To match all filename comprising at least three characters the first character is numeric and the last character is not alphabetic (2 Replies)
Discussion started by: polineni
2 Replies

5. Shell Programming and Scripting

Displaying Files Problem

To match all filename comprising at least three characters not beginning with a dot (1 Reply)
Discussion started by: polineni
1 Replies

6. Shell Programming and Scripting

Problem with input parameters

Hi I wrote a script which lists the content of a given directory. I have just one problem. If you give 2 or more parameters, then it gives a strange error. After that error, it gives also an error from my script, but normally it shouldn't give that error. Here's my script.You can test it. ... (3 Replies)
Discussion started by: hss
3 Replies

7. Shell Programming and Scripting

Problem with parameters ( $1, $2... )

I have problem with params...I have created a script, which needs a path to PDF file as parameter. for instance: sh myScript.sh $HOME/myPdf.pdf the problem is, when the PDF's name is not just myPDF.pdf but my pdf.pdf...I want to say, that the name of the PDF is separated by spaces, and... (2 Replies)
Discussion started by: Lukasito
2 Replies

8. Shell Programming and Scripting

Problem with Input parameters

Hi, I am facing a weird problem with input parameters. Please find more details about my problem below: a) I am executing a korn shellscript with 11 input parameters from "Appworx" tool (it's a scheduling tool) and immediately displaying those 11 parameter values in unixscript and noticed... (4 Replies)
Discussion started by: npk2210
4 Replies

9. Shell Programming and Scripting

problem with displaying date and adding time

Hi, I have a log file with contents like 81.49.74.131 - - 81.49.74.131 - - 116.112.52.31 - - 116.112.52.31 - - I need an output like this 81.49.74.131 14/Sep/2008 Time duration: 00:06:00 116.112.52.31 15/Sep/2008 Time duration: 00:00:01 Please anyone suggest a script for this.... (1 Reply)
Discussion started by: FuncMx
1 Replies

10. HP-UX

HP-UX 11.11 SAM no longer displaying configurable parameters

Hi, I need to use SAM on HP-UX 11.11. SAM was working fully but now when I try to view the "Configurable Parameters" SAM comes back with an empty window. I think it may be related to some security rules I implemented but cannot be sure (mainly permissions tightening). I have checked... (6 Replies)
Discussion started by: sjmolloy
6 Replies
Login or Register to Ask a Question