XC Open source finite element analysis program
MapCadMemberBase.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 //MapCadMemberBase.h
28 
29 #ifndef MAPCADMEMBERBASE_H
30 #define MAPCADMEMBERBASE_H
31 
32 #include "xc_utils/src/nucleo/EntCmd.h"
33 
34 namespace XC {
35 
36 class Preprocessor;
37 class Cad;
38 
40 //
42 class MapCadMemberBase: public EntCmd
43  {
44  public:
45  typedef size_t Indice;
46 
47  protected:
48  Indice tag;
49 
50 
51 
52  public:
53  MapCadMemberBase(Cad *cad= nullptr);
54 
55  const Cad *getCad(void) const;
56  Cad *getCad(void);
57  const Preprocessor *getPreprocessor(void) const;
59 
60  inline size_t getTag(void) const
61  { return tag; }
62  void setTag(const size_t &t)
63  { tag= t; }
64 
65 
66  };
67 
68 } //end of XC namespace
69 #endif
const Preprocessor * getPreprocessor(void) const
Return a pointer to preprocessor.
Definition: MapCadMemberBase.cc:54
Base class for entity containers of the model.
Definition: MapCadMemberBase.h:42
const Cad * getCad(void) const
Return a pointer to Cad.
Definition: MapCadMemberBase.cc:40
Finite element model generation tools.
Definition: Preprocessor.h:58
Model geometry manager. Management of geometry entities: points, lines, surfaces, bodies...
Definition: Cad.h:69
MapCadMemberBase(Cad *cad=nullptr)
Default identifier for new point.
Definition: MapCadMemberBase.cc:36
================================================================================
Definition: ContinuaReprComponent.h:34