2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 /*========================================================================*/
12 * @file CicoSCDisplay.cpp
14 * @brief This file implementation of CicoSCDisplay class
16 /*========================================================================*/
22 #include "CicoSCDisplay.h"
23 #include "CicoSCLayer.h"
24 #include "CicoSCDisplayZone.h"
27 //--------------------------------------------------------------------------
29 * @brief default constructor
31 //--------------------------------------------------------------------------
32 CicoSCDisplay::CicoSCDisplay()
41 orientation(ORIENTATION_HORIZONTAL),
46 //--------------------------------------------------------------------------
50 //--------------------------------------------------------------------------
51 CicoSCDisplay::~CicoSCDisplay()
55 //--------------------------------------------------------------------------
57 * @brief dump log this class member variables
59 //--------------------------------------------------------------------------
61 CicoSCDisplay::dump(void)
63 ICO_DBG("CicoSCDisplay: displayid=%d type=%d nodeid=%d displayno=%d "
64 "width=%d height=%d pWidth=%d pHeight=%d "
65 "orientation =%d name=%s",
66 displayid, type, nodeid, displayno, width, height,
67 pWidth, pHeight, orientation, name.c_str());
70 vector<CicoSCLayer*>::iterator itr;
71 itr = layerList.begin();
72 for (; itr != layerList.end(); ++itr) {
78 std::map<unsigned int, CicoSCDisplayZone*>::iterator itr;
79 itr = zoneList.begin();
80 for (; itr != zoneList.end(); ++itr) {
86 //--------------------------------------------------------------------------
88 * @brief find CicoSCDisplayZone instance by fullname
90 //--------------------------------------------------------------------------
92 CicoSCDisplay::findDisplayZonebyFullName(const string & fullname)
94 // ICO_TRA("CicoSCDisplay:findDisplayZonebyFullName Enter"
95 // "(fullname=%s)", fullname.c_str());
97 std::map<unsigned int, CicoSCDisplayZone*>::iterator itr;
98 itr = zoneList.begin();
99 for (; itr != zoneList.end(); ++itr) {
100 if (itr->second->fullname == fullname) {
101 // ICO_TRA("CicoSCDisplay:findDisplayZonebyFullName Leave(found)");
106 // ICO_TRA("CicoSCDisplay:findDisplayZonebyFullName Leave(not found)");
109 // vim:set expandtab ts=4 sw=4: