Object.h File Reference

#include <time.h>
#include <map>
#include <set>
#include "Support.h"
#include "String.h"
#include "StringList.h"
#include "Limits.h"

Include dependency graph for Object.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Object

Defines

#define __OBJECT_PART__
#define PYLON_OBJECT

Typedefs

typedef unsigned long long ObjectId

Functions

template<class T>
T * queryInterface (Support *obj)
String OBJECT_COLOR_TITLE (const String &str)
template<class T>
String CLASS_NAME ()

Variables

static const char *const MSG_OBJECT_SIGNAL_ALREADY_EXISTS = "Signal '%s' already exists."
static const char *const MSG_OBJECT_SIGNAL_IS_NOT_CONNECTED = "Signal '%s' is not connected to object with id %llu."
static const char *const MSG_OBJECT_REGISTRY_ALREADY_EXISTS = "Registry '%s' already exists."
static const char *const MSG_OBJECT_ALREADY_REGISTERED_FOR_DEFERRED_DELETION = "Object with id = %llu is already registered for deferred deletion."
static const char *const MSG_OBJECT_NOT_FOUND = "Object with id = %llu is not found."
static const char *const MSG_OBJECT_INVALID_ID = "Invalid object id %llu."


Define Documentation

#define __OBJECT_PART__

Value:

public: \
static String CLASS_NAME() \
{ \
  static String name; \
  if (name.empty()) { \
    String name(__PRETTY_FUNCTION__); \
    String functionName = "::" + String(__FUNCTION__) + "()"; \
    name = name.erase(0, name.find("String ") + strlen("String ")); \
    return name.erase(name.find(functionName), functionName.length()); \
  } \
  return name; \
} \
inline \
virtual String className() const \
{ \
  return CLASS_NAME(); \
} \

Definition at line 38 of file Object.h.

#define PYLON_OBJECT

Value:

__OBJECT_PART__ \
virtual void __abstract__() const {};

Definition at line 57 of file Object.h.


Typedef Documentation

typedef unsigned long long ObjectId

Definition at line 34 of file Object.h.


Function Documentation

template<class T>
String CLASS_NAME (  )  [inline]

Definition at line 150 of file Object.h.

Referenced by Service< T >::fork(), and Service< T >::spawn().

String OBJECT_COLOR_TITLE ( const String str  )  [inline]

Definition at line 143 of file Object.h.

References COLOR_STRING.

Referenced by Object::listInstances(), Object::listMyRegistry(), Object::listMySignals(), Object::listObjects(), Object::listRegistry(), Object::listSignals(), and Object::listTop().

template<class T>
T* queryInterface ( Support obj  )  [inline]

Definition at line 137 of file Object.h.


Variable Documentation

const char* const MSG_OBJECT_ALREADY_REGISTERED_FOR_DEFERRED_DELETION = "Object with id = %llu is already registered for deferred deletion." [static]

Definition at line 24 of file Object.h.

Referenced by Object::deleteLater().

const char* const MSG_OBJECT_INVALID_ID = "Invalid object id %llu." [static]

Definition at line 26 of file Object.h.

Referenced by Object::get().

const char* const MSG_OBJECT_NOT_FOUND = "Object with id = %llu is not found." [static]

Definition at line 25 of file Object.h.

Referenced by Object::get().

const char* const MSG_OBJECT_REGISTRY_ALREADY_EXISTS = "Registry '%s' already exists." [static]

Definition at line 23 of file Object.h.

Referenced by Object::bindRegistry().

const char* const MSG_OBJECT_SIGNAL_ALREADY_EXISTS = "Signal '%s' already exists." [static]

Definition at line 21 of file Object.h.

Referenced by Object::bindSignal().

const char* const MSG_OBJECT_SIGNAL_IS_NOT_CONNECTED = "Signal '%s' is not connected to object with id %llu." [static]

Definition at line 22 of file Object.h.

Referenced by Object::unbindSignal().


Generated on Thu Sep 6 20:12:02 2007 for Pylon Application Platform by  doxygen 1.5.1