~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to plugins/language-support-cpp-java/cxxparser/variable-result.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-08-17 23:48:26 UTC
  • mfrom: (1.1.50)
  • Revision ID: package-import@ubuntu.com-20120817234826-fvk3rfp6nmfaqi9p
Tags: 2:3.5.5-0ubuntu1
* New upstream release.
* debian/control.in:
  - Bump vala dependency to 0.18 series
  - Drop graphviz from build-depends
* debian/watch: Watch for unstable releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2
 
/*
3
 
 * anjuta
4
 
 * Copyright (C) Eran Ifrah (Main file for CodeLite www.codelite.org/ )
5
 
 * Copyright (C) Massimo Cora' 2009 <maxcvs@email.it> (Customizations for Anjuta)
6
 
 * 
7
 
 * anjuta is free software: you can redistribute it and/or modify it
8
 
 * under the terms of the GNU General Public License as published by the
9
 
 * Free Software Foundation, either version 3 of the License, or
10
 
 * (at your option) any later version.
11
 
 * 
12
 
 * anjuta is distributed in the hope that it will be useful, but
13
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
 
 * See the GNU General Public License for more details.
16
 
 * 
17
 
 * You should have received a copy of the GNU General Public License along
18
 
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
 */
20
 
 
21
 
#ifndef _VARIABLE_H_
22
 
#define _VARIABLE_H_
23
 
 
24
 
#include "string"
25
 
#include "list"
26
 
#include <stdio.h>
27
 
 
28
 
class Variable
29
 
{
30
 
public:
31
 
        std::string     m_name;
32
 
        bool            m_isTemplate;
33
 
        std::string     m_templateDecl;
34
 
        bool            m_isPtr;
35
 
        std::string     m_type;         /* as in 'int a;' -> type=int */
36
 
        
37
 
        std::string     m_typeScope;/* as in 'std::string a;' -> typeScope = std, 
38
 
                                                                 * type=string 
39
 
                                                                 */
40
 
        std::string     m_pattern;
41
 
        std::string     m_starAmp;
42
 
        int             m_lineno;
43
 
        bool            m_isConst;
44
 
        std::string     m_defaultValue; /* used mainly for function arguments with 
45
 
                                                                     * default values foo (int = 0);
46
 
                                                                         */
47
 
        std::string     m_arrayBrackets;
48
 
 
49
 
public:
50
 
        Variable();
51
 
        virtual ~Variable();
52
 
 
53
 
        /* copy ctor */
54
 
        Variable(const Variable& src);
55
 
 
56
 
        /* operator = */
57
 
        Variable& operator=(const Variable& src);
58
 
 
59
 
        /* clear the class content */
60
 
        void reset();
61
 
 
62
 
        /* print the variable to stdout */
63
 
        void print();
64
 
};
65
 
 
66
 
typedef std::list<Variable> VariableList;
67
 
 
68
 
#endif // _VARIABLE_H_
69
 
 
70