Pol  Revision:50b1c95
uobjhelp.cpp
Go to the documentation of this file.
1 
7 #include "uobjhelp.h"
8 
9 #include "ufunc.h"
10 #include "ufuncstd.h"
11 #include "uobject.h"
12 #include "network/client.h"
13 
14 #include "../clib/stlutil.h"
15 
16 namespace Pol
17 {
18 namespace Core
19 {
21 {
22  for ( PropertyList::Properties::iterator itr = proplist.properties.begin();
23  itr != proplist.properties.end(); ++itr )
24  {
25  OSTRINGSTREAM os;
26  os << ( *itr ).first << ": " << ( *itr ).second;
27  send_sysmessage( client, OSTRINGSTREAM_STR( os ) );
28  }
29 }
30 
32 {
33  ShowProperties( client, obj->proplist_ );
34 }
35 }
36 }
static void ShowProperties(Network::Client *client, PropertyList &proplist)
Definition: uobjhelp.cpp:20
#define OSTRINGSTREAM_STR(x)
Definition: stlutil.h:112
PropertyList proplist_
Definition: uobject.h:372
#define OSTRINGSTREAM
Definition: stlutil.h:111
Properties properties
Definition: proplist.h:219
Definition: berror.cpp:11
void send_sysmessage(Network::Client *client, const char *text, unsigned short font, unsigned short color)
Definition: ufunc.cpp:1207