ServerPortfolio  2.0
Python parsers and server
 All Classes Namespaces Files Functions Variables Properties Pages
Classes | Functions
serverportfolio.DictionaryStocks Namespace Reference

Define singleton class DictionaryStocks, act as the main container of Stocks objects. More...

Classes

class  Singleton
 Define a metaclass Singleton object. More...
 
class  DictionaryStocks
 Container of all Stocks objects, it also reads the static stocks configuration file "dictstocks.txt". More...
 

Functions

def ActivateTCPClient
 Used by C++ to activate / desactivate the client socket. More...
 
def DesactivateTCPClient
 Used by C++ to desactivate the client. More...
 

Detailed Description

Define singleton class DictionaryStocks, act as the main container of Stocks objects.

Last Changed

Id:
DictionaryStocks.py 13 2015-04-12 19:45:14Z michael

Function Documentation

def serverportfolio.DictionaryStocks.ActivateTCPClient ( )

Used by C++ to activate / desactivate the client socket.

tcp_client was created at the initialisation of DictionaryStocks. flag active true/false determine if guistock server is running. coded here easier for the integration with C++

Definition at line 387 of file DictionaryStocks.py.

def serverportfolio.DictionaryStocks.DesactivateTCPClient ( )

Used by C++ to desactivate the client.

Definition at line 403 of file DictionaryStocks.py.