Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AttributeBase Class Reference

#include <Agent.h>

Inheritance diagram for AttributeBase:
Collaboration diagram for AttributeBase:

Public Member Functions

 AttributeBase (Agent *ag, std::string target_window_, std::string attr_)
 
virtual ~AttributeBase ()
 
virtual void create (std::string bufname)
 
virtual void assign (std::string bufname)
 

Public Attributes

Agentagent
 
std::string target_window
 
std::string attr
 

Detailed Description

Definition at line 45 of file Agent.h.

Constructor & Destructor Documentation

AttributeBase ( Agent ag,
std::string  target_window_,
std::string  attr_ 
)
inline

Definition at line 51 of file Agent.h.

51  :
52  agent(ag), target_window(target_window_), attr(attr_) {}
std::string target_window
Definition: Agent.h:48
Agent * agent
Definition: Agent.h:47
std::string attr
Definition: Agent.h:49
virtual ~AttributeBase ( )
inlinevirtual

Definition at line 53 of file Agent.h.

53 {}

Member Function Documentation

void assign ( std::string  bufname)
virtual

Definition at line 89 of file Agent.C.

References attr, COM_assertion_msg, COM_get_window_handle(), COM_use_attribute(), and target_window.

90 {
91  // check if target_window is created
92 // if (COM_get_window_handle( target_window) <= 0) {
93 // COM_new_window( target_window);
94 // COM_use_attribute( target_window, bufname+".all");
95 // }
96  COM_assertion_msg(COM_get_window_handle( target_window)>0, "ERROR: assign error.\n");
97 
99  // when to call init_done ??????????????
100 }
std::string target_window
Definition: Agent.h:48
#define COM_assertion_msg(EX, msg)
void COM_use_attribute(const char *wname, const char *attr, int wg=1, const char *ptnname=0, int val=0)
Use the subset of panes of another window of which the given pane attribute has value val...
Definition: roccom_c++.h:224
int COM_get_window_handle(const char *wname)
Definition: roccom_c++.h:404
std::string attr
Definition: Agent.h:49

Here is the call graph for this function:

void create ( std::string  bufname)
virtual

Reimplemented in UseAttribute, CloneAttribute, and NewAttribute.

Definition at line 85 of file Agent.C.

86 {
87 }

Member Data Documentation

Agent* agent

Definition at line 47 of file Agent.h.

Referenced by CloneAttribute::create(), and UseAttribute::create().

std::string attr

Definition at line 49 of file Agent.h.

Referenced by assign(), NewAttribute::create(), CloneAttribute::create(), and UseAttribute::create().

std::string target_window

Definition at line 48 of file Agent.h.

Referenced by assign(), CloneAttribute::create(), and UseAttribute::create().


The documentation for this class was generated from the following files: